* configure.in (checking for -znocombreloc): Use AC_LANG_PROGRAM
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
8 # Foundation, 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_config_libobj_dir=src
603 ac_header_list=
604 ac_func_list=
605 ac_subst_vars='LTLIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 opsysfile
634 machfile
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 GETOPTOBJS
662 GETOPT_H
663 GETLOADAVG_LIBS
664 KMEM_GROUP
665 NEED_SETGID
666 LIBOBJS
667 BLESSMAIL_TARGET
668 LIBS_MAIL
669 liblockfile
670 ALLOCA
671 LIBXML2_LIBS
672 LIBXML2_CFLAGS
673 LIBXSM
674 LIBGPM
675 LIBGIF
676 LIBTIFF
677 LIBPNG
678 LIBJPEG
679 LIBXPM
680 FREETYPE_LIBS
681 FREETYPE_CFLAGS
682 M17N_FLT_LIBS
683 M17N_FLT_CFLAGS
684 LIBOTF_LIBS
685 LIBOTF_CFLAGS
686 XFT_LIBS
687 XFT_CFLAGS
688 FONTCONFIG_LIBS
689 FONTCONFIG_CFLAGS
690 LIBXMU
691 LIBXTR6
692 LIBGNUTLS_LIBS
693 LIBGNUTLS_CFLAGS
694 LIBSELINUX_LIBS
695 GCONF_LIBS
696 GCONF_CFLAGS
697 DBUS_OBJ
698 DBUS_LIBS
699 DBUS_CFLAGS
700 GTK_OBJ
701 GTK_LIBS
702 GTK_CFLAGS
703 IMAGEMAGICK_LIBS
704 IMAGEMAGICK_CFLAGS
705 RSVG_LIBS
706 RSVG_CFLAGS
707 VMLIMIT_OBJ
708 GMALLOC_OBJ
709 HAVE_XSERVER
710 LIB_STANDARD
711 NS_SUPPORT
712 NS_OBJ
713 TEMACS_LDFLAGS2
714 LD_SWITCH_X_SITE_AUX_RPATH
715 LD_SWITCH_X_SITE_AUX
716 XMKMF
717 DEPFLAGS
718 MKDEPDIR
719 SET_MAKE
720 CFLAGS_SOUND
721 ALSA_LIBS
722 ALSA_CFLAGS
723 PKG_CONFIG
724 LIBSOUND
725 START_FILES
726 LIB_MATH
727 CRT_DIR
728 LIBS_SYSTEM
729 C_SWITCH_SYSTEM
730 UNEXEC_OBJ
731 C_SWITCH_MACHINE
732 LD_SWITCH_SYSTEM
733 CANNOT_DUMP
734 MAKEINFO
735 GZIP_PROG
736 INSTALL_INFO
737 RANLIB
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 C_WARNINGS_SWITCH
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 PROFILING_CFLAGS
761 MAINT
762 GZIP_INFO
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files='deps_frag
802 ns_frag'
803 ac_user_opts='
804 enable_option_checking
805 with_pop
806 with_kerberos
807 with_kerberos5
808 with_hesiod
809 with_mmdf
810 with_mail_unlink
811 with_mailhost
812 with_sound
813 with_sync_input
814 with_x_toolkit
815 with_xpm
816 with_jpeg
817 with_tiff
818 with_gif
819 with_png
820 with_rsvg
821 with_xml2
822 with_imagemagick
823 with_xft
824 with_libotf
825 with_m17n_flt
826 with_toolkit_scroll_bars
827 with_xaw3d
828 with_xim
829 with_ns
830 with_gpm
831 with_dbus
832 with_gconf
833 with_selinux
834 with_gnutls
835 with_makeinfo
836 with_compress_info
837 with_pkg_config_prog
838 with_crt_dir
839 with_gnustep_conf
840 enable_ns_self_contained
841 enable_asserts
842 enable_maintainer_mode
843 enable_locallisppath
844 enable_checking
845 enable_use_lisp_union_type
846 enable_profiling
847 enable_autodepend
848 enable_largefile
849 with_x
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 XMKMF'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
933
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 bindir=$ac_optarg ;;
938
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
953
954 -datadir | --datadir | --datadi | --datad)
955 ac_prev=datadir ;;
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
958
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
991
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1016
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1020
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1027
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1032
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1038
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1045
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1050
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1055
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1062
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1067
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1074
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1079
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1083
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1086 no_create=yes ;;
1087
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1091
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1100
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1105
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1112
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1119
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1136
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1141
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1146
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1150
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1167
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1177
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1184
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1195
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 ;;
1267
1268 esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1289 do
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used" >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 X features:
1466 --x-includes=DIR X include files are in DIR
1467 --x-libraries=DIR X library files are in DIR
1468
1469 System types:
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1478 esac
1479 cat <<\_ACEOF
1480
1481 Optional Features:
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --disable-ns-self-contained
1486 disable self contained build under NeXTstep
1487 --enable-asserts compile code with asserts enabled
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-locallisppath=PATH
1492 directories Emacs should search for lisp files
1493 specific to this site
1494 --enable-checking[=LIST]
1495 enable expensive run-time checks. With LIST, enable
1496 only specific categories of checks. Categories are:
1497 all,yes,no. Flags are: stringbytes, stringoverrun,
1498 stringfreelist, xmallocoverrun, conslist
1499 --enable-use-lisp-union-type
1500 use a union for the Lisp_Object data type. This is
1501 only useful for development for catching certain
1502 types of bugs.
1503 --enable-profiling build emacs with profiling support. This might not
1504 work on all platforms
1505 --enable-autodepend automatically generate dependencies to .h-files.
1506 Requires GNU Make and Gcc. Enabled if GNU Make and
1507 Gcc is found
1508 --disable-largefile omit support for large files
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --without-pop don't support POP mail retrieval with movemail
1514 --with-kerberos support Kerberos-authenticated POP
1515 --with-kerberos5 support Kerberos version 5 authenticated POP
1516 --with-hesiod support Hesiod to get the POP server host
1517 --with-mmdf support MMDF mailboxes
1518 --with-mail-unlink unlink, rather than empty, mail spool after reading
1519 --with-mailhost=HOSTNAME
1520 string giving default POP mail host
1521 --without-sound don't compile with sound support
1522 --without-sync-input process async input synchronously
1523 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1524 lucid or athena, motif, no)
1525 --without-xpm don't compile with XPM image support
1526 --without-jpeg don't compile with JPEG image support
1527 --without-tiff don't compile with TIFF image support
1528 --without-gif don't compile with GIF image support
1529 --without-png don't compile with PNG image support
1530 --without-rsvg don't compile with SVG image support
1531 --without-xml2 don't compile with XML parsing support
1532 --without-imagemagick don't compile with ImageMagick image support
1533 --without-xft don't use XFT for anti aliased fonts
1534 --without-libotf don't use libotf for OpenType font support
1535 --without-m17n-flt don't use m17n-flt for text shaping
1536 --without-toolkit-scroll-bars
1537 don't use Motif or Xaw3d scroll bars
1538 --without-xaw3d don't use Xaw3d
1539 --without-xim don't use X11 XIM
1540 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1541 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1542 console
1543 --without-dbus don't compile with D-Bus support
1544 --without-gconf don't compile with GConf support
1545 --without-selinux don't compile with SELinux support
1546 --without-gnutls don't use -lgnutls for SSL/TLS support
1547 --without-makeinfo don't require makeinfo for building manuals
1548 --without-compress-info don't compress the installed Info pages
1549 --with-pkg-config-prog=PATH
1550 path to pkg-config for finding GTK and librsvg
1551 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1552 /usr/lib, or /usr/lib64 on some platforms.
1553 --with-gnustep-conf=PATH
1554 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1555 or /etc/GNUstep/GNUstep.conf
1556 --with-x use the X Window System
1557
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1566 CPP C preprocessor
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to the package provider.
1573 _ACEOF
1574 ac_status=$?
1575 fi
1576
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
1583 ac_builddir=.
1584
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *)
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1600
1601 case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 emacs configure 24.0.50
1636 generated by GNU Autoconf 2.68
1637
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1
1722 fi
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798 else
1799 ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1804
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814 else
1815 ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1820
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841 esac
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_mongrel
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875 { { case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_try") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; }; }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: program exited with status $ac_status" >&5
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=$ac_status
1892 fi
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_header_compile
1929
1930 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1931 # ---------------------------------------------
1932 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 # accordingly.
1934 ac_fn_c_check_decl ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 as_decl_name=`echo $2|sed 's/ *(.*//'`
1938 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1940 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main ()
1949 {
1950 #ifndef $as_decl_name
1951 #ifdef __cplusplus
1952 (void) $as_decl_use;
1953 #else
1954 (void) $as_decl_name;
1955 #endif
1956 #endif
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_decl
1975
1976 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1977 # ----------------------------------------------
1978 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_preproc ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 eval "$3=yes"
1993 else
1994 eval "$3=no"
1995 fi
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_header_preproc
2004
2005 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006 # ----------------------------------------------------
2007 # Tries to find if the field MEMBER exists in type AGGR, after including
2008 # INCLUDES, setting cache variable VAR accordingly.
2009 ac_fn_c_check_member ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013 $as_echo_n "checking for $2.$3... " >&6; }
2014 if eval \${$4+:} false; then :
2015 $as_echo_n "(cached) " >&6
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 (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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $5
2036 int
2037 main ()
2038 {
2039 static $2 ac_aggr;
2040 if (sizeof ac_aggr.$3)
2041 return 0;
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048 else
2049 eval "$4=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_member
2061
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2066 {
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2078
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below.
2081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082 <limits.h> exists even on freestanding compilers. */
2083
2084 #ifdef __STDC__
2085 # include <limits.h>
2086 #else
2087 # include <assert.h>
2088 #endif
2089
2090 #undef $2
2091
2092 /* Override any GCC internal prototype to avoid an error.
2093 Use char because int might match the return type of a GCC
2094 builtin and then its argument prototype would still apply. */
2095 #ifdef __cplusplus
2096 extern "C"
2097 #endif
2098 char $2 ();
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined __stub_$2 || defined __stub___$2
2103 choke me
2104 #endif
2105
2106 int
2107 main ()
2108 {
2109 return $2 ();
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_link "$LINENO"; then :
2115 eval "$3=yes"
2116 else
2117 eval "$3=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext \
2120 conftest$ac_exeext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_c_check_func
2128
2129 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2130 # -------------------------------------------
2131 # Tests whether TYPE exists after having included INCLUDES, setting cache
2132 # variable VAR accordingly.
2133 ac_fn_c_check_type ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 eval "$3=no"
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main ()
2147 {
2148 if (sizeof ($2))
2149 return 0;
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 $4
2158 int
2159 main ()
2160 {
2161 if (sizeof (($2)))
2162 return 0;
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168
2169 else
2170 eval "$3=yes"
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180
2181 } # ac_fn_c_check_type
2182 cat >config.log <<_ACEOF
2183 This file contains any messages produced by compilers while
2184 running configure, to aid debugging if configure makes a mistake.
2185
2186 It was created by emacs $as_me 24.0.50, which was
2187 generated by GNU Autoconf 2.68. Invocation command line was
2188
2189 $ $0 $@
2190
2191 _ACEOF
2192 exec 5>>config.log
2193 {
2194 cat <<_ASUNAME
2195 ## --------- ##
2196 ## Platform. ##
2197 ## --------- ##
2198
2199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207
2208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215
2216 _ASUNAME
2217
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225 IFS=$as_save_IFS
2226
2227 } >&5
2228
2229 cat >&5 <<_ACEOF
2230
2231
2232 ## ----------- ##
2233 ## Core tests. ##
2234 ## ----------- ##
2235
2236 _ACEOF
2237
2238
2239 # Keep a trace of the command line.
2240 # Strip out --no-create and --no-recursion so they do not pile up.
2241 # Strip out --silent because we don't want to record it for future runs.
2242 # Also quote any args containing shell meta-characters.
2243 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_configure_args=
2245 ac_configure_args0=
2246 ac_configure_args1=
2247 ac_must_keep_next=false
2248 for ac_pass in 1 2
2249 do
2250 for ac_arg
2251 do
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 2)
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2275 ;;
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2278 fi
2279 as_fn_append ac_configure_args " '$ac_arg'"
2280 ;;
2281 esac
2282 done
2283 done
2284 { ac_configure_args0=; unset ac_configure_args0;}
2285 { ac_configure_args1=; unset ac_configure_args1;}
2286
2287 # When interrupted or exit'd, cleanup temporary files, and complete
2288 # config.log. We remove comments because anyway the quotes in there
2289 # would cause problems or look ugly.
2290 # WARNING: Use '\'' to represent an apostrophe within the trap.
2291 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292 trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2294 {
2295 echo
2296
2297 $as_echo "## ---------------- ##
2298 ## Cache variables. ##
2299 ## ---------------- ##"
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2302 (
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2325 *)
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 ;;
2328 esac |
2329 sort
2330 )
2331 echo
2332
2333 $as_echo "## ----------------- ##
2334 ## Output variables. ##
2335 ## ----------------- ##"
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
2348 $as_echo "## ------------------- ##
2349 ## File substitutions. ##
2350 ## ------------------- ##"
2351 echo
2352 for ac_var in $ac_subst_files
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361 fi
2362
2363 if test -s confdefs.h; then
2364 $as_echo "## ----------- ##
2365 ## confdefs.h. ##
2366 ## ----------- ##"
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378 ' 0
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2383
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2386
2387 $as_echo "/* confdefs.h */" > confdefs.h
2388
2389 # Predefined preprocessor variables.
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2414
2415
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
2427 elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430 else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433 fi
2434 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435 do
2436 test "x$ac_site_file" = xNONE && continue
2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "failed to load site script $ac_site_file
2445 See \`config.log' for more details" "$LINENO" 5; }
2446 fi
2447 done
2448
2449 if test -r "$cache_file"; then
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454 $as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464 fi
2465
2466 as_fn_append ac_header_list " stdlib.h"
2467 as_fn_append ac_header_list " unistd.h"
2468 as_fn_append ac_header_list " sys/param.h"
2469 as_fn_append ac_header_list " sys/time.h"
2470 as_fn_append ac_func_list " alarm"
2471 # Check that the precious variables saved in the cache have kept the same
2472 # value.
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2480 set,)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,set)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2488 ,);;
2489 *)
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2507 fi;;
2508 esac
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2511 case $ac_new_val in
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2514 esac
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518 esac
2519 fi
2520 done
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527 fi
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2531
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2540
2541
2542
2543 test "$program_prefix" != NONE &&
2544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545 # Use a double $ so make ignores it.
2546 test "$program_suffix" != NONE &&
2547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548 # Double any \ or $.
2549 # By default was `s,x,x', remove it if useless.
2550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
2553
2554 lispdir='${datadir}/emacs/${version}/lisp'
2555 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2556 '${datadir}/emacs/site-lisp'
2557 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2558 etcdir='${datadir}/emacs/${version}/etc'
2559 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2560 docdir='${datadir}/emacs/${version}/etc'
2561 gamedir='${localstatedir}/games/emacs'
2562
2563 gameuser=games
2564
2565
2566
2567
2568 # Check whether --with-pop was given.
2569 if test "${with_pop+set}" = set; then :
2570 withval=$with_pop;
2571 else
2572 with_pop=yes
2573 fi
2574
2575 if test "$with_pop" = yes; then
2576 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2577
2578 fi
2579
2580
2581 # Check whether --with-kerberos was given.
2582 if test "${with_kerberos+set}" = set; then :
2583 withval=$with_kerberos;
2584 else
2585 with_kerberos=no
2586 fi
2587
2588 if test "$with_kerberos" != no; then
2589 $as_echo "#define KERBEROS 1" >>confdefs.h
2590
2591 fi
2592
2593
2594 # Check whether --with-kerberos5 was given.
2595 if test "${with_kerberos5+set}" = set; then :
2596 withval=$with_kerberos5;
2597 else
2598 with_kerberos5=no
2599 fi
2600
2601 if test "${with_kerberos5}" != no; then
2602 if test "${with_kerberos}" = no; then
2603 with_kerberos=yes
2604 $as_echo "#define KERBEROS 1" >>confdefs.h
2605
2606 fi
2607
2608 $as_echo "#define KERBEROS5 1" >>confdefs.h
2609
2610 fi
2611
2612
2613 # Check whether --with-hesiod was given.
2614 if test "${with_hesiod+set}" = set; then :
2615 withval=$with_hesiod;
2616 else
2617 with_hesiod=no
2618 fi
2619
2620 if test "$with_hesiod" != no; then
2621
2622 $as_echo "#define HESIOD 1" >>confdefs.h
2623
2624 fi
2625
2626
2627 # Check whether --with-mmdf was given.
2628 if test "${with_mmdf+set}" = set; then :
2629 withval=$with_mmdf;
2630 else
2631 with_mmdf=no
2632 fi
2633
2634 if test "$with_mmdf" != no; then
2635
2636 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2637
2638 fi
2639
2640
2641 # Check whether --with-mail-unlink was given.
2642 if test "${with_mail_unlink+set}" = set; then :
2643 withval=$with_mail_unlink;
2644 else
2645 with_mail_unlink=no
2646 fi
2647
2648 if test "$with_mail_unlink" != no; then
2649
2650 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2651
2652 fi
2653
2654
2655 # Check whether --with-mailhost was given.
2656 if test "${with_mailhost+set}" = set; then :
2657 withval=$with_mailhost;
2658 cat >>confdefs.h <<_ACEOF
2659 #define MAILHOST "$withval"
2660 _ACEOF
2661
2662 fi
2663
2664
2665
2666 # Check whether --with-sound was given.
2667 if test "${with_sound+set}" = set; then :
2668 withval=$with_sound;
2669 else
2670 with_sound=yes
2671 fi
2672
2673
2674
2675 # Check whether --with-sync-input was given.
2676 if test "${with_sync_input+set}" = set; then :
2677 withval=$with_sync_input;
2678 else
2679 with_sync_input=yes
2680 fi
2681
2682 if test "$with_sync_input" = yes; then
2683
2684 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2685
2686 fi
2687
2688
2689 # Check whether --with-x-toolkit was given.
2690 if test "${with_x_toolkit+set}" = set; then :
2691 withval=$with_x_toolkit; case "${withval}" in
2692 y | ye | yes ) val=gtk ;;
2693 n | no ) val=no ;;
2694 l | lu | luc | luci | lucid ) val=lucid ;;
2695 a | at | ath | athe | athen | athena ) val=athena ;;
2696 m | mo | mot | moti | motif ) val=motif ;;
2697 g | gt | gtk ) val=gtk ;;
2698 gtk3 ) val=gtk3 ;;
2699 * )
2700 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2701 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2702 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2703 ;;
2704 esac
2705 with_x_toolkit=$val
2706
2707 fi
2708
2709
2710
2711 # Check whether --with-xpm was given.
2712 if test "${with_xpm+set}" = set; then :
2713 withval=$with_xpm;
2714 else
2715 with_xpm=yes
2716 fi
2717
2718
2719 # Check whether --with-jpeg was given.
2720 if test "${with_jpeg+set}" = set; then :
2721 withval=$with_jpeg;
2722 else
2723 with_jpeg=yes
2724 fi
2725
2726
2727 # Check whether --with-tiff was given.
2728 if test "${with_tiff+set}" = set; then :
2729 withval=$with_tiff;
2730 else
2731 with_tiff=yes
2732 fi
2733
2734
2735 # Check whether --with-gif was given.
2736 if test "${with_gif+set}" = set; then :
2737 withval=$with_gif;
2738 else
2739 with_gif=yes
2740 fi
2741
2742
2743 # Check whether --with-png was given.
2744 if test "${with_png+set}" = set; then :
2745 withval=$with_png;
2746 else
2747 with_png=yes
2748 fi
2749
2750
2751 # Check whether --with-rsvg was given.
2752 if test "${with_rsvg+set}" = set; then :
2753 withval=$with_rsvg;
2754 else
2755 with_rsvg=yes
2756 fi
2757
2758
2759 # Check whether --with-xml2 was given.
2760 if test "${with_xml2+set}" = set; then :
2761 withval=$with_xml2;
2762 else
2763 with_xml2=yes
2764 fi
2765
2766
2767 # Check whether --with-imagemagick was given.
2768 if test "${with_imagemagick+set}" = set; then :
2769 withval=$with_imagemagick;
2770 else
2771 with_imagemagick=yes
2772 fi
2773
2774
2775
2776 # Check whether --with-xft was given.
2777 if test "${with_xft+set}" = set; then :
2778 withval=$with_xft;
2779 else
2780 with_xft=yes
2781 fi
2782
2783
2784 # Check whether --with-libotf was given.
2785 if test "${with_libotf+set}" = set; then :
2786 withval=$with_libotf;
2787 else
2788 with_libotf=yes
2789 fi
2790
2791
2792 # Check whether --with-m17n-flt was given.
2793 if test "${with_m17n_flt+set}" = set; then :
2794 withval=$with_m17n_flt;
2795 else
2796 with_m17n_flt=yes
2797 fi
2798
2799
2800
2801 # Check whether --with-toolkit-scroll-bars was given.
2802 if test "${with_toolkit_scroll_bars+set}" = set; then :
2803 withval=$with_toolkit_scroll_bars;
2804 else
2805 with_toolkit_scroll_bars=yes
2806 fi
2807
2808
2809 # Check whether --with-xaw3d was given.
2810 if test "${with_xaw3d+set}" = set; then :
2811 withval=$with_xaw3d;
2812 else
2813 with_xaw3d=yes
2814 fi
2815
2816
2817 # Check whether --with-xim was given.
2818 if test "${with_xim+set}" = set; then :
2819 withval=$with_xim;
2820 else
2821 with_xim=yes
2822 fi
2823
2824
2825 # Check whether --with-ns was given.
2826 if test "${with_ns+set}" = set; then :
2827 withval=$with_ns;
2828 else
2829 with_ns=no
2830 fi
2831
2832
2833
2834 # Check whether --with-gpm was given.
2835 if test "${with_gpm+set}" = set; then :
2836 withval=$with_gpm;
2837 else
2838 with_gpm=yes
2839 fi
2840
2841
2842 # Check whether --with-dbus was given.
2843 if test "${with_dbus+set}" = set; then :
2844 withval=$with_dbus;
2845 else
2846 with_dbus=yes
2847 fi
2848
2849
2850 # Check whether --with-gconf was given.
2851 if test "${with_gconf+set}" = set; then :
2852 withval=$with_gconf;
2853 else
2854 with_gconf=yes
2855 fi
2856
2857
2858 # Check whether --with-selinux was given.
2859 if test "${with_selinux+set}" = set; then :
2860 withval=$with_selinux;
2861 else
2862 with_selinux=yes
2863 fi
2864
2865
2866 # Check whether --with-gnutls was given.
2867 if test "${with_gnutls+set}" = set; then :
2868 withval=$with_gnutls;
2869 else
2870 with_gnutls=yes
2871 fi
2872
2873
2874 ## For the times when you want to build Emacs but don't have
2875 ## a suitable makeinfo, and can live without the manuals.
2876
2877 # Check whether --with-makeinfo was given.
2878 if test "${with_makeinfo+set}" = set; then :
2879 withval=$with_makeinfo;
2880 else
2881 with_makeinfo=yes
2882 fi
2883
2884
2885 ## This is an option because I do not know if all info/man support
2886 ## compressed files, nor how to test if they do so.
2887
2888 # Check whether --with-compress-info was given.
2889 if test "${with_compress_info+set}" = set; then :
2890 withval=$with_compress_info;
2891 else
2892 with_compress_info=yes
2893 fi
2894
2895 if test $with_compress_info = yes; then
2896 GZIP_INFO=yes
2897 else
2898 GZIP_INFO=
2899 fi
2900
2901
2902
2903 # Check whether --with-pkg-config-prog was given.
2904 if test "${with_pkg_config_prog+set}" = set; then :
2905 withval=$with_pkg_config_prog;
2906 fi
2907
2908 if test "X${with_pkg_config_prog}" != X; then
2909 if test "${with_pkg_config_prog}" != yes; then
2910 PKG_CONFIG="${with_pkg_config_prog}"
2911 fi
2912 fi
2913
2914 CRT_DIR=
2915
2916 # Check whether --with-crt-dir was given.
2917 if test "${with_crt_dir+set}" = set; then :
2918 withval=$with_crt_dir;
2919 fi
2920
2921 CRT_DIR="${with_crt_dir}"
2922
2923
2924 # Check whether --with-gnustep-conf was given.
2925 if test "${with_gnustep_conf+set}" = set; then :
2926 withval=$with_gnustep_conf;
2927 fi
2928
2929 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2930 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2931 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2932 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2933
2934 # Check whether --enable-ns-self-contained was given.
2935 if test "${enable_ns_self_contained+set}" = set; then :
2936 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2937 else
2938 EN_NS_SELF_CONTAINED=yes
2939 fi
2940
2941
2942 # Check whether --enable-asserts was given.
2943 if test "${enable_asserts+set}" = set; then :
2944 enableval=$enable_asserts; USE_XASSERTS=$enableval
2945 else
2946 USE_XASSERTS=no
2947 fi
2948
2949
2950 # Check whether --enable-maintainer-mode was given.
2951 if test "${enable_maintainer_mode+set}" = set; then :
2952 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2953 else
2954 USE_MAINTAINER_MODE=no
2955 fi
2956
2957 if test $USE_MAINTAINER_MODE = yes; then
2958 MAINT=
2959 else
2960 MAINT=#
2961 fi
2962
2963
2964 # Check whether --enable-locallisppath was given.
2965 if test "${enable_locallisppath+set}" = set; then :
2966 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2967 locallisppath=
2968 elif test "${enableval}" != "yes"; then
2969 locallisppath=${enableval}
2970 fi
2971 fi
2972
2973
2974 # Check whether --enable-checking was given.
2975 if test "${enable_checking+set}" = set; then :
2976 enableval=$enable_checking; ac_checking_flags="${enableval}"
2977 fi
2978
2979 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2980 for check in $ac_checking_flags
2981 do
2982 case $check in
2983 # these set all the flags to specific states
2984 yes) ac_enable_checking=1 ;;
2985 no) ac_enable_checking= ;
2986 ac_gc_check_stringbytes= ;
2987 ac_gc_check_string_overrun= ;
2988 ac_gc_check_string_free_list= ;
2989 ac_xmalloc_overrun= ;
2990 ac_gc_check_cons_list= ;;
2991 all) ac_enable_checking=1 ;
2992 ac_gc_check_stringbytes=1 ;
2993 ac_gc_check_string_overrun=1 ;
2994 ac_gc_check_string_free_list=1 ;
2995 ac_xmalloc_overrun=1 ;
2996 ac_gc_check_cons_list=1 ;;
2997 # these enable particular checks
2998 stringbytes) ac_gc_check_stringbytes=1 ;;
2999 stringoverrun) ac_gc_check_string_overrun=1 ;;
3000 stringfreelist) ac_gc_check_string_free_list=1 ;;
3001 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3002 conslist) ac_gc_check_cons_list=1 ;;
3003 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3004 esac
3005 done
3006 IFS="$ac_save_IFS"
3007
3008 if test x$ac_enable_checking != x ; then
3009
3010 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3011
3012 fi
3013 if test x$ac_gc_check_stringbytes != x ; then
3014
3015 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3016
3017 fi
3018 if test x$ac_gc_check_stringoverrun != x ; then
3019
3020 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3021
3022 fi
3023 if test x$ac_gc_check_string_free_list != x ; then
3024
3025 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3026
3027 fi
3028 if test x$ac_xmalloc_overrun != x ; then
3029
3030 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3031
3032 fi
3033 if test x$ac_gc_check_cons_list != x ; then
3034
3035 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3036
3037 fi
3038
3039 # Check whether --enable-use-lisp-union-type was given.
3040 if test "${enable_use_lisp_union_type+set}" = set; then :
3041 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3042
3043 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3044
3045 fi
3046 fi
3047
3048
3049
3050 # Check whether --enable-profiling was given.
3051 if test "${enable_profiling+set}" = set; then :
3052 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3053 fi
3054
3055 if test x$ac_enable_profiling != x ; then
3056 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3057 else
3058 PROFILING_CFLAGS=
3059 fi
3060
3061
3062 # Check whether --enable-autodepend was given.
3063 if test "${enable_autodepend+set}" = set; then :
3064 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3065 else
3066 ac_enable_autodepend=yes
3067 fi
3068
3069
3070 #### Make srcdir absolute, if it isn't already. It's important to
3071 #### avoid running the path through pwd unnecessarily, since pwd can
3072 #### give you automounter prefixes, which can go away. We do all this
3073 #### so Emacs can find its files when run uninstalled.
3074 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3075 unset CDPATH
3076 case "${srcdir}" in
3077 /* ) ;;
3078 . )
3079 ## We may be able to use the $PWD environment variable to make this
3080 ## absolute. But sometimes PWD is inaccurate.
3081 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3082 ## but that tested only for a well-formed and valid PWD,
3083 ## it did not object when PWD was well-formed and valid but just wrong.
3084 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3085 then
3086 srcdir="$PWD"
3087 else
3088 srcdir="`(cd ${srcdir}; pwd)`"
3089 fi
3090 ;;
3091 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3092 esac
3093
3094 #### Check if the source directory already has a configured system in it.
3095 if test `pwd` != `(cd ${srcdir} && pwd)` \
3096 && test -f "${srcdir}/src/config.h" ; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3098 as a build directory right now; it has been configured in its own
3099 right. To configure in another directory as well, you MUST
3100 use GNU make. If you do not have GNU make, then you must
3101 now do \`make distclean' in ${srcdir},
3102 and then run $0 again." >&5
3103 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3104 as a build directory right now; it has been configured in its own
3105 right. To configure in another directory as well, you MUST
3106 use GNU make. If you do not have GNU make, then you must
3107 now do \`make distclean' in ${srcdir},
3108 and then run $0 again." >&2;}
3109 fi
3110
3111 #### Given the configuration name, set machfile and opsysfile to the
3112 #### names of the m/*.h and s/*.h files we should use.
3113
3114 ### Canonicalize the configuration name.
3115
3116 ac_aux_dir=
3117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3118 if test -f "$ac_dir/install-sh"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/install-sh -c"
3121 break
3122 elif test -f "$ac_dir/install.sh"; then
3123 ac_aux_dir=$ac_dir
3124 ac_install_sh="$ac_aux_dir/install.sh -c"
3125 break
3126 elif test -f "$ac_dir/shtool"; then
3127 ac_aux_dir=$ac_dir
3128 ac_install_sh="$ac_aux_dir/shtool install -c"
3129 break
3130 fi
3131 done
3132 if test -z "$ac_aux_dir"; then
3133 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3134 fi
3135
3136 # These three variables are undocumented and unsupported,
3137 # and are intended to be withdrawn in a future Autoconf release.
3138 # They can cause serious problems if a builder's source tree is in a directory
3139 # whose full name contains unusual characters.
3140 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3141 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3142 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3143
3144
3145 # Make sure we can run config.sub.
3146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3147 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3150 $as_echo_n "checking build system type... " >&6; }
3151 if ${ac_cv_build+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 ac_build_alias=$build_alias
3155 test "x$ac_build_alias" = x &&
3156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3157 test "x$ac_build_alias" = x &&
3158 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3160 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3161
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3164 $as_echo "$ac_cv_build" >&6; }
3165 case $ac_cv_build in
3166 *-*-*) ;;
3167 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3168 esac
3169 build=$ac_cv_build
3170 ac_save_IFS=$IFS; IFS='-'
3171 set x $ac_cv_build
3172 shift
3173 build_cpu=$1
3174 build_vendor=$2
3175 shift; shift
3176 # Remember, the first character of IFS is used to create $*,
3177 # except with old shells:
3178 build_os=$*
3179 IFS=$ac_save_IFS
3180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3181
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3184 $as_echo_n "checking host system type... " >&6; }
3185 if ${ac_cv_host+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test "x$host_alias" = x; then
3189 ac_cv_host=$ac_cv_build
3190 else
3191 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3193 fi
3194
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3197 $as_echo "$ac_cv_host" >&6; }
3198 case $ac_cv_host in
3199 *-*-*) ;;
3200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3201 esac
3202 host=$ac_cv_host
3203 ac_save_IFS=$IFS; IFS='-'
3204 set x $ac_cv_host
3205 shift
3206 host_cpu=$1
3207 host_vendor=$2
3208 shift; shift
3209 # Remember, the first character of IFS is used to create $*,
3210 # except with old shells:
3211 host_os=$*
3212 IFS=$ac_save_IFS
3213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3214
3215
3216 canonical=$host
3217 configuration=${host_alias-${build_alias-$host}}
3218
3219
3220
3221 ### If you add support for a new configuration, add code to this
3222 ### switch statement to recognize your configuration name and select
3223 ### the appropriate operating system and machine description files.
3224
3225 ### You would hope that you could choose an m/*.h file pretty much
3226 ### based on the machine portion of the configuration name, and an s/*.h
3227 ### file based on the operating system portion. However, it turns out
3228 ### that each m/*.h file is pretty manufacturer-specific - for
3229 ### example mips.h is MIPS
3230 ### So we basically have to have a special case for each
3231 ### configuration name.
3232 ###
3233 ### As far as handling version numbers on operating systems is
3234 ### concerned, make sure things will fail in a fixable way. If
3235 ### /etc/MACHINES doesn't say anything about version numbers, be
3236 ### prepared to handle anything reasonably. If version numbers
3237 ### matter, be sure /etc/MACHINES says something about it.
3238
3239 machine='' opsys='' unported=no
3240 case "${canonical}" in
3241
3242 ## FreeBSD ports
3243 *-*-freebsd* )
3244 opsys=freebsd
3245 case "${canonical}" in
3246 alpha*) machine=alpha ;;
3247 amd64-*|x86_64-*) machine=amdx86-64 ;;
3248 arm*) machine=arm ;;
3249 ia64-*) machine=ia64 ;;
3250 i[3456]86-*) machine=intel386 ;;
3251 powerpc-*) machine=macppc ;;
3252 sparc-*) machine=sparc ;;
3253 sparc64-*) machine=sparc ;;
3254 esac
3255 ;;
3256
3257 ## FreeBSD kernel + glibc based userland
3258 *-*-kfreebsd*gnu* )
3259 opsys=gnu-kfreebsd
3260 case "${canonical}" in
3261 alpha*) machine=alpha ;;
3262 amd64-*|x86_64-*) machine=amdx86-64 ;;
3263 ia64-*) machine=ia64 ;;
3264 i[3456]86-*) machine=intel386 ;;
3265 powerpc-*) machine=macppc ;;
3266 sparc-*) machine=sparc ;;
3267 sparc64-*) machine=sparc ;;
3268 esac
3269 ;;
3270
3271 ## NetBSD ports
3272 *-*-netbsd* )
3273 opsys=netbsd
3274 case "${canonical}" in
3275 alpha*) machine=alpha ;;
3276 x86_64-*) machine=amdx86-64 ;;
3277 arm-*) machine=arm ;;
3278 hppa-*) machine=hp800 ;;
3279 i[3456]86-*) machine=intel386 ;;
3280 m68k-*) machine=m68k ;;
3281 powerpc-*) machine=macppc ;;
3282 mips-*) machine=mips ;;
3283 mipse[bl]-*) machine=mips ;;
3284 sparc*-) machine=sparc ;;
3285 vax-*) machine=vax ;;
3286 esac
3287 ;;
3288
3289 ## OpenBSD ports
3290 *-*-openbsd* )
3291 opsys=openbsd
3292 case "${canonical}" in
3293 alpha*) machine=alpha ;;
3294 x86_64-*) machine=amdx86-64 ;;
3295 arm-*) machine=arm ;;
3296 hppa-*) machine=hp800 ;;
3297 i386-*) machine=intel386 ;;
3298 powerpc-*) machine=macppc ;;
3299 sparc*) machine=sparc ;;
3300 vax-*) machine=vax ;;
3301 esac
3302 ;;
3303
3304 alpha*-*-linux-gnu* )
3305 machine=alpha opsys=gnu-linux
3306 ;;
3307
3308 arm*-*-linux-gnu* )
3309 machine=arm opsys=gnu-linux
3310 ;;
3311
3312 ## Apple Darwin / Mac OS X
3313 *-apple-darwin* )
3314 case "${canonical}" in
3315 i[3456]86-* ) machine=intel386 ;;
3316 powerpc-* ) machine=macppc ;;
3317 x86_64-* ) machine=amdx86-64 ;;
3318 * ) unported=yes ;;
3319 esac
3320 opsys=darwin
3321 # Define CPP as follows to make autoconf work correctly.
3322 CPP="${CC-cc} -E -no-cpp-precomp"
3323 # Use fink packages if available.
3324 if test -d /sw/include && test -d /sw/lib; then
3325 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3326 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3327 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3328 fi
3329 ;;
3330
3331 ## HP 9000 series 700 and 800, running HP/UX
3332 hppa*-hp-hpux10.2* )
3333 machine=hp800 opsys=hpux10-20
3334 ;;
3335 hppa*-hp-hpux1[1-9]* )
3336 machine=hp800 opsys=hpux11
3337 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3338 ;;
3339
3340 hppa*-*-linux-gnu* )
3341 machine=hp800 opsys=gnu-linux
3342 ;;
3343
3344 ## IBM machines
3345 s390-*-linux-gnu* )
3346 machine=ibms390 opsys=gnu-linux
3347 ;;
3348 s390x-*-linux-gnu* )
3349 machine=ibms390x opsys=gnu-linux
3350 ;;
3351 rs6000-ibm-aix4.[23]* )
3352 machine=ibmrs6000 opsys=aix4-2
3353 ;;
3354 powerpc-ibm-aix4.[23]* )
3355 machine=ibmrs6000 opsys=aix4-2
3356 ;;
3357 rs6000-ibm-aix[56]* )
3358 machine=ibmrs6000 opsys=aix4-2
3359 ;;
3360 powerpc-ibm-aix[56]* )
3361 machine=ibmrs6000 opsys=aix4-2
3362 ;;
3363
3364 ## Macintosh PowerPC
3365 powerpc*-*-linux-gnu* )
3366 machine=macppc opsys=gnu-linux
3367 ;;
3368
3369 ## Silicon Graphics machines
3370 ## Iris 4D
3371 mips-sgi-irix6.5 )
3372 machine=iris4d opsys=irix6-5
3373 # Without defining _LANGUAGE_C, things get masked out in the headers
3374 # so that, for instance, grepping for `free' in stdlib.h fails and
3375 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3376 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3377 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3378 ;;
3379
3380 ## Suns
3381 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3382 machine=sparc opsys=gnu-linux
3383 ;;
3384
3385 *-sun-solaris* \
3386 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3387 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3388 case "${canonical}" in
3389 i[3456]86-*-* ) machine=intel386 ;;
3390 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3391 sparc* ) machine=sparc ;;
3392 * ) unported=yes ;;
3393 esac
3394 case "${canonical}" in
3395 *-sunos5.6* | *-solaris2.6* )
3396 opsys=sol2-6
3397 NON_GNU_CPP=/usr/ccs/lib/cpp
3398 RANLIB="ar -ts"
3399 ;;
3400 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3401 opsys=sol2-6
3402 emacs_check_sunpro_c=yes
3403 NON_GNU_CPP=/usr/ccs/lib/cpp
3404 ;;
3405 *-sunos5* | *-solaris* )
3406 opsys=sol2-10
3407 emacs_check_sunpro_c=yes
3408 NON_GNU_CPP=/usr/ccs/lib/cpp
3409 ;;
3410 esac
3411 ## Watch out for a compiler that we know will not work.
3412 case "${canonical}" in
3413 *-solaris* | *-sunos5* )
3414 if [ "x$CC" = x/usr/ucb/cc ]; then
3415 ## /usr/ucb/cc doesn't work;
3416 ## we should find some other compiler that does work.
3417 unset CC
3418 fi
3419 ;;
3420 *) ;;
3421 esac
3422 ;;
3423
3424 ## IA-64
3425 ia64*-*-linux* )
3426 machine=ia64 opsys=gnu-linux
3427 ;;
3428
3429 ## Intel 386 machines where we don't care about the manufacturer.
3430 i[3456]86-*-* )
3431 machine=intel386
3432 case "${canonical}" in
3433 *-cygwin ) opsys=cygwin ;;
3434 *-darwin* ) opsys=darwin
3435 CPP="${CC-cc} -E -no-cpp-precomp"
3436 ;;
3437 *-linux-gnu* ) opsys=gnu-linux ;;
3438 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3439 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3440 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3441 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3442 esac
3443 ;;
3444
3445 ## m68k Linux-based GNU system
3446 m68k-*-linux-gnu* )
3447 machine=m68k opsys=gnu-linux
3448 ;;
3449
3450 ## Mips Linux-based GNU system
3451 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3452 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3453 machine=mips opsys=gnu-linux
3454 ;;
3455
3456 ## AMD x86-64 Linux-based GNU system
3457 x86_64-*-linux-gnu* )
3458 machine=amdx86-64 opsys=gnu-linux
3459 ;;
3460
3461 ## Tensilica Xtensa Linux-based GNU system
3462 xtensa*-*-linux-gnu* )
3463 machine=xtensa opsys=gnu-linux
3464 ;;
3465
3466 ## SuperH Linux-based GNU system
3467 sh[34]*-*-linux-gnu* )
3468 machine=sh3 opsys=gnu-linux
3469 ;;
3470
3471 * )
3472 unported=yes
3473 ;;
3474 esac
3475
3476 ### If the code above didn't choose an operating system, just choose
3477 ### an operating system based on the configuration name. You really
3478 ### only want to use this when you have no idea what the right
3479 ### operating system is; if you know what operating systems a machine
3480 ### runs, it's cleaner to make it explicit in the case statement
3481 ### above.
3482 if test x"${opsys}" = x; then
3483 case "${canonical}" in
3484 *-gnu* ) opsys=gnu ;;
3485 * )
3486 unported=yes
3487 ;;
3488 esac
3489 fi
3490
3491
3492
3493 if test $unported = yes; then
3494 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3495 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3496 fi
3497
3498 machfile="m/${machine}.h"
3499 opsysfile="s/${opsys}.h"
3500
3501
3502 #### Choose a compiler.
3503 test -n "$CC" && cc_specified=yes
3504
3505 # Save the value of CFLAGS that the user specified.
3506 SPECIFIED_CFLAGS="$CFLAGS"
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_CC+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535 done
3536 done
3537 IFS=$as_save_IFS
3538
3539 fi
3540 fi
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 fi
3549
3550
3551 fi
3552 if test -z "$ac_cv_prog_CC"; then
3553 ac_ct_CC=$CC
3554 # Extract the first word of "gcc", so it can be a program name with args.
3555 set dummy gcc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_CC="gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590 if test "x$ac_ct_CC" = x; then
3591 CC=""
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594 yes:)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned=yes ;;
3598 esac
3599 CC=$ac_ct_CC
3600 fi
3601 else
3602 CC="$ac_cv_prog_CC"
3603 fi
3604
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}cc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_CC+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_CC="${ac_tool_prefix}cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 fi
3642
3643
3644 fi
3645 fi
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_CC+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 ac_prog_rejected=no
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3666 ac_prog_rejected=yes
3667 continue
3668 fi
3669 ac_cv_prog_CC="cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 if test $ac_prog_rejected = yes; then
3678 # We found a bogon in the path, so make sure we never use it.
3679 set dummy $ac_cv_prog_CC
3680 shift
3681 if test $# != 0; then
3682 # We chose a different compiler from the bogus one.
3683 # However, it has the same basename, so the bogon will be chosen
3684 # first if we set CC to just the basename; use the full file name.
3685 shift
3686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3687 fi
3688 fi
3689 fi
3690 fi
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3695 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701 fi
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in cl.exe
3705 do
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CC+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 test -n "$CC" && break
3744 done
3745 fi
3746 if test -z "$CC"; then
3747 ac_ct_CC=$CC
3748 for ac_prog in cl.exe
3749 do
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CC="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 fi
3785
3786
3787 test -n "$ac_ct_CC" && break
3788 done
3789
3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CC=$ac_ct_CC
3800 fi
3801 fi
3802
3803 fi
3804
3805
3806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details" "$LINENO" 5; }
3810
3811 # Provide some information about the compiler.
3812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3813 set X $ac_compile
3814 ac_compiler=$2
3815 for ac_option in --version -v -V -qversion; do
3816 { { ac_try="$ac_compiler $ac_option >&5"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3824 ac_status=$?
3825 if test -s conftest.err; then
3826 sed '10a\
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3830 fi
3831 rm -f conftest.er1 conftest.err
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3834 done
3835
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838
3839 int
3840 main ()
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3851 # of exeext.
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3853 $as_echo_n "checking whether the C compiler works... " >&6; }
3854 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3855
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3858
3859 ac_rmfiles=
3860 for ac_file in $ac_files
3861 do
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 esac
3866 done
3867 rm -f $ac_rmfiles
3868
3869 if { { ac_try="$ac_link_default"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3883 # so that the user can short-circuit this test for compilers unknown to
3884 # Autoconf.
3885 for ac_file in $ac_files ''
3886 do
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3890 ;;
3891 [ab].out )
3892 # We found the default executable, but exeext='' is most
3893 # certainly right.
3894 break;;
3895 *.* )
3896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3897 then :; else
3898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3899 fi
3900 # We set ac_cv_exeext here because the later test for it is not
3901 # safe: cross compilers may not add the suffix if given an `-o'
3902 # argument, so we may need to know it at that point already.
3903 # Even if this section looks crufty: it has the advantage of
3904 # actually working.
3905 break;;
3906 * )
3907 break;;
3908 esac
3909 done
3910 test "$ac_cv_exeext" = no && ac_cv_exeext=
3911
3912 else
3913 ac_file=''
3914 fi
3915 if test -z "$ac_file"; then :
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error 77 "C compiler cannot create executables
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3927 $as_echo "yes" >&6; }
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3930 $as_echo_n "checking for C compiler default output file name... " >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3932 $as_echo "$ac_file" >&6; }
3933 ac_exeext=$ac_cv_exeext
3934
3935 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3936 ac_clean_files=$ac_clean_files_save
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3938 $as_echo_n "checking for suffix of executables... " >&6; }
3939 if { { ac_try="$ac_link"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_link") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; then :
3950 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3951 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3952 # work properly (i.e., refer to `conftest.exe'), while it won't with
3953 # `rm'.
3954 for ac_file in conftest.exe conftest conftest.*; do
3955 test -f "$ac_file" || continue
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 break;;
3960 * ) break;;
3961 esac
3962 done
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3967 See \`config.log' for more details" "$LINENO" 5; }
3968 fi
3969 rm -f conftest conftest$ac_cv_exeext
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3971 $as_echo "$ac_cv_exeext" >&6; }
3972
3973 rm -f conftest.$ac_ext
3974 EXEEXT=$ac_cv_exeext
3975 ac_exeext=$EXEEXT
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <stdio.h>
3979 int
3980 main ()
3981 {
3982 FILE *f = fopen ("conftest.out", "w");
3983 return ferror (f) || fclose (f) != 0;
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 ac_clean_files="$ac_clean_files conftest.out"
3990 # Check that the compiler produces executables we can run. If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3993 $as_echo_n "checking whether we are cross compiling... " >&6; }
3994 if test "$cross_compiling" != yes; then
3995 { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4006 if { ac_try='./conftest$ac_cv_exeext'
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
4017 cross_compiling=no
4018 else
4019 if test "$cross_compiling" = maybe; then
4020 cross_compiling=yes
4021 else
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 fi
4028 fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4031 $as_echo "$cross_compiling" >&6; }
4032
4033 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4036 $as_echo_n "checking for suffix of object files... " >&6; }
4037 if ${ac_cv_objext+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.o conftest.obj
4052 if { { ac_try="$ac_compile"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_compile") 2>&5
4060 ac_status=$?
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 for ac_file in conftest.o conftest.obj conftest.*; do
4064 test -f "$ac_file" || continue;
4065 case $ac_file in
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4068 break;;
4069 esac
4070 done
4071 else
4072 $as_echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error $? "cannot compute suffix of object files: cannot compile
4078 See \`config.log' for more details" "$LINENO" 5; }
4079 fi
4080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4083 $as_echo "$ac_cv_objext" >&6; }
4084 OBJEXT=$ac_cv_objext
4085 ac_objext=$OBJEXT
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4088 if ${ac_cv_c_compiler_gnu+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097 #ifndef __GNUC__
4098 choke me
4099 #endif
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_compiler_gnu=yes
4107 else
4108 ac_compiler_gnu=no
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4116 if test $ac_compiler_gnu = yes; then
4117 GCC=yes
4118 else
4119 GCC=
4120 fi
4121 ac_test_CFLAGS=${CFLAGS+set}
4122 ac_save_CFLAGS=$CFLAGS
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4125 if ${ac_cv_prog_cc_g+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main ()
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_g=yes
4145 else
4146 CFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159
4160 else
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176 fi
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185 $as_echo "$ac_cv_prog_cc_g" >&6; }
4186 if test "$ac_test_CFLAGS" = set; then
4187 CFLAGS=$ac_save_CFLAGS
4188 elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4190 CFLAGS="-g -O2"
4191 else
4192 CFLAGS="-g"
4193 fi
4194 else
4195 if test "$GCC" = yes; then
4196 CFLAGS="-O2"
4197 else
4198 CFLAGS=
4199 fi
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4203 if ${ac_cv_prog_cc_c89+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_prog_cc_c89=no
4207 ac_save_CC=$CC
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <stdarg.h>
4211 #include <stdio.h>
4212 #include <sys/types.h>
4213 #include <sys/stat.h>
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218 char **p;
4219 int i;
4220 {
4221 return p[i];
4222 }
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4224 {
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4231 }
4232
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4241
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4246
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4253 int
4254 main ()
4255 {
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4263 do
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270 done
4271 rm -f conftest.$ac_ext
4272 CC=$ac_save_CC
4273
4274 fi
4275 # AC_CACHE_VAL
4276 case "x$ac_cv_prog_cc_c89" in
4277 x)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279 $as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 $as_echo "unsupported" >&6; } ;;
4283 *)
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287 esac
4288 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289
4290 fi
4291
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299 # On Suns, sometimes $CPP names a directory.
4300 if test -n "$CPP" && test -d "$CPP"; then
4301 CPP=
4302 fi
4303
4304 ## If not using gcc, and on Solaris, and no CPP specified, see if
4305 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4306 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4307 test x"$CPP" = x; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4309 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4310
4311 if ${emacs_cv_sunpro_c+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320 #ifndef __SUNPRO_C
4321 fail;
4322 #endif
4323
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_link "$LINENO"; then :
4329 emacs_cv_sunpro_c=yes
4330 else
4331 emacs_cv_sunpro_c=no
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext \
4334 conftest$ac_exeext conftest.$ac_ext
4335 fi
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4338 $as_echo "$emacs_cv_sunpro_c" >&6; }
4339
4340 if test x"$emacs_cv_sunpro_c" = xyes; then
4341 NON_GNU_CPP="$CC -E -Xs"
4342 fi
4343 fi
4344
4345 #### Some systems specify a CPP to use unless we are using GCC.
4346 #### Now that we know whether we are using GCC, we can decide whether
4347 #### to use that one.
4348 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4349 then
4350 CPP="$NON_GNU_CPP"
4351 fi
4352
4353 #### Some systems specify a CC to use unless we are using GCC.
4354 #### Now that we know whether we are using GCC, we can decide whether
4355 #### to use that one.
4356 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4357 test x$cc_specified != xyes
4358 then
4359 CC="$NON_GNU_CC"
4360 fi
4361
4362 if test x$GCC = xyes; then
4363 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4364 else
4365 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4374 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4375 # On Suns, sometimes $CPP names a directory.
4376 if test -n "$CPP" && test -d "$CPP"; then
4377 CPP=
4378 fi
4379 if test -z "$CPP"; then
4380 if ${ac_cv_prog_CPP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 # Double quotes because CPP needs to be expanded
4384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4385 do
4386 ac_preproc_ok=false
4387 for ac_c_preproc_warn_flag in '' yes
4388 do
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
4391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
4393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #ifdef __STDC__
4398 # include <limits.h>
4399 #else
4400 # include <assert.h>
4401 #endif
4402 Syntax error
4403 _ACEOF
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4405
4406 else
4407 # Broken: fails on valid input.
4408 continue
4409 fi
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4411
4412 # OK, works on sane cases. Now check whether nonexistent headers
4413 # can be detected and how.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <ac_nonexistent.h>
4417 _ACEOF
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4419 # Broken: success on invalid input.
4420 continue
4421 else
4422 # Passes both tests.
4423 ac_preproc_ok=:
4424 break
4425 fi
4426 rm -f conftest.err conftest.i conftest.$ac_ext
4427
4428 done
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.i conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then :
4432 break
4433 fi
4434
4435 done
4436 ac_cv_prog_CPP=$CPP
4437
4438 fi
4439 CPP=$ac_cv_prog_CPP
4440 else
4441 ac_cv_prog_CPP=$CPP
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4444 $as_echo "$CPP" >&6; }
4445 ac_preproc_ok=false
4446 for ac_c_preproc_warn_flag in '' yes
4447 do
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4461 Syntax error
4462 _ACEOF
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464
4465 else
4466 # Broken: fails on valid input.
4467 continue
4468 fi
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4470
4471 # OK, works on sane cases. Now check whether nonexistent headers
4472 # can be detected and how.
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #include <ac_nonexistent.h>
4476 _ACEOF
4477 if ac_fn_c_try_cpp "$LINENO"; then :
4478 # Broken: success on invalid input.
4479 continue
4480 else
4481 # Passes both tests.
4482 ac_preproc_ok=:
4483 break
4484 fi
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4486
4487 done
4488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489 rm -f conftest.i conftest.err conftest.$ac_ext
4490 if $ac_preproc_ok; then :
4491
4492 else
4493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4496 See \`config.log' for more details" "$LINENO" 5; }
4497 fi
4498
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4508 if ${ac_cv_path_GREP+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -z "$GREP"; then
4512 ac_path_GREP_found=false
4513 # Loop through the user's path and test for each of PROGNAME-LIST
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_prog in grep ggrep; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4522 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4523 # Check for GNU ac_path_GREP and select it if it is found.
4524 # Check for GNU $ac_path_GREP
4525 case `"$ac_path_GREP" --version 2>&1` in
4526 *GNU*)
4527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4528 *)
4529 ac_count=0
4530 $as_echo_n 0123456789 >"conftest.in"
4531 while :
4532 do
4533 cat "conftest.in" "conftest.in" >"conftest.tmp"
4534 mv "conftest.tmp" "conftest.in"
4535 cp "conftest.in" "conftest.nl"
4536 $as_echo 'GREP' >> "conftest.nl"
4537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539 as_fn_arith $ac_count + 1 && ac_count=$as_val
4540 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4541 # Best one so far, save it but keep looking for a better one
4542 ac_cv_path_GREP="$ac_path_GREP"
4543 ac_path_GREP_max=$ac_count
4544 fi
4545 # 10*(2^10) chars as input seems more than enough
4546 test $ac_count -gt 10 && break
4547 done
4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4549 esac
4550
4551 $ac_path_GREP_found && break 3
4552 done
4553 done
4554 done
4555 IFS=$as_save_IFS
4556 if test -z "$ac_cv_path_GREP"; then
4557 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4558 fi
4559 else
4560 ac_cv_path_GREP=$GREP
4561 fi
4562
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4565 $as_echo "$ac_cv_path_GREP" >&6; }
4566 GREP="$ac_cv_path_GREP"
4567
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4570 $as_echo_n "checking for egrep... " >&6; }
4571 if ${ac_cv_path_EGREP+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575 then ac_cv_path_EGREP="$GREP -E"
4576 else
4577 if test -z "$EGREP"; then
4578 ac_path_EGREP_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_prog in egrep; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4589 # Check for GNU ac_path_EGREP and select it if it is found.
4590 # Check for GNU $ac_path_EGREP
4591 case `"$ac_path_EGREP" --version 2>&1` in
4592 *GNU*)
4593 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4594 *)
4595 ac_count=0
4596 $as_echo_n 0123456789 >"conftest.in"
4597 while :
4598 do
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 $as_echo 'EGREP' >> "conftest.nl"
4603 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 as_fn_arith $ac_count + 1 && ac_count=$as_val
4606 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_EGREP="$ac_path_EGREP"
4609 ac_path_EGREP_max=$ac_count
4610 fi
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4613 done
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 esac
4616
4617 $ac_path_EGREP_found && break 3
4618 done
4619 done
4620 done
4621 IFS=$as_save_IFS
4622 if test -z "$ac_cv_path_EGREP"; then
4623 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 fi
4625 else
4626 ac_cv_path_EGREP=$EGREP
4627 fi
4628
4629 fi
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4632 $as_echo "$ac_cv_path_EGREP" >&6; }
4633 EGREP="$ac_cv_path_EGREP"
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4637 $as_echo_n "checking for ANSI C header files... " >&6; }
4638 if ${ac_cv_header_stdc+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdlib.h>
4644 #include <stdarg.h>
4645 #include <string.h>
4646 #include <float.h>
4647
4648 int
4649 main ()
4650 {
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_header_stdc=yes
4658 else
4659 ac_cv_header_stdc=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662
4663 if test $ac_cv_header_stdc = yes; then
4664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <string.h>
4668
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "memchr" >/dev/null 2>&1; then :
4672
4673 else
4674 ac_cv_header_stdc=no
4675 fi
4676 rm -f conftest*
4677
4678 fi
4679
4680 if test $ac_cv_header_stdc = yes; then
4681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <stdlib.h>
4685
4686 _ACEOF
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 $EGREP "free" >/dev/null 2>&1; then :
4689
4690 else
4691 ac_cv_header_stdc=no
4692 fi
4693 rm -f conftest*
4694
4695 fi
4696
4697 if test $ac_cv_header_stdc = yes; then
4698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4699 if test "$cross_compiling" = yes; then :
4700 :
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <ctype.h>
4705 #include <stdlib.h>
4706 #if ((' ' & 0x0FF) == 0x020)
4707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4709 #else
4710 # define ISLOWER(c) \
4711 (('a' <= (c) && (c) <= 'i') \
4712 || ('j' <= (c) && (c) <= 'r') \
4713 || ('s' <= (c) && (c) <= 'z'))
4714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4715 #endif
4716
4717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4718 int
4719 main ()
4720 {
4721 int i;
4722 for (i = 0; i < 256; i++)
4723 if (XOR (islower (i), ISLOWER (i))
4724 || toupper (i) != TOUPPER (i))
4725 return 2;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_run "$LINENO"; then :
4730
4731 else
4732 ac_cv_header_stdc=no
4733 fi
4734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4735 conftest.$ac_objext conftest.beam conftest.$ac_ext
4736 fi
4737
4738 fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4741 $as_echo "$ac_cv_header_stdc" >&6; }
4742 if test $ac_cv_header_stdc = yes; then
4743
4744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4745
4746 fi
4747
4748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4750 inttypes.h stdint.h unistd.h
4751 do :
4752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4753 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4754 "
4755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4756 cat >>confdefs.h <<_ACEOF
4757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 _ACEOF
4759
4760 fi
4761
4762 done
4763
4764
4765
4766 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4767 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4768 MINIX=yes
4769 else
4770 MINIX=
4771 fi
4772
4773
4774 if test "$MINIX" = yes; then
4775
4776 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4777
4778
4779 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4780
4781
4782 $as_echo "#define _MINIX 1" >>confdefs.h
4783
4784 fi
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4788 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4789 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794
4795 # define __EXTENSIONS__ 1
4796 $ac_includes_default
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_safe_to_define___extensions__=yes
4807 else
4808 ac_cv_safe_to_define___extensions__=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4813 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4814 test $ac_cv_safe_to_define___extensions__ = yes &&
4815 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4816
4817 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4818
4819 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4820
4821 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4822
4823 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4824
4825
4826
4827 ### Use -Wno-pointer-sign if the compiler supports it
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4829 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4830 SAVE_CFLAGS="$CFLAGS"
4831 CFLAGS="$CFLAGS -Wno-pointer-sign"
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main ()
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 has_option=yes
4845 else
4846 has_option=no
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 if test $has_option = yes; then
4850 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4853 $as_echo "$has_option" >&6; }
4854 CFLAGS="$SAVE_CFLAGS"
4855 unset has_option
4856 unset SAVE_CFLAGS
4857
4858 ### Use -Wdeclaration-after-statement if the compiler supports it
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4860 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4861 SAVE_CFLAGS="$CFLAGS"
4862 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 has_option=yes
4876 else
4877 has_option=no
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 if test $has_option = yes; then
4881 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4884 $as_echo "$has_option" >&6; }
4885 CFLAGS="$SAVE_CFLAGS"
4886 unset has_option
4887 unset SAVE_CFLAGS
4888
4889 ### Use -Wold-style-definition if the compiler supports it
4890 # This can be removed when conversion to standard C is finished.
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4892 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4893 SAVE_CFLAGS="$CFLAGS"
4894 CFLAGS="$CFLAGS -Wold-style-definition"
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897
4898 int
4899 main ()
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 has_option=yes
4908 else
4909 has_option=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 if test $has_option = yes; then
4913 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4916 $as_echo "$has_option" >&6; }
4917 CFLAGS="$SAVE_CFLAGS"
4918 unset has_option
4919 unset SAVE_CFLAGS
4920
4921 ### Use -Wimplicit-function-declaration if the compiler supports it
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4923 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4924 SAVE_CFLAGS="$CFLAGS"
4925 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 has_option=yes
4939 else
4940 has_option=no
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 if test $has_option = yes; then
4944 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4947 $as_echo "$has_option" >&6; }
4948 CFLAGS="$SAVE_CFLAGS"
4949 unset has_option
4950 unset SAVE_CFLAGS
4951
4952
4953
4954
4955 #### Some other nice autoconf tests.
4956
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4963 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4964 # On Suns, sometimes $CPP names a directory.
4965 if test -n "$CPP" && test -d "$CPP"; then
4966 CPP=
4967 fi
4968 if test -z "$CPP"; then
4969 if ${ac_cv_prog_CPP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 # Double quotes because CPP needs to be expanded
4973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4974 do
4975 ac_preproc_ok=false
4976 for ac_c_preproc_warn_flag in '' yes
4977 do
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991 Syntax error
4992 _ACEOF
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4994
4995 else
4996 # Broken: fails on valid input.
4997 continue
4998 fi
4999 rm -f conftest.err conftest.i conftest.$ac_ext
5000
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5014 fi
5015 rm -f conftest.err conftest.i conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.i conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then :
5021 break
5022 fi
5023
5024 done
5025 ac_cv_prog_CPP=$CPP
5026
5027 fi
5028 CPP=$ac_cv_prog_CPP
5029 else
5030 ac_cv_prog_CPP=$CPP
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5033 $as_echo "$CPP" >&6; }
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5053
5054 else
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058 rm -f conftest.err conftest.i conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5067 # Broken: success on invalid input.
5068 continue
5069 else
5070 # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074 rm -f conftest.err conftest.i conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.i conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then :
5080
5081 else
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5085 See \`config.log' for more details" "$LINENO" 5; }
5086 fi
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094 # Find a good install program. We prefer a C program (faster),
5095 # so one script is as good as another. But avoid the broken or
5096 # incompatible versions:
5097 # SysV /etc/install, /usr/sbin/install
5098 # SunOS /usr/etc/install
5099 # IRIX /sbin/install
5100 # AIX /bin/install
5101 # AmigaOS /C/install, which installs bootblocks on floppy discs
5102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5105 # OS/2's system install, which has a completely different semantic
5106 # ./install, which can be erroneously created by make from ./install.sh.
5107 # Reject install programs that cannot install multiple files.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5109 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5110 if test -z "$INSTALL"; then
5111 if ${ac_cv_path_install+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 # Account for people who put trailing slashes in PATH elements.
5120 case $as_dir/ in #((
5121 ./ | .// | /[cC]/* | \
5122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5123 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5124 /usr/ucb/* ) ;;
5125 *)
5126 # OSF1 and SCO ODT 3.0 have their own names for install.
5127 # Don't use installbsd from OSF since it installs stuff as root
5128 # by default.
5129 for ac_prog in ginstall scoinst install; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5132 if test $ac_prog = install &&
5133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5134 # AIX install. It has an incompatible calling convention.
5135 :
5136 elif test $ac_prog = install &&
5137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5138 # program-specific install script used by HP pwplus--don't use.
5139 :
5140 else
5141 rm -rf conftest.one conftest.two conftest.dir
5142 echo one > conftest.one
5143 echo two > conftest.two
5144 mkdir conftest.dir
5145 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5146 test -s conftest.one && test -s conftest.two &&
5147 test -s conftest.dir/conftest.one &&
5148 test -s conftest.dir/conftest.two
5149 then
5150 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5151 break 3
5152 fi
5153 fi
5154 fi
5155 done
5156 done
5157 ;;
5158 esac
5159
5160 done
5161 IFS=$as_save_IFS
5162
5163 rm -rf conftest.one conftest.two conftest.dir
5164
5165 fi
5166 if test "${ac_cv_path_install+set}" = set; then
5167 INSTALL=$ac_cv_path_install
5168 else
5169 # As a last resort, use the slow shell script. Don't cache a
5170 # value for INSTALL within a source directory, because that will
5171 # break other packages using the cache if that directory is
5172 # removed, or if the value is a relative name.
5173 INSTALL=$ac_install_sh
5174 fi
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5177 $as_echo "$INSTALL" >&6; }
5178
5179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5180 # It thinks the first close brace ends the variable substitution.
5181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5182
5183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5184
5185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5186
5187 if test "x$RANLIB" = x; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_RANLIB+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214 fi
5215 fi
5216 RANLIB=$ac_cv_prog_RANLIB
5217 if test -n "$RANLIB"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5219 $as_echo "$RANLIB" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224
5225
5226 fi
5227 if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230 set dummy ranlib; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_RANLIB="ranlib"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5257 if test -n "$ac_ct_RANLIB"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5259 $as_echo "$ac_ct_RANLIB" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265 if test "x$ac_ct_RANLIB" = x; then
5266 RANLIB=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 RANLIB=$ac_ct_RANLIB
5275 fi
5276 else
5277 RANLIB="$ac_cv_prog_RANLIB"
5278 fi
5279
5280 fi
5281
5282 ## Although we're running on an amd64 kernel, we're actually compiling for
5283 ## the x86 architecture. The user should probably have provided an
5284 ## explicit --build to `configure', but if everything else than the kernel
5285 ## is running in i386 mode, we can help them out.
5286 if test "$machine" = "amdx86-64"; then
5287 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5288 if test "x$ac_cv_have_decl_i386" = xyes; then :
5289
5290 fi
5291
5292 if test "$ac_cv_have_decl_i386" = "yes"; then
5293 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5294 machine=intel386
5295 machfile="m/${machine}.h"
5296 fi
5297 fi
5298
5299 # Extract the first word of "install-info", so it can be a program name with args.
5300 set dummy install-info; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 case $INSTALL_INFO in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5325
5326 ;;
5327 esac
5328 fi
5329 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5330 if test -n "$INSTALL_INFO"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5332 $as_echo "$INSTALL_INFO" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338
5339 # Extract the first word of "install-info", so it can be a program name with args.
5340 set dummy install-info; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 case $INSTALL_INFO in
5347 [\\/]* | ?:[\\/]*)
5348 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5349 ;;
5350 *)
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in /usr/sbin
5353 do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362 done
5363 done
5364 IFS=$as_save_IFS
5365
5366 ;;
5367 esac
5368 fi
5369 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5370 if test -n "$INSTALL_INFO"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5372 $as_echo "$INSTALL_INFO" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 # Extract the first word of "install-info", so it can be a program name with args.
5380 set dummy install-info; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 case $INSTALL_INFO in
5387 [\\/]* | ?:[\\/]*)
5388 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5389 ;;
5390 *)
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in /sbin
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5407 ;;
5408 esac
5409 fi
5410 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5411 if test -n "$INSTALL_INFO"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5413 $as_echo "$INSTALL_INFO" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420 # Extract the first word of "gzip", so it can be a program name with args.
5421 set dummy gzip; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_path_GZIP_PROG+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 case $GZIP_PROG in
5428 [\\/]* | ?:[\\/]*)
5429 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5430 ;;
5431 *)
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 ;;
5448 esac
5449 fi
5450 GZIP_PROG=$ac_cv_path_GZIP_PROG
5451 if test -n "$GZIP_PROG"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5453 $as_echo "$GZIP_PROG" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459
5460
5461
5462 ## Need makeinfo >= 4.6 (?) to build the manuals.
5463 # Extract the first word of "makeinfo", so it can be a program name with args.
5464 set dummy makeinfo; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_path_MAKEINFO+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 case $MAKEINFO in
5471 [\\/]* | ?:[\\/]*)
5472 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5491 ;;
5492 esac
5493 fi
5494 MAKEINFO=$ac_cv_path_MAKEINFO
5495 if test -n "$MAKEINFO"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5497 $as_echo "$MAKEINFO" >&6; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502
5503
5504 if test "$MAKEINFO" != "no" && \
5505 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
5506 MAKEINFO=no
5507 fi
5508
5509 ## Makeinfo is unusual. For a released Emacs, the manuals are
5510 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5511 ## therefore in the category of "special tools" not normally required, which
5512 ## configure does not have to check for (eg autoconf itself).
5513 ## In a Bazaar checkout on the other hand, the manuals are not included.
5514 ## So makeinfo is a requirement to build from Bazaar, and configure
5515 ## should test for it as it does for any other build requirement.
5516 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5517 ## with pre-built manuals, from a Bazaar checkout.
5518 if test "$MAKEINFO" = "no"; then
5519 if test "x${with_makeinfo}" = "xno"; then
5520 MAKEINFO=off
5521 elif test ! -e $srcdir/info/emacs; then
5522 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5523 source tree does not seem to have pre-built manuals in the \`info' directory.
5524 Either install a suitable version of makeinfo, or re-run configure
5525 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5526 fi
5527 fi
5528
5529
5530 if test x$GCC = xyes; then
5531 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5532 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5533 else
5534 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5535 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5536 fi
5537
5538
5539 late_LDFLAGS=$LDFLAGS
5540 if test x$GCC = xyes; then
5541 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5542 else
5543 LDFLAGS="$LDFLAGS -znocombreloc"
5544 fi
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5547 $as_echo_n "checking for -znocombreloc... " >&6; }
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550
5551 int
5552 main ()
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 if ac_fn_c_try_link "$LINENO"; then :
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5561 $as_echo "yes" >&6; }
5562 else
5563 LDFLAGS=$late_LDFLAGS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569
5570
5571 # The value of CPP is a quoted variable reference, so we need to do this
5572 # to get its actual value...
5573 CPP=`eval "echo $CPP"`
5574
5575
5576 CANNOT_DUMP=no
5577 case "$opsys" in
5578 your-opsys-here)
5579 CANNOT_DUMP=yes
5580
5581 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5582
5583 ;;
5584 esac
5585
5586
5587
5588 UNEXEC_OBJ=unexelf.o
5589 case "$opsys" in
5590 # MSDOS uses unexcoff.o
5591 # MSWindows uses unexw32.o
5592 aix4-2)
5593 UNEXEC_OBJ=unexaix.o
5594 ;;
5595 cygwin)
5596 UNEXEC_OBJ=unexcw.o
5597 ;;
5598 darwin)
5599 UNEXEC_OBJ=unexmacosx.o
5600 ;;
5601 hpux10-20 | hpux11)
5602 UNEXEC_OBJ=unexhp9k800.o
5603 ;;
5604 sol2-10)
5605 # Use the Solaris dldump() function, called from unexsol.c, to dump
5606 # emacs, instead of the generic ELF dump code found in unexelf.c.
5607 # The resulting binary has a complete symbol table, and is better
5608 # for debugging and other observability tools (debuggers, pstack, etc).
5609 #
5610 # If you encounter a problem using dldump(), please consider sending
5611 # a message to the OpenSolaris tools-linking mailing list:
5612 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5613 #
5614 # It is likely that dldump() works with older Solaris too, but this has
5615 # not been tested, so for now this change is for Solaris 10 or newer.
5616 UNEXEC_OBJ=unexsol.o
5617 ;;
5618 esac
5619
5620 LD_SWITCH_SYSTEM=
5621 case "$opsys" in
5622 freebsd)
5623 ## Let `ld' find image libs and similar things in /usr/local/lib.
5624 ## The system compiler, GCC, has apparently been modified to not
5625 ## look there, contrary to what a stock GCC would do.
5626 LD_SWITCH_SYSTEM=-L/usr/local/lib
5627 ;;
5628
5629 gnu-linux)
5630 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5631 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5632 ;;
5633
5634 netbsd)
5635 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5636 ;;
5637
5638 openbsd)
5639 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5640 ## otherwise Emacs dumps core on elf systems.
5641 LD_SWITCH_SYSTEM="-Z"
5642 ;;
5643 esac
5644
5645
5646 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5647
5648 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5649 ## which has not been defined yet. When this was handled with cpp,
5650 ## it was expanded to null when configure sourced the s/*.h file.
5651 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5652 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5653 ## (or somesuch), but because it is supposed to go at the _front_
5654 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5655 ## Compare with the gnu-linux case below, which added to the end
5656 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5657 ## LD_SWITCH_SYSTEM_TEMACS.
5658 case "$opsys" in
5659 netbsd|openbsd)
5660 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5661 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5662 esac
5663
5664
5665 C_SWITCH_MACHINE=
5666 if test "$machine" = "alpha"; then
5667 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5668 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
5669
5670 fi
5671
5672 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5673 ## With ELF, make sure that all common symbols get allocated to in the
5674 ## data section. Otherwise, the dump of temacs may miss variables in
5675 ## the shared library that have been initialized. For example, with
5676 ## GNU libc, __malloc_initialized would normally be resolved to the
5677 ## shared library's .bss section, which is fatal.
5678 if test "x$GCC" = "xyes"; then
5679 C_SWITCH_MACHINE="-fno-common"
5680 else
5681 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5682 fi
5683 else
5684 UNEXEC_OBJ=unexalpha.o
5685 fi
5686 fi
5687
5688
5689
5690
5691 C_SWITCH_SYSTEM=
5692 ## Some programs in src produce warnings saying certain subprograms
5693 ## are too complex and need a MAXMEM value greater than 2000 for
5694 ## additional optimization. --nils@exp-math.uni-essen.de
5695 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5696 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5697 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5698 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5699
5700
5701
5702 LIBS_SYSTEM=
5703 case "$opsys" in
5704 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5705 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5706
5707 freebsd) LIBS_SYSTEM="-lutil" ;;
5708
5709 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5710
5711 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5712
5713 ## Motif needs -lgen.
5714 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5715 esac
5716
5717
5718
5719 ### Make sure subsequent tests use flags consistent with the build flags.
5720
5721 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5722 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5723 else
5724 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5725 fi
5726
5727
5728
5729 # Check whether --enable-largefile was given.
5730 if test "${enable_largefile+set}" = set; then :
5731 enableval=$enable_largefile;
5732 fi
5733
5734 if test "$enable_largefile" != no; then
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5737 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5738 if ${ac_cv_sys_largefile_CC+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 ac_cv_sys_largefile_CC=no
5742 if test "$GCC" != yes; then
5743 ac_save_CC=$CC
5744 while :; do
5745 # IRIX 6.2 and later do not support large files by default,
5746 # so use the C compiler's -n32 option if that helps.
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5750 /* Check that off_t can represent 2**63 - 1 correctly.
5751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5752 since some C++ compilers masquerading as C compilers
5753 incorrectly reject 9223372036854775807. */
5754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5756 && LARGE_OFF_T % 2147483647 == 1)
5757 ? 1 : -1];
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 break
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext
5770 CC="$CC -n32"
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 ac_cv_sys_largefile_CC=' -n32'; break
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext
5775 break
5776 done
5777 CC=$ac_save_CC
5778 rm -f conftest.$ac_ext
5779 fi
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5782 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5783 if test "$ac_cv_sys_largefile_CC" != no; then
5784 CC=$CC$ac_cv_sys_largefile_CC
5785 fi
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5788 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5789 if ${ac_cv_sys_file_offset_bits+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 while :; do
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <sys/types.h>
5796 /* Check that off_t can represent 2**63 - 1 correctly.
5797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5798 since some C++ compilers masquerading as C compilers
5799 incorrectly reject 9223372036854775807. */
5800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5802 && LARGE_OFF_T % 2147483647 == 1)
5803 ? 1 : -1];
5804 int
5805 main ()
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813 ac_cv_sys_file_offset_bits=no; break
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #define _FILE_OFFSET_BITS 64
5819 #include <sys/types.h>
5820 /* Check that off_t can represent 2**63 - 1 correctly.
5821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5822 since some C++ compilers masquerading as C compilers
5823 incorrectly reject 9223372036854775807. */
5824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5826 && LARGE_OFF_T % 2147483647 == 1)
5827 ? 1 : -1];
5828 int
5829 main ()
5830 {
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_cv_sys_file_offset_bits=64; break
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 ac_cv_sys_file_offset_bits=unknown
5841 break
5842 done
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5845 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5846 case $ac_cv_sys_file_offset_bits in #(
5847 no | unknown) ;;
5848 *)
5849 cat >>confdefs.h <<_ACEOF
5850 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5851 _ACEOF
5852 ;;
5853 esac
5854 rm -rf conftest*
5855 if test $ac_cv_sys_file_offset_bits = unknown; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5857 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5858 if ${ac_cv_sys_large_files+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 while :; do
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5865 /* Check that off_t can represent 2**63 - 1 correctly.
5866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5867 since some C++ compilers masquerading as C compilers
5868 incorrectly reject 9223372036854775807. */
5869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5871 && LARGE_OFF_T % 2147483647 == 1)
5872 ? 1 : -1];
5873 int
5874 main ()
5875 {
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 ac_cv_sys_large_files=no; break
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 #define _LARGE_FILES 1
5888 #include <sys/types.h>
5889 /* Check that off_t can represent 2**63 - 1 correctly.
5890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5891 since some C++ compilers masquerading as C compilers
5892 incorrectly reject 9223372036854775807. */
5893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5895 && LARGE_OFF_T % 2147483647 == 1)
5896 ? 1 : -1];
5897 int
5898 main ()
5899 {
5900
5901 ;
5902 return 0;
5903 }
5904 _ACEOF
5905 if ac_fn_c_try_compile "$LINENO"; then :
5906 ac_cv_sys_large_files=1; break
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 ac_cv_sys_large_files=unknown
5910 break
5911 done
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5914 $as_echo "$ac_cv_sys_large_files" >&6; }
5915 case $ac_cv_sys_large_files in #(
5916 no | unknown) ;;
5917 *)
5918 cat >>confdefs.h <<_ACEOF
5919 #define _LARGE_FILES $ac_cv_sys_large_files
5920 _ACEOF
5921 ;;
5922 esac
5923 rm -rf conftest*
5924 fi
5925 fi
5926
5927
5928
5929 ## If user specified a crt-dir, use that unconditionally.
5930 if test "X$CRT_DIR" = "X"; then
5931
5932 case "$canonical" in
5933 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5934 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5935 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5936 ## For anything else (eg /usr/lib32), it is up the user to specify
5937 ## the location (bug#5655).
5938 ## Test for crtn.o, not just the directory, because sometimes the
5939 ## directory exists but does not have the relevant files (bug#1287).
5940 ## FIXME better to test for binary compatibility somehow.
5941 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5942 ;;
5943
5944 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5945 esac
5946
5947 case "$opsys" in
5948 hpux10-20) CRT_DIR=/lib ;;
5949 esac
5950
5951 ## Default is /usr/lib.
5952 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5953
5954 else
5955
5956 ## Some platforms don't use any of these files, so it is not
5957 ## appropriate to put this test outside the if block.
5958 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5959 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5960
5961 fi
5962
5963
5964
5965 LIB_MATH=-lm
5966 LIB_STANDARD=
5967 START_FILES=
5968
5969 case $opsys in
5970 cygwin )
5971 LIB_MATH=
5972 START_FILES='pre-crt0.o'
5973 ;;
5974 darwin )
5975 ## Adding -lm confuses the dynamic linker, so omit it.
5976 LIB_MATH=
5977 START_FILES='pre-crt0.o'
5978 ;;
5979 freebsd )
5980 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5981 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5982 ;;
5983 gnu-linux | gnu-kfreebsd )
5984 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5985 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5986 ;;
5987 hpux10-20 | hpux11 )
5988 LIB_STANDARD=-lc
5989 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5990 ;;
5991 netbsd | openbsd )
5992 if test -f $CRT_DIR/crti.o; then
5993 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5994 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5995 else
5996 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5997 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5998 fi
5999 ;;
6000 esac
6001
6002
6003
6004
6005
6006
6007
6008 if test "${with_sound}" != "no"; then
6009 # Sound support for GNU/Linux and the free BSDs.
6010 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6011 do :
6012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6015 cat >>confdefs.h <<_ACEOF
6016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6017 _ACEOF
6018 have_sound_header=yes
6019 fi
6020
6021 done
6022
6023 # Emulation library used on NetBSD.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6025 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6026 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-lossaudio $LIBS"
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033
6034 /* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6037 #ifdef __cplusplus
6038 extern "C"
6039 #endif
6040 char _oss_ioctl ();
6041 int
6042 main ()
6043 {
6044 return _oss_ioctl ();
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_lib_ossaudio__oss_ioctl=yes
6051 else
6052 ac_cv_lib_ossaudio__oss_ioctl=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6059 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6060 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6061 LIBSOUND=-lossaudio
6062 else
6063 LIBSOUND=
6064 fi
6065
6066
6067
6068 ALSA_REQUIRED=1.0.0
6069 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6070
6071 succeeded=no
6072
6073 # Extract the first word of "pkg-config", so it can be a program name with args.
6074 set dummy pkg-config; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 case $PKG_CONFIG in
6081 [\\/]* | ?:[\\/]*)
6082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6083 ;;
6084 *)
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6101 ;;
6102 esac
6103 fi
6104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6105 if test -n "$PKG_CONFIG"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6107 $as_echo "$PKG_CONFIG" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114
6115 if test "$PKG_CONFIG" = "no" ; then
6116 HAVE_ALSA=no
6117 else
6118 PKG_CONFIG_MIN_VERSION=0.9.0
6119 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6121 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6122
6123 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6125 $as_echo "yes" >&6; }
6126 succeeded=yes
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6129 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6130 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6132 $as_echo "$ALSA_CFLAGS" >&6; }
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6135 $as_echo_n "checking ALSA_LIBS... " >&6; }
6136 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6138 $as_echo "$ALSA_LIBS" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 ALSA_CFLAGS=""
6143 ALSA_LIBS=""
6144 ## If we have a custom action on failure, don't print errors, but
6145 ## do set a variable so people can do so.
6146 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6147
6148 fi
6149
6150
6151
6152 else
6153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6155 fi
6156 fi
6157
6158 if test $succeeded = yes; then
6159 HAVE_ALSA=yes
6160 else
6161 HAVE_ALSA=no
6162 fi
6163
6164 if test $HAVE_ALSA = yes; then
6165 SAVE_CFLAGS="$CFLAGS"
6166 SAVE_LDFLAGS="$LDFLAGS"
6167 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6168 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <asoundlib.h>
6172 int
6173 main ()
6174 {
6175 snd_lib_error_set_handler (0);
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 emacs_alsa_normal=yes
6182 else
6183 emacs_alsa_normal=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 if test "$emacs_alsa_normal" != yes; then
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 #include <alsa/asoundlib.h>
6190 int
6191 main ()
6192 {
6193 snd_lib_error_set_handler (0);
6194 ;
6195 return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 emacs_alsa_subdir=yes
6200 else
6201 emacs_alsa_subdir=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 if test "$emacs_alsa_subdir" != yes; then
6205 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6206 fi
6207 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6208 fi
6209
6210 CFLAGS="$SAVE_CFLAGS"
6211 LDFLAGS="$SAVE_LDFLAGS"
6212 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6213 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6214
6215 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6216
6217 fi
6218
6219 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6220 case "$opsys" in
6221 gnu-linux|freebsd|netbsd)
6222
6223 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6224
6225 ;;
6226 esac
6227 fi
6228
6229
6230 fi
6231
6232 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6233 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6234 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6235 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6236 sys/utsname.h pwd.h utmp.h dirent.h util.h
6237 do :
6238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6241 cat >>confdefs.h <<_ACEOF
6242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6243 _ACEOF
6244
6245 fi
6246
6247 done
6248
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6251 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <sys/personality.h>
6255 int
6256 main ()
6257 {
6258 personality (PER_LINUX32)
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 emacs_cv_personality_linux32=yes
6265 else
6266 emacs_cv_personality_linux32=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6270 $as_echo "$emacs_cv_personality_linux32" >&6; }
6271
6272 if test $emacs_cv_personality_linux32 = yes; then
6273
6274 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6275
6276 fi
6277
6278 for ac_header in term.h
6279 do :
6280 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6281 if test "x$ac_cv_header_term_h" = xyes; then :
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_TERM_H 1
6284 _ACEOF
6285
6286 fi
6287
6288 done
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6291 $as_echo_n "checking for ANSI C header files... " >&6; }
6292 if ${ac_cv_header_stdc+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 #include <stdlib.h>
6298 #include <stdarg.h>
6299 #include <string.h>
6300 #include <float.h>
6301
6302 int
6303 main ()
6304 {
6305
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 ac_cv_header_stdc=yes
6312 else
6313 ac_cv_header_stdc=no
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 if test $ac_cv_header_stdc = yes; then
6318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <string.h>
6322
6323 _ACEOF
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 $EGREP "memchr" >/dev/null 2>&1; then :
6326
6327 else
6328 ac_cv_header_stdc=no
6329 fi
6330 rm -f conftest*
6331
6332 fi
6333
6334 if test $ac_cv_header_stdc = yes; then
6335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #include <stdlib.h>
6339
6340 _ACEOF
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342 $EGREP "free" >/dev/null 2>&1; then :
6343
6344 else
6345 ac_cv_header_stdc=no
6346 fi
6347 rm -f conftest*
6348
6349 fi
6350
6351 if test $ac_cv_header_stdc = yes; then
6352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6353 if test "$cross_compiling" = yes; then :
6354 :
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <ctype.h>
6359 #include <stdlib.h>
6360 #if ((' ' & 0x0FF) == 0x020)
6361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6363 #else
6364 # define ISLOWER(c) \
6365 (('a' <= (c) && (c) <= 'i') \
6366 || ('j' <= (c) && (c) <= 'r') \
6367 || ('s' <= (c) && (c) <= 'z'))
6368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6369 #endif
6370
6371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6372 int
6373 main ()
6374 {
6375 int i;
6376 for (i = 0; i < 256; i++)
6377 if (XOR (islower (i), ISLOWER (i))
6378 || toupper (i) != TOUPPER (i))
6379 return 2;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_run "$LINENO"; then :
6384
6385 else
6386 ac_cv_header_stdc=no
6387 fi
6388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6389 conftest.$ac_objext conftest.beam conftest.$ac_ext
6390 fi
6391
6392 fi
6393 fi
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6395 $as_echo "$ac_cv_header_stdc" >&6; }
6396 if test $ac_cv_header_stdc = yes; then
6397
6398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6399
6400 fi
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6403 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6404 if ${ac_cv_header_time+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <sys/types.h>
6410 #include <sys/time.h>
6411 #include <time.h>
6412
6413 int
6414 main ()
6415 {
6416 if ((struct tm *) 0)
6417 return 0;
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 ac_cv_header_time=yes
6424 else
6425 ac_cv_header_time=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6430 $as_echo "$ac_cv_header_time" >&6; }
6431 if test $ac_cv_header_time = yes; then
6432
6433 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6434
6435 fi
6436
6437 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6438 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
6439 ac_have_decl=1
6440 else
6441 ac_have_decl=0
6442 fi
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6446 _ACEOF
6447
6448 if test $ac_cv_have_decl_sys_siglist != yes; then
6449 # For Tru64, at least:
6450 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6451 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
6452 ac_have_decl=1
6453 else
6454 ac_have_decl=0
6455 fi
6456
6457 cat >>confdefs.h <<_ACEOF
6458 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6459 _ACEOF
6460
6461 if test $ac_cv_have_decl___sys_siglist = yes; then
6462
6463 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6464
6465 fi
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6468 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6469 if ${ac_cv_header_sys_wait_h+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 #include <sys/types.h>
6475 #include <sys/wait.h>
6476 #ifndef WEXITSTATUS
6477 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6478 #endif
6479 #ifndef WIFEXITED
6480 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6481 #endif
6482
6483 int
6484 main ()
6485 {
6486 int s;
6487 wait (&s);
6488 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494 ac_cv_header_sys_wait_h=yes
6495 else
6496 ac_cv_header_sys_wait_h=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6501 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6502 if test $ac_cv_header_sys_wait_h = yes; then
6503
6504 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6505
6506 fi
6507
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6510 $as_echo_n "checking for struct utimbuf... " >&6; }
6511 if ${emacs_cv_struct_utimbuf+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 #ifdef TIME_WITH_SYS_TIME
6517 #include <sys/time.h>
6518 #include <time.h>
6519 #else
6520 #ifdef HAVE_SYS_TIME_H
6521 #include <sys/time.h>
6522 #else
6523 #include <time.h>
6524 #endif
6525 #endif
6526 #ifdef HAVE_UTIME_H
6527 #include <utime.h>
6528 #endif
6529 int
6530 main ()
6531 {
6532 static struct utimbuf x; x.actime = x.modtime;
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538 emacs_cv_struct_utimbuf=yes
6539 else
6540 emacs_cv_struct_utimbuf=no
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6545 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6546 if test $emacs_cv_struct_utimbuf = yes; then
6547
6548 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6549
6550 fi
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6553 $as_echo_n "checking return type of signal handlers... " >&6; }
6554 if ${ac_cv_type_signal+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <sys/types.h>
6560 #include <signal.h>
6561
6562 int
6563 main ()
6564 {
6565 return *(signal (0, 0)) (0) == 1;
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 ac_cv_type_signal=int
6572 else
6573 ac_cv_type_signal=void
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6578 $as_echo "$ac_cv_type_signal" >&6; }
6579
6580 cat >>confdefs.h <<_ACEOF
6581 #define RETSIGTYPE $ac_cv_type_signal
6582 _ACEOF
6583
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6587 $as_echo_n "checking for speed_t... " >&6; }
6588 if ${emacs_cv_speed_t+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 #include <termios.h>
6594 int
6595 main ()
6596 {
6597 speed_t x = 1;
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 emacs_cv_speed_t=yes
6604 else
6605 emacs_cv_speed_t=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6610 $as_echo "$emacs_cv_speed_t" >&6; }
6611 if test $emacs_cv_speed_t = yes; then
6612
6613 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6614
6615 fi
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6618 $as_echo_n "checking for struct timeval... " >&6; }
6619 if ${emacs_cv_struct_timeval+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 #ifdef TIME_WITH_SYS_TIME
6625 #include <sys/time.h>
6626 #include <time.h>
6627 #else
6628 #ifdef HAVE_SYS_TIME_H
6629 #include <sys/time.h>
6630 #else
6631 #include <time.h>
6632 #endif
6633 #endif
6634 int
6635 main ()
6636 {
6637 static struct timeval x; x.tv_sec = x.tv_usec;
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 emacs_cv_struct_timeval=yes
6644 else
6645 emacs_cv_struct_timeval=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6650 $as_echo "$emacs_cv_struct_timeval" >&6; }
6651 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6652 if test $emacs_cv_struct_timeval = yes; then
6653
6654 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6655
6656 fi
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6659 $as_echo_n "checking for struct exception... " >&6; }
6660 if ${emacs_cv_struct_exception+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <math.h>
6666 int
6667 main ()
6668 {
6669 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6670 ;
6671 return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 emacs_cv_struct_exception=yes
6676 else
6677 emacs_cv_struct_exception=no
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6682 $as_echo "$emacs_cv_struct_exception" >&6; }
6683 HAVE_EXCEPTION=$emacs_cv_struct_exception
6684 if test $emacs_cv_struct_exception != yes; then
6685
6686 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6687
6688 fi
6689
6690 for ac_header in sys/socket.h
6691 do :
6692 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6693 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
6694 cat >>confdefs.h <<_ACEOF
6695 #define HAVE_SYS_SOCKET_H 1
6696 _ACEOF
6697
6698 fi
6699
6700 done
6701
6702 for ac_header in net/if.h
6703 do :
6704 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6705 #if HAVE_SYS_SOCKET_H
6706 #include <sys/socket.h>
6707 #endif
6708 "
6709 if test "x$ac_cv_header_net_if_h" = xyes; then :
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_NET_IF_H 1
6712 _ACEOF
6713
6714 fi
6715
6716 done
6717
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6720 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6721 if ${ac_cv_struct_tm+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 #include <sys/types.h>
6727 #include <time.h>
6728
6729 int
6730 main ()
6731 {
6732 struct tm tm;
6733 int *p = &tm.tm_sec;
6734 return !p;
6735 ;
6736 return 0;
6737 }
6738 _ACEOF
6739 if ac_fn_c_try_compile "$LINENO"; then :
6740 ac_cv_struct_tm=time.h
6741 else
6742 ac_cv_struct_tm=sys/time.h
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6747 $as_echo "$ac_cv_struct_tm" >&6; }
6748 if test $ac_cv_struct_tm = sys/time.h; then
6749
6750 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6751
6752 fi
6753
6754 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6755 #include <$ac_cv_struct_tm>
6756
6757 "
6758 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6759
6760 cat >>confdefs.h <<_ACEOF
6761 #define HAVE_STRUCT_TM_TM_ZONE 1
6762 _ACEOF
6763
6764
6765 fi
6766
6767 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6768
6769 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6770
6771 else
6772 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6773 "
6774 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6775 ac_have_decl=1
6776 else
6777 ac_have_decl=0
6778 fi
6779
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE_DECL_TZNAME $ac_have_decl
6782 _ACEOF
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6785 $as_echo_n "checking for tzname... " >&6; }
6786 if ${ac_cv_var_tzname+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <time.h>
6792 #if !HAVE_DECL_TZNAME
6793 extern char *tzname[];
6794 #endif
6795
6796 int
6797 main ()
6798 {
6799 return tzname[0][0];
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"; then :
6805 ac_cv_var_tzname=yes
6806 else
6807 ac_cv_var_tzname=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6813 $as_echo "$ac_cv_var_tzname" >&6; }
6814 if test $ac_cv_var_tzname = yes; then
6815
6816 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6817
6818 fi
6819 fi
6820
6821 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6822 "
6823 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6824
6825 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6826
6827 fi
6828
6829 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6830 #if HAVE_SYS_SOCKET_H
6831 #include <sys/socket.h>
6832 #endif
6833 #if HAVE_NET_IF_H
6834 #include <net/if.h>
6835 #endif
6836 "
6837 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6841 _ACEOF
6842
6843
6844 fi
6845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6848 #endif
6849 #if HAVE_NET_IF_H
6850 #include <net/if.h>
6851 #endif
6852 "
6853 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6857 _ACEOF
6858
6859
6860 fi
6861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6862 #if HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6864 #endif
6865 #if HAVE_NET_IF_H
6866 #include <net/if.h>
6867 #endif
6868 "
6869 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6873 _ACEOF
6874
6875
6876 fi
6877 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6878 #if HAVE_SYS_SOCKET_H
6879 #include <sys/socket.h>
6880 #endif
6881 #if HAVE_NET_IF_H
6882 #include <net/if.h>
6883 #endif
6884 "
6885 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
6886
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6889 _ACEOF
6890
6891
6892 fi
6893 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6894 #if HAVE_SYS_SOCKET_H
6895 #include <sys/socket.h>
6896 #endif
6897 #if HAVE_NET_IF_H
6898 #include <net/if.h>
6899 #endif
6900 "
6901 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
6902
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6905 _ACEOF
6906
6907
6908 fi
6909
6910
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6913 $as_echo_n "checking for function prototypes... " >&6; }
6914 if test "$ac_cv_prog_cc_c89" != no; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6916 $as_echo "yes" >&6; }
6917
6918 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6919
6920
6921 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6922
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6929 $as_echo_n "checking for working volatile... " >&6; }
6930 if ${ac_cv_c_volatile+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935
6936 int
6937 main ()
6938 {
6939
6940 volatile int x;
6941 int * volatile y = (int *) 0;
6942 return !x && !y;
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_compile "$LINENO"; then :
6948 ac_cv_c_volatile=yes
6949 else
6950 ac_cv_c_volatile=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6955 $as_echo "$ac_cv_c_volatile" >&6; }
6956 if test $ac_cv_c_volatile = no; then
6957
6958 $as_echo "#define volatile /**/" >>confdefs.h
6959
6960 fi
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6963 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6964 if ${ac_cv_c_const+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969
6970 int
6971 main ()
6972 {
6973 /* FIXME: Include the comments suggested by Paul. */
6974 #ifndef __cplusplus
6975 /* Ultrix mips cc rejects this. */
6976 typedef int charset[2];
6977 const charset cs;
6978 /* SunOS 4.1.1 cc rejects this. */
6979 char const *const *pcpcc;
6980 char **ppc;
6981 /* NEC SVR4.0.2 mips cc rejects this. */
6982 struct point {int x, y;};
6983 static struct point const zero = {0,0};
6984 /* AIX XL C 1.02.0.0 rejects this.
6985 It does not let you subtract one const X* pointer from another in
6986 an arm of an if-expression whose if-part is not a constant
6987 expression */
6988 const char *g = "string";
6989 pcpcc = &g + (g ? g-g : 0);
6990 /* HPUX 7.0 cc rejects these. */
6991 ++pcpcc;
6992 ppc = (char**) pcpcc;
6993 pcpcc = (char const *const *) ppc;
6994 { /* SCO 3.2v4 cc rejects this. */
6995 char *t;
6996 char const *s = 0 ? (char *) 0 : (char const *) 0;
6997
6998 *t++ = 0;
6999 if (s) return 0;
7000 }
7001 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7002 int x[] = {25, 17};
7003 const int *foo = &x[0];
7004 ++foo;
7005 }
7006 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7007 typedef const int *iptr;
7008 iptr p = 0;
7009 ++p;
7010 }
7011 { /* AIX XL C 1.02.0.0 rejects this saying
7012 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7013 struct s { int j; const int *ap[3]; };
7014 struct s *b; b->j = 5;
7015 }
7016 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7017 const int foo = 10;
7018 if (!foo) return 0;
7019 }
7020 return !cs[0] && !zero.x;
7021 #endif
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 ac_cv_c_const=yes
7029 else
7030 ac_cv_c_const=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7035 $as_echo "$ac_cv_c_const" >&6; }
7036 if test $ac_cv_c_const = no; then
7037
7038 $as_echo "#define const /**/" >>confdefs.h
7039
7040 fi
7041
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7043 $as_echo_n "checking for void * support... " >&6; }
7044 if ${emacs_cv_void_star+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049
7050 int
7051 main ()
7052 {
7053 void * foo;
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059 emacs_cv_void_star=yes
7060 else
7061 emacs_cv_void_star=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7066 $as_echo "$emacs_cv_void_star" >&6; }
7067 if test $emacs_cv_void_star = yes; then
7068 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7069
7070 else
7071 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7072
7073 fi
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7076 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7077 if ${ac_cv_c_bigendian+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 ac_cv_c_bigendian=unknown
7081 # See if we're dealing with a universal compiler.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #ifndef __APPLE_CC__
7085 not a universal capable compiler
7086 #endif
7087 typedef int dummy;
7088
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091
7092 # Check for potential -arch flags. It is not universal unless
7093 # there are at least two -arch flags with different values.
7094 ac_arch=
7095 ac_prev=
7096 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7097 if test -n "$ac_prev"; then
7098 case $ac_word in
7099 i?86 | x86_64 | ppc | ppc64)
7100 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7101 ac_arch=$ac_word
7102 else
7103 ac_cv_c_bigendian=universal
7104 break
7105 fi
7106 ;;
7107 esac
7108 ac_prev=
7109 elif test "x$ac_word" = "x-arch"; then
7110 ac_prev=arch
7111 fi
7112 done
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 if test $ac_cv_c_bigendian = unknown; then
7116 # See if sys/param.h defines the BYTE_ORDER macro.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/param.h>
7121
7122 int
7123 main ()
7124 {
7125 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7126 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7127 && LITTLE_ENDIAN)
7128 bogus endian macros
7129 #endif
7130
7131 ;
7132 return 0;
7133 }
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"; then :
7136 # It does; now see whether it defined to BIG_ENDIAN or not.
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 #include <sys/param.h>
7141
7142 int
7143 main ()
7144 {
7145 #if BYTE_ORDER != BIG_ENDIAN
7146 not big endian
7147 #endif
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_c_bigendian=yes
7155 else
7156 ac_cv_c_bigendian=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 fi
7162 if test $ac_cv_c_bigendian = unknown; then
7163 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #include <limits.h>
7167
7168 int
7169 main ()
7170 {
7171 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7172 bogus endian macros
7173 #endif
7174
7175 ;
7176 return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 # It does; now see whether it defined to _BIG_ENDIAN or not.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <limits.h>
7184
7185 int
7186 main ()
7187 {
7188 #ifndef _BIG_ENDIAN
7189 not big endian
7190 #endif
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 ac_cv_c_bigendian=yes
7198 else
7199 ac_cv_c_bigendian=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 fi
7205 if test $ac_cv_c_bigendian = unknown; then
7206 # Compile a test program.
7207 if test "$cross_compiling" = yes; then :
7208 # Try to guess by grepping values from an object file.
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 short int ascii_mm[] =
7212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7213 short int ascii_ii[] =
7214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7215 int use_ascii (int i) {
7216 return ascii_mm[i] + ascii_ii[i];
7217 }
7218 short int ebcdic_ii[] =
7219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7220 short int ebcdic_mm[] =
7221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7222 int use_ebcdic (int i) {
7223 return ebcdic_mm[i] + ebcdic_ii[i];
7224 }
7225 extern int foo;
7226
7227 int
7228 main ()
7229 {
7230 return use_ascii (foo) == use_ebcdic (foo);
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7237 ac_cv_c_bigendian=yes
7238 fi
7239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7240 if test "$ac_cv_c_bigendian" = unknown; then
7241 ac_cv_c_bigendian=no
7242 else
7243 # finding both strings is unlikely to happen, but who knows?
7244 ac_cv_c_bigendian=unknown
7245 fi
7246 fi
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 else
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 $ac_includes_default
7253 int
7254 main ()
7255 {
7256
7257 /* Are we little or big endian? From Harbison&Steele. */
7258 union
7259 {
7260 long int l;
7261 char c[sizeof (long int)];
7262 } u;
7263 u.l = 1;
7264 return u.c[sizeof (long int) - 1] == 1;
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_run "$LINENO"; then :
7271 ac_cv_c_bigendian=no
7272 else
7273 ac_cv_c_bigendian=yes
7274 fi
7275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7276 conftest.$ac_objext conftest.beam conftest.$ac_ext
7277 fi
7278
7279 fi
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7282 $as_echo "$ac_cv_c_bigendian" >&6; }
7283 case $ac_cv_c_bigendian in #(
7284 yes)
7285 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7286 ;; #(
7287 no)
7288 ;; #(
7289 universal)
7290
7291 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7292
7293 ;; #(
7294 *)
7295 as_fn_error $? "unknown endianness
7296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7297 esac
7298
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7301 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7302 set x ${MAKE-make}
7303 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7304 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 cat >conftest.make <<\_ACEOF
7308 SHELL = /bin/sh
7309 all:
7310 @echo '@@@%%%=$(MAKE)=@@@%%%'
7311 _ACEOF
7312 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7313 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7314 *@@@%%%=?*=@@@%%%*)
7315 eval ac_cv_prog_make_${ac_make}_set=yes;;
7316 *)
7317 eval ac_cv_prog_make_${ac_make}_set=no;;
7318 esac
7319 rm -f conftest.make
7320 fi
7321 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7324 SET_MAKE=
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 SET_MAKE="MAKE=${MAKE-make}"
7329 fi
7330
7331
7332 DEPFLAGS=
7333 MKDEPDIR=":"
7334 deps_frag=deps.mk
7335 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7337 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7338 HAVE_GNU_MAKE=no
7339 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7340 if test "x$testval" != x; then
7341 HAVE_GNU_MAKE=yes
7342 else
7343 ac_enable_autodepend=no
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7346 $as_echo "$HAVE_GNU_MAKE" >&6; }
7347 if test $HAVE_GNU_MAKE = yes; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7349 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7350 SAVE_CFLAGS="$CFLAGS"
7351 CFLAGS="$CFLAGS -MMD -MF deps.d"
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354
7355 int
7356 main ()
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"; then :
7364
7365 else
7366 ac_enable_autodepend=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 CFLAGS="$SAVE_CFLAGS"
7370 test -f deps.d || ac_enable_autodepend=no
7371 rm -rf deps.d
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7373 $as_echo "$ac_enable_autodepend" >&6; }
7374 fi
7375 if test $ac_enable_autodepend = yes; then
7376 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7377 ## In parallel builds, another make might create depdir between
7378 ## the first test and mkdir, so stick another test on the end.
7379 ## Or use mkinstalldirs? mkdir -p is not portable.
7380 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7381 deps_frag=autodeps.mk
7382 fi
7383 fi
7384 deps_frag=$srcdir/src/$deps_frag
7385
7386
7387
7388
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7391 $as_echo_n "checking for long file names... " >&6; }
7392 if ${ac_cv_sys_long_file_names+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 ac_cv_sys_long_file_names=yes
7396 # Test for long file names in all the places we know might matter:
7397 # . the current directory, where building will happen
7398 # $prefix/lib where we will be installing things
7399 # $exec_prefix/lib likewise
7400 # $TMPDIR if set, where it might want to write temporary files
7401 # /tmp where it might want to write temporary files
7402 # /var/tmp likewise
7403 # /usr/tmp likewise
7404 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7405 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7406 # in the usual case where exec_prefix is '${prefix}'.
7407 case $ac_dir in #(
7408 . | /* | ?:[\\/]*) ;; #(
7409 *) continue;;
7410 esac
7411 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7412 ac_xdir=$ac_dir/cf$$
7413 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7414 ac_tf1=$ac_xdir/conftest9012345
7415 ac_tf2=$ac_xdir/conftest9012346
7416 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7417 ac_cv_sys_long_file_names=no
7418 rm -f -r "$ac_xdir" 2>/dev/null
7419 test $ac_cv_sys_long_file_names = no && break
7420 done
7421 fi
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7423 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7424 if test $ac_cv_sys_long_file_names = yes; then
7425
7426 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7427
7428 fi
7429
7430
7431 #### Choose a window system.
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7434 $as_echo_n "checking for X... " >&6; }
7435
7436
7437 # Check whether --with-x was given.
7438 if test "${with_x+set}" = set; then :
7439 withval=$with_x;
7440 fi
7441
7442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7443 if test "x$with_x" = xno; then
7444 # The user explicitly disabled X.
7445 have_x=disabled
7446 else
7447 case $x_includes,$x_libraries in #(
7448 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7449 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 # One or both of the vars are not set, and there is no cached value.
7453 ac_x_includes=no ac_x_libraries=no
7454 rm -f -r conftest.dir
7455 if mkdir conftest.dir; then
7456 cd conftest.dir
7457 cat >Imakefile <<'_ACEOF'
7458 incroot:
7459 @echo incroot='${INCROOT}'
7460 usrlibdir:
7461 @echo usrlibdir='${USRLIBDIR}'
7462 libdir:
7463 @echo libdir='${LIBDIR}'
7464 _ACEOF
7465 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7466 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7467 for ac_var in incroot usrlibdir libdir; do
7468 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7469 done
7470 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7471 for ac_extension in a so sl dylib la dll; do
7472 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7473 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7474 ac_im_usrlibdir=$ac_im_libdir; break
7475 fi
7476 done
7477 # Screen out bogus values from the imake configuration. They are
7478 # bogus both because they are the default anyway, and because
7479 # using them would break gcc on systems where it needs fixed includes.
7480 case $ac_im_incroot in
7481 /usr/include) ac_x_includes= ;;
7482 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7483 esac
7484 case $ac_im_usrlibdir in
7485 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7486 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7487 esac
7488 fi
7489 cd ..
7490 rm -f -r conftest.dir
7491 fi
7492
7493 # Standard set of common directories for X headers.
7494 # Check X11 before X11Rn because it is often a symlink to the current release.
7495 ac_x_header_dirs='
7496 /usr/X11/include
7497 /usr/X11R7/include
7498 /usr/X11R6/include
7499 /usr/X11R5/include
7500 /usr/X11R4/include
7501
7502 /usr/include/X11
7503 /usr/include/X11R7
7504 /usr/include/X11R6
7505 /usr/include/X11R5
7506 /usr/include/X11R4
7507
7508 /usr/local/X11/include
7509 /usr/local/X11R7/include
7510 /usr/local/X11R6/include
7511 /usr/local/X11R5/include
7512 /usr/local/X11R4/include
7513
7514 /usr/local/include/X11
7515 /usr/local/include/X11R7
7516 /usr/local/include/X11R6
7517 /usr/local/include/X11R5
7518 /usr/local/include/X11R4
7519
7520 /usr/X386/include
7521 /usr/x386/include
7522 /usr/XFree86/include/X11
7523
7524 /usr/include
7525 /usr/local/include
7526 /usr/unsupported/include
7527 /usr/athena/include
7528 /usr/local/x11r5/include
7529 /usr/lpp/Xamples/include
7530
7531 /usr/openwin/include
7532 /usr/openwin/share/include'
7533
7534 if test "$ac_x_includes" = no; then
7535 # Guess where to find include files, by looking for Xlib.h.
7536 # First, try using that file with no special directory specified.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #include <X11/Xlib.h>
7540 _ACEOF
7541 if ac_fn_c_try_cpp "$LINENO"; then :
7542 # We can compile using X headers with no special include directory.
7543 ac_x_includes=
7544 else
7545 for ac_dir in $ac_x_header_dirs; do
7546 if test -r "$ac_dir/X11/Xlib.h"; then
7547 ac_x_includes=$ac_dir
7548 break
7549 fi
7550 done
7551 fi
7552 rm -f conftest.err conftest.i conftest.$ac_ext
7553 fi # $ac_x_includes = no
7554
7555 if test "$ac_x_libraries" = no; then
7556 # Check for the libraries.
7557 # See if we find them without any special options.
7558 # Don't add to $LIBS permanently.
7559 ac_save_LIBS=$LIBS
7560 LIBS="-lX11 $LIBS"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <X11/Xlib.h>
7564 int
7565 main ()
7566 {
7567 XrmInitialize ()
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"; then :
7573 LIBS=$ac_save_LIBS
7574 # We can link X programs with no special library path.
7575 ac_x_libraries=
7576 else
7577 LIBS=$ac_save_LIBS
7578 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7579 do
7580 # Don't even attempt the hair of trying to link an X program!
7581 for ac_extension in a so sl dylib la dll; do
7582 if test -r "$ac_dir/libX11.$ac_extension"; then
7583 ac_x_libraries=$ac_dir
7584 break 2
7585 fi
7586 done
7587 done
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7591 fi # $ac_x_libraries = no
7592
7593 case $ac_x_includes,$ac_x_libraries in #(
7594 no,* | *,no | *\'*)
7595 # Didn't find X, or a directory has "'" in its name.
7596 ac_cv_have_x="have_x=no";; #(
7597 *)
7598 # Record where we found X for the cache.
7599 ac_cv_have_x="have_x=yes\
7600 ac_x_includes='$ac_x_includes'\
7601 ac_x_libraries='$ac_x_libraries'"
7602 esac
7603 fi
7604 ;; #(
7605 *) have_x=yes;;
7606 esac
7607 eval "$ac_cv_have_x"
7608 fi # $with_x != no
7609
7610 if test "$have_x" != yes; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7612 $as_echo "$have_x" >&6; }
7613 no_x=yes
7614 else
7615 # If each of the values was on the command line, it overrides each guess.
7616 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7617 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7618 # Update the cache value to reflect the command line values.
7619 ac_cv_have_x="have_x=yes\
7620 ac_x_includes='$x_includes'\
7621 ac_x_libraries='$x_libraries'"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7623 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7624 fi
7625
7626 if test "$no_x" = yes; then
7627 window_system=none
7628 else
7629 window_system=x11
7630 fi
7631
7632 ## Workaround for bug in autoconf <= 2.62.
7633 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7634 ## No need to do anything special for these standard directories.
7635 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7636
7637 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7638
7639 fi
7640
7641 LD_SWITCH_X_SITE_AUX=
7642 LD_SWITCH_X_SITE_AUX_RPATH=
7643 if test "${x_libraries}" != NONE; then
7644 if test -n "${x_libraries}"; then
7645 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7646 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7647 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7648 fi
7649 x_default_search_path=""
7650 x_search_path=${x_libraries}
7651 if test -z "${x_search_path}"; then
7652 x_search_path=/usr/lib
7653 fi
7654 for x_library in `echo ${x_search_path}: | \
7655 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7656 x_search_path="\
7657 ${x_library}/X11/%L/%T/%N%C%S:\
7658 ${x_library}/X11/%l/%T/%N%C%S:\
7659 ${x_library}/X11/%T/%N%C%S:\
7660 ${x_library}/X11/%L/%T/%N%S:\
7661 ${x_library}/X11/%l/%T/%N%S:\
7662 ${x_library}/X11/%T/%N%S"
7663 if test x"${x_default_search_path}" = x; then
7664 x_default_search_path=${x_search_path}
7665 else
7666 x_default_search_path="${x_search_path}:${x_default_search_path}"
7667 fi
7668 done
7669 fi
7670
7671
7672
7673 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7674 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7675 fi
7676
7677 if test x"${x_includes}" = x; then
7678 bitmapdir=/usr/include/X11/bitmaps
7679 else
7680 # accumulate include directories that have X11 bitmap subdirectories
7681 bmd_acc="dummyval"
7682 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7683 if test -d "${bmd}/X11/bitmaps"; then
7684 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7685 fi
7686 if test -d "${bmd}/bitmaps"; then
7687 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7688 fi
7689 done
7690 if test ${bmd_acc} != "dummyval"; then
7691 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7692 fi
7693 fi
7694
7695 HAVE_NS=no
7696 NS_IMPL_COCOA=no
7697 NS_IMPL_GNUSTEP=no
7698 tmp_CPPFLAGS="$CPPFLAGS"
7699 tmp_CFLAGS="$CFLAGS"
7700 CPPFLAGS="$CPPFLAGS -x objective-c"
7701 CFLAGS="$CFLAGS -x objective-c"
7702 TEMACS_LDFLAGS2="\${LDFLAGS}"
7703 if test "${with_ns}" != no; then
7704 if test "${opsys}" = darwin; then
7705 NS_IMPL_COCOA=yes
7706 ns_appdir=`pwd`/nextstep/Emacs.app
7707 ns_appbindir=${ns_appdir}/Contents/MacOS/
7708 ns_appresdir=${ns_appdir}/Contents/Resources
7709 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7710 elif test -f $GNUSTEP_CONFIG_FILE; then
7711 NS_IMPL_GNUSTEP=yes
7712 ns_appdir=`pwd`/nextstep/Emacs.app
7713 ns_appbindir=${ns_appdir}
7714 ns_appresdir=${ns_appdir}/Resources
7715 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7716 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7717 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7718 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7719 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7720 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7721 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7722 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7723 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7724 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7725 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7726 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7727 LIB_STANDARD=
7728 START_FILES=
7729 TEMACS_LDFLAGS2=
7730 fi
7731 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7732 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
7733 HAVE_NS=yes
7734 else
7735 as_fn_error $? "\`--with-ns' was specified, but the include
7736 files are missing or cannot be compiled." "$LINENO" 5
7737 fi
7738
7739
7740 NS_HAVE_NSINTEGER=yes
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <Foundation/NSObjCRuntime.h>
7744 int
7745 main ()
7746 {
7747 NSInteger i;
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ns_have_nsinteger=yes
7754 else
7755 ns_have_nsinteger=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 if test $ns_have_nsinteger = no; then
7759 NS_HAVE_NSINTEGER=no
7760 fi
7761 fi
7762
7763
7764 ns_frag=/dev/null
7765 NS_OBJ=
7766 NS_SUPPORT=
7767 if test "${HAVE_NS}" = yes; then
7768 window_system=nextstep
7769 with_xft=no
7770 # set up packaging dirs
7771 exec_prefix=${ns_appbindir}
7772 libexecdir=${ns_appbindir}/libexec
7773 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7774 prefix=${ns_appresdir}
7775 fi
7776 ns_frag=$srcdir/src/ns.mk
7777 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7778 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7779 fi
7780 CFLAGS="$tmp_CFLAGS"
7781 CPPFLAGS="$tmp_CPPFLAGS"
7782
7783
7784
7785
7786
7787 case "${window_system}" in
7788 x11 )
7789 HAVE_X_WINDOWS=yes
7790 HAVE_X11=yes
7791 case "${with_x_toolkit}" in
7792 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7793 motif ) USE_X_TOOLKIT=MOTIF ;;
7794 gtk ) with_gtk=yes
7795 USE_X_TOOLKIT=none ;;
7796 gtk3 ) with_gtk3=yes
7797 USE_X_TOOLKIT=none ;;
7798 no ) USE_X_TOOLKIT=none ;;
7799 * ) USE_X_TOOLKIT=maybe ;;
7800 esac
7801 ;;
7802 nextstep | none )
7803 HAVE_X_WINDOWS=no
7804 HAVE_X11=no
7805 USE_X_TOOLKIT=none
7806 ;;
7807 esac
7808
7809 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7810 # Extract the first word of "X", so it can be a program name with args.
7811 set dummy X; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$HAVE_XSERVER"; then
7818 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_HAVE_XSERVER="true"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7836 fi
7837 fi
7838 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7839 if test -n "$HAVE_XSERVER"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7841 $as_echo "$HAVE_XSERVER" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847
7848 if test "$HAVE_XSERVER" = true ||
7849 test -n "$DISPLAY" ||
7850 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7851 as_fn_error $? "You seem to be running X, but no X development libraries
7852 were found. You should install the relevant development files for X
7853 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7854 sure you have development files for image handling, i.e.
7855 tiff, gif, jpeg, png and xpm.
7856 If you are sure you want Emacs compiled without X window support, pass
7857 --without-x
7858 to configure." "$LINENO" 5
7859 fi
7860 fi
7861
7862 ### If we're using X11, we should use the X menu package.
7863 HAVE_MENUS=no
7864 case ${HAVE_X11} in
7865 yes ) HAVE_MENUS=yes ;;
7866 esac
7867
7868 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7869 # Assume not, until told otherwise.
7870 GNU_MALLOC=yes
7871 doug_lea_malloc=yes
7872 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7873 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
7874
7875 else
7876 doug_lea_malloc=no
7877 fi
7878
7879 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7880 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
7881
7882 else
7883 doug_lea_malloc=no
7884 fi
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7887 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7888 if ${emacs_cv_var___after_morecore_hook+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 extern void (* __after_morecore_hook)();
7894 int
7895 main ()
7896 {
7897 __after_morecore_hook = 0
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 emacs_cv_var___after_morecore_hook=yes
7904 else
7905 emacs_cv_var___after_morecore_hook=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7911 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7912 if test $emacs_cv_var___after_morecore_hook = no; then
7913 doug_lea_malloc=no
7914 fi
7915
7916
7917 system_malloc=no
7918 case "$opsys" in
7919 ## darwin ld insists on the use of malloc routines in the System framework.
7920 darwin|sol2-10) system_malloc=yes ;;
7921 esac
7922
7923 if test "${system_malloc}" = "yes"; then
7924
7925 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7926
7927 GNU_MALLOC=no
7928 GNU_MALLOC_reason="
7929 (The GNU allocators don't work with this system configuration.)"
7930 GMALLOC_OBJ=
7931 VMLIMIT_OBJ=
7932 else
7933 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7934 VMLIMIT_OBJ=vm-limit.o
7935 fi
7936
7937
7938
7939 if test "$doug_lea_malloc" = "yes" ; then
7940 if test "$GNU_MALLOC" = yes ; then
7941 GNU_MALLOC_reason="
7942 (Using Doug Lea's new malloc from the GNU C Library.)"
7943 fi
7944
7945 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7946
7947
7948 ## Use mmap directly for allocating larger buffers.
7949 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7950 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7951 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7952 case "$opsys" in
7953 gnu*) REL_ALLOC=no ;;
7954 esac
7955 fi
7956
7957 if test x"${REL_ALLOC}" = x; then
7958 REL_ALLOC=${GNU_MALLOC}
7959 fi
7960
7961 use_mmap_for_buffers=no
7962 case "$opsys" in
7963 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7964 esac
7965
7966
7967
7968
7969 for ac_header in $ac_header_list
7970 do :
7971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7973 "
7974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7975 cat >>confdefs.h <<_ACEOF
7976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7977 _ACEOF
7978
7979 fi
7980
7981 done
7982
7983
7984
7985
7986
7987
7988
7989
7990 for ac_func in getpagesize
7991 do :
7992 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7993 if test "x$ac_cv_func_getpagesize" = xyes; then :
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_GETPAGESIZE 1
7996 _ACEOF
7997
7998 fi
7999 done
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8002 $as_echo_n "checking for working mmap... " >&6; }
8003 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 if test "$cross_compiling" = yes; then :
8007 ac_cv_func_mmap_fixed_mapped=no
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 /* malloc might have been renamed as rpl_malloc. */
8013 #undef malloc
8014
8015 /* Thanks to Mike Haertel and Jim Avera for this test.
8016 Here is a matrix of mmap possibilities:
8017 mmap private not fixed
8018 mmap private fixed at somewhere currently unmapped
8019 mmap private fixed at somewhere already mapped
8020 mmap shared not fixed
8021 mmap shared fixed at somewhere currently unmapped
8022 mmap shared fixed at somewhere already mapped
8023 For private mappings, we should verify that changes cannot be read()
8024 back from the file, nor mmap's back from the file at a different
8025 address. (There have been systems where private was not correctly
8026 implemented like the infamous i386 svr4.0, and systems where the
8027 VM page cache was not coherent with the file system buffer cache
8028 like early versions of FreeBSD and possibly contemporary NetBSD.)
8029 For shared mappings, we should conversely verify that changes get
8030 propagated back to all the places they're supposed to be.
8031
8032 Grep wants private fixed already mapped.
8033 The main things grep needs to know about mmap are:
8034 * does it exist and is it safe to write into the mmap'd area
8035 * how to use it (BSD variants) */
8036
8037 #include <fcntl.h>
8038 #include <sys/mman.h>
8039
8040 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8041 char *malloc ();
8042 #endif
8043
8044 /* This mess was copied from the GNU getpagesize.h. */
8045 #ifndef HAVE_GETPAGESIZE
8046 # ifdef _SC_PAGESIZE
8047 # define getpagesize() sysconf(_SC_PAGESIZE)
8048 # else /* no _SC_PAGESIZE */
8049 # ifdef HAVE_SYS_PARAM_H
8050 # include <sys/param.h>
8051 # ifdef EXEC_PAGESIZE
8052 # define getpagesize() EXEC_PAGESIZE
8053 # else /* no EXEC_PAGESIZE */
8054 # ifdef NBPG
8055 # define getpagesize() NBPG * CLSIZE
8056 # ifndef CLSIZE
8057 # define CLSIZE 1
8058 # endif /* no CLSIZE */
8059 # else /* no NBPG */
8060 # ifdef NBPC
8061 # define getpagesize() NBPC
8062 # else /* no NBPC */
8063 # ifdef PAGESIZE
8064 # define getpagesize() PAGESIZE
8065 # endif /* PAGESIZE */
8066 # endif /* no NBPC */
8067 # endif /* no NBPG */
8068 # endif /* no EXEC_PAGESIZE */
8069 # else /* no HAVE_SYS_PARAM_H */
8070 # define getpagesize() 8192 /* punt totally */
8071 # endif /* no HAVE_SYS_PARAM_H */
8072 # endif /* no _SC_PAGESIZE */
8073
8074 #endif /* no HAVE_GETPAGESIZE */
8075
8076 int
8077 main ()
8078 {
8079 char *data, *data2, *data3;
8080 const char *cdata2;
8081 int i, pagesize;
8082 int fd, fd2;
8083
8084 pagesize = getpagesize ();
8085
8086 /* First, make a file with some known garbage in it. */
8087 data = (char *) malloc (pagesize);
8088 if (!data)
8089 return 1;
8090 for (i = 0; i < pagesize; ++i)
8091 *(data + i) = rand ();
8092 umask (0);
8093 fd = creat ("conftest.mmap", 0600);
8094 if (fd < 0)
8095 return 2;
8096 if (write (fd, data, pagesize) != pagesize)
8097 return 3;
8098 close (fd);
8099
8100 /* Next, check that the tail of a page is zero-filled. File must have
8101 non-zero length, otherwise we risk SIGBUS for entire page. */
8102 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8103 if (fd2 < 0)
8104 return 4;
8105 cdata2 = "";
8106 if (write (fd2, cdata2, 1) != 1)
8107 return 5;
8108 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8109 if (data2 == MAP_FAILED)
8110 return 6;
8111 for (i = 0; i < pagesize; ++i)
8112 if (*(data2 + i))
8113 return 7;
8114 close (fd2);
8115 if (munmap (data2, pagesize))
8116 return 8;
8117
8118 /* Next, try to mmap the file at a fixed address which already has
8119 something else allocated at it. If we can, also make sure that
8120 we see the same garbage. */
8121 fd = open ("conftest.mmap", O_RDWR);
8122 if (fd < 0)
8123 return 9;
8124 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8125 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8126 return 10;
8127 for (i = 0; i < pagesize; ++i)
8128 if (*(data + i) != *(data2 + i))
8129 return 11;
8130
8131 /* Finally, make sure that changes to the mapped area do not
8132 percolate back to the file as seen by read(). (This is a bug on
8133 some variants of i386 svr4.0.) */
8134 for (i = 0; i < pagesize; ++i)
8135 *(data2 + i) = *(data2 + i) + 1;
8136 data3 = (char *) malloc (pagesize);
8137 if (!data3)
8138 return 12;
8139 if (read (fd, data3, pagesize) != pagesize)
8140 return 13;
8141 for (i = 0; i < pagesize; ++i)
8142 if (*(data + i) != *(data3 + i))
8143 return 14;
8144 close (fd);
8145 return 0;
8146 }
8147 _ACEOF
8148 if ac_fn_c_try_run "$LINENO"; then :
8149 ac_cv_func_mmap_fixed_mapped=yes
8150 else
8151 ac_cv_func_mmap_fixed_mapped=no
8152 fi
8153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8154 conftest.$ac_objext conftest.beam conftest.$ac_ext
8155 fi
8156
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8159 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8160 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8161
8162 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8163
8164 fi
8165 rm -f conftest.mmap conftest.txt
8166
8167 if test $use_mmap_for_buffers = yes; then
8168
8169 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8170
8171 REL_ALLOC=no
8172 fi
8173
8174 LIBS="$LIBS_SYSTEM $LIBS"
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8177 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8178 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 ac_check_lib_save_LIBS=$LIBS
8182 LIBS="-ldnet $LIBS"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185
8186 /* Override any GCC internal prototype to avoid an error.
8187 Use char because int might match the return type of a GCC
8188 builtin and then its argument prototype would still apply. */
8189 #ifdef __cplusplus
8190 extern "C"
8191 #endif
8192 char dnet_ntoa ();
8193 int
8194 main ()
8195 {
8196 return dnet_ntoa ();
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 ac_cv_lib_dnet_dnet_ntoa=yes
8203 else
8204 ac_cv_lib_dnet_dnet_ntoa=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8211 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8212 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_LIBDNET 1
8215 _ACEOF
8216
8217 LIBS="-ldnet $LIBS"
8218
8219 fi
8220
8221
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8223 $as_echo_n "checking for main in -lXbsd... " >&6; }
8224 if ${ac_cv_lib_Xbsd_main+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 ac_check_lib_save_LIBS=$LIBS
8228 LIBS="-lXbsd $LIBS"
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231
8232
8233 int
8234 main ()
8235 {
8236 return main ();
8237 ;
8238 return 0;
8239 }
8240 _ACEOF
8241 if ac_fn_c_try_link "$LINENO"; then :
8242 ac_cv_lib_Xbsd_main=yes
8243 else
8244 ac_cv_lib_Xbsd_main=no
8245 fi
8246 rm -f core conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
8248 LIBS=$ac_check_lib_save_LIBS
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8251 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8252 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
8253 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8254 fi
8255
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8258 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8259 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 ac_check_lib_save_LIBS=$LIBS
8263 LIBS="-lpthreads $LIBS"
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266
8267 /* Override any GCC internal prototype to avoid an error.
8268 Use char because int might match the return type of a GCC
8269 builtin and then its argument prototype would still apply. */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 char cma_open ();
8274 int
8275 main ()
8276 {
8277 return cma_open ();
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 ac_cv_lib_pthreads_cma_open=yes
8284 else
8285 ac_cv_lib_pthreads_cma_open=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8292 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8293 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
8294 cat >>confdefs.h <<_ACEOF
8295 #define HAVE_LIBPTHREADS 1
8296 _ACEOF
8297
8298 LIBS="-lpthreads $LIBS"
8299
8300 fi
8301
8302
8303 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8304 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8305 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8306 ## added to LIBS in configure would never contain the pthreads part,
8307 ## but the value used in Makefiles might. FIXME?
8308 ##
8309 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8310 ## be harmless on older versions of X where it happens to exist.
8311 test "$opsys" = "aix4-2" && \
8312 test $ac_cv_lib_pthreads_cma_open = yes && \
8313 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8314
8315
8316 case ${host_os} in
8317 aix*)
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8319 $as_echo_n "checking for -bbigtoc option... " >&6; }
8320 if ${gdb_cv_bigtoc+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323
8324 case $GCC in
8325 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8326 *) gdb_cv_bigtoc=-bbigtoc ;;
8327 esac
8328
8329 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332
8333 int
8334 main ()
8335 {
8336 int i;
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342
8343 else
8344 gdb_cv_bigtoc=
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348
8349 fi
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8351 $as_echo "$gdb_cv_bigtoc" >&6; }
8352 ;;
8353 esac
8354
8355 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8356 # used for the tests that follow. We set them back to REAL_CFLAGS and
8357 # REAL_CPPFLAGS later on.
8358
8359 REAL_CFLAGS="$CFLAGS"
8360 REAL_CPPFLAGS="$CPPFLAGS"
8361
8362 if test "${HAVE_X11}" = "yes"; then
8363 DEFS="$C_SWITCH_X_SITE $DEFS"
8364 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8365 LIBS="-lX11 $LIBS"
8366 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8367 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8368
8369 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8370 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8371 # but it's more convenient here to set LD_RUN_PATH
8372 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8373 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8374 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8375 export LD_RUN_PATH
8376 fi
8377
8378 if test "${opsys}" = "gnu-linux"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8380 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383
8384 int
8385 main ()
8386 {
8387 XOpenDisplay ("foo");
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_link "$LINENO"; then :
8393 xlinux_first_failure=no
8394 else
8395 xlinux_first_failure=yes
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8399 if test "${xlinux_first_failure}" = "yes"; then
8400 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8401 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8402 OLD_CPPFLAGS="$CPPFLAGS"
8403 OLD_LIBS="$LIBS"
8404 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8405 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8406 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8407 LIBS="$LIBS -b i486-linuxaout"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main ()
8413 {
8414 XOpenDisplay ("foo");
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_link "$LINENO"; then :
8420 xlinux_second_failure=no
8421 else
8422 xlinux_second_failure=yes
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426 if test "${xlinux_second_failure}" = "yes"; then
8427 # If we get the same failure with -b, there is no use adding -b.
8428 # So take it out. This plays safe.
8429 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8430 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8431 CPPFLAGS="$OLD_CPPFLAGS"
8432 LIBS="$OLD_LIBS"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437 $as_echo "yes" >&6; }
8438 fi
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443 fi
8444
8445 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8446 # header files included from there.
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8448 $as_echo_n "checking for Xkb... " >&6; }
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8451 #include <X11/Xlib.h>
8452 #include <X11/XKBlib.h>
8453 int
8454 main ()
8455 {
8456 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"; then :
8462 emacs_xkb=yes
8463 else
8464 emacs_xkb=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8469 $as_echo "$emacs_xkb" >&6; }
8470 if test $emacs_xkb = yes; then
8471
8472 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8473
8474 fi
8475
8476 for ac_func in XrmSetDatabase XScreenResourceString \
8477 XScreenNumberOfScreen XSetWMProtocols
8478 do :
8479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8484 _ACEOF
8485
8486 fi
8487 done
8488
8489 fi
8490
8491 if test "${window_system}" = "x11"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8493 $as_echo_n "checking X11 version 6... " >&6; }
8494 if ${emacs_cv_x11_version_6+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <X11/Xlib.h>
8500 int
8501 main ()
8502 {
8503 #if XlibSpecificationRelease < 6
8504 fail;
8505 #endif
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 emacs_cv_x11_version_6=yes
8513 else
8514 emacs_cv_x11_version_6=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 fi
8519
8520 if test $emacs_cv_x11_version_6 = yes; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8522 $as_echo "6 or newer" >&6; }
8523
8524 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8525
8526
8527 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8528
8529 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8530 ## XIM support.
8531 case "$opsys" in
8532 sol2-*) : ;;
8533 *)
8534 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8535
8536 ;;
8537 esac
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8540 $as_echo "before 6" >&6; }
8541 fi
8542 fi
8543
8544
8545 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8546 HAVE_RSVG=no
8547 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8548 if test "${with_rsvg}" != "no"; then
8549 RSVG_REQUIRED=2.11.0
8550 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8551
8552
8553 succeeded=no
8554
8555 # Extract the first word of "pkg-config", so it can be a program name with args.
8556 set dummy pkg-config; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $PKG_CONFIG in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8583 ;;
8584 esac
8585 fi
8586 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8587 if test -n "$PKG_CONFIG"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8589 $as_echo "$PKG_CONFIG" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595
8596
8597 if test "$PKG_CONFIG" = "no" ; then
8598 :
8599 else
8600 PKG_CONFIG_MIN_VERSION=0.9.0
8601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8603 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8604
8605 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8607 $as_echo "yes" >&6; }
8608 succeeded=yes
8609
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8611 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8612 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8614 $as_echo "$RSVG_CFLAGS" >&6; }
8615
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8617 $as_echo_n "checking RSVG_LIBS... " >&6; }
8618 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8620 $as_echo "$RSVG_LIBS" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 RSVG_CFLAGS=""
8625 RSVG_LIBS=""
8626 ## If we have a custom action on failure, don't print errors, but
8627 ## do set a variable so people can do so.
8628 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8629
8630 fi
8631
8632
8633
8634 else
8635 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8636 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8637 fi
8638 fi
8639
8640 if test $succeeded = yes; then
8641 HAVE_RSVG=yes
8642 else
8643 :
8644 fi
8645
8646
8647
8648
8649 if test $HAVE_RSVG = yes; then
8650
8651 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8652
8653 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8654 LIBS="$RSVG_LIBS $LIBS"
8655 fi
8656 fi
8657 fi
8658
8659 HAVE_IMAGEMAGICK=no
8660 if test "${HAVE_X11}" = "yes"; then
8661 if test "${with_imagemagick}" != "no"; then
8662 IMAGEMAGICK_MODULE="Wand"
8663
8664 succeeded=no
8665
8666 # Extract the first word of "pkg-config", so it can be a program name with args.
8667 set dummy pkg-config; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 case $PKG_CONFIG in
8674 [\\/]* | ?:[\\/]*)
8675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8676 ;;
8677 *)
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8694 ;;
8695 esac
8696 fi
8697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8698 if test -n "$PKG_CONFIG"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8700 $as_echo "$PKG_CONFIG" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707
8708 if test "$PKG_CONFIG" = "no" ; then
8709 :
8710 else
8711 PKG_CONFIG_MIN_VERSION=0.9.0
8712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8714 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8715
8716 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718 $as_echo "yes" >&6; }
8719 succeeded=yes
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8722 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8723 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8725 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8728 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8729 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8731 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 IMAGEMAGICK_CFLAGS=""
8736 IMAGEMAGICK_LIBS=""
8737 ## If we have a custom action on failure, don't print errors, but
8738 ## do set a variable so people can do so.
8739 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8740
8741 fi
8742
8743
8744
8745 else
8746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8748 fi
8749 fi
8750
8751 if test $succeeded = yes; then
8752 HAVE_IMAGEMAGICK=yes
8753 else
8754 :
8755 fi
8756
8757
8758
8759
8760 if test $HAVE_IMAGEMAGICK = yes; then
8761
8762 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8763
8764 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8765 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8766 for ac_func in MagickExportImagePixels
8767 do :
8768 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8769 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8772 _ACEOF
8773
8774 fi
8775 done
8776
8777 fi
8778 fi
8779 fi
8780
8781
8782 HAVE_GTK=no
8783 if test "${with_gtk3}" = "yes"; then
8784 GLIB_REQUIRED=2.6
8785 GTK_REQUIRED=2.90
8786 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8787
8788
8789 succeeded=no
8790
8791 # Extract the first word of "pkg-config", so it can be a program name with args.
8792 set dummy pkg-config; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 case $PKG_CONFIG in
8799 [\\/]* | ?:[\\/]*)
8800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8801 ;;
8802 *)
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814 done
8815 done
8816 IFS=$as_save_IFS
8817
8818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8819 ;;
8820 esac
8821 fi
8822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8823 if test -n "$PKG_CONFIG"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8825 $as_echo "$PKG_CONFIG" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831
8832
8833 if test "$PKG_CONFIG" = "no" ; then
8834 pkg_check_gtk=no
8835 else
8836 PKG_CONFIG_MIN_VERSION=0.9.0
8837 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8839 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8840
8841 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843 $as_echo "yes" >&6; }
8844 succeeded=yes
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8847 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8848 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8850 $as_echo "$GTK_CFLAGS" >&6; }
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8853 $as_echo_n "checking GTK_LIBS... " >&6; }
8854 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8856 $as_echo "$GTK_LIBS" >&6; }
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 GTK_CFLAGS=""
8861 GTK_LIBS=""
8862 ## If we have a custom action on failure, don't print errors, but
8863 ## do set a variable so people can do so.
8864 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8865
8866 fi
8867
8868
8869
8870 else
8871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8873 fi
8874 fi
8875
8876 if test $succeeded = yes; then
8877 pkg_check_gtk=yes
8878 else
8879 pkg_check_gtk=no
8880 fi
8881
8882 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8883 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8884 fi
8885 fi
8886
8887 if test "$pkg_check_gtk" != "yes"; then
8888 HAVE_GTK=no
8889 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8890 GLIB_REQUIRED=2.6
8891 GTK_REQUIRED=2.6
8892 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8893
8894
8895 succeeded=no
8896
8897 # Extract the first word of "pkg-config", so it can be a program name with args.
8898 set dummy pkg-config; ac_word=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 case $PKG_CONFIG in
8905 [\\/]* | ?:[\\/]*)
8906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8907 ;;
8908 *)
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8925 ;;
8926 esac
8927 fi
8928 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8929 if test -n "$PKG_CONFIG"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8931 $as_echo "$PKG_CONFIG" >&6; }
8932 else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8935 fi
8936
8937
8938
8939 if test "$PKG_CONFIG" = "no" ; then
8940 pkg_check_gtk=no
8941 else
8942 PKG_CONFIG_MIN_VERSION=0.9.0
8943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8945 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8946
8947 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8949 $as_echo "yes" >&6; }
8950 succeeded=yes
8951
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8953 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8954 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8956 $as_echo "$GTK_CFLAGS" >&6; }
8957
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8959 $as_echo_n "checking GTK_LIBS... " >&6; }
8960 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8962 $as_echo "$GTK_LIBS" >&6; }
8963 else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8966 GTK_CFLAGS=""
8967 GTK_LIBS=""
8968 ## If we have a custom action on failure, don't print errors, but
8969 ## do set a variable so people can do so.
8970 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8971
8972 fi
8973
8974
8975
8976 else
8977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8979 fi
8980 fi
8981
8982 if test $succeeded = yes; then
8983 pkg_check_gtk=yes
8984 else
8985 pkg_check_gtk=no
8986 fi
8987
8988 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8989 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8990 fi
8991 fi
8992 fi
8993
8994 GTK_OBJ=
8995 if test x"$pkg_check_gtk" = xyes; then
8996
8997
8998
8999 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9000 CFLAGS="$CFLAGS $GTK_CFLAGS"
9001 LIBS="$GTK_LIBS $LIBS"
9002 GTK_COMPILES=no
9003 for ac_func in gtk_main
9004 do :
9005 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9006 if test "x$ac_cv_func_gtk_main" = xyes; then :
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_GTK_MAIN 1
9009 _ACEOF
9010 GTK_COMPILES=yes
9011 fi
9012 done
9013
9014 if test "${GTK_COMPILES}" != "yes"; then
9015 if test "$USE_X_TOOLKIT" != "maybe"; then
9016 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9017 fi
9018 else
9019 HAVE_GTK=yes
9020
9021 $as_echo "#define USE_GTK 1" >>confdefs.h
9022
9023 GTK_OBJ=gtkutil.o
9024 USE_X_TOOLKIT=none
9025 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9026 :
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9029 closing open displays. This is no problem if you just use
9030 one display, but if you use more than one and close one of them
9031 Emacs may crash." >&5
9032 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9033 closing open displays. This is no problem if you just use
9034 one display, but if you use more than one and close one of them
9035 Emacs may crash." >&2;}
9036 sleep 3
9037 fi
9038 fi
9039
9040 fi
9041
9042
9043
9044 if test "${HAVE_GTK}" = "yes"; then
9045
9046 if test "$with_toolkit_scroll_bars" != no; then
9047 with_toolkit_scroll_bars=yes
9048 fi
9049
9050 HAVE_GTK_FILE_SELECTION=no
9051 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9052 #include <gtk/gtk.h>
9053 "
9054 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9055 HAVE_GTK_FILE_SELECTION=yes
9056 else
9057 HAVE_GTK_FILE_SELECTION=no
9058 fi
9059
9060 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9061 for ac_func in gtk_file_selection_new
9062 do :
9063 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9064 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_GTK_FILE_SELECTION_NEW 1
9067 _ACEOF
9068
9069 fi
9070 done
9071
9072 fi
9073
9074 HAVE_GTK_AND_PTHREAD=no
9075 for ac_header in pthread.h
9076 do :
9077 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9078 if test "x$ac_cv_header_pthread_h" = xyes; then :
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_PTHREAD_H 1
9081 _ACEOF
9082
9083 fi
9084
9085 done
9086
9087 if test "$ac_cv_header_pthread_h"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9089 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9090 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-lpthread $LIBS"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 char pthread_self ();
9105 int
9106 main ()
9107 {
9108 return pthread_self ();
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_pthread_pthread_self=yes
9115 else
9116 ac_cv_lib_pthread_pthread_self=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9123 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9124 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9125 HAVE_GTK_AND_PTHREAD=yes
9126 fi
9127
9128 fi
9129 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9130 case "${canonical}" in
9131 *-hpux*) ;;
9132 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9133 esac
9134
9135 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9136
9137 fi
9138
9139 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9140 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9141 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9142 gtk_orientable_set_orientation
9143 do :
9144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9147 cat >>confdefs.h <<_ACEOF
9148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9149 _ACEOF
9150
9151 fi
9152 done
9153
9154
9155 fi
9156
9157 HAVE_DBUS=no
9158 DBUS_OBJ=
9159 if test "${with_dbus}" = "yes"; then
9160
9161 succeeded=no
9162
9163 # Extract the first word of "pkg-config", so it can be a program name with args.
9164 set dummy pkg-config; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 case $PKG_CONFIG in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9173 ;;
9174 *)
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9182 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186 done
9187 done
9188 IFS=$as_save_IFS
9189
9190 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9191 ;;
9192 esac
9193 fi
9194 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9195 if test -n "$PKG_CONFIG"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9197 $as_echo "$PKG_CONFIG" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203
9204
9205 if test "$PKG_CONFIG" = "no" ; then
9206 HAVE_DBUS=no
9207 else
9208 PKG_CONFIG_MIN_VERSION=0.9.0
9209 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9211 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9212
9213 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9215 $as_echo "yes" >&6; }
9216 succeeded=yes
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9219 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9220 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9222 $as_echo "$DBUS_CFLAGS" >&6; }
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9225 $as_echo_n "checking DBUS_LIBS... " >&6; }
9226 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9228 $as_echo "$DBUS_LIBS" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 DBUS_CFLAGS=""
9233 DBUS_LIBS=""
9234 ## If we have a custom action on failure, don't print errors, but
9235 ## do set a variable so people can do so.
9236 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9237
9238 fi
9239
9240
9241
9242 else
9243 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9244 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9245 fi
9246 fi
9247
9248 if test $succeeded = yes; then
9249 HAVE_DBUS=yes
9250 else
9251 HAVE_DBUS=no
9252 fi
9253
9254 if test "$HAVE_DBUS" = yes; then
9255 LIBS="$LIBS $DBUS_LIBS"
9256
9257 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9258
9259 for ac_func in dbus_watch_get_unix_fd
9260 do :
9261 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9262 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9265 _ACEOF
9266
9267 fi
9268 done
9269
9270 DBUS_OBJ=dbusbind.o
9271 fi
9272 fi
9273
9274
9275 HAVE_GCONF=no
9276 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9277
9278 succeeded=no
9279
9280 # Extract the first word of "pkg-config", so it can be a program name with args.
9281 set dummy pkg-config; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $PKG_CONFIG in
9288 [\\/]* | ?:[\\/]*)
9289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9290 ;;
9291 *)
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9302 fi
9303 done
9304 done
9305 IFS=$as_save_IFS
9306
9307 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9308 ;;
9309 esac
9310 fi
9311 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9312 if test -n "$PKG_CONFIG"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9314 $as_echo "$PKG_CONFIG" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 fi
9319
9320
9321
9322 if test "$PKG_CONFIG" = "no" ; then
9323 HAVE_GCONF=no
9324 else
9325 PKG_CONFIG_MIN_VERSION=0.9.0
9326 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9328 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9329
9330 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9332 $as_echo "yes" >&6; }
9333 succeeded=yes
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9336 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9337 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9339 $as_echo "$GCONF_CFLAGS" >&6; }
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9342 $as_echo_n "checking GCONF_LIBS... " >&6; }
9343 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9345 $as_echo "$GCONF_LIBS" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 GCONF_CFLAGS=""
9350 GCONF_LIBS=""
9351 ## If we have a custom action on failure, don't print errors, but
9352 ## do set a variable so people can do so.
9353 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9354
9355 fi
9356
9357
9358
9359 else
9360 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9361 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9362 fi
9363 fi
9364
9365 if test $succeeded = yes; then
9366 HAVE_GCONF=yes
9367 else
9368 HAVE_GCONF=no
9369 fi
9370
9371 if test "$HAVE_GCONF" = yes; then
9372
9373 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9374
9375 fi
9376 fi
9377
9378 HAVE_LIBSELINUX=no
9379 LIBSELINUX_LIBS=
9380 if test "${with_selinux}" = "yes"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9382 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9383 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 ac_check_lib_save_LIBS=$LIBS
9387 LIBS="-lselinux $LIBS"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390
9391 /* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9394 #ifdef __cplusplus
9395 extern "C"
9396 #endif
9397 char lgetfilecon ();
9398 int
9399 main ()
9400 {
9401 return lgetfilecon ();
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 ac_cv_lib_selinux_lgetfilecon=yes
9408 else
9409 ac_cv_lib_selinux_lgetfilecon=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 LIBS=$ac_check_lib_save_LIBS
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9416 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9417 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
9418 HAVE_LIBSELINUX=yes
9419 else
9420 HAVE_LIBSELINUX=no
9421 fi
9422
9423 if test "$HAVE_LIBSELINUX" = yes; then
9424
9425 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9426
9427 LIBSELINUX_LIBS=-lselinux
9428 fi
9429 fi
9430
9431
9432 HAVE_GNUTLS=no
9433 if test "${with_gnutls}" = "yes" ; then
9434
9435 succeeded=no
9436
9437 # Extract the first word of "pkg-config", so it can be a program name with args.
9438 set dummy pkg-config; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $PKG_CONFIG in
9445 [\\/]* | ?:[\\/]*)
9446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9447 ;;
9448 *)
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9451 do
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9459 fi
9460 done
9461 done
9462 IFS=$as_save_IFS
9463
9464 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9465 ;;
9466 esac
9467 fi
9468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9469 if test -n "$PKG_CONFIG"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9471 $as_echo "$PKG_CONFIG" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9475 fi
9476
9477
9478
9479 if test "$PKG_CONFIG" = "no" ; then
9480 HAVE_GNUTLS=no
9481 else
9482 PKG_CONFIG_MIN_VERSION=0.9.0
9483 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9485 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9486
9487 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9489 $as_echo "yes" >&6; }
9490 succeeded=yes
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9493 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9494 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9496 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9499 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9500 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9502 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9506 LIBGNUTLS_CFLAGS=""
9507 LIBGNUTLS_LIBS=""
9508 ## If we have a custom action on failure, don't print errors, but
9509 ## do set a variable so people can do so.
9510 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9511
9512 fi
9513
9514
9515
9516 else
9517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9519 fi
9520 fi
9521
9522 if test $succeeded = yes; then
9523 HAVE_GNUTLS=yes
9524 else
9525 HAVE_GNUTLS=no
9526 fi
9527
9528 if test "${HAVE_GNUTLS}" = "yes"; then
9529
9530 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9531
9532 fi
9533 fi
9534
9535
9536
9537 HAVE_XAW3D=no
9538 LUCID_LIBW=
9539 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9540 if test "$with_xaw3d" != no; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9542 $as_echo_n "checking for xaw3d... " >&6; }
9543 if ${emacs_cv_xaw3d+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548
9549 #include <X11/Intrinsic.h>
9550 #include <X11/Xaw3d/Simple.h>
9551 int
9552 main ()
9553 {
9554
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"; then :
9560 emacs_cv_xaw3d=yes
9561 else
9562 emacs_cv_xaw3d=no
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 fi
9567
9568 else
9569 emacs_cv_xaw3d=no
9570 fi
9571 if test $emacs_cv_xaw3d = yes; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9573 $as_echo "yes; using Lucid toolkit" >&6; }
9574 USE_X_TOOLKIT=LUCID
9575 HAVE_XAW3D=yes
9576 LUCID_LIBW=-lXaw3d
9577
9578 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9579
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9584 $as_echo_n "checking for libXaw... " >&6; }
9585 if ${emacs_cv_xaw+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590
9591 #include <X11/Intrinsic.h>
9592 #include <X11/Xaw/Simple.h>
9593 int
9594 main ()
9595 {
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 emacs_cv_xaw=yes
9603 else
9604 emacs_cv_xaw=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 fi
9609
9610 if test $emacs_cv_xaw = yes; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9612 $as_echo "yes; using Lucid toolkit" >&6; }
9613 USE_X_TOOLKIT=LUCID
9614 LUCID_LIBW=-lXaw
9615 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9616 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9617 else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9619 $as_echo "no; do not use toolkit by default" >&6; }
9620 USE_X_TOOLKIT=none
9621 fi
9622 fi
9623 fi
9624
9625 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9626
9627 LIBXTR6=
9628 if test "${USE_X_TOOLKIT}" != "none"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9630 $as_echo_n "checking X11 toolkit version... " >&6; }
9631 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #include <X11/Intrinsic.h>
9637 int
9638 main ()
9639 {
9640 #if XtSpecificationRelease < 6
9641 fail;
9642 #endif
9643
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 if ac_fn_c_try_link "$LINENO"; then :
9649 emacs_cv_x11_toolkit_version_6=yes
9650 else
9651 emacs_cv_x11_toolkit_version_6=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 fi
9656
9657 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9658 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9660 $as_echo "6 or newer" >&6; }
9661
9662 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9663
9664 LIBXTR6="-lSM -lICE"
9665 case "$opsys" in
9666 ## Use libw.a along with X11R6 Xt.
9667 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9668 esac
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9671 $as_echo "before 6" >&6; }
9672 fi
9673
9674 OLDLIBS="$LIBS"
9675 if test x$HAVE_X11XTR6 = xyes; then
9676 LIBS="-lXt -lSM -lICE $LIBS"
9677 else
9678 LIBS="-lXt $LIBS"
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9681 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9682 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 ac_check_lib_save_LIBS=$LIBS
9686 LIBS="-lXmu $LIBS"
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char XmuConvertStandardSelection ();
9697 int
9698 main ()
9699 {
9700 return XmuConvertStandardSelection ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9707 else
9708 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_lib_save_LIBS
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9715 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9716 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
9717 cat >>confdefs.h <<_ACEOF
9718 #define HAVE_LIBXMU 1
9719 _ACEOF
9720
9721 LIBS="-lXmu $LIBS"
9722
9723 fi
9724
9725 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9726 fi
9727
9728
9729 LIBXMU=-lXmu
9730 case "$machine" in
9731 ## These machines don't supply Xmu.
9732 hpux* | aix4-2 )
9733 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9734 ;;
9735 esac
9736
9737
9738 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9739 if test "${HAVE_X11}" = "yes"; then
9740 if test "${USE_X_TOOLKIT}" != "none"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9742 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9743 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 ac_check_lib_save_LIBS=$LIBS
9747 LIBS="-lXext $LIBS"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char XShapeQueryExtension ();
9758 int
9759 main ()
9760 {
9761 return XShapeQueryExtension ();
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 ac_cv_lib_Xext_XShapeQueryExtension=yes
9768 else
9769 ac_cv_lib_Xext_XShapeQueryExtension=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9776 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9777 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9778 cat >>confdefs.h <<_ACEOF
9779 #define HAVE_LIBXEXT 1
9780 _ACEOF
9781
9782 LIBS="-lXext $LIBS"
9783
9784 fi
9785
9786 fi
9787 fi
9788
9789 LIBXP=
9790 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9792 $as_echo_n "checking for Motif version 2.1... " >&6; }
9793 if ${emacs_cv_motif_version_2_1+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <Xm/Xm.h>
9799 int
9800 main ()
9801 {
9802 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9803 int x = 5;
9804 #else
9805 Motif version prior to 2.1.
9806 #endif
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_compile "$LINENO"; then :
9812 emacs_cv_motif_version_2_1=yes
9813 else
9814 emacs_cv_motif_version_2_1=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9819 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9820 if test $emacs_cv_motif_version_2_1 = yes; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9822 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9823 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 ac_check_lib_save_LIBS=$LIBS
9827 LIBS="-lXp $LIBS"
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char XpCreateContext ();
9838 int
9839 main ()
9840 {
9841 return XpCreateContext ();
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 ac_cv_lib_Xp_XpCreateContext=yes
9848 else
9849 ac_cv_lib_Xp_XpCreateContext=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9856 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9857 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
9858 LIBXP=-lXp
9859 fi
9860
9861 else
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9863 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9864 if ${emacs_cv_lesstif+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 # We put this in CFLAGS temporarily to precede other -I options
9868 # that might be in CFLAGS temporarily.
9869 # We put this in CPPFLAGS where it precedes the other -I options.
9870 OLD_CPPFLAGS=$CPPFLAGS
9871 OLD_CFLAGS=$CFLAGS
9872 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9873 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9877 int
9878 main ()
9879 {
9880 int x = 5;
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886 emacs_cv_lesstif=yes
9887 else
9888 emacs_cv_lesstif=no
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9893 $as_echo "$emacs_cv_lesstif" >&6; }
9894 if test $emacs_cv_lesstif = yes; then
9895 # Make sure this -I option remains in CPPFLAGS after it is set
9896 # back to REAL_CPPFLAGS.
9897 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9898 # have those other -I options anyway. Ultimately, having this
9899 # directory ultimately in CPPFLAGS will be enough.
9900 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9901 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9902 else
9903 CFLAGS=$OLD_CFLAGS
9904 CPPFLAGS=$OLD_CPPFLAGS
9905 fi
9906 fi
9907 fi
9908
9909
9910 USE_TOOLKIT_SCROLL_BARS=no
9911 if test "${with_toolkit_scroll_bars}" != "no"; then
9912 if test "${USE_X_TOOLKIT}" != "none"; then
9913 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9914 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9915
9916 HAVE_XAW3D=no
9917 USE_TOOLKIT_SCROLL_BARS=yes
9918 elif test "${HAVE_XAW3D}" = "yes"; then
9919 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9920
9921 USE_TOOLKIT_SCROLL_BARS=yes
9922 fi
9923 elif test "${HAVE_GTK}" = "yes"; then
9924 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9925
9926 USE_TOOLKIT_SCROLL_BARS=yes
9927 elif test "${HAVE_NS}" = "yes"; then
9928 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9929
9930 USE_TOOLKIT_SCROLL_BARS=yes
9931 fi
9932 fi
9933
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936
9937 #include <X11/Xlib.h>
9938 #include <X11/Xresource.h>
9939 int
9940 main ()
9941 {
9942 XIMProc callback;
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 if ac_fn_c_try_compile "$LINENO"; then :
9948 HAVE_XIM=yes
9949
9950 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9951
9952 else
9953 HAVE_XIM=no
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956
9957
9958 if test "${with_xim}" != "no"; then
9959
9960 $as_echo "#define USE_XIM 1" >>confdefs.h
9961
9962 fi
9963
9964
9965 if test "${HAVE_XIM}" != "no"; then
9966 late_CFLAGS=$CFLAGS
9967 if test "$GCC" = yes; then
9968 CFLAGS="$CFLAGS --pedantic-errors"
9969 fi
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972
9973 #include <X11/Xlib.h>
9974 #include <X11/Xresource.h>
9975 int
9976 main ()
9977 {
9978 Display *display;
9979 XrmDatabase db;
9980 char *res_name;
9981 char *res_class;
9982 XIMProc callback;
9983 XPointer *client_data;
9984 #ifndef __GNUC__
9985 /* If we're not using GCC, it's probably not XFree86, and this is
9986 probably right, but we can't use something like --pedantic-errors. */
9987 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9988 char*, XIMProc, XPointer*);
9989 #endif
9990 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9991 client_data);
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"; then :
9997 emacs_cv_arg6_star=yes
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000 if test "$emacs_cv_arg6_star" = yes; then
10001 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10002
10003 else
10004 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10005
10006 fi
10007 CFLAGS=$late_CFLAGS
10008 fi
10009
10010 ### Start of font-backend (under any platform) section.
10011 # (nothing here yet -- this is a placeholder)
10012 ### End of font-backend (under any platform) section.
10013
10014 ### Start of font-backend (under X11) section.
10015 if test "${HAVE_X11}" = "yes"; then
10016
10017 succeeded=no
10018
10019 # Extract the first word of "pkg-config", so it can be a program name with args.
10020 set dummy pkg-config; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 case $PKG_CONFIG in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10029 ;;
10030 *)
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10047 ;;
10048 esac
10049 fi
10050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10051 if test -n "$PKG_CONFIG"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10053 $as_echo "$PKG_CONFIG" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 fi
10058
10059
10060
10061 if test "$PKG_CONFIG" = "no" ; then
10062 HAVE_FC=no
10063 else
10064 PKG_CONFIG_MIN_VERSION=0.9.0
10065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10067 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10068
10069 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10071 $as_echo "yes" >&6; }
10072 succeeded=yes
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10075 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10076 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10078 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10081 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10082 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10084 $as_echo "$FONTCONFIG_LIBS" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 FONTCONFIG_CFLAGS=""
10089 FONTCONFIG_LIBS=""
10090 ## If we have a custom action on failure, don't print errors, but
10091 ## do set a variable so people can do so.
10092 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10093
10094 fi
10095
10096
10097
10098 else
10099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10101 fi
10102 fi
10103
10104 if test $succeeded = yes; then
10105 HAVE_FC=yes
10106 else
10107 HAVE_FC=no
10108 fi
10109
10110
10111 ## Use -lXft if available, unless `--with-xft=no'.
10112 HAVE_XFT=maybe
10113 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10114 with_xft="no";
10115 fi
10116 if test "x${with_xft}" != "xno"; then
10117
10118
10119 succeeded=no
10120
10121 # Extract the first word of "pkg-config", so it can be a program name with args.
10122 set dummy pkg-config; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 case $PKG_CONFIG in
10129 [\\/]* | ?:[\\/]*)
10130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10131 ;;
10132 *)
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10135 do
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10143 fi
10144 done
10145 done
10146 IFS=$as_save_IFS
10147
10148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10149 ;;
10150 esac
10151 fi
10152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10153 if test -n "$PKG_CONFIG"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10155 $as_echo "$PKG_CONFIG" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160
10161
10162
10163 if test "$PKG_CONFIG" = "no" ; then
10164 HAVE_XFT=no
10165 else
10166 PKG_CONFIG_MIN_VERSION=0.9.0
10167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10169 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10170
10171 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10173 $as_echo "yes" >&6; }
10174 succeeded=yes
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10177 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10178 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10180 $as_echo "$XFT_CFLAGS" >&6; }
10181
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10183 $as_echo_n "checking XFT_LIBS... " >&6; }
10184 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10186 $as_echo "$XFT_LIBS" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 XFT_CFLAGS=""
10191 XFT_LIBS=""
10192 ## If we have a custom action on failure, don't print errors, but
10193 ## do set a variable so people can do so.
10194 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10195
10196 fi
10197
10198
10199
10200 else
10201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10203 fi
10204 fi
10205
10206 if test $succeeded = yes; then
10207 :
10208 else
10209 HAVE_XFT=no
10210 fi
10211
10212 ## Because xftfont.c uses XRenderQueryExtension, we also
10213 ## need to link to -lXrender.
10214 HAVE_XRENDER=no
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10216 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10217 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-lXrender $LIBS"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char XRenderQueryExtension ();
10232 int
10233 main ()
10234 {
10235 return XRenderQueryExtension ();
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10242 else
10243 ac_cv_lib_Xrender_XRenderQueryExtension=no
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10250 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10251 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
10252 HAVE_XRENDER=yes
10253 fi
10254
10255 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10256 OLD_CPPFLAGS="$CPPFLAGS"
10257 OLD_CFLAGS="$CFLAGS"
10258 OLD_LIBS="$LIBS"
10259 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10260 CFLAGS="$CFLAGS $XFT_CFLAGS"
10261 XFT_LIBS="-lXrender $XFT_LIBS"
10262 LIBS="$XFT_LIBS $LIBS"
10263 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10264 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10266 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10267 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lXft $XFT_LIBS $LIBS"
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char XftFontOpen ();
10282 int
10283 main ()
10284 {
10285 return XftFontOpen ();
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"; then :
10291 ac_cv_lib_Xft_XftFontOpen=yes
10292 else
10293 ac_cv_lib_Xft_XftFontOpen=no
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297 LIBS=$ac_check_lib_save_LIBS
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10300 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10301 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
10302 HAVE_XFT=yes
10303 fi
10304
10305 fi
10306
10307
10308
10309 if test "${HAVE_XFT}" = "yes"; then
10310
10311 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10312
10313
10314 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10315 else
10316 CPPFLAGS="$OLD_CPPFLAGS"
10317 CFLAGS="$OLD_CFLAGS"
10318 LIBS="$OLD_LIBS"
10319 fi # "${HAVE_XFT}" = "yes"
10320 fi # "$HAVE_XFT" != no
10321 fi # "x${with_xft}" != "xno"
10322
10323 if test "$HAVE_XFT" != "yes"; then
10324 HAVE_XFT=no
10325 fi
10326
10327
10328 HAVE_FREETYPE=no
10329 ## We used to allow building with FreeType and without Xft.
10330 ## However, the ftx font backend driver is not in good shape.
10331 if test "${HAVE_XFT}" = "yes"; then
10332 HAVE_FREETYPE=yes
10333 FONTCONFIG_CFLAGS=
10334 FONTCONFIG_LIBS=
10335 fi
10336
10337 HAVE_LIBOTF=no
10338 if test "${HAVE_FREETYPE}" = "yes"; then
10339
10340 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10341
10342 if test "${with_libotf}" != "no"; then
10343
10344 succeeded=no
10345
10346 # Extract the first word of "pkg-config", so it can be a program name with args.
10347 set dummy pkg-config; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 case $PKG_CONFIG in
10354 [\\/]* | ?:[\\/]*)
10355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10356 ;;
10357 *)
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369 done
10370 done
10371 IFS=$as_save_IFS
10372
10373 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10374 ;;
10375 esac
10376 fi
10377 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10378 if test -n "$PKG_CONFIG"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10380 $as_echo "$PKG_CONFIG" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387
10388 if test "$PKG_CONFIG" = "no" ; then
10389 HAVE_LIBOTF=no
10390 else
10391 PKG_CONFIG_MIN_VERSION=0.9.0
10392 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10394 $as_echo_n "checking for libotf... " >&6; }
10395
10396 if $PKG_CONFIG --exists "libotf" 2>&5; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; }
10399 succeeded=yes
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10402 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10403 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10405 $as_echo "$LIBOTF_CFLAGS" >&6; }
10406
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10408 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10409 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10411 $as_echo "$LIBOTF_LIBS" >&6; }
10412 else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 LIBOTF_CFLAGS=""
10416 LIBOTF_LIBS=""
10417 ## If we have a custom action on failure, don't print errors, but
10418 ## do set a variable so people can do so.
10419 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10420
10421 fi
10422
10423
10424
10425 else
10426 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10427 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10428 fi
10429 fi
10430
10431 if test $succeeded = yes; then
10432 HAVE_LIBOTF=yes
10433 else
10434 HAVE_LIBOTF=no
10435 fi
10436
10437 if test "$HAVE_LIBOTF" = "yes"; then
10438
10439 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10440
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10442 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10443 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 ac_check_lib_save_LIBS=$LIBS
10447 LIBS="-lotf $LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char OTF_get_variation_glyphs ();
10458 int
10459 main ()
10460 {
10461 return OTF_get_variation_glyphs ();
10462 ;
10463 return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10468 else
10469 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10476 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10477 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
10478 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10479 else
10480 HAVE_OTF_GET_VARIATION_GLYPHS=no
10481 fi
10482
10483 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10484
10485 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10486
10487 fi
10488 fi
10489 fi
10490 fi
10491
10492 HAVE_M17N_FLT=no
10493 if test "${HAVE_LIBOTF}" = yes; then
10494 if test "${with_m17n_flt}" != "no"; then
10495
10496 succeeded=no
10497
10498 # Extract the first word of "pkg-config", so it can be a program name with args.
10499 set dummy pkg-config; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 case $PKG_CONFIG in
10506 [\\/]* | ?:[\\/]*)
10507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10508 ;;
10509 *)
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521 done
10522 done
10523 IFS=$as_save_IFS
10524
10525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10526 ;;
10527 esac
10528 fi
10529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10530 if test -n "$PKG_CONFIG"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10532 $as_echo "$PKG_CONFIG" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537
10538
10539
10540 if test "$PKG_CONFIG" = "no" ; then
10541 HAVE_M17N_FLT=no
10542 else
10543 PKG_CONFIG_MIN_VERSION=0.9.0
10544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10546 $as_echo_n "checking for m17n-flt... " >&6; }
10547
10548 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550 $as_echo "yes" >&6; }
10551 succeeded=yes
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10554 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10555 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10557 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10560 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10561 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10563 $as_echo "$M17N_FLT_LIBS" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 M17N_FLT_CFLAGS=""
10568 M17N_FLT_LIBS=""
10569 ## If we have a custom action on failure, don't print errors, but
10570 ## do set a variable so people can do so.
10571 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10572
10573 fi
10574
10575
10576
10577 else
10578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10580 fi
10581 fi
10582
10583 if test $succeeded = yes; then
10584 HAVE_M17N_FLT=yes
10585 else
10586 HAVE_M17N_FLT=no
10587 fi
10588
10589 if test "$HAVE_M17N_FLT" = "yes"; then
10590
10591 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10592
10593 fi
10594 fi
10595 fi
10596 else
10597 HAVE_XFT=no
10598 HAVE_FREETYPE=no
10599 HAVE_LIBOTF=no
10600 HAVE_M17N_FLT=no
10601 fi
10602
10603 ### End of font-backend (under X11) section.
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 ### Use -lXpm if available, unless `--with-xpm=no'.
10615 HAVE_XPM=no
10616 LIBXPM=
10617 if test "${HAVE_X11}" = "yes"; then
10618 if test "${with_xpm}" != "no"; then
10619 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10620 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10622 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10623 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-lXpm -lX11 $LIBS"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char XpmReadFileToPixmap ();
10638 int
10639 main ()
10640 {
10641 return XpmReadFileToPixmap ();
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10648 else
10649 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653 LIBS=$ac_check_lib_save_LIBS
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10656 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10657 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
10658 HAVE_XPM=yes
10659 fi
10660
10661 fi
10662
10663
10664 if test "${HAVE_XPM}" = "yes"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10666 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include "X11/xpm.h"
10670 #ifndef XpmReturnAllocPixels
10671 no_return_alloc_pixels
10672 #endif
10673
10674 _ACEOF
10675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10676 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10677 HAVE_XPM=no
10678 else
10679 HAVE_XPM=yes
10680 fi
10681 rm -f conftest*
10682
10683
10684 if test "${HAVE_XPM}" = "yes"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; }
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691 fi
10692 fi
10693
10694 if test "${HAVE_XPM}" = "yes"; then
10695
10696 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10697
10698 LIBXPM=-lXpm
10699 fi
10700 fi
10701
10702
10703 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10704 HAVE_JPEG=no
10705 LIBJPEG=
10706 if test "${HAVE_X11}" = "yes"; then
10707 if test "${with_jpeg}" != "no"; then
10708 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10709 if test "x$ac_cv_header_jerror_h" = xyes; then :
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10711 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10712 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-ljpeg $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char jpeg_destroy_compress ();
10727 int
10728 main ()
10729 {
10730 return jpeg_destroy_compress ();
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10737 else
10738 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10745 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10746 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
10747 HAVE_JPEG=yes
10748 fi
10749
10750 fi
10751
10752
10753 fi
10754
10755 if test "${HAVE_JPEG}" = "yes"; then
10756 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10757
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include <jpeglib.h>
10761 version=JPEG_LIB_VERSION
10762
10763 _ACEOF
10764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10765 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10766 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10767
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10770 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10771 HAVE_JPEG=no
10772 fi
10773 rm -f conftest*
10774
10775 fi
10776 if test "${HAVE_JPEG}" = "yes"; then
10777 LIBJPEG=-ljpeg
10778 fi
10779 fi
10780
10781
10782 ### Use -lpng if available, unless `--with-png=no'.
10783 HAVE_PNG=no
10784 LIBPNG=
10785 if test "${HAVE_X11}" = "yes"; then
10786 if test "${with_png}" != "no"; then
10787 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10788 # in /usr/include/libpng.
10789 for ac_header in png.h libpng/png.h
10790 do :
10791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10796 _ACEOF
10797
10798 fi
10799
10800 done
10801
10802 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10804 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10805 if ${ac_cv_lib_png_png_get_channels+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-lpng -lz -lm $LIBS"
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 char png_get_channels ();
10820 int
10821 main ()
10822 {
10823 return png_get_channels ();
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"; then :
10829 ac_cv_lib_png_png_get_channels=yes
10830 else
10831 ac_cv_lib_png_png_get_channels=no
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10836 fi
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10838 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10839 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
10840 HAVE_PNG=yes
10841 fi
10842
10843 fi
10844 fi
10845
10846 if test "${HAVE_PNG}" = "yes"; then
10847
10848 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10849
10850 LIBPNG="-lpng -lz -lm"
10851 fi
10852 fi
10853
10854
10855 ### Use -ltiff if available, unless `--with-tiff=no'.
10856 HAVE_TIFF=no
10857 LIBTIFF=
10858 if test "${HAVE_X11}" = "yes"; then
10859 if test "${with_tiff}" != "no"; then
10860 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10861 if test "x$ac_cv_header_tiffio_h" = xyes; then :
10862 tifflibs="-lz -lm"
10863 # At least one tiff package requires the jpeg library.
10864 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10866 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10867 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-ltiff $tifflibs $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char TIFFGetVersion ();
10882 int
10883 main ()
10884 {
10885 return TIFFGetVersion ();
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_tiff_TIFFGetVersion=yes
10892 else
10893 ac_cv_lib_tiff_TIFFGetVersion=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10900 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10901 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
10902 HAVE_TIFF=yes
10903 fi
10904
10905 fi
10906
10907
10908 fi
10909
10910 if test "${HAVE_TIFF}" = "yes"; then
10911
10912 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10913
10914 LIBTIFF=-ltiff
10915 fi
10916 fi
10917
10918
10919 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10920 HAVE_GIF=no
10921 LIBGIF=
10922 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10923 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10924 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
10925 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10926 # Earlier versions can crash Emacs.
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10928 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10929 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-lgif $LIBS"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char EGifPutExtensionLast ();
10944 int
10945 main ()
10946 {
10947 return EGifPutExtensionLast ();
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_lib_gif_EGifPutExtensionLast=yes
10954 else
10955 ac_cv_lib_gif_EGifPutExtensionLast=no
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_lib_save_LIBS
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10962 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10963 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
10964 HAVE_GIF=yes
10965 else
10966 HAVE_GIF=maybe
10967 fi
10968
10969 fi
10970
10971
10972
10973 if test "$HAVE_GIF" = yes; then
10974 LIBGIF=-lgif
10975 elif test "$HAVE_GIF" = maybe; then
10976 # If gif_lib.h but no libgif, try libungif.
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10978 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10979 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lungif $LIBS"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char EGifPutExtensionLast ();
10994 int
10995 main ()
10996 {
10997 return EGifPutExtensionLast ();
10998 ;
10999 return 0;
11000 }
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11004 else
11005 ac_cv_lib_ungif_EGifPutExtensionLast=no
11006 fi
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11012 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11013 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
11014 HAVE_GIF=yes
11015 else
11016 HAVE_GIF=no
11017 fi
11018
11019 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11020 fi
11021
11022 if test "${HAVE_GIF}" = "yes"; then
11023
11024 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11025
11026 fi
11027 fi
11028
11029
11030 if test "${HAVE_X11}" = "yes"; then
11031 MISSING=""
11032 WITH_NO=""
11033 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11034 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11035 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11036 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11037 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11038 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11039 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11040 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11041 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11042 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11043
11044 if test "X${MISSING}" != X; then
11045 as_fn_error $? "The following required libraries were not found:
11046 $MISSING
11047 Maybe some development libraries/packages are missing?
11048 If you don't want to link with them give
11049 $WITH_NO
11050 as options to configure" "$LINENO" 5
11051 fi
11052 fi
11053
11054 ### Use -lgpm if available, unless `--with-gpm=no'.
11055 HAVE_GPM=no
11056 LIBGPM=
11057 MOUSE_SUPPORT=
11058 if test "${with_gpm}" != "no"; then
11059 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11060 if test "x$ac_cv_header_gpm_h" = xyes; then :
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11062 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11063 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lgpm $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char Gpm_Open ();
11078 int
11079 main ()
11080 {
11081 return Gpm_Open ();
11082 ;
11083 return 0;
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_gpm_Gpm_Open=yes
11088 else
11089 ac_cv_lib_gpm_Gpm_Open=no
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11096 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11097 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11098 HAVE_GPM=yes
11099 fi
11100
11101 fi
11102
11103
11104
11105 if test "${HAVE_GPM}" = "yes"; then
11106
11107 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11108
11109 LIBGPM=-lgpm
11110 ## May be reset below.
11111 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11112 fi
11113 fi
11114
11115
11116 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11117 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11118
11119 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11120
11121 fi
11122
11123
11124
11125 C_SWITCH_X_SYSTEM=
11126 ### Use NeXTstep API to implement GUI.
11127 if test "${HAVE_NS}" = "yes"; then
11128
11129 $as_echo "#define HAVE_NS 1" >>confdefs.h
11130
11131 if test "${NS_IMPL_COCOA}" = "yes"; then
11132
11133 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11134
11135 GNU_OBJC_CFLAGS=
11136 fi
11137 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11138
11139 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11140
11141 # See also .m.o rule in Makefile.in */
11142 # FIXME: are all these flags really needed? Document here why. */
11143 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11144 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11145 fi
11146 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11147
11148 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11149
11150 fi
11151 # We also have mouse menus.
11152 HAVE_MENUS=yes
11153 OTHER_FILES=ns-app
11154 fi
11155
11156
11157 ### Use session management (-lSM -lICE) if available
11158 HAVE_X_SM=no
11159 LIBXSM=
11160 if test "${HAVE_X11}" = "yes"; then
11161 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11162 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11164 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11165 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lSM -lICE $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char SmcOpenConnection ();
11180 int
11181 main ()
11182 {
11183 return SmcOpenConnection ();
11184 ;
11185 return 0;
11186 }
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_SM_SmcOpenConnection=yes
11190 else
11191 ac_cv_lib_SM_SmcOpenConnection=no
11192 fi
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11198 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11199 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
11200 HAVE_X_SM=yes
11201 fi
11202
11203 fi
11204
11205
11206
11207 if test "${HAVE_X_SM}" = "yes"; then
11208
11209 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11210
11211 LIBXSM="-lSM -lICE"
11212 case "$LIBS" in
11213 *-lSM*) ;;
11214 *) LIBS="$LIBXSM $LIBS" ;;
11215 esac
11216 fi
11217 fi
11218
11219
11220 ### Use libxml (-lxml2) if available
11221 if test "${with_xml2}" != "no"; then
11222 ### I'm not sure what the version number should be, so I just guessed.
11223
11224 succeeded=no
11225
11226 # Extract the first word of "pkg-config", so it can be a program name with args.
11227 set dummy pkg-config; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 case $PKG_CONFIG in
11234 [\\/]* | ?:[\\/]*)
11235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11236 ;;
11237 *)
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249 done
11250 done
11251 IFS=$as_save_IFS
11252
11253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11254 ;;
11255 esac
11256 fi
11257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11258 if test -n "$PKG_CONFIG"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11260 $as_echo "$PKG_CONFIG" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 fi
11265
11266
11267
11268 if test "$PKG_CONFIG" = "no" ; then
11269 HAVE_LIBXML2=no
11270 else
11271 PKG_CONFIG_MIN_VERSION=0.9.0
11272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11274 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11275
11276 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11278 $as_echo "yes" >&6; }
11279 succeeded=yes
11280
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11282 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11283 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11285 $as_echo "$LIBXML2_CFLAGS" >&6; }
11286
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11288 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11289 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11291 $as_echo "$LIBXML2_LIBS" >&6; }
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 LIBXML2_CFLAGS=""
11296 LIBXML2_LIBS=""
11297 ## If we have a custom action on failure, don't print errors, but
11298 ## do set a variable so people can do so.
11299 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11300
11301 fi
11302
11303
11304
11305 else
11306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11308 fi
11309 fi
11310
11311 if test $succeeded = yes; then
11312 HAVE_LIBXML2=yes
11313 else
11314 HAVE_LIBXML2=no
11315 fi
11316
11317 if test "${HAVE_LIBXML2}" = "yes"; then
11318 LIBS="$LIBXML2_LIBS $LIBS"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11320 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11321 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-lxml2 $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char htmlReadMemory ();
11336 int
11337 main ()
11338 {
11339 return htmlReadMemory ();
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_xml2_htmlReadMemory=yes
11346 else
11347 ac_cv_lib_xml2_htmlReadMemory=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11354 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11355 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
11356 HAVE_LIBXML2=yes
11357 else
11358 HAVE_LIBXML2=no
11359 fi
11360
11361 if test "${HAVE_LIBXML2}" = "yes"; then
11362
11363 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11364
11365 else
11366 LIBXML2_LIBS=""
11367 LIBXML2_CFLAGS=""
11368 fi
11369 fi
11370 fi
11371
11372
11373
11374 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11376 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11377 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #include <netdb.h>
11383 int
11384 main ()
11385 {
11386 return h_errno;
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 emacs_cv_netdb_declares_h_errno=yes
11393 else
11394 emacs_cv_netdb_declares_h_errno=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11400 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11401 if test $emacs_cv_netdb_declares_h_errno = yes; then
11402
11403 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11404
11405 fi
11406
11407 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11408 if test "x$ac_cv_type_size_t" = xyes; then :
11409
11410 else
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define size_t unsigned int
11414 _ACEOF
11415
11416 fi
11417
11418 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11419 # for constant arguments. Useless!
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11421 $as_echo_n "checking for working alloca.h... " >&6; }
11422 if ${ac_cv_working_alloca_h+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include <alloca.h>
11428 int
11429 main ()
11430 {
11431 char *p = (char *) alloca (2 * sizeof (int));
11432 if (p) return 0;
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438 ac_cv_working_alloca_h=yes
11439 else
11440 ac_cv_working_alloca_h=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11446 $as_echo "$ac_cv_working_alloca_h" >&6; }
11447 if test $ac_cv_working_alloca_h = yes; then
11448
11449 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11450
11451 fi
11452
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11454 $as_echo_n "checking for alloca... " >&6; }
11455 if ${ac_cv_func_alloca_works+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #ifdef __GNUC__
11461 # define alloca __builtin_alloca
11462 #else
11463 # ifdef _MSC_VER
11464 # include <malloc.h>
11465 # define alloca _alloca
11466 # else
11467 # ifdef HAVE_ALLOCA_H
11468 # include <alloca.h>
11469 # else
11470 # ifdef _AIX
11471 #pragma alloca
11472 # else
11473 # ifndef alloca /* predefined by HP cc +Olibcalls */
11474 void *alloca (size_t);
11475 # endif
11476 # endif
11477 # endif
11478 # endif
11479 #endif
11480
11481 int
11482 main ()
11483 {
11484 char *p = (char *) alloca (1);
11485 if (p) return 0;
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_func_alloca_works=yes
11492 else
11493 ac_cv_func_alloca_works=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11499 $as_echo "$ac_cv_func_alloca_works" >&6; }
11500
11501 if test $ac_cv_func_alloca_works = yes; then
11502
11503 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11504
11505 else
11506 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11507 # that cause trouble. Some versions do not even contain alloca or
11508 # contain a buggy version. If you still want to use their alloca,
11509 # use ar to extract alloca.o from them instead of compiling alloca.c.
11510
11511 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11512
11513 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11514
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11517 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11518 if ${ac_cv_os_cray+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523 #if defined CRAY && ! defined CRAY2
11524 webecray
11525 #else
11526 wenotbecray
11527 #endif
11528
11529 _ACEOF
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 $EGREP "webecray" >/dev/null 2>&1; then :
11532 ac_cv_os_cray=yes
11533 else
11534 ac_cv_os_cray=no
11535 fi
11536 rm -f conftest*
11537
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11540 $as_echo "$ac_cv_os_cray" >&6; }
11541 if test $ac_cv_os_cray = yes; then
11542 for ac_func in _getb67 GETB67 getb67; do
11543 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11544 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11545 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11546
11547 cat >>confdefs.h <<_ACEOF
11548 #define CRAY_STACKSEG_END $ac_func
11549 _ACEOF
11550
11551 break
11552 fi
11553
11554 done
11555 fi
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11558 $as_echo_n "checking stack direction for C alloca... " >&6; }
11559 if ${ac_cv_c_stack_direction+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 if test "$cross_compiling" = yes; then :
11563 ac_cv_c_stack_direction=0
11564 else
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567 $ac_includes_default
11568 int
11569 find_stack_direction ()
11570 {
11571 static char *addr = 0;
11572 auto char dummy;
11573 if (addr == 0)
11574 {
11575 addr = &dummy;
11576 return find_stack_direction ();
11577 }
11578 else
11579 return (&dummy > addr) ? 1 : -1;
11580 }
11581
11582 int
11583 main ()
11584 {
11585 return find_stack_direction () < 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_run "$LINENO"; then :
11589 ac_cv_c_stack_direction=1
11590 else
11591 ac_cv_c_stack_direction=-1
11592 fi
11593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11594 conftest.$ac_objext conftest.beam conftest.$ac_ext
11595 fi
11596
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11599 $as_echo "$ac_cv_c_stack_direction" >&6; }
11600 cat >>confdefs.h <<_ACEOF
11601 #define STACK_DIRECTION $ac_cv_c_stack_direction
11602 _ACEOF
11603
11604
11605 fi
11606
11607
11608 if test x"$ac_cv_func_alloca_works" != xyes; then
11609 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11610 fi
11611
11612 # fmod, logb, and frexp are found in -lm on most systems.
11613 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11615 $as_echo_n "checking for sqrt in -lm... " >&6; }
11616 if ${ac_cv_lib_m_sqrt+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-lm $LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char sqrt ();
11631 int
11632 main ()
11633 {
11634 return sqrt ();
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640 ac_cv_lib_m_sqrt=yes
11641 else
11642 ac_cv_lib_m_sqrt=no
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11649 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11650 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
11651 cat >>confdefs.h <<_ACEOF
11652 #define HAVE_LIBM 1
11653 _ACEOF
11654
11655 LIBS="-lm $LIBS"
11656
11657 fi
11658
11659
11660 # Check for mail-locking functions in a "mail" library. Probably this should
11661 # have the same check as for liblockfile below.
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11663 $as_echo_n "checking for maillock in -lmail... " >&6; }
11664 if ${ac_cv_lib_mail_maillock+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-lmail $LIBS"
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char maillock ();
11679 int
11680 main ()
11681 {
11682 return maillock ();
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_link "$LINENO"; then :
11688 ac_cv_lib_mail_maillock=yes
11689 else
11690 ac_cv_lib_mail_maillock=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11697 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11698 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
11699 have_mail=yes
11700 else
11701 have_mail=no
11702 fi
11703
11704 if test $have_mail = yes; then
11705 LIBS_MAIL=-lmail
11706 LIBS="$LIBS_MAIL $LIBS"
11707
11708 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11709
11710 else
11711 LIBS_MAIL=
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11714 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11715 if ${ac_cv_lib_lockfile_maillock+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-llockfile $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char maillock ();
11730 int
11731 main ()
11732 {
11733 return maillock ();
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 ac_cv_lib_lockfile_maillock=yes
11740 else
11741 ac_cv_lib_lockfile_maillock=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11748 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11749 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
11750 have_lockfile=yes
11751 else
11752 have_lockfile=no
11753 fi
11754
11755 if test $have_lockfile = yes; then
11756 LIBS_MAIL=-llockfile
11757 LIBS="$LIBS_MAIL $LIBS"
11758
11759 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11760
11761 else
11762 # If we have the shared liblockfile, assume we must use it for mail
11763 # locking (e.g. Debian). If we couldn't link against liblockfile
11764 # (no liblockfile.a installed), ensure that we don't need to.
11765 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11766 set dummy liblockfile.so; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if ${ac_cv_prog_liblockfile+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 if test -n "$liblockfile"; then
11773 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11774 else
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11777 for as_dir in $as_dummy
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783 ac_cv_prog_liblockfile="yes"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787 done
11788 done
11789 IFS=$as_save_IFS
11790
11791 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11792 fi
11793 fi
11794 liblockfile=$ac_cv_prog_liblockfile
11795 if test -n "$liblockfile"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11797 $as_echo "$liblockfile" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 fi
11802
11803
11804 if test $ac_cv_prog_liblockfile = yes; then
11805 as_fn_error $? "Shared liblockfile found but can't link against it.
11806 This probably means that movemail could lose mail.
11807 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11808 fi
11809 fi
11810 for ac_func in touchlock
11811 do :
11812 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11813 if test "x$ac_cv_func_touchlock" = xyes; then :
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_TOUCHLOCK 1
11816 _ACEOF
11817
11818 fi
11819 done
11820
11821 for ac_header in maillock.h
11822 do :
11823 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11824 if test "x$ac_cv_header_maillock_h" = xyes; then :
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_MAILLOCK_H 1
11827 _ACEOF
11828
11829 fi
11830
11831 done
11832
11833
11834
11835 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11836 ## interlock access to the mail spool. The alternative is a lock file named
11837 ## /usr/spool/mail/$USER.lock.
11838 mail_lock=no
11839 case "$opsys" in
11840 aix4-2) mail_lock="lockf" ;;
11841
11842 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11843
11844 ## On GNU/Linux systems, both methods are used by various mail programs.
11845 ## I assume most people are using newer mailers that have heard of flock.
11846 ## Change this if you need to.
11847 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11848 ## configure gets the right answers, and that means *NOT* using flock.
11849 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11850 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11851 ## Debian maintainer hasn't provided a clean fix for Emacs.
11852 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11853 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11854 ## correct logic. -- fx
11855 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11856 ## liblockfile is a Free Software replacement for libmail, used on
11857 ## Debian systems and elsewhere. -rfr.
11858 gnu-*)
11859 mail_lock="flock"
11860 if test $have_mail = yes || test $have_lockfile = yes; then
11861 test $ac_cv_header_maillock_h = yes && mail_lock=no
11862 fi
11863 ;;
11864 esac
11865
11866 BLESSMAIL_TARGET=
11867 case "$mail_lock" in
11868 flock)
11869 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11870 ;;
11871
11872 lockf)
11873 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11874 ;;
11875
11876 *) BLESSMAIL_TARGET="need-blessmail" ;;
11877 esac
11878
11879
11880
11881 for ac_func in gethostname getdomainname dup2 \
11882 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11883 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11884 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11885 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11886 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11887 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11888 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11889 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11890 cfmakeraw cfsetspeed isnan copysign __executable_start
11891 do :
11892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11895 cat >>confdefs.h <<_ACEOF
11896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 _ACEOF
11898
11899 fi
11900 done
11901
11902
11903 for ac_header in sys/un.h
11904 do :
11905 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11906 if test "x$ac_cv_header_sys_un_h" = xyes; then :
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_SYS_UN_H 1
11909 _ACEOF
11910
11911 fi
11912
11913 done
11914
11915
11916
11917
11918
11919
11920
11921 for ac_func in $ac_func_list
11922 do :
11923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11926 cat >>confdefs.h <<_ACEOF
11927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11929
11930 fi
11931 done
11932
11933
11934
11935
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11938 $as_echo_n "checking for working mktime... " >&6; }
11939 if ${ac_cv_func_working_mktime+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 if test "$cross_compiling" = yes; then :
11943 ac_cv_func_working_mktime=no
11944 else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 /* Test program from Paul Eggert and Tony Leneis. */
11948 #ifdef TIME_WITH_SYS_TIME
11949 # include <sys/time.h>
11950 # include <time.h>
11951 #else
11952 # ifdef HAVE_SYS_TIME_H
11953 # include <sys/time.h>
11954 # else
11955 # include <time.h>
11956 # endif
11957 #endif
11958
11959 #include <limits.h>
11960 #include <stdlib.h>
11961
11962 #ifdef HAVE_UNISTD_H
11963 # include <unistd.h>
11964 #endif
11965
11966 #ifndef HAVE_ALARM
11967 # define alarm(X) /* empty */
11968 #endif
11969
11970 /* Work around redefinition to rpl_putenv by other config tests. */
11971 #undef putenv
11972
11973 static time_t time_t_max;
11974 static time_t time_t_min;
11975
11976 /* Values we'll use to set the TZ environment variable. */
11977 static const char *tz_strings[] = {
11978 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11979 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11980 };
11981 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11982
11983 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11984 Based on a problem report from Andreas Jaeger. */
11985 static int
11986 spring_forward_gap ()
11987 {
11988 /* glibc (up to about 1998-10-07) failed this test. */
11989 struct tm tm;
11990
11991 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11992 instead of "TZ=America/Vancouver" in order to detect the bug even
11993 on systems that don't support the Olson extension, or don't have the
11994 full zoneinfo tables installed. */
11995 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11996
11997 tm.tm_year = 98;
11998 tm.tm_mon = 3;
11999 tm.tm_mday = 5;
12000 tm.tm_hour = 2;
12001 tm.tm_min = 0;
12002 tm.tm_sec = 0;
12003 tm.tm_isdst = -1;
12004 return mktime (&tm) != (time_t) -1;
12005 }
12006
12007 static int
12008 mktime_test1 (time_t now)
12009 {
12010 struct tm *lt;
12011 return ! (lt = localtime (&now)) || mktime (lt) == now;
12012 }
12013
12014 static int
12015 mktime_test (time_t now)
12016 {
12017 return (mktime_test1 (now)
12018 && mktime_test1 ((time_t) (time_t_max - now))
12019 && mktime_test1 ((time_t) (time_t_min + now)));
12020 }
12021
12022 static int
12023 irix_6_4_bug ()
12024 {
12025 /* Based on code from Ariel Faigon. */
12026 struct tm tm;
12027 tm.tm_year = 96;
12028 tm.tm_mon = 3;
12029 tm.tm_mday = 0;
12030 tm.tm_hour = 0;
12031 tm.tm_min = 0;
12032 tm.tm_sec = 0;
12033 tm.tm_isdst = -1;
12034 mktime (&tm);
12035 return tm.tm_mon == 2 && tm.tm_mday == 31;
12036 }
12037
12038 static int
12039 bigtime_test (int j)
12040 {
12041 struct tm tm;
12042 time_t now;
12043 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12044 now = mktime (&tm);
12045 if (now != (time_t) -1)
12046 {
12047 struct tm *lt = localtime (&now);
12048 if (! (lt
12049 && lt->tm_year == tm.tm_year
12050 && lt->tm_mon == tm.tm_mon
12051 && lt->tm_mday == tm.tm_mday
12052 && lt->tm_hour == tm.tm_hour
12053 && lt->tm_min == tm.tm_min
12054 && lt->tm_sec == tm.tm_sec
12055 && lt->tm_yday == tm.tm_yday
12056 && lt->tm_wday == tm.tm_wday
12057 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12058 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12059 return 0;
12060 }
12061 return 1;
12062 }
12063
12064 static int
12065 year_2050_test ()
12066 {
12067 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12068 ignoring leap seconds. */
12069 unsigned long int answer = 2527315200UL;
12070
12071 struct tm tm;
12072 time_t t;
12073 tm.tm_year = 2050 - 1900;
12074 tm.tm_mon = 2 - 1;
12075 tm.tm_mday = 1;
12076 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12077 tm.tm_isdst = -1;
12078
12079 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12080 instead of "TZ=America/Vancouver" in order to detect the bug even
12081 on systems that don't support the Olson extension, or don't have the
12082 full zoneinfo tables installed. */
12083 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12084
12085 t = mktime (&tm);
12086
12087 /* Check that the result is either a failure, or close enough
12088 to the correct answer that we can assume the discrepancy is
12089 due to leap seconds. */
12090 return (t == (time_t) -1
12091 || (0 < t && answer - 120 <= t && t <= answer + 120));
12092 }
12093
12094 int
12095 main ()
12096 {
12097 time_t t, delta;
12098 int i, j;
12099
12100 /* This test makes some buggy mktime implementations loop.
12101 Give up after 60 seconds; a mktime slower than that
12102 isn't worth using anyway. */
12103 alarm (60);
12104
12105 for (;;)
12106 {
12107 t = (time_t_max << 1) + 1;
12108 if (t <= time_t_max)
12109 break;
12110 time_t_max = t;
12111 }
12112 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12113
12114 delta = time_t_max / 997; /* a suitable prime number */
12115 for (i = 0; i < N_STRINGS; i++)
12116 {
12117 if (tz_strings[i])
12118 putenv ((char*) tz_strings[i]);
12119
12120 for (t = 0; t <= time_t_max - delta; t += delta)
12121 if (! mktime_test (t))
12122 return 1;
12123 if (! (mktime_test ((time_t) 1)
12124 && mktime_test ((time_t) (60 * 60))
12125 && mktime_test ((time_t) (60 * 60 * 24))))
12126 return 1;
12127
12128 for (j = 1; ; j <<= 1)
12129 if (! bigtime_test (j))
12130 return 1;
12131 else if (INT_MAX / 2 < j)
12132 break;
12133 if (! bigtime_test (INT_MAX))
12134 return 1;
12135 }
12136 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_run "$LINENO"; then :
12140 ac_cv_func_working_mktime=yes
12141 else
12142 ac_cv_func_working_mktime=no
12143 fi
12144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12145 conftest.$ac_objext conftest.beam conftest.$ac_ext
12146 fi
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12150 $as_echo "$ac_cv_func_working_mktime" >&6; }
12151 if test $ac_cv_func_working_mktime = no; then
12152 case " $LIBOBJS " in
12153 *" mktime.$ac_objext "* ) ;;
12154 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12155 ;;
12156 esac
12157
12158 fi
12159
12160 if test "$ac_cv_func_working_mktime" = no; then
12161
12162 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12163
12164 fi
12165
12166 ac_have_func=no # yes means we've found a way to get the load average.
12167
12168 # Make sure getloadavg.c is where it belongs, at configure-time.
12169 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12170 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12171
12172 ac_save_LIBS=$LIBS
12173
12174 # Check for getloadavg, but be sure not to touch the cache variable.
12175 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12176 if test "x$ac_cv_func_getloadavg" = xyes; then :
12177 exit 0
12178 else
12179 exit 1
12180 fi
12181 ) && ac_have_func=yes
12182
12183 # On HPUX9, an unprivileged user can get load averages through this function.
12184 for ac_func in pstat_getdynamic
12185 do :
12186 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12187 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_PSTAT_GETDYNAMIC 1
12190 _ACEOF
12191
12192 fi
12193 done
12194
12195
12196 # Solaris has libkstat which does not require root.
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12198 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12199 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-lkstat $LIBS"
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char kstat_open ();
12214 int
12215 main ()
12216 {
12217 return kstat_open ();
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_kstat_kstat_open=yes
12224 else
12225 ac_cv_lib_kstat_kstat_open=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12232 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12233 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_LIBKSTAT 1
12236 _ACEOF
12237
12238 LIBS="-lkstat $LIBS"
12239
12240 fi
12241
12242 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12243
12244 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12245 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12246 # to get the right answer into the cache.
12247 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12248 if test $ac_have_func = no; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12250 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12251 if ${ac_cv_lib_elf_elf_begin+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lelf $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char elf_begin ();
12266 int
12267 main ()
12268 {
12269 return elf_begin ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_elf_elf_begin=yes
12276 else
12277 ac_cv_lib_elf_elf_begin=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12284 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12285 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
12286 LIBS="-lelf $LIBS"
12287 fi
12288
12289 fi
12290 if test $ac_have_func = no; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12292 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12293 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-lkvm $LIBS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char kvm_open ();
12308 int
12309 main ()
12310 {
12311 return kvm_open ();
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"; then :
12317 ac_cv_lib_kvm_kvm_open=yes
12318 else
12319 ac_cv_lib_kvm_kvm_open=no
12320 fi
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12326 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12327 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
12328 LIBS="-lkvm $LIBS"
12329 fi
12330
12331 # Check for the 4.4BSD definition of getloadavg.
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12333 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12334 if ${ac_cv_lib_util_getloadavg+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 ac_check_lib_save_LIBS=$LIBS
12338 LIBS="-lutil $LIBS"
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char getloadavg ();
12349 int
12350 main ()
12351 {
12352 return getloadavg ();
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_lib_util_getloadavg=yes
12359 else
12360 ac_cv_lib_util_getloadavg=no
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12367 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12368 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
12369 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12370 fi
12371
12372 fi
12373
12374 if test $ac_have_func = no; then
12375 # There is a commonly available library for RS/6000 AIX.
12376 # Since it is not a standard part of AIX, it might be installed locally.
12377 ac_getloadavg_LIBS=$LIBS
12378 LIBS="-L/usr/local/lib $LIBS"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12380 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12381 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-lgetloadavg $LIBS"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char getloadavg ();
12396 int
12397 main ()
12398 {
12399 return getloadavg ();
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 ac_cv_lib_getloadavg_getloadavg=yes
12406 else
12407 ac_cv_lib_getloadavg_getloadavg=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12414 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12415 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
12416 LIBS="-lgetloadavg $LIBS"
12417 else
12418 LIBS=$ac_getloadavg_LIBS
12419 fi
12420
12421 fi
12422
12423 # Make sure it is really in the library, if we think we found it,
12424 # otherwise set up the replacement function.
12425 for ac_func in getloadavg
12426 do :
12427 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12428 if test "x$ac_cv_func_getloadavg" = xyes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_GETLOADAVG 1
12431 _ACEOF
12432
12433 else
12434 case " $LIBOBJS " in
12435 *" getloadavg.$ac_objext "* ) ;;
12436 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12437 ;;
12438 esac
12439
12440
12441 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12442
12443 # Figure out what our getloadavg.c needs.
12444 ac_have_func=no
12445 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
12447 ac_have_func=yes
12448
12449 $as_echo "#define DGUX 1" >>confdefs.h
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12452 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12453 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 ac_check_lib_save_LIBS=$LIBS
12457 LIBS="-ldgc $LIBS"
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char dg_sys_info ();
12468 int
12469 main ()
12470 {
12471 return dg_sys_info ();
12472 ;
12473 return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_link "$LINENO"; then :
12477 ac_cv_lib_dgc_dg_sys_info=yes
12478 else
12479 ac_cv_lib_dgc_dg_sys_info=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12486 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12487 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
12488 cat >>confdefs.h <<_ACEOF
12489 #define HAVE_LIBDGC 1
12490 _ACEOF
12491
12492 LIBS="-ldgc $LIBS"
12493
12494 fi
12495
12496 fi
12497
12498
12499
12500 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12501 if test "x$ac_cv_header_locale_h" = xyes; then :
12502
12503 fi
12504
12505
12506 for ac_func in setlocale
12507 do :
12508 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12509 if test "x$ac_cv_func_setlocale" = xyes; then :
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_SETLOCALE 1
12512 _ACEOF
12513
12514 fi
12515 done
12516
12517
12518 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12519 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12520 # Irix 4.0.5F has the header but not the library.
12521 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
12522 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
12523 ac_have_func=yes
12524
12525 $as_echo "#define SVR4 1" >>confdefs.h
12526
12527 fi
12528
12529 if test $ac_have_func = no; then
12530 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12531 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
12532 ac_have_func=yes
12533
12534 $as_echo "#define UMAX 1" >>confdefs.h
12535
12536
12537 $as_echo "#define UMAX4_3 1" >>confdefs.h
12538
12539 fi
12540
12541
12542 fi
12543
12544 if test $ac_have_func = no; then
12545 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12546 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
12547 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12548
12549 fi
12550
12551
12552 fi
12553
12554 if test $ac_have_func = no; then
12555 for ac_header in mach/mach.h
12556 do :
12557 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12558 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_MACH_MACH_H 1
12561 _ACEOF
12562
12563 fi
12564
12565 done
12566
12567 fi
12568
12569 for ac_header in nlist.h
12570 do :
12571 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12572 if test "x$ac_cv_header_nlist_h" = xyes; then :
12573 cat >>confdefs.h <<_ACEOF
12574 #define HAVE_NLIST_H 1
12575 _ACEOF
12576 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12577 "
12578 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
12579
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12582 _ACEOF
12583
12584
12585 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12586
12587 fi
12588
12589
12590 fi
12591
12592 done
12593
12594 fi
12595 done
12596
12597
12598 # Some definitions of getloadavg require that the program be installed setgid.
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12600 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12601 if ${ac_cv_func_getloadavg_setgid+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12607 #ifdef LDAV_PRIVILEGED
12608 Yowza Am I SETGID yet
12609 #endif
12610 _ACEOF
12611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12612 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12613 ac_cv_func_getloadavg_setgid=yes
12614 else
12615 ac_cv_func_getloadavg_setgid=no
12616 fi
12617 rm -f conftest*
12618
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12621 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12622 if test $ac_cv_func_getloadavg_setgid = yes; then
12623 NEED_SETGID=true
12624
12625 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12626
12627 else
12628 NEED_SETGID=false
12629 fi
12630
12631 if test $ac_cv_func_getloadavg_setgid = yes; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12633 $as_echo_n "checking group of /dev/kmem... " >&6; }
12634 if ${ac_cv_group_kmem+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12638 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12639 # If we got an error (system does not support symlinks), try without -L.
12640 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12641 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12642 | sed -ne 's/[ ][ ]*/ /g;
12643 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12644 / /s/.* //;p;'`
12645
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12648 $as_echo "$ac_cv_group_kmem" >&6; }
12649 KMEM_GROUP=$ac_cv_group_kmem
12650 fi
12651 if test "x$ac_save_LIBS" = x; then
12652 GETLOADAVG_LIBS=$LIBS
12653 else
12654 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12655 fi
12656 LIBS=$ac_save_LIBS
12657
12658
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12661 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12662 if ${ac_cv_sys_largefile_source+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 while :; do
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668 #include <sys/types.h> /* for off_t */
12669 #include <stdio.h>
12670 int
12671 main ()
12672 {
12673 int (*fp) (FILE *, off_t, int) = fseeko;
12674 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 ac_cv_sys_largefile_source=no; break
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #define _LARGEFILE_SOURCE 1
12687 #include <sys/types.h> /* for off_t */
12688 #include <stdio.h>
12689 int
12690 main ()
12691 {
12692 int (*fp) (FILE *, off_t, int) = fseeko;
12693 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12694 ;
12695 return 0;
12696 }
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_sys_largefile_source=1; break
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 ac_cv_sys_largefile_source=unknown
12704 break
12705 done
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12708 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12709 case $ac_cv_sys_largefile_source in #(
12710 no | unknown) ;;
12711 *)
12712 cat >>confdefs.h <<_ACEOF
12713 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12714 _ACEOF
12715 ;;
12716 esac
12717 rm -rf conftest*
12718
12719 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12720 # in glibc 2.1.3, but that breaks too many other things.
12721 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12722 if test $ac_cv_sys_largefile_source != unknown; then
12723
12724 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12725
12726 fi
12727
12728
12729 # Configure getopt.
12730 # getopt.m4 serial 10
12731
12732 # The getopt module assume you want GNU getopt, with getopt_long etc,
12733 # rather than vanilla POSIX getopt. This means your your code should
12734 # always include <getopt.h> for the getopt prototypes.
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746 # Prerequisites of lib/getopt*.
12747
12748
12749
12750
12751 GETOPT_H=
12752 for ac_header in getopt.h
12753 do :
12754 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12755 if test "x$ac_cv_header_getopt_h" = xyes; then :
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_GETOPT_H 1
12758 _ACEOF
12759
12760 else
12761 GETOPT_H=getopt.h
12762 fi
12763
12764 done
12765
12766 if test -z "$GETOPT_H"; then
12767 for ac_func in getopt_long_only
12768 do :
12769 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12770 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
12771 cat >>confdefs.h <<_ACEOF
12772 #define HAVE_GETOPT_LONG_ONLY 1
12773 _ACEOF
12774
12775 else
12776 GETOPT_H=getopt.h
12777 fi
12778 done
12779
12780 fi
12781
12782 if test -z "$GETOPT_H"; then
12783 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12784 "
12785 if test "x$ac_cv_have_decl_optreset" = xyes; then :
12786 GETOPT_H=getopt.h
12787 fi
12788
12789 fi
12790
12791 if test -z "$GETOPT_H"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12793 $as_echo_n "checking for working GNU getopt function... " >&6; }
12794 if ${gl_cv_func_gnu_getopt+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test "$cross_compiling" = yes; then :
12798 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12799 "
12800 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
12801 gl_cv_func_gnu_getopt=no
12802 else
12803 gl_cv_func_gnu_getopt=yes
12804 fi
12805
12806 else
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809 #include <getopt.h>
12810 int
12811 main ()
12812 {
12813
12814 char *myargv[3];
12815 myargv[0] = "conftest";
12816 myargv[1] = "-+";
12817 myargv[2] = 0;
12818 return getopt (2, myargv, "+a") != '?';
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_run "$LINENO"; then :
12825 gl_cv_func_gnu_getopt=yes
12826 else
12827 gl_cv_func_gnu_getopt=no
12828 fi
12829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12830 conftest.$ac_objext conftest.beam conftest.$ac_ext
12831 fi
12832
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12835 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12836 if test "$gl_cv_func_gnu_getopt" = "no"; then
12837 GETOPT_H=getopt.h
12838 fi
12839 fi
12840
12841
12842
12843 if test -n "$GETOPT_H"; then :
12844
12845
12846 GETOPT_H=getopt.h
12847
12848 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12849
12850
12851
12852 :
12853 GETOPTOBJS='getopt.o getopt1.o'
12854
12855 fi
12856
12857
12858
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12860 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12861 if ${ac_cv_func_getpgrp_void+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 # Use it with a single arg.
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 $ac_includes_default
12868 int
12869 main ()
12870 {
12871 getpgrp (0);
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12877 ac_cv_func_getpgrp_void=no
12878 else
12879 ac_cv_func_getpgrp_void=yes
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12885 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12886 if test $ac_cv_func_getpgrp_void = yes; then
12887
12888 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12889
12890 fi
12891
12892
12893 for ac_func in strftime
12894 do :
12895 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12896 if test "x$ac_cv_func_strftime" = xyes; then :
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_STRFTIME 1
12899 _ACEOF
12900
12901 else
12902 # strftime is in -lintl on SCO UNIX.
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12904 $as_echo_n "checking for strftime in -lintl... " >&6; }
12905 if ${ac_cv_lib_intl_strftime+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 ac_check_lib_save_LIBS=$LIBS
12909 LIBS="-lintl $LIBS"
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912
12913 /* Override any GCC internal prototype to avoid an error.
12914 Use char because int might match the return type of a GCC
12915 builtin and then its argument prototype would still apply. */
12916 #ifdef __cplusplus
12917 extern "C"
12918 #endif
12919 char strftime ();
12920 int
12921 main ()
12922 {
12923 return strftime ();
12924 ;
12925 return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"; then :
12929 ac_cv_lib_intl_strftime=yes
12930 else
12931 ac_cv_lib_intl_strftime=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12936 fi
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12938 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12939 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12940 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12941
12942 LIBS="-lintl $LIBS"
12943 fi
12944
12945 fi
12946 done
12947
12948
12949 # UNIX98 PTYs.
12950 for ac_func in grantpt
12951 do :
12952 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12953 if test "x$ac_cv_func_grantpt" = xyes; then :
12954 cat >>confdefs.h <<_ACEOF
12955 #define HAVE_GRANTPT 1
12956 _ACEOF
12957
12958 fi
12959 done
12960
12961
12962 # PTY-related GNU extensions.
12963 for ac_func in getpt
12964 do :
12965 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12966 if test "x$ac_cv_func_getpt" = xyes; then :
12967 cat >>confdefs.h <<_ACEOF
12968 #define HAVE_GETPT 1
12969 _ACEOF
12970
12971 fi
12972 done
12973
12974
12975 # Check this now, so that we will NOT find the above functions in ncurses.
12976 # That is because we have not set up to link ncurses in lib-src.
12977 # It's better to believe a function is not available
12978 # than to expect to find it in ncurses.
12979 # Also we need tputs and friends to be able to build at all.
12980 have_tputs_et_al=true
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12982 $as_echo_n "checking for library containing tputs... " >&6; }
12983 if ${ac_cv_search_tputs+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 ac_func_search_save_LIBS=$LIBS
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char tputs ();
12997 int
12998 main ()
12999 {
13000 return tputs ();
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 for ac_lib in '' ncurses terminfo termcap; do
13006 if test -z "$ac_lib"; then
13007 ac_res="none required"
13008 else
13009 ac_res=-l$ac_lib
13010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13011 fi
13012 if ac_fn_c_try_link "$LINENO"; then :
13013 ac_cv_search_tputs=$ac_res
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext
13017 if ${ac_cv_search_tputs+:} false; then :
13018 break
13019 fi
13020 done
13021 if ${ac_cv_search_tputs+:} false; then :
13022
13023 else
13024 ac_cv_search_tputs=no
13025 fi
13026 rm conftest.$ac_ext
13027 LIBS=$ac_func_search_save_LIBS
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13030 $as_echo "$ac_cv_search_tputs" >&6; }
13031 ac_res=$ac_cv_search_tputs
13032 if test "$ac_res" != no; then :
13033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034
13035 else
13036 have_tputs_et_al=false
13037 fi
13038
13039 if test "$have_tputs_et_al" != true; then
13040 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13041 Maybe some development libraries/packages are missing? Try installing
13042 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13043 fi
13044 # Must define this when any termcap library is found.
13045
13046 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13047
13048 ## FIXME This was the cpp logic, but I am not sure it is right.
13049 ## The above test has not necessarily found libncurses.
13050 HAVE_LIBNCURSES=yes
13051
13052 ## Use terminfo instead of termcap?
13053 ## Note only system files NOT using terminfo are:
13054 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13055 ## darwin|gnu without ncurses.
13056 TERMINFO=no
13057 LIBS_TERMCAP=
13058 case "$opsys" in
13059 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13060 ## hpux10-20: Use the system provided termcap(3) library.
13061 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13062 ## is necessary. Otherwise Emacs dumps core when run -nw.
13063 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13064
13065 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13066 ## The ncurses library has been moved out of the System framework in
13067 ## Mac OS X 10.2. So if configure detects it, set the command-line
13068 ## option to use it.
13069 darwin|gnu*)
13070 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13071 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13072 TERMINFO=yes
13073 LIBS_TERMCAP="-lncurses"
13074 fi
13075 ;;
13076
13077 freebsd)
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13079 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13080 if ${emacs_cv_freebsd_terminfo+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 #include <osreldate.h>
13086 int
13087 main ()
13088 {
13089 #if __FreeBSD_version < 400000
13090 fail;
13091 #endif
13092
13093 ;
13094 return 0;
13095 }
13096 _ACEOF
13097 if ac_fn_c_try_link "$LINENO"; then :
13098 emacs_cv_freebsd_terminfo=yes
13099 else
13100 emacs_cv_freebsd_terminfo=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 fi
13105
13106
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13108 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13109
13110 if test $emacs_cv_freebsd_terminfo = yes; then
13111 TERMINFO=yes
13112 LIBS_TERMCAP="-lncurses"
13113 else
13114 LIBS_TERMCAP="-ltermcap"
13115 fi
13116 ;;
13117
13118 netbsd)
13119 if test $ac_cv_search_tputs = -lterminfo; then
13120 TERMINFO=yes
13121 LIBS_TERMCAP="-lterminfo"
13122 else
13123 LIBS_TERMCAP="-ltermcap"
13124 fi
13125 ;;
13126
13127 esac
13128
13129 case "$opsys" in
13130 ## hpux: Make sure we get select from libc rather than from libcurses
13131 ## because libcurses on HPUX 10.10 has a broken version of select.
13132 ## We used to use -lc -lcurses, but this may be cleaner.
13133 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13134
13135 openbsd) LIBS_TERMCAP="-lncurses" ;;
13136
13137 ## Must use system termcap, if we use any termcap. It does special things.
13138 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13139 esac
13140
13141 TERMCAP_OBJ=tparam.o
13142 if test $TERMINFO = yes; then
13143
13144 $as_echo "#define TERMINFO 1" >>confdefs.h
13145
13146
13147 ## Default used to be -ltermcap. Add a case above if need something else.
13148 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13149
13150 TERMCAP_OBJ=terminfo.o
13151 fi
13152
13153
13154
13155
13156 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13157 resolv=no
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13160 #include <netinet/in.h>
13161 #include <arpa/nameser.h>
13162 #include <resolv.h>
13163 int
13164 main ()
13165 {
13166 return res_init();
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_link "$LINENO"; then :
13172 have_res_init=yes
13173 else
13174 have_res_init=no
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 if test "$have_res_init" = no; then
13179 OLIBS="$LIBS"
13180 LIBS="$LIBS -lresolv"
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13182 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <netinet/in.h>
13186 #include <arpa/nameser.h>
13187 #include <resolv.h>
13188 int
13189 main ()
13190 {
13191 return res_init();
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 have_res_init=yes
13198 else
13199 have_res_init=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13204 $as_echo "$have_res_init" >&6; }
13205 if test "$have_res_init" = yes ; then
13206 resolv=yes
13207 fi
13208 LIBS="$OLIBS"
13209 fi
13210
13211 if test "$have_res_init" = yes; then
13212
13213 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13214
13215 fi
13216
13217 # Do we need the Hesiod library to provide the support routines?
13218 LIBHESIOD=
13219 if test "$with_hesiod" != no ; then
13220 # Don't set $LIBS here -- see comments above. FIXME which comments?
13221 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13222 if test "x$ac_cv_func_res_send" = xyes; then :
13223
13224 else
13225 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13226 if test "x$ac_cv_func___res_send" = xyes; then :
13227
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13230 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13231 if ${ac_cv_lib_resolv_res_send+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lresolv $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char res_send ();
13246 int
13247 main ()
13248 {
13249 return res_send ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_resolv_res_send=yes
13256 else
13257 ac_cv_lib_resolv_res_send=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13264 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13265 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
13266 resolv=yes
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13269 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13270 if ${ac_cv_lib_resolv___res_send+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-lresolv $LIBS"
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char __res_send ();
13285 int
13286 main ()
13287 {
13288 return __res_send ();
13289 ;
13290 return 0;
13291 }
13292 _ACEOF
13293 if ac_fn_c_try_link "$LINENO"; then :
13294 ac_cv_lib_resolv___res_send=yes
13295 else
13296 ac_cv_lib_resolv___res_send=no
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13303 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13304 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
13305 resolv=yes
13306 fi
13307
13308 fi
13309
13310 fi
13311
13312 fi
13313
13314 if test "$resolv" = yes ; then
13315 RESOLVLIB=-lresolv
13316 else
13317 RESOLVLIB=
13318 fi
13319 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13320 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
13321
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13324 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13325 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_check_lib_save_LIBS=$LIBS
13329 LIBS="-lhesiod $RESOLVLIB $LIBS"
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332
13333 /* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13336 #ifdef __cplusplus
13337 extern "C"
13338 #endif
13339 char hes_getmailhost ();
13340 int
13341 main ()
13342 {
13343 return hes_getmailhost ();
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 ac_cv_lib_hesiod_hes_getmailhost=yes
13350 else
13351 ac_cv_lib_hesiod_hes_getmailhost=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13358 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13359 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
13360 hesiod=yes
13361 else
13362 :
13363 fi
13364
13365 fi
13366
13367
13368 if test x"$hesiod" = xyes; then
13369
13370 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13371
13372 LIBHESIOD=-lhesiod
13373 fi
13374 fi
13375
13376
13377 # Do we need libresolv (due to res_init or Hesiod)?
13378 if test "$resolv" = yes ; then
13379
13380 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13381
13382 LIBRESOLV=-lresolv
13383 else
13384 LIBRESOLV=
13385 fi
13386
13387
13388 # These tell us which Kerberos-related libraries to use.
13389 COM_ERRLIB=
13390 CRYPTOLIB=
13391 KRB5LIB=
13392 DESLIB=
13393 KRB4LIB=
13394
13395 if test "${with_kerberos}" != no; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13397 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13398 if ${ac_cv_lib_com_err_com_err+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 ac_check_lib_save_LIBS=$LIBS
13402 LIBS="-lcom_err $LIBS"
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405
13406 /* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 char com_err ();
13413 int
13414 main ()
13415 {
13416 return com_err ();
13417 ;
13418 return 0;
13419 }
13420 _ACEOF
13421 if ac_fn_c_try_link "$LINENO"; then :
13422 ac_cv_lib_com_err_com_err=yes
13423 else
13424 ac_cv_lib_com_err_com_err=no
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13428 LIBS=$ac_check_lib_save_LIBS
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13431 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13432 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13433 have_com_err=yes
13434 else
13435 have_com_err=no
13436 fi
13437
13438 if test $have_com_err = yes; then
13439 COM_ERRLIB=-lcom_err
13440 LIBS="$COM_ERRLIB $LIBS"
13441
13442 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13443
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13446 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13447 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-lcrypto $LIBS"
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13458 #ifdef __cplusplus
13459 extern "C"
13460 #endif
13461 char mit_des_cbc_encrypt ();
13462 int
13463 main ()
13464 {
13465 return mit_des_cbc_encrypt ();
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 if ac_fn_c_try_link "$LINENO"; then :
13471 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13472 else
13473 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13474 fi
13475 rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 LIBS=$ac_check_lib_save_LIBS
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13480 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13481 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
13482 have_crypto=yes
13483 else
13484 have_crypto=no
13485 fi
13486
13487 if test $have_crypto = yes; then
13488 CRYPTOLIB=-lcrypto
13489 LIBS="$CRYPTOLIB $LIBS"
13490
13491 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13492
13493 fi
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13495 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13496 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 ac_check_lib_save_LIBS=$LIBS
13500 LIBS="-lk5crypto $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503
13504 /* Override any GCC internal prototype to avoid an error.
13505 Use char because int might match the return type of a GCC
13506 builtin and then its argument prototype would still apply. */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 char mit_des_cbc_encrypt ();
13511 int
13512 main ()
13513 {
13514 return mit_des_cbc_encrypt ();
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13521 else
13522 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 LIBS=$ac_check_lib_save_LIBS
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13529 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13530 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
13531 have_k5crypto=yes
13532 else
13533 have_k5crypto=no
13534 fi
13535
13536 if test $have_k5crypto = yes; then
13537 CRYPTOLIB=-lk5crypto
13538 LIBS="$CRYPTOLIB $LIBS"
13539
13540 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13541
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13544 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13545 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 ac_check_lib_save_LIBS=$LIBS
13549 LIBS="-lkrb5 $LIBS"
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char krb5_init_context ();
13560 int
13561 main ()
13562 {
13563 return krb5_init_context ();
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 ac_cv_lib_krb5_krb5_init_context=yes
13570 else
13571 ac_cv_lib_krb5_krb5_init_context=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 LIBS=$ac_check_lib_save_LIBS
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13578 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13579 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13580 have_krb5=yes
13581 else
13582 have_krb5=no
13583 fi
13584
13585 if test $have_krb5=yes; then
13586 KRB5LIB=-lkrb5
13587 LIBS="$KRB5LIB $LIBS"
13588
13589 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13590
13591 fi
13592 if test "${with_kerberos5}" = no; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13594 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13595 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 ac_check_lib_save_LIBS=$LIBS
13599 LIBS="-ldes425 $LIBS"
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602
13603 /* Override any GCC internal prototype to avoid an error.
13604 Use char because int might match the return type of a GCC
13605 builtin and then its argument prototype would still apply. */
13606 #ifdef __cplusplus
13607 extern "C"
13608 #endif
13609 char des_cbc_encrypt ();
13610 int
13611 main ()
13612 {
13613 return des_cbc_encrypt ();
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"; then :
13619 ac_cv_lib_des425_des_cbc_encrypt=yes
13620 else
13621 ac_cv_lib_des425_des_cbc_encrypt=no
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 LIBS=$ac_check_lib_save_LIBS
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13628 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13629 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13630 have_des425=yes
13631 else
13632 have_des425=no
13633 fi
13634
13635 if test $have_des425 = yes; then
13636 DESLIB=-ldes425
13637 LIBS="$DESLIB $LIBS"
13638
13639 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13640
13641 else
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13643 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13644 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-ldes $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char des_cbc_encrypt ();
13659 int
13660 main ()
13661 {
13662 return des_cbc_encrypt ();
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 ac_cv_lib_des_des_cbc_encrypt=yes
13669 else
13670 ac_cv_lib_des_des_cbc_encrypt=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13675 fi
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13677 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13678 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13679 have_des=yes
13680 else
13681 have_des=no
13682 fi
13683
13684 if test $have_des = yes; then
13685 DESLIB=-ldes
13686 LIBS="$DESLIB $LIBS"
13687
13688 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13689
13690 fi
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13693 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13694 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lkrb4 $LIBS"
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13701
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13705 #ifdef __cplusplus
13706 extern "C"
13707 #endif
13708 char krb_get_cred ();
13709 int
13710 main ()
13711 {
13712 return krb_get_cred ();
13713 ;
13714 return 0;
13715 }
13716 _ACEOF
13717 if ac_fn_c_try_link "$LINENO"; then :
13718 ac_cv_lib_krb4_krb_get_cred=yes
13719 else
13720 ac_cv_lib_krb4_krb_get_cred=no
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13727 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13728 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
13729 have_krb4=yes
13730 else
13731 have_krb4=no
13732 fi
13733
13734 if test $have_krb4 = yes; then
13735 KRB4LIB=-lkrb4
13736 LIBS="$KRB4LIB $LIBS"
13737
13738 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13739
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13742 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13743 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lkrb $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char krb_get_cred ();
13758 int
13759 main ()
13760 {
13761 return krb_get_cred ();
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 ac_cv_lib_krb_krb_get_cred=yes
13768 else
13769 ac_cv_lib_krb_krb_get_cred=no
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13776 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13777 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
13778 have_krb=yes
13779 else
13780 have_krb=no
13781 fi
13782
13783 if test $have_krb = yes; then
13784 KRB4LIB=-lkrb
13785 LIBS="$KRB4LIB $LIBS"
13786
13787 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13788
13789 fi
13790 fi
13791 fi
13792
13793 if test "${with_kerberos5}" != no; then
13794 for ac_header in krb5.h
13795 do :
13796 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13797 if test "x$ac_cv_header_krb5_h" = xyes; then :
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_KRB5_H 1
13800 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13802 "
13803 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
13804
13805 cat >>confdefs.h <<_ACEOF
13806 #define HAVE_KRB5_ERROR_TEXT 1
13807 _ACEOF
13808
13809
13810 fi
13811 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13812 "
13813 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
13814
13815 cat >>confdefs.h <<_ACEOF
13816 #define HAVE_KRB5_ERROR_E_TEXT 1
13817 _ACEOF
13818
13819
13820 fi
13821
13822 fi
13823
13824 done
13825
13826 else
13827 for ac_header in des.h
13828 do :
13829 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_des_h" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_DES_H 1
13833 _ACEOF
13834
13835 else
13836 for ac_header in kerberosIV/des.h
13837 do :
13838 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13839 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_KERBEROSIV_DES_H 1
13842 _ACEOF
13843
13844 else
13845 for ac_header in kerberos/des.h
13846 do :
13847 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13848 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_KERBEROS_DES_H 1
13851 _ACEOF
13852
13853 fi
13854
13855 done
13856
13857 fi
13858
13859 done
13860
13861 fi
13862
13863 done
13864
13865 for ac_header in krb.h
13866 do :
13867 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13868 if test "x$ac_cv_header_krb_h" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_KRB_H 1
13871 _ACEOF
13872
13873 else
13874 for ac_header in kerberosIV/krb.h
13875 do :
13876 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13877 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
13878 cat >>confdefs.h <<_ACEOF
13879 #define HAVE_KERBEROSIV_KRB_H 1
13880 _ACEOF
13881
13882 else
13883 for ac_header in kerberos/krb.h
13884 do :
13885 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13886 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define HAVE_KERBEROS_KRB_H 1
13889 _ACEOF
13890
13891 fi
13892
13893 done
13894
13895 fi
13896
13897 done
13898
13899 fi
13900
13901 done
13902
13903 fi
13904 for ac_header in com_err.h
13905 do :
13906 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13907 if test "x$ac_cv_header_com_err_h" = xyes; then :
13908 cat >>confdefs.h <<_ACEOF
13909 #define HAVE_COM_ERR_H 1
13910 _ACEOF
13911
13912 fi
13913
13914 done
13915
13916 fi
13917
13918
13919
13920
13921
13922
13923
13924 # Solaris requires -lintl if you want strerror (which calls dgettext)
13925 # to return localized messages.
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13927 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13928 if ${ac_cv_lib_intl_dgettext+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 ac_check_lib_save_LIBS=$LIBS
13932 LIBS="-lintl $LIBS"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13939 #ifdef __cplusplus
13940 extern "C"
13941 #endif
13942 char dgettext ();
13943 int
13944 main ()
13945 {
13946 return dgettext ();
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 ac_cv_lib_intl_dgettext=yes
13953 else
13954 ac_cv_lib_intl_dgettext=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13961 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13962 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
13963 cat >>confdefs.h <<_ACEOF
13964 #define HAVE_LIBINTL 1
13965 _ACEOF
13966
13967 LIBS="-lintl $LIBS"
13968
13969 fi
13970
13971
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13973 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13974 if ${emacs_cv_localtime_cache+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 if test x$ac_cv_func_tzset = xyes; then
13978 if test "$cross_compiling" = yes; then :
13979 # If we have tzset, assume the worst when cross-compiling.
13980 emacs_cv_localtime_cache=yes
13981 else
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 #include <time.h>
13985 extern char **environ;
13986 unset_TZ ()
13987 {
13988 char **from, **to;
13989 for (to = from = environ; (*to = *from); from++)
13990 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13991 to++;
13992 }
13993 char TZ_GMT0[] = "TZ=GMT0";
13994 char TZ_PST8[] = "TZ=PST8";
13995 main()
13996 {
13997 time_t now = time ((time_t *) 0);
13998 int hour_GMT0, hour_unset;
13999 if (putenv (TZ_GMT0) != 0)
14000 exit (1);
14001 hour_GMT0 = localtime (&now)->tm_hour;
14002 unset_TZ ();
14003 hour_unset = localtime (&now)->tm_hour;
14004 if (putenv (TZ_PST8) != 0)
14005 exit (1);
14006 if (localtime (&now)->tm_hour == hour_GMT0)
14007 exit (1);
14008 unset_TZ ();
14009 if (localtime (&now)->tm_hour != hour_unset)
14010 exit (1);
14011 exit (0);
14012 }
14013 _ACEOF
14014 if ac_fn_c_try_run "$LINENO"; then :
14015 emacs_cv_localtime_cache=no
14016 else
14017 emacs_cv_localtime_cache=yes
14018 fi
14019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14020 conftest.$ac_objext conftest.beam conftest.$ac_ext
14021 fi
14022
14023 else
14024 # If we lack tzset, report that localtime does not cache TZ,
14025 # since we can't invalidate the cache if we don't have tzset.
14026 emacs_cv_localtime_cache=no
14027 fi
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14030 $as_echo "$emacs_cv_localtime_cache" >&6; }
14031 if test $emacs_cv_localtime_cache = yes; then
14032
14033 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14034
14035 fi
14036
14037 if test "x$HAVE_TIMEVAL" = xyes; then
14038 for ac_func in gettimeofday
14039 do :
14040 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14041 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_GETTIMEOFDAY 1
14044 _ACEOF
14045
14046 fi
14047 done
14048
14049 if test $ac_cv_func_gettimeofday = yes; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14051 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14052 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057
14058 #ifdef TIME_WITH_SYS_TIME
14059 #include <sys/time.h>
14060 #include <time.h>
14061 #else
14062 #ifdef HAVE_SYS_TIME_H
14063 #include <sys/time.h>
14064 #else
14065 #include <time.h>
14066 #endif
14067 #endif
14068 int
14069 main ()
14070 {
14071 struct timeval time;
14072 gettimeofday (&time, 0);
14073 ;
14074 return 0;
14075 }
14076 _ACEOF
14077 if ac_fn_c_try_compile "$LINENO"; then :
14078 emacs_cv_gettimeofday_two_arguments=yes
14079 else
14080 emacs_cv_gettimeofday_two_arguments=no
14081 fi
14082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14085 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14086 if test $emacs_cv_gettimeofday_two_arguments = no; then
14087
14088 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14089
14090 fi
14091 fi
14092 fi
14093
14094 ok_so_far=yes
14095 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14096 if test "x$ac_cv_func_socket" = xyes; then :
14097
14098 else
14099 ok_so_far=no
14100 fi
14101
14102 if test $ok_so_far = yes; then
14103 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14104 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14105
14106 else
14107 ok_so_far=no
14108 fi
14109
14110
14111 fi
14112 if test $ok_so_far = yes; then
14113 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14114 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
14115
14116 else
14117 ok_so_far=no
14118 fi
14119
14120
14121 fi
14122 if test $ok_so_far = yes; then
14123
14124 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14125
14126 fi
14127
14128 for ac_header in sys/ioctl.h
14129 do :
14130 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14131 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
14132 cat >>confdefs.h <<_ACEOF
14133 #define HAVE_SYS_IOCTL_H 1
14134 _ACEOF
14135
14136 fi
14137
14138 done
14139
14140
14141 if test -f /usr/lpp/X11/bin/smt.exp; then
14142
14143 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14144
14145 fi
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14148 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14149 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14151 $as_echo "yes" >&6; }
14152
14153 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14154
14155 else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
14158 fi
14159
14160 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14161 if test "x$ac_cv_type_pid_t" = xyes; then :
14162
14163 else
14164
14165 cat >>confdefs.h <<_ACEOF
14166 #define pid_t int
14167 _ACEOF
14168
14169 fi
14170
14171 for ac_header in vfork.h
14172 do :
14173 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14174 if test "x$ac_cv_header_vfork_h" = xyes; then :
14175 cat >>confdefs.h <<_ACEOF
14176 #define HAVE_VFORK_H 1
14177 _ACEOF
14178
14179 fi
14180
14181 done
14182
14183 for ac_func in fork vfork
14184 do :
14185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14188 cat >>confdefs.h <<_ACEOF
14189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14190 _ACEOF
14191
14192 fi
14193 done
14194
14195 if test "x$ac_cv_func_fork" = xyes; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14197 $as_echo_n "checking for working fork... " >&6; }
14198 if ${ac_cv_func_fork_works+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test "$cross_compiling" = yes; then :
14202 ac_cv_func_fork_works=cross
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 int
14208 main ()
14209 {
14210
14211 /* By Ruediger Kuhlmann. */
14212 return fork () < 0;
14213
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_run "$LINENO"; then :
14219 ac_cv_func_fork_works=yes
14220 else
14221 ac_cv_func_fork_works=no
14222 fi
14223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14224 conftest.$ac_objext conftest.beam conftest.$ac_ext
14225 fi
14226
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14229 $as_echo "$ac_cv_func_fork_works" >&6; }
14230
14231 else
14232 ac_cv_func_fork_works=$ac_cv_func_fork
14233 fi
14234 if test "x$ac_cv_func_fork_works" = xcross; then
14235 case $host in
14236 *-*-amigaos* | *-*-msdosdjgpp*)
14237 # Override, as these systems have only a dummy fork() stub
14238 ac_cv_func_fork_works=no
14239 ;;
14240 *)
14241 ac_cv_func_fork_works=yes
14242 ;;
14243 esac
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14245 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14246 fi
14247 ac_cv_func_vfork_works=$ac_cv_func_vfork
14248 if test "x$ac_cv_func_vfork" = xyes; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14250 $as_echo_n "checking for working vfork... " >&6; }
14251 if ${ac_cv_func_vfork_works+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 if test "$cross_compiling" = yes; then :
14255 ac_cv_func_vfork_works=cross
14256 else
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 /* Thanks to Paul Eggert for this test. */
14260 $ac_includes_default
14261 #include <sys/wait.h>
14262 #ifdef HAVE_VFORK_H
14263 # include <vfork.h>
14264 #endif
14265 /* On some sparc systems, changes by the child to local and incoming
14266 argument registers are propagated back to the parent. The compiler
14267 is told about this with #include <vfork.h>, but some compilers
14268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14269 static variable whose address is put into a register that is
14270 clobbered by the vfork. */
14271 static void
14272 #ifdef __cplusplus
14273 sparc_address_test (int arg)
14274 # else
14275 sparc_address_test (arg) int arg;
14276 #endif
14277 {
14278 static pid_t child;
14279 if (!child) {
14280 child = vfork ();
14281 if (child < 0) {
14282 perror ("vfork");
14283 _exit(2);
14284 }
14285 if (!child) {
14286 arg = getpid();
14287 write(-1, "", 0);
14288 _exit (arg);
14289 }
14290 }
14291 }
14292
14293 int
14294 main ()
14295 {
14296 pid_t parent = getpid ();
14297 pid_t child;
14298
14299 sparc_address_test (0);
14300
14301 child = vfork ();
14302
14303 if (child == 0) {
14304 /* Here is another test for sparc vfork register problems. This
14305 test uses lots of local variables, at least as many local
14306 variables as main has allocated so far including compiler
14307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14309 reuse the register of parent for one of the local variables,
14310 since it will think that parent can't possibly be used any more
14311 in this routine. Assigning to the local variable will thus
14312 munge parent in the parent process. */
14313 pid_t
14314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14316 /* Convince the compiler that p..p7 are live; otherwise, it might
14317 use the same hardware register for all 8 local variables. */
14318 if (p != p1 || p != p2 || p != p3 || p != p4
14319 || p != p5 || p != p6 || p != p7)
14320 _exit(1);
14321
14322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14323 from child file descriptors. If the child closes a descriptor
14324 before it execs or exits, this munges the parent's descriptor
14325 as well. Test for this by closing stdout in the child. */
14326 _exit(close(fileno(stdout)) != 0);
14327 } else {
14328 int status;
14329 struct stat st;
14330
14331 while (wait(&status) != child)
14332 ;
14333 return (
14334 /* Was there some problem with vforking? */
14335 child < 0
14336
14337 /* Did the child fail? (This shouldn't happen.) */
14338 || status
14339
14340 /* Did the vfork/compiler bug occur? */
14341 || parent != getpid()
14342
14343 /* Did the file descriptor bug occur? */
14344 || fstat(fileno(stdout), &st) != 0
14345 );
14346 }
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_run "$LINENO"; then :
14350 ac_cv_func_vfork_works=yes
14351 else
14352 ac_cv_func_vfork_works=no
14353 fi
14354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
14356 fi
14357
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14360 $as_echo "$ac_cv_func_vfork_works" >&6; }
14361
14362 fi;
14363 if test "x$ac_cv_func_fork_works" = xcross; then
14364 ac_cv_func_vfork_works=$ac_cv_func_vfork
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14366 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14367 fi
14368
14369 if test "x$ac_cv_func_vfork_works" = xyes; then
14370
14371 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14372
14373 else
14374
14375 $as_echo "#define vfork fork" >>confdefs.h
14376
14377 fi
14378 if test "x$ac_cv_func_fork_works" = xyes; then
14379
14380 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14381
14382 fi
14383
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14386 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14387 if ${emacs_cv_langinfo_codeset+:} false; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14392 #include <langinfo.h>
14393 int
14394 main ()
14395 {
14396 char* cs = nl_langinfo(CODESET);
14397 ;
14398 return 0;
14399 }
14400 _ACEOF
14401 if ac_fn_c_try_link "$LINENO"; then :
14402 emacs_cv_langinfo_codeset=yes
14403 else
14404 emacs_cv_langinfo_codeset=no
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext \
14407 conftest$ac_exeext conftest.$ac_ext
14408
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14411 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14412 if test $emacs_cv_langinfo_codeset = yes; then
14413
14414 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14415
14416 fi
14417
14418 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14419 if test "x$ac_cv_type_size_t" = xyes; then :
14420
14421 cat >>confdefs.h <<_ACEOF
14422 #define HAVE_SIZE_T 1
14423 _ACEOF
14424
14425
14426 fi
14427
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14430 $as_echo_n "checking for mbstate_t... " >&6; }
14431 if ${ac_cv_type_mbstate_t+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 # include <wchar.h>
14438 int
14439 main ()
14440 {
14441 mbstate_t x; return sizeof x;
14442 ;
14443 return 0;
14444 }
14445 _ACEOF
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 ac_cv_type_mbstate_t=yes
14448 else
14449 ac_cv_type_mbstate_t=no
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14454 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14455 if test $ac_cv_type_mbstate_t = yes; then
14456
14457 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14458
14459 else
14460
14461 $as_echo "#define mbstate_t int" >>confdefs.h
14462
14463 fi
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14466 $as_echo_n "checking for C restrict keyword... " >&6; }
14467 if ${emacs_cv_c_restrict+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 void fred (int *restrict x);
14473 int
14474 main ()
14475 {
14476
14477 ;
14478 return 0;
14479 }
14480 _ACEOF
14481 if ac_fn_c_try_compile "$LINENO"; then :
14482 emacs_cv_c_restrict=yes
14483 else
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 void fred (int *__restrict x);
14487 int
14488 main ()
14489 {
14490
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496 emacs_cv_c_restrict=__restrict
14497 else
14498 emacs_cv_c_restrict=no
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 fi
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14505 $as_echo "$emacs_cv_c_restrict" >&6; }
14506 case "$emacs_cv_c_restrict" in
14507 yes) emacs_restrict=restrict;;
14508 no) emacs_restrict="";;
14509 *) emacs_restrict="$emacs_cv_c_restrict";;
14510 esac
14511 if test "$emacs_restrict" != __restrict; then
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define __restrict $emacs_restrict
14515 _ACEOF
14516
14517 fi
14518
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14520 $as_echo_n "checking for C restricted array declarations... " >&6; }
14521 if ${emacs_cv_c_restrict_arr+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 void fred (int x[__restrict]);
14527 int
14528 main ()
14529 {
14530
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536 emacs_cv_c_restrict_arr=yes
14537 else
14538 emacs_cv_c_restrict_arr=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14543 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14544 if test "$emacs_cv_c_restrict_arr" = yes; then
14545
14546 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14547
14548 fi
14549
14550
14551
14552 # Set up the CFLAGS for real compilation, so we can substitute it.
14553 CFLAGS="$REAL_CFLAGS"
14554 CPPFLAGS="$REAL_CPPFLAGS"
14555
14556 ## Hack to detect a buggy GCC version.
14557 if test "x$GCC" = xyes \
14558 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14559 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14560 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14561 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14562 fi
14563
14564 #### Find out which version of Emacs this is.
14565 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14566 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14567 if test x"${version}" = x; then
14568 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14569 fi
14570 if test x"${version}" != x"$PACKAGE_VERSION"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14572 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14573 fi
14574
14575 ### Specify what sort of things we'll be editing into Makefile and config.h.
14576 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14577
14578
14579 ## Unused?
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14601 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14602 ## end of LIBX_BASE, but nothing ever set it.
14603
14604
14605
14606
14607 ## Used in lwlib/Makefile.in.
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620 cat >>confdefs.h <<_ACEOF
14621 #define EMACS_CONFIGURATION "${canonical}"
14622 _ACEOF
14623
14624
14625 cat >>confdefs.h <<_ACEOF
14626 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14627 _ACEOF
14628
14629
14630 cat >>confdefs.h <<_ACEOF
14631 #define config_machfile "${machfile}"
14632 _ACEOF
14633
14634
14635 cat >>confdefs.h <<_ACEOF
14636 #define config_opsysfile "${opsysfile}"
14637 _ACEOF
14638
14639
14640 XMENU_OBJ=
14641 XOBJ=
14642 FONT_OBJ=
14643 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14644
14645 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14646
14647 XMENU_OBJ=xmenu.o
14648 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14649 FONT_OBJ=xfont.o
14650 if test "$HAVE_XFT" = "yes"; then
14651 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14652 elif test "$HAVE_FREETYPE" = "yes"; then
14653 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14654 fi
14655
14656 fi
14657
14658
14659
14660
14661 WIDGET_OBJ=
14662 MOTIF_LIBW=
14663 if test "${USE_X_TOOLKIT}" != "none" ; then
14664 WIDGET_OBJ=widget.o
14665
14666 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14667
14668 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14669
14670 $as_echo "#define USE_LUCID 1" >>confdefs.h
14671
14672 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14673
14674 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14675
14676 MOTIF_LIBW=-lXm
14677 case "$opsys" in
14678 gnu-linux)
14679 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14680 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14681 ;;
14682
14683 unixware)
14684 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14685 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14686 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14687 ;;
14688
14689 aix4-2)
14690 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14691 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14692 ;;
14693 esac
14694 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14695 fi
14696 fi
14697
14698
14699 TOOLKIT_LIBW=
14700 case "$USE_X_TOOLKIT" in
14701 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14702 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14703 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14704 esac
14705
14706
14707 if test "$USE_X_TOOLKIT" = "none"; then
14708 LIBXT_OTHER="\$(LIBXSM)"
14709 OLDXMENU_TARGET="really-oldXMenu"
14710 else
14711 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14712 OLDXMENU_TARGET="really-lwlib"
14713 fi
14714
14715
14716 ## The X Menu stuff is present in the X10 distribution, but missing
14717 ## from X11. If we have X10, just use the installed library;
14718 ## otherwise, use our own copy.
14719 if test "${HAVE_X11}" = "yes" ; then
14720
14721 $as_echo "#define HAVE_X11 1" >>confdefs.h
14722
14723
14724 if test "$USE_X_TOOLKIT" = "none"; then
14725 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14726 else
14727 OLDXMENU="\${lwlibdir}/liblw.a"
14728 fi
14729 LIBXMENU="\$(OLDXMENU)"
14730 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14731 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14732 else
14733 ## For a syntactically valid Makefile; not actually used for anything.
14734 ## See comments in src/Makefile.in.
14735 OLDXMENU=nothing
14736 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14737 if test "${HAVE_X_WINDOWS}" = "yes"; then
14738 LIBXMENU="-lXMenu"
14739 else
14740 LIBXMENU=
14741 fi
14742 LIBX_OTHER=
14743 OLDXMENU_DEPS=
14744 fi
14745
14746 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14747 OLDXMENU_TARGET=
14748 OLDXMENU=nothing
14749 LIBXMENU=
14750 OLDXMENU_DEPS=
14751 fi
14752
14753
14754
14755
14756
14757
14758
14759 if test "${HAVE_MENUS}" = "yes" ; then
14760
14761 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14762
14763 fi
14764
14765 if test "${GNU_MALLOC}" = "yes" ; then
14766
14767 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14768
14769 fi
14770
14771 RALLOC_OBJ=
14772 if test "${REL_ALLOC}" = "yes" ; then
14773
14774 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14775
14776
14777 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14778 fi
14779
14780
14781 if test "$opsys" = "cygwin"; then
14782 CYGWIN_OBJ="sheap.o"
14783 ## Cygwin differs because of its unexec().
14784 PRE_ALLOC_OBJ=
14785 POST_ALLOC_OBJ=lastfile.o
14786 else
14787 CYGWIN_OBJ=
14788 PRE_ALLOC_OBJ=lastfile.o
14789 POST_ALLOC_OBJ=
14790 fi
14791
14792
14793
14794
14795
14796 case "$opsys" in
14797 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14798
14799 darwin)
14800 ## The -headerpad option tells ld (see man page) to leave room at the
14801 ## end of the header for adding load commands. Needed for dumping.
14802 ## 0x690 is the total size of 30 segment load commands (at 56
14803 ## each); under Cocoa 31 commands are required.
14804 if test "$HAVE_NS" = "yes"; then
14805 libs_nsgui="-framework AppKit"
14806 headerpad_extra=6C8
14807 else
14808 libs_nsgui=
14809 headerpad_extra=690
14810 fi
14811 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14812
14813 ## This is here because src/Makefile.in did some extra fiddling around
14814 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14815 ## #ifndef LD_SWITCH_SYSTEM
14816 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14817 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14818 ## not using gcc, darwin system not on an alpha (ie darwin, since
14819 ## darwin + alpha does not occur).
14820 ## Because this was done in src/Makefile.in, the resulting part of
14821 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14822 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14823 ## rather than LD_SWITCH_SYSTEM.
14824 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14825 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14826 ;;
14827
14828 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14829 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14830 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14831 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14832 ## had different values in configure (in ac_link) and src/Makefile.in.
14833 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14834 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14835
14836 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14837 esac
14838
14839 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14840 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14841 fi
14842
14843
14844
14845
14846 LD_FIRSTFLAG=
14847 ORDINARY_LINK=
14848 case "$opsys" in
14849 ## gnu: GNU needs its own crt0.
14850 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14851
14852 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14853 ## library search parth, i.e. it won't search /usr/lib for libc and
14854 ## friends. Using -nostartfiles instead avoids this problem, and
14855 ## will also work on earlier NetBSD releases.
14856 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14857
14858 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14859 ## MkLinux/LinuxPPC needs this.
14860 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14861 gnu-*)
14862 case "$machine" in
14863 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14864 esac
14865 ;;
14866 esac
14867
14868
14869 if test "x$ORDINARY_LINK" = "xyes"; then
14870
14871 LD_FIRSTFLAG=""
14872
14873 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14874
14875
14876 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14877 ## freebsd, gnu-* not on macppc|ibms390x.
14878 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14879
14880 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14881 ## places that are difficult to figure out at make time. Fortunately,
14882 ## these same versions allow you to pass arbitrary flags on to the
14883 ## linker, so there is no reason not to use it as a linker.
14884 ##
14885 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14886 ## searching for libraries in its internal directories, so we have to
14887 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14888 LD_FIRSTFLAG="-nostdlib"
14889 fi
14890
14891 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14892 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14893
14894
14895
14896
14897 ## FIXME? The logic here is not precisely the same as that above.
14898 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14899 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14900 LIB_GCC=
14901 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14902
14903 case "$opsys" in
14904 freebsd|netbsd|openbsd) LIB_GCC= ;;
14905
14906 gnu-*)
14907 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14908 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14909 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14910 if test "$machine" = "arm"; then
14911 LIB_GCC="-lgcc_s"
14912 else
14913 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14914 ## immediately undefine it again and redefine it to empty.
14915 ## Was the C_SWITCH_X_SITE part really necessary?
14916 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14917 LIB_GCC=
14918 fi
14919 ;;
14920
14921 ## Ask GCC where to find libgcc.a.
14922 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14923 esac
14924 fi
14925
14926
14927 TOOLTIP_SUPPORT=
14928 WINDOW_SUPPORT=
14929 ## If we're using X11/GNUstep, define some consequences.
14930 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14931
14932 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14933
14934
14935 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14936
14937 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14938 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14939
14940 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14941 test "$HAVE_X_WINDOWS" = "yes" && \
14942 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14943
14944 fi
14945
14946
14947
14948
14949
14950
14951
14952 #### Report on what we decided to do.
14953 #### Report GTK as a toolkit, even if it doesn't use Xt.
14954 #### It makes printing result more understandable as using GTK sets
14955 #### toolkit_scroll_bars to yes by default.
14956 if test "${HAVE_GTK}" = "yes"; then
14957 USE_X_TOOLKIT=GTK
14958 fi
14959
14960 echo "
14961 Configured for \`${canonical}'.
14962
14963 Where should the build process find the source code? ${srcdir}
14964 What operating system and machine description files should Emacs use?
14965 \`${opsysfile}' and \`${machfile}'
14966 What compiler should emacs be built with? ${CC} ${CFLAGS}
14967 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14968 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14969 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14970 What window system should Emacs use? ${window_system}
14971 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14972
14973 if test -n "${x_includes}"; then
14974 echo " Where do we find X Windows header files? ${x_includes}"
14975 else
14976 echo " Where do we find X Windows header files? Standard dirs"
14977 fi
14978 if test -n "${x_libraries}"; then
14979 echo " Where do we find X Windows libraries? ${x_libraries}"
14980 else
14981 echo " Where do we find X Windows libraries? Standard dirs"
14982 fi
14983
14984 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14985 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14986 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14987 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14988 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14989 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14990 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14991 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14992
14993 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14994 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14995 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14996 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14997 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14998 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14999
15000 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15001 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15002 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15003 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15004
15005 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15006 echo
15007
15008 if test $USE_XASSERTS = yes; then
15009 echo " Compiling with asserts turned on."
15010 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
15011 fi
15012
15013 echo
15014
15015 if test "$HAVE_NS" = "yes"; then
15016 echo
15017 echo "You must run \"make install\" in order to test the built application.
15018 The installed application will go to nextstep/Emacs.app and can be
15019 run or moved from there."
15020 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15021 echo "The application will be fully self-contained."
15022 else
15023 echo "The lisp resources for the application will be installed under ${prefix}.
15024 You may need to run \"make install\" with sudo. The application will fail
15025 to run if these resources are not installed."
15026 fi
15027 echo
15028 fi
15029
15030 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15031 echo "D-Bus integration has been tested for GNU/Linux only."
15032 echo
15033 fi
15034
15035
15036 # Remove any trailing slashes in these variables.
15037 test "${prefix}" != NONE &&
15038 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15039 test "${exec_prefix}" != NONE &&
15040 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15041
15042 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"
15043
15044 ac_config_commands="$ac_config_commands default"
15045
15046 cat >confcache <<\_ACEOF
15047 # This file is a shell script that caches the results of configure
15048 # tests run on this system so they can be shared between configure
15049 # scripts and configure runs, see configure's option --config-cache.
15050 # It is not useful on other systems. If it contains results you don't
15051 # want to keep, you may remove or edit it.
15052 #
15053 # config.status only pays attention to the cache file if you give it
15054 # the --recheck option to rerun configure.
15055 #
15056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15058 # following values.
15059
15060 _ACEOF
15061
15062 # The following way of writing the cache mishandles newlines in values,
15063 # but we know of no workaround that is simple, portable, and efficient.
15064 # So, we kill variables containing newlines.
15065 # Ultrix sh set writes to stderr and can't be redirected directly,
15066 # and sets the high bit in the cache file unless we assign to the vars.
15067 (
15068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15069 eval ac_val=\$$ac_var
15070 case $ac_val in #(
15071 *${as_nl}*)
15072 case $ac_var in #(
15073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15075 esac
15076 case $ac_var in #(
15077 _ | IFS | as_nl) ;; #(
15078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15079 *) { eval $ac_var=; unset $ac_var;} ;;
15080 esac ;;
15081 esac
15082 done
15083
15084 (set) 2>&1 |
15085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15086 *${as_nl}ac_space=\ *)
15087 # `set' does not quote correctly, so add quotes: double-quote
15088 # substitution turns \\\\ into \\, and sed turns \\ into \.
15089 sed -n \
15090 "s/'/'\\\\''/g;
15091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15092 ;; #(
15093 *)
15094 # `set' quotes correctly as required by POSIX, so do not add quotes.
15095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15096 ;;
15097 esac |
15098 sort
15099 ) |
15100 sed '
15101 /^ac_cv_env_/b end
15102 t clear
15103 :clear
15104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15105 t end
15106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15107 :end' >>confcache
15108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15109 if test -w "$cache_file"; then
15110 if test "x$cache_file" != "x/dev/null"; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15112 $as_echo "$as_me: updating cache $cache_file" >&6;}
15113 if test ! -f "$cache_file" || test -h "$cache_file"; then
15114 cat confcache >"$cache_file"
15115 else
15116 case $cache_file in #(
15117 */* | ?:*)
15118 mv -f confcache "$cache_file"$$ &&
15119 mv -f "$cache_file"$$ "$cache_file" ;; #(
15120 *)
15121 mv -f confcache "$cache_file" ;;
15122 esac
15123 fi
15124 fi
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15128 fi
15129 fi
15130 rm -f confcache
15131
15132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15133 # Let make expand exec_prefix.
15134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15135
15136 DEFS=-DHAVE_CONFIG_H
15137
15138 ac_libobjs=
15139 ac_ltlibobjs=
15140 U=
15141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15142 # 1. Remove the extension, and $U if already installed.
15143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15144 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15146 # will be set to the directory where LIBOBJS objects are built.
15147 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15148 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15149 done
15150 LIBOBJS=$ac_libobjs
15151
15152 LTLIBOBJS=$ac_ltlibobjs
15153
15154
15155
15156
15157 : "${CONFIG_STATUS=./config.status}"
15158 ac_write_fail=0
15159 ac_clean_files_save=$ac_clean_files
15160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15163 as_write_fail=0
15164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15165 #! $SHELL
15166 # Generated by $as_me.
15167 # Run this file to recreate the current configuration.
15168 # Compiler output produced by configure, useful for debugging
15169 # configure, is in config.log if it exists.
15170
15171 debug=false
15172 ac_cs_recheck=false
15173 ac_cs_silent=false
15174
15175 SHELL=\${CONFIG_SHELL-$SHELL}
15176 export SHELL
15177 _ASEOF
15178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15179 ## -------------------- ##
15180 ## M4sh Initialization. ##
15181 ## -------------------- ##
15182
15183 # Be more Bourne compatible
15184 DUALCASE=1; export DUALCASE # for MKS sh
15185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15186 emulate sh
15187 NULLCMD=:
15188 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15189 # is contrary to our usage. Disable this feature.
15190 alias -g '${1+"$@"}'='"$@"'
15191 setopt NO_GLOB_SUBST
15192 else
15193 case `(set -o) 2>/dev/null` in #(
15194 *posix*) :
15195 set -o posix ;; #(
15196 *) :
15197 ;;
15198 esac
15199 fi
15200
15201
15202 as_nl='
15203 '
15204 export as_nl
15205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15206 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15209 # Prefer a ksh shell builtin over an external printf program on Solaris,
15210 # but without wasting forks for bash or zsh.
15211 if test -z "$BASH_VERSION$ZSH_VERSION" \
15212 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15213 as_echo='print -r --'
15214 as_echo_n='print -rn --'
15215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15216 as_echo='printf %s\n'
15217 as_echo_n='printf %s'
15218 else
15219 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15220 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15221 as_echo_n='/usr/ucb/echo -n'
15222 else
15223 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15224 as_echo_n_body='eval
15225 arg=$1;
15226 case $arg in #(
15227 *"$as_nl"*)
15228 expr "X$arg" : "X\\(.*\\)$as_nl";
15229 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15230 esac;
15231 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15232 '
15233 export as_echo_n_body
15234 as_echo_n='sh -c $as_echo_n_body as_echo'
15235 fi
15236 export as_echo_body
15237 as_echo='sh -c $as_echo_body as_echo'
15238 fi
15239
15240 # The user is always right.
15241 if test "${PATH_SEPARATOR+set}" != set; then
15242 PATH_SEPARATOR=:
15243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15245 PATH_SEPARATOR=';'
15246 }
15247 fi
15248
15249
15250 # IFS
15251 # We need space, tab and new line, in precisely that order. Quoting is
15252 # there to prevent editors from complaining about space-tab.
15253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15254 # splitting by setting IFS to empty value.)
15255 IFS=" "" $as_nl"
15256
15257 # Find who we are. Look in the path if we contain no directory separator.
15258 as_myself=
15259 case $0 in #((
15260 *[\\/]* ) as_myself=$0 ;;
15261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262 for as_dir in $PATH
15263 do
15264 IFS=$as_save_IFS
15265 test -z "$as_dir" && as_dir=.
15266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15267 done
15268 IFS=$as_save_IFS
15269
15270 ;;
15271 esac
15272 # We did not find ourselves, most probably we were run as `sh COMMAND'
15273 # in which case we are not to be found in the path.
15274 if test "x$as_myself" = x; then
15275 as_myself=$0
15276 fi
15277 if test ! -f "$as_myself"; then
15278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15279 exit 1
15280 fi
15281
15282 # Unset variables that we do not need and which cause bugs (e.g. in
15283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15284 # suppresses any "Segmentation fault" message there. '((' could
15285 # trigger a bug in pdksh 5.2.14.
15286 for as_var in BASH_ENV ENV MAIL MAILPATH
15287 do eval test x\${$as_var+set} = xset \
15288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15289 done
15290 PS1='$ '
15291 PS2='> '
15292 PS4='+ '
15293
15294 # NLS nuisances.
15295 LC_ALL=C
15296 export LC_ALL
15297 LANGUAGE=C
15298 export LANGUAGE
15299
15300 # CDPATH.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15302
15303
15304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15305 # ----------------------------------------
15306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15308 # script with STATUS, using 1 if that was 0.
15309 as_fn_error ()
15310 {
15311 as_status=$1; test $as_status -eq 0 && as_status=1
15312 if test "$4"; then
15313 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15315 fi
15316 $as_echo "$as_me: error: $2" >&2
15317 as_fn_exit $as_status
15318 } # as_fn_error
15319
15320
15321 # as_fn_set_status STATUS
15322 # -----------------------
15323 # Set $? to STATUS, without forking.
15324 as_fn_set_status ()
15325 {
15326 return $1
15327 } # as_fn_set_status
15328
15329 # as_fn_exit STATUS
15330 # -----------------
15331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15332 as_fn_exit ()
15333 {
15334 set +e
15335 as_fn_set_status $1
15336 exit $1
15337 } # as_fn_exit
15338
15339 # as_fn_unset VAR
15340 # ---------------
15341 # Portably unset VAR.
15342 as_fn_unset ()
15343 {
15344 { eval $1=; unset $1;}
15345 }
15346 as_unset=as_fn_unset
15347 # as_fn_append VAR VALUE
15348 # ----------------------
15349 # Append the text in VALUE to the end of the definition contained in VAR. Take
15350 # advantage of any shell optimizations that allow amortized linear growth over
15351 # repeated appends, instead of the typical quadratic growth present in naive
15352 # implementations.
15353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15354 eval 'as_fn_append ()
15355 {
15356 eval $1+=\$2
15357 }'
15358 else
15359 as_fn_append ()
15360 {
15361 eval $1=\$$1\$2
15362 }
15363 fi # as_fn_append
15364
15365 # as_fn_arith ARG...
15366 # ------------------
15367 # Perform arithmetic evaluation on the ARGs, and store the result in the
15368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15369 # must be portable across $(()) and expr.
15370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15371 eval 'as_fn_arith ()
15372 {
15373 as_val=$(( $* ))
15374 }'
15375 else
15376 as_fn_arith ()
15377 {
15378 as_val=`expr "$@" || test $? -eq 1`
15379 }
15380 fi # as_fn_arith
15381
15382
15383 if expr a : '\(a\)' >/dev/null 2>&1 &&
15384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15385 as_expr=expr
15386 else
15387 as_expr=false
15388 fi
15389
15390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15391 as_basename=basename
15392 else
15393 as_basename=false
15394 fi
15395
15396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15397 as_dirname=dirname
15398 else
15399 as_dirname=false
15400 fi
15401
15402 as_me=`$as_basename -- "$0" ||
15403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15404 X"$0" : 'X\(//\)$' \| \
15405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15406 $as_echo X/"$0" |
15407 sed '/^.*\/\([^/][^/]*\)\/*$/{
15408 s//\1/
15409 q
15410 }
15411 /^X\/\(\/\/\)$/{
15412 s//\1/
15413 q
15414 }
15415 /^X\/\(\/\).*/{
15416 s//\1/
15417 q
15418 }
15419 s/.*/./; q'`
15420
15421 # Avoid depending upon Character Ranges.
15422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15425 as_cr_digits='0123456789'
15426 as_cr_alnum=$as_cr_Letters$as_cr_digits
15427
15428 ECHO_C= ECHO_N= ECHO_T=
15429 case `echo -n x` in #(((((
15430 -n*)
15431 case `echo 'xy\c'` in
15432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15433 xy) ECHO_C='\c';;
15434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15435 ECHO_T=' ';;
15436 esac;;
15437 *)
15438 ECHO_N='-n';;
15439 esac
15440
15441 rm -f conf$$ conf$$.exe conf$$.file
15442 if test -d conf$$.dir; then
15443 rm -f conf$$.dir/conf$$.file
15444 else
15445 rm -f conf$$.dir
15446 mkdir conf$$.dir 2>/dev/null
15447 fi
15448 if (echo >conf$$.file) 2>/dev/null; then
15449 if ln -s conf$$.file conf$$ 2>/dev/null; then
15450 as_ln_s='ln -s'
15451 # ... but there are two gotchas:
15452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15454 # In both cases, we have to default to `cp -p'.
15455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15456 as_ln_s='cp -p'
15457 elif ln conf$$.file conf$$ 2>/dev/null; then
15458 as_ln_s=ln
15459 else
15460 as_ln_s='cp -p'
15461 fi
15462 else
15463 as_ln_s='cp -p'
15464 fi
15465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15466 rmdir conf$$.dir 2>/dev/null
15467
15468
15469 # as_fn_mkdir_p
15470 # -------------
15471 # Create "$as_dir" as a directory, including parents if necessary.
15472 as_fn_mkdir_p ()
15473 {
15474
15475 case $as_dir in #(
15476 -*) as_dir=./$as_dir;;
15477 esac
15478 test -d "$as_dir" || eval $as_mkdir_p || {
15479 as_dirs=
15480 while :; do
15481 case $as_dir in #(
15482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15483 *) as_qdir=$as_dir;;
15484 esac
15485 as_dirs="'$as_qdir' $as_dirs"
15486 as_dir=`$as_dirname -- "$as_dir" ||
15487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$as_dir" : 'X\(//\)[^/]' \| \
15489 X"$as_dir" : 'X\(//\)$' \| \
15490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15491 $as_echo X"$as_dir" |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15493 s//\1/
15494 q
15495 }
15496 /^X\(\/\/\)[^/].*/{
15497 s//\1/
15498 q
15499 }
15500 /^X\(\/\/\)$/{
15501 s//\1/
15502 q
15503 }
15504 /^X\(\/\).*/{
15505 s//\1/
15506 q
15507 }
15508 s/.*/./; q'`
15509 test -d "$as_dir" && break
15510 done
15511 test -z "$as_dirs" || eval "mkdir $as_dirs"
15512 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15513
15514
15515 } # as_fn_mkdir_p
15516 if mkdir -p . 2>/dev/null; then
15517 as_mkdir_p='mkdir -p "$as_dir"'
15518 else
15519 test -d ./-p && rmdir ./-p
15520 as_mkdir_p=false
15521 fi
15522
15523 if test -x / >/dev/null 2>&1; then
15524 as_test_x='test -x'
15525 else
15526 if ls -dL / >/dev/null 2>&1; then
15527 as_ls_L_option=L
15528 else
15529 as_ls_L_option=
15530 fi
15531 as_test_x='
15532 eval sh -c '\''
15533 if test -d "$1"; then
15534 test -d "$1/.";
15535 else
15536 case $1 in #(
15537 -*)set "./$1";;
15538 esac;
15539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15540 ???[sx]*):;;*)false;;esac;fi
15541 '\'' sh
15542 '
15543 fi
15544 as_executable_p=$as_test_x
15545
15546 # Sed expression to map a string onto a valid CPP name.
15547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15548
15549 # Sed expression to map a string onto a valid variable name.
15550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15551
15552
15553 exec 6>&1
15554 ## ----------------------------------- ##
15555 ## Main body of $CONFIG_STATUS script. ##
15556 ## ----------------------------------- ##
15557 _ASEOF
15558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15559
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 # Save the log message, to keep $0 and so on meaningful, and to
15562 # report actual input values of CONFIG_FILES etc. instead of their
15563 # values after options handling.
15564 ac_log="
15565 This file was extended by emacs $as_me 24.0.50, which was
15566 generated by GNU Autoconf 2.68. Invocation command line was
15567
15568 CONFIG_FILES = $CONFIG_FILES
15569 CONFIG_HEADERS = $CONFIG_HEADERS
15570 CONFIG_LINKS = $CONFIG_LINKS
15571 CONFIG_COMMANDS = $CONFIG_COMMANDS
15572 $ $0 $@
15573
15574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15575 "
15576
15577 _ACEOF
15578
15579 case $ac_config_files in *"
15580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15581 esac
15582
15583 case $ac_config_headers in *"
15584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15585 esac
15586
15587
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 # Files that config.status was made for.
15590 config_files="$ac_config_files"
15591 config_headers="$ac_config_headers"
15592 config_commands="$ac_config_commands"
15593
15594 _ACEOF
15595
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 ac_cs_usage="\
15598 \`$as_me' instantiates files and other configuration actions
15599 from templates according to the current configuration. Unless the files
15600 and actions are specified as TAGs, all are instantiated by default.
15601
15602 Usage: $0 [OPTION]... [TAG]...
15603
15604 -h, --help print this help, then exit
15605 -V, --version print version number and configuration settings, then exit
15606 --config print configuration, then exit
15607 -q, --quiet, --silent
15608 do not print progress messages
15609 -d, --debug don't remove temporary files
15610 --recheck update $as_me by reconfiguring in the same conditions
15611 --file=FILE[:TEMPLATE]
15612 instantiate the configuration file FILE
15613 --header=FILE[:TEMPLATE]
15614 instantiate the configuration header FILE
15615
15616 Configuration files:
15617 $config_files
15618
15619 Configuration headers:
15620 $config_headers
15621
15622 Configuration commands:
15623 $config_commands
15624
15625 Report bugs to the package provider."
15626
15627 _ACEOF
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15630 ac_cs_version="\\
15631 emacs config.status 24.0.50
15632 configured by $0, generated by GNU Autoconf 2.68,
15633 with options \\"\$ac_cs_config\\"
15634
15635 Copyright (C) 2010 Free Software Foundation, Inc.
15636 This config.status script is free software; the Free Software Foundation
15637 gives unlimited permission to copy, distribute and modify it."
15638
15639 ac_pwd='$ac_pwd'
15640 srcdir='$srcdir'
15641 INSTALL='$INSTALL'
15642 test -n "\$AWK" || AWK=awk
15643 _ACEOF
15644
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 # The default lists apply if the user does not specify any file.
15647 ac_need_defaults=:
15648 while test $# != 0
15649 do
15650 case $1 in
15651 --*=?*)
15652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15654 ac_shift=:
15655 ;;
15656 --*=)
15657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15658 ac_optarg=
15659 ac_shift=:
15660 ;;
15661 *)
15662 ac_option=$1
15663 ac_optarg=$2
15664 ac_shift=shift
15665 ;;
15666 esac
15667
15668 case $ac_option in
15669 # Handling of the options.
15670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15671 ac_cs_recheck=: ;;
15672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15673 $as_echo "$ac_cs_version"; exit ;;
15674 --config | --confi | --conf | --con | --co | --c )
15675 $as_echo "$ac_cs_config"; exit ;;
15676 --debug | --debu | --deb | --de | --d | -d )
15677 debug=: ;;
15678 --file | --fil | --fi | --f )
15679 $ac_shift
15680 case $ac_optarg in
15681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15682 '') as_fn_error $? "missing file argument" ;;
15683 esac
15684 as_fn_append CONFIG_FILES " '$ac_optarg'"
15685 ac_need_defaults=false;;
15686 --header | --heade | --head | --hea )
15687 $ac_shift
15688 case $ac_optarg in
15689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15690 esac
15691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15692 ac_need_defaults=false;;
15693 --he | --h)
15694 # Conflict between --help and --header
15695 as_fn_error $? "ambiguous option: \`$1'
15696 Try \`$0 --help' for more information.";;
15697 --help | --hel | -h )
15698 $as_echo "$ac_cs_usage"; exit ;;
15699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15701 ac_cs_silent=: ;;
15702
15703 # This is an error.
15704 -*) as_fn_error $? "unrecognized option: \`$1'
15705 Try \`$0 --help' for more information." ;;
15706
15707 *) as_fn_append ac_config_targets " $1"
15708 ac_need_defaults=false ;;
15709
15710 esac
15711 shift
15712 done
15713
15714 ac_configure_extra_args=
15715
15716 if $ac_cs_silent; then
15717 exec 6>/dev/null
15718 ac_configure_extra_args="$ac_configure_extra_args --silent"
15719 fi
15720
15721 _ACEOF
15722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 if \$ac_cs_recheck; then
15724 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15725 shift
15726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15727 CONFIG_SHELL='$SHELL'
15728 export CONFIG_SHELL
15729 exec "\$@"
15730 fi
15731
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 exec 5>>config.log
15735 {
15736 echo
15737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15738 ## Running $as_me. ##
15739 _ASBOX
15740 $as_echo "$ac_log"
15741 } >&5
15742
15743 _ACEOF
15744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15745 #
15746 # INIT-COMMANDS
15747 #
15748 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15749
15750 _ACEOF
15751
15752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753
15754 # Handling of arguments.
15755 for ac_config_target in $ac_config_targets
15756 do
15757 case $ac_config_target in
15758 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15759 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15760 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15761 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15762 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15763 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15764 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15765 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15766 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15767 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15768 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15769 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15770 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15771
15772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15773 esac
15774 done
15775
15776
15777 # If the user did not use the arguments to specify the items to instantiate,
15778 # then the envvar interface is used. Set only those that are not.
15779 # We use the long form for the default assignment because of an extremely
15780 # bizarre bug on SunOS 4.1.3.
15781 if $ac_need_defaults; then
15782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15785 fi
15786
15787 # Have a temporary directory for convenience. Make it in the build tree
15788 # simply because there is no reason against having it here, and in addition,
15789 # creating and moving files from /tmp can sometimes cause problems.
15790 # Hook for its removal unless debugging.
15791 # Note that there is a small window in which the directory will not be cleaned:
15792 # after its creation but before its name has been assigned to `$tmp'.
15793 $debug ||
15794 {
15795 tmp= ac_tmp=
15796 trap 'exit_status=$?
15797 : "${ac_tmp:=$tmp}"
15798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15799 ' 0
15800 trap 'as_fn_exit 1' 1 2 13 15
15801 }
15802 # Create a (secure) tmp directory for tmp files.
15803
15804 {
15805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15806 test -d "$tmp"
15807 } ||
15808 {
15809 tmp=./conf$$-$RANDOM
15810 (umask 077 && mkdir "$tmp")
15811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15812 ac_tmp=$tmp
15813
15814 # Set up the scripts for CONFIG_FILES section.
15815 # No need to generate them if there are no CONFIG_FILES.
15816 # This happens for instance with `./config.status config.h'.
15817 if test -n "$CONFIG_FILES"; then
15818
15819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15820 ac_cs_awk_getline=:
15821 ac_cs_awk_pipe_init=
15822 ac_cs_awk_read_file='
15823 while ((getline aline < (F[key])) > 0)
15824 print(aline)
15825 close(F[key])'
15826 ac_cs_awk_pipe_fini=
15827 else
15828 ac_cs_awk_getline=false
15829 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15830 ac_cs_awk_read_file='
15831 print "|#_!!_#|"
15832 print "cat " F[key] " &&"
15833 '$ac_cs_awk_pipe_init
15834 # The final `:' finishes the AND list.
15835 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15836 fi
15837 ac_cr=`echo X | tr X '\015'`
15838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15839 # But we know of no other shell where ac_cr would be empty at this
15840 # point, so we can use a bashism as a fallback.
15841 if test "x$ac_cr" = x; then
15842 eval ac_cr=\$\'\\r\'
15843 fi
15844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15846 ac_cs_awk_cr='\\r'
15847 else
15848 ac_cs_awk_cr=$ac_cr
15849 fi
15850
15851 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15852 _ACEOF
15853
15854 # Create commands to substitute file output variables.
15855 {
15856 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15857 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15858 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15859 echo "_ACAWK" &&
15860 echo "_ACEOF"
15861 } >conf$$files.sh &&
15862 . ./conf$$files.sh ||
15863 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15864 rm -f conf$$files.sh
15865
15866 {
15867 echo "cat >conf$$subs.awk <<_ACEOF" &&
15868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15869 echo "_ACEOF"
15870 } >conf$$subs.sh ||
15871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15873 ac_delim='%!_!# '
15874 for ac_last_try in false false false false false :; do
15875 . ./conf$$subs.sh ||
15876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15877
15878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15879 if test $ac_delim_n = $ac_delim_num; then
15880 break
15881 elif $ac_last_try; then
15882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15883 else
15884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15885 fi
15886 done
15887 rm -f conf$$subs.sh
15888
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15891 _ACEOF
15892 sed -n '
15893 h
15894 s/^/S["/; s/!.*/"]=/
15895 p
15896 g
15897 s/^[^!]*!//
15898 :repl
15899 t repl
15900 s/'"$ac_delim"'$//
15901 t delim
15902 :nl
15903 h
15904 s/\(.\{148\}\)..*/\1/
15905 t more1
15906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15907 p
15908 n
15909 b repl
15910 :more1
15911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15912 p
15913 g
15914 s/.\{148\}//
15915 t nl
15916 :delim
15917 h
15918 s/\(.\{148\}\)..*/\1/
15919 t more2
15920 s/["\\]/\\&/g; s/^/"/; s/$/"/
15921 p
15922 b
15923 :more2
15924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15925 p
15926 g
15927 s/.\{148\}//
15928 t delim
15929 ' <conf$$subs.awk | sed '
15930 /^[^""]/{
15931 N
15932 s/\n//
15933 }
15934 ' >>$CONFIG_STATUS || ac_write_fail=1
15935 rm -f conf$$subs.awk
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 _ACAWK
15938 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15939 for (key in S) S_is_set[key] = 1
15940 FS = "\a"
15941 \$ac_cs_awk_pipe_init
15942 }
15943 {
15944 line = $ 0
15945 nfields = split(line, field, "@")
15946 substed = 0
15947 len = length(field[1])
15948 for (i = 2; i < nfields; i++) {
15949 key = field[i]
15950 keylen = length(key)
15951 if (S_is_set[key]) {
15952 value = S[key]
15953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15954 len += length(value) + length(field[++i])
15955 substed = 1
15956 } else
15957 len += 1 + keylen
15958 }
15959 if (nfields == 3 && !substed) {
15960 key = field[2]
15961 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15962 \$ac_cs_awk_read_file
15963 next
15964 }
15965 }
15966 print line
15967 }
15968 \$ac_cs_awk_pipe_fini
15969 _ACAWK
15970 _ACEOF
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15974 else
15975 cat
15976 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15977 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15978 _ACEOF
15979
15980 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15981 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15982 # trailing colons and then remove the whole line if VPATH becomes empty
15983 # (actually we leave an empty line to preserve line numbers).
15984 if test "x$srcdir" = x.; then
15985 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15986 h
15987 s///
15988 s/^/:/
15989 s/[ ]*$/:/
15990 s/:\$(srcdir):/:/g
15991 s/:\${srcdir}:/:/g
15992 s/:@srcdir@:/:/g
15993 s/^:*//
15994 s/:*$//
15995 x
15996 s/\(=[ ]*\).*/\1/
15997 G
15998 s/\n//
15999 s/^[^=]*=[ ]*$//
16000 }'
16001 fi
16002
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 fi # test -n "$CONFIG_FILES"
16005
16006 # Set up the scripts for CONFIG_HEADERS section.
16007 # No need to generate them if there are no CONFIG_HEADERS.
16008 # This happens for instance with `./config.status Makefile'.
16009 if test -n "$CONFIG_HEADERS"; then
16010 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16011 BEGIN {
16012 _ACEOF
16013
16014 # Transform confdefs.h into an awk script `defines.awk', embedded as
16015 # here-document in config.status, that substitutes the proper values into
16016 # config.h.in to produce config.h.
16017
16018 # Create a delimiter string that does not exist in confdefs.h, to ease
16019 # handling of long lines.
16020 ac_delim='%!_!# '
16021 for ac_last_try in false false :; do
16022 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16023 if test -z "$ac_tt"; then
16024 break
16025 elif $ac_last_try; then
16026 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16027 else
16028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16029 fi
16030 done
16031
16032 # For the awk script, D is an array of macro values keyed by name,
16033 # likewise P contains macro parameters if any. Preserve backslash
16034 # newline sequences.
16035
16036 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16037 sed -n '
16038 s/.\{148\}/&'"$ac_delim"'/g
16039 t rset
16040 :rset
16041 s/^[ ]*#[ ]*define[ ][ ]*/ /
16042 t def
16043 d
16044 :def
16045 s/\\$//
16046 t bsnl
16047 s/["\\]/\\&/g
16048 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16049 D["\1"]=" \3"/p
16050 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16051 d
16052 :bsnl
16053 s/["\\]/\\&/g
16054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16055 D["\1"]=" \3\\\\\\n"\\/p
16056 t cont
16057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16058 t cont
16059 d
16060 :cont
16061 n
16062 s/.\{148\}/&'"$ac_delim"'/g
16063 t clear
16064 :clear
16065 s/\\$//
16066 t bsnlc
16067 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16068 d
16069 :bsnlc
16070 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16071 b cont
16072 ' <confdefs.h | sed '
16073 s/'"$ac_delim"'/"\\\
16074 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16075
16076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16077 for (key in D) D_is_set[key] = 1
16078 FS = "\a"
16079 }
16080 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16081 line = \$ 0
16082 split(line, arg, " ")
16083 if (arg[1] == "#") {
16084 defundef = arg[2]
16085 mac1 = arg[3]
16086 } else {
16087 defundef = substr(arg[1], 2)
16088 mac1 = arg[2]
16089 }
16090 split(mac1, mac2, "(") #)
16091 macro = mac2[1]
16092 prefix = substr(line, 1, index(line, defundef) - 1)
16093 if (D_is_set[macro]) {
16094 # Preserve the white space surrounding the "#".
16095 print prefix "define", macro P[macro] D[macro]
16096 next
16097 } else {
16098 # Replace #undef with comments. This is necessary, for example,
16099 # in the case of _POSIX_SOURCE, which is predefined and required
16100 # on some systems where configure will not decide to define it.
16101 if (defundef == "undef") {
16102 print "/*", prefix defundef, macro, "*/"
16103 next
16104 }
16105 }
16106 }
16107 { print }
16108 _ACAWK
16109 _ACEOF
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16112 fi # test -n "$CONFIG_HEADERS"
16113
16114
16115 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16116 shift
16117 for ac_tag
16118 do
16119 case $ac_tag in
16120 :[FHLC]) ac_mode=$ac_tag; continue;;
16121 esac
16122 case $ac_mode$ac_tag in
16123 :[FHL]*:*);;
16124 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16125 :[FH]-) ac_tag=-:-;;
16126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16127 esac
16128 ac_save_IFS=$IFS
16129 IFS=:
16130 set x $ac_tag
16131 IFS=$ac_save_IFS
16132 shift
16133 ac_file=$1
16134 shift
16135
16136 case $ac_mode in
16137 :L) ac_source=$1;;
16138 :[FH])
16139 ac_file_inputs=
16140 for ac_f
16141 do
16142 case $ac_f in
16143 -) ac_f="$ac_tmp/stdin";;
16144 *) # Look for the file first in the build tree, then in the source tree
16145 # (if the path is not absolute). The absolute path cannot be DOS-style,
16146 # because $ac_f cannot contain `:'.
16147 test -f "$ac_f" ||
16148 case $ac_f in
16149 [\\/$]*) false;;
16150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16151 esac ||
16152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16153 esac
16154 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16155 as_fn_append ac_file_inputs " '$ac_f'"
16156 done
16157
16158 # Let's still pretend it is `configure' which instantiates (i.e., don't
16159 # use $as_me), people would be surprised to read:
16160 # /* config.h. Generated by config.status. */
16161 configure_input='Generated from '`
16162 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16163 `' by configure.'
16164 if test x"$ac_file" != x-; then
16165 configure_input="$ac_file. $configure_input"
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16167 $as_echo "$as_me: creating $ac_file" >&6;}
16168 fi
16169 # Neutralize special characters interpreted by sed in replacement strings.
16170 case $configure_input in #(
16171 *\&* | *\|* | *\\* )
16172 ac_sed_conf_input=`$as_echo "$configure_input" |
16173 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16174 *) ac_sed_conf_input=$configure_input;;
16175 esac
16176
16177 case $ac_tag in
16178 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16180 esac
16181 ;;
16182 esac
16183
16184 ac_dir=`$as_dirname -- "$ac_file" ||
16185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16186 X"$ac_file" : 'X\(//\)[^/]' \| \
16187 X"$ac_file" : 'X\(//\)$' \| \
16188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16189 $as_echo X"$ac_file" |
16190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16191 s//\1/
16192 q
16193 }
16194 /^X\(\/\/\)[^/].*/{
16195 s//\1/
16196 q
16197 }
16198 /^X\(\/\/\)$/{
16199 s//\1/
16200 q
16201 }
16202 /^X\(\/\).*/{
16203 s//\1/
16204 q
16205 }
16206 s/.*/./; q'`
16207 as_dir="$ac_dir"; as_fn_mkdir_p
16208 ac_builddir=.
16209
16210 case "$ac_dir" in
16211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16212 *)
16213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16214 # A ".." for each directory in $ac_dir_suffix.
16215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16216 case $ac_top_builddir_sub in
16217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16219 esac ;;
16220 esac
16221 ac_abs_top_builddir=$ac_pwd
16222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16223 # for backward compatibility:
16224 ac_top_builddir=$ac_top_build_prefix
16225
16226 case $srcdir in
16227 .) # We are building in place.
16228 ac_srcdir=.
16229 ac_top_srcdir=$ac_top_builddir_sub
16230 ac_abs_top_srcdir=$ac_pwd ;;
16231 [\\/]* | ?:[\\/]* ) # Absolute name.
16232 ac_srcdir=$srcdir$ac_dir_suffix;
16233 ac_top_srcdir=$srcdir
16234 ac_abs_top_srcdir=$srcdir ;;
16235 *) # Relative name.
16236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16237 ac_top_srcdir=$ac_top_build_prefix$srcdir
16238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16239 esac
16240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16241
16242
16243 case $ac_mode in
16244 :F)
16245 #
16246 # CONFIG_FILE
16247 #
16248
16249 case $INSTALL in
16250 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16251 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16252 esac
16253 _ACEOF
16254
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256 # If the template does not know about datarootdir, expand it.
16257 # FIXME: This hack should be removed a few years after 2.60.
16258 ac_datarootdir_hack=; ac_datarootdir_seen=
16259 ac_sed_dataroot='
16260 /datarootdir/ {
16261 p
16262 q
16263 }
16264 /@datadir@/p
16265 /@docdir@/p
16266 /@infodir@/p
16267 /@localedir@/p
16268 /@mandir@/p'
16269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16270 *datarootdir*) ac_datarootdir_seen=yes;;
16271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16274 _ACEOF
16275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16276 ac_datarootdir_hack='
16277 s&@datadir@&$datadir&g
16278 s&@docdir@&$docdir&g
16279 s&@infodir@&$infodir&g
16280 s&@localedir@&$localedir&g
16281 s&@mandir@&$mandir&g
16282 s&\\\${datarootdir}&$datarootdir&g' ;;
16283 esac
16284 _ACEOF
16285
16286 # Neutralize VPATH when `$srcdir' = `.'.
16287 # Shell code in configure.ac might set extrasub.
16288 # FIXME: do we really want to maintain this feature?
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_sed_extra="$ac_vpsub
16291 $extrasub
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16294 :t
16295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16296 s|@configure_input@|$ac_sed_conf_input|;t t
16297 s&@top_builddir@&$ac_top_builddir_sub&;t t
16298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16299 s&@srcdir@&$ac_srcdir&;t t
16300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16301 s&@top_srcdir@&$ac_top_srcdir&;t t
16302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16303 s&@builddir@&$ac_builddir&;t t
16304 s&@abs_builddir@&$ac_abs_builddir&;t t
16305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16306 s&@INSTALL@&$ac_INSTALL&;t t
16307 $ac_datarootdir_hack
16308 "
16309 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16310 if $ac_cs_awk_getline; then
16311 $AWK -f "$ac_tmp/subs.awk"
16312 else
16313 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16314 fi \
16315 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16316
16317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16320 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16322 which seems to be undefined. Please make sure it is defined" >&5
16323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined. Please make sure it is defined" >&2;}
16325
16326 rm -f "$ac_tmp/stdin"
16327 case $ac_file in
16328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16330 esac \
16331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16332 ;;
16333 :H)
16334 #
16335 # CONFIG_HEADER
16336 #
16337 if test x"$ac_file" != x-; then
16338 {
16339 $as_echo "/* $configure_input */" \
16340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16341 } >"$ac_tmp/config.h" \
16342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16346 else
16347 rm -f "$ac_file"
16348 mv "$ac_tmp/config.h" "$ac_file" \
16349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16350 fi
16351 else
16352 $as_echo "/* $configure_input */" \
16353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16354 || as_fn_error $? "could not create -" "$LINENO" 5
16355 fi
16356 ;;
16357
16358 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16359 $as_echo "$as_me: executing $ac_file commands" >&6;}
16360 ;;
16361 esac
16362
16363
16364 case $ac_file$ac_mode in
16365 "default":C)
16366
16367 ### Make the necessary directories, if they don't exist.
16368 for dir in etc lisp ; do
16369 test -d ${dir} || mkdir ${dir}
16370 done
16371
16372 echo creating src/epaths.h
16373 ${MAKE-make} epaths-force
16374
16375 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16376 echo creating src/.gdbinit
16377 echo source $srcdir/src/.gdbinit > src/.gdbinit
16378 fi
16379
16380 ;;
16381
16382 esac
16383 done # for ac_tag
16384
16385
16386 as_fn_exit 0
16387 _ACEOF
16388 ac_clean_files=$ac_clean_files_save
16389
16390 test $ac_write_fail = 0 ||
16391 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16392
16393
16394 # configure is writing to config.log, and then calls config.status.
16395 # config.status does its own redirection, appending to config.log.
16396 # Unfortunately, on DOS this fails, as config.log is still kept open
16397 # by configure, so config.status won't be able to write to it; its
16398 # output is simply discarded. So we exec the FD to /dev/null,
16399 # effectively closing config.log, so it can be properly (re)opened and
16400 # appended to by config.status. When coming back to configure, we
16401 # need to make the FD available again.
16402 if test "$no_create" != yes; then
16403 ac_cs_success=:
16404 ac_config_status_args=
16405 test "$silent" = yes &&
16406 ac_config_status_args="$ac_config_status_args --quiet"
16407 exec 5>/dev/null
16408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16409 exec 5>>config.log
16410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16411 # would make configure fail if this is the last instruction.
16412 $ac_cs_success || as_fn_exit 1
16413 fi
16414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16417 fi
16418
16419