]> code.delx.au - gnu-emacs/blob - configure
Missing files in last commit; remove stack-depth in byte-optimize-lapcode
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_func_list=
599 ac_subst_vars='gltests_LTLIBOBJS
600 gltests_LIBOBJS
601 gl_LTLIBOBJS
602 gl_LIBOBJS
603 am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 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 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
673 NEXT_STDDEF_H
674 STDDEF_H
675 HAVE_WCHAR_T
676 REPLACE_NULL
677 HAVE__BOOL
678 STDBOOL_H
679 APPLE_UNIVERSAL_BUILD
680 REPLACE_TIMEGM
681 REPLACE_NANOSLEEP
682 REPLACE_MKTIME
683 REPLACE_LOCALTIME_R
684 HAVE_TIMEGM
685 HAVE_STRPTIME
686 HAVE_NANOSLEEP
687 HAVE_DECL_LOCALTIME_R
688 GNULIB_TIME_R
689 GNULIB_TIMEGM
690 GNULIB_STRPTIME
691 GNULIB_NANOSLEEP
692 GNULIB_MKTIME
693 LTLIBINTL
694 LIBINTL
695 GETOPT_H
696 HAVE_GETOPT_H
697 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
698 NEXT_GETOPT_H
699 PRAGMA_COLUMNS
700 PRAGMA_SYSTEM_HEADER
701 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
702 INCLUDE_NEXT
703 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
704 UNISTD_H_HAVE_WINSOCK2_H
705 REPLACE_WRITE
706 REPLACE_USLEEP
707 REPLACE_UNLINKAT
708 REPLACE_UNLINK
709 REPLACE_TTYNAME_R
710 REPLACE_SYMLINK
711 REPLACE_SLEEP
712 REPLACE_RMDIR
713 REPLACE_READLINK
714 REPLACE_PWRITE
715 REPLACE_PREAD
716 REPLACE_LSEEK
717 REPLACE_LINKAT
718 REPLACE_LINK
719 REPLACE_LCHOWN
720 REPLACE_GETPAGESIZE
721 REPLACE_GETGROUPS
722 REPLACE_GETLOGIN_R
723 REPLACE_GETDOMAINNAME
724 REPLACE_GETCWD
725 REPLACE_FCHOWNAT
726 REPLACE_DUP2
727 REPLACE_DUP
728 REPLACE_CLOSE
729 REPLACE_CHOWN
730 HAVE_SYS_PARAM_H
731 HAVE_OS_H
732 HAVE_DECL_TTYNAME_R
733 HAVE_DECL_GETUSERSHELL
734 HAVE_DECL_GETPAGESIZE
735 HAVE_DECL_GETLOGIN_R
736 HAVE_DECL_GETDOMAINNAME
737 HAVE_DECL_FCHDIR
738 HAVE_DECL_ENVIRON
739 HAVE_USLEEP
740 HAVE_UNLINKAT
741 HAVE_SYMLINKAT
742 HAVE_SYMLINK
743 HAVE_SLEEP
744 HAVE_READLINKAT
745 HAVE_READLINK
746 HAVE_PWRITE
747 HAVE_PREAD
748 HAVE_PIPE2
749 HAVE_PIPE
750 HAVE_LINKAT
751 HAVE_LINK
752 HAVE_LCHOWN
753 HAVE_GETPAGESIZE
754 HAVE_GETLOGIN
755 HAVE_GETHOSTNAME
756 HAVE_GETGROUPS
757 HAVE_GETDTABLESIZE
758 HAVE_FTRUNCATE
759 HAVE_FSYNC
760 HAVE_FCHOWNAT
761 HAVE_FCHDIR
762 HAVE_FACCESSAT
763 HAVE_EUIDACCESS
764 HAVE_DUP3
765 HAVE_DUP2
766 HAVE_CHOWN
767 GNULIB_WRITE
768 GNULIB_USLEEP
769 GNULIB_UNLINKAT
770 GNULIB_UNLINK
771 GNULIB_UNISTD_H_SIGPIPE
772 GNULIB_UNISTD_H_GETOPT
773 GNULIB_TTYNAME_R
774 GNULIB_SYMLINKAT
775 GNULIB_SYMLINK
776 GNULIB_SLEEP
777 GNULIB_RMDIR
778 GNULIB_READLINKAT
779 GNULIB_READLINK
780 GNULIB_PWRITE
781 GNULIB_PREAD
782 GNULIB_PIPE2
783 GNULIB_PIPE
784 GNULIB_LSEEK
785 GNULIB_LINKAT
786 GNULIB_LINK
787 GNULIB_LCHOWN
788 GNULIB_GETUSERSHELL
789 GNULIB_GETPAGESIZE
790 GNULIB_GETLOGIN_R
791 GNULIB_GETLOGIN
792 GNULIB_GETHOSTNAME
793 GNULIB_GETGROUPS
794 GNULIB_GETDTABLESIZE
795 GNULIB_GETDOMAINNAME
796 GNULIB_GETCWD
797 GNULIB_FTRUNCATE
798 GNULIB_FSYNC
799 GNULIB_FCHOWNAT
800 GNULIB_FCHDIR
801 GNULIB_FACCESSAT
802 GNULIB_EUIDACCESS
803 GNULIB_ENVIRON
804 GNULIB_DUP3
805 GNULIB_DUP2
806 GNULIB_CLOSE
807 GNULIB_CHOWN
808 GL_COND_LIBTOOL_FALSE
809 GL_COND_LIBTOOL_TRUE
810 GETLOADAVG_LIBS
811 KMEM_GROUP
812 NEED_SETGID
813 LIBOBJS
814 BLESSMAIL_TARGET
815 LIBS_MAIL
816 liblockfile
817 ALLOCA
818 LIBXML2_LIBS
819 LIBXML2_CFLAGS
820 LIBXSM
821 LIBGPM
822 LIBGIF
823 LIBTIFF
824 LIBPNG
825 LIBJPEG
826 LIBXPM
827 FREETYPE_LIBS
828 FREETYPE_CFLAGS
829 M17N_FLT_LIBS
830 M17N_FLT_CFLAGS
831 LIBOTF_LIBS
832 LIBOTF_CFLAGS
833 XFT_LIBS
834 XFT_CFLAGS
835 FONTCONFIG_LIBS
836 FONTCONFIG_CFLAGS
837 LIBXMU
838 LIBXTR6
839 LIBGNUTLS_LIBS
840 LIBGNUTLS_CFLAGS
841 LIBSELINUX_LIBS
842 GCONF_LIBS
843 GCONF_CFLAGS
844 DBUS_OBJ
845 DBUS_LIBS
846 DBUS_CFLAGS
847 GTK_OBJ
848 GTK_LIBS
849 GTK_CFLAGS
850 IMAGEMAGICK_LIBS
851 IMAGEMAGICK_CFLAGS
852 RSVG_LIBS
853 RSVG_CFLAGS
854 VMLIMIT_OBJ
855 GMALLOC_OBJ
856 HAVE_XSERVER
857 LIB_STANDARD
858 NS_SUPPORT
859 NS_OBJC_OBJ
860 NS_OBJ
861 TEMACS_LDFLAGS2
862 LD_SWITCH_X_SITE_AUX_RPATH
863 LD_SWITCH_X_SITE_AUX
864 XMKMF
865 DEPFLAGS
866 MKDEPDIR
867 CFLAGS_SOUND
868 ALSA_LIBS
869 ALSA_CFLAGS
870 PKG_CONFIG
871 LIBSOUND
872 START_FILES
873 LIB_MATH
874 CRT_DIR
875 LIBS_SYSTEM
876 C_SWITCH_SYSTEM
877 UNEXEC_OBJ
878 C_SWITCH_MACHINE
879 LD_SWITCH_SYSTEM
880 CANNOT_DUMP
881 HAVE_MAKEINFO
882 GZIP_PROG
883 INSTALL_INFO
884 C_WARNINGS_SWITCH
885 EGREP
886 GREP
887 CPP
888 RANLIB
889 am__fastdepCC_FALSE
890 am__fastdepCC_TRUE
891 CCDEPMODE
892 AMDEPBACKSLASH
893 AMDEP_FALSE
894 AMDEP_TRUE
895 am__quote
896 am__include
897 DEPDIR
898 OBJEXT
899 EXEEXT
900 ac_ct_CC
901 CPPFLAGS
902 LDFLAGS
903 CFLAGS
904 CC
905 host_os
906 host_vendor
907 host_cpu
908 host
909 build_os
910 build_vendor
911 build_cpu
912 build
913 PROFILING_CFLAGS
914 MAINT
915 GZIP_INFO
916 am__untar
917 am__tar
918 AMTAR
919 am__leading_dot
920 SET_MAKE
921 AWK
922 mkdir_p
923 MKDIR_P
924 INSTALL_STRIP_PROGRAM
925 STRIP
926 install_sh
927 MAKEINFO
928 AUTOHEADER
929 AUTOMAKE
930 AUTOCONF
931 ACLOCAL
932 VERSION
933 PACKAGE
934 CYGPATH_W
935 am__isrc
936 INSTALL_DATA
937 INSTALL_SCRIPT
938 INSTALL_PROGRAM
939 target_alias
940 host_alias
941 build_alias
942 LIBS
943 ECHO_T
944 ECHO_N
945 ECHO_C
946 DEFS
947 mandir
948 localedir
949 libdir
950 psdir
951 pdfdir
952 dvidir
953 htmldir
954 infodir
955 docdir
956 oldincludedir
957 includedir
958 localstatedir
959 sharedstatedir
960 sysconfdir
961 datadir
962 datarootdir
963 libexecdir
964 sbindir
965 bindir
966 program_transform_name
967 prefix
968 exec_prefix
969 PACKAGE_URL
970 PACKAGE_BUGREPORT
971 PACKAGE_STRING
972 PACKAGE_VERSION
973 PACKAGE_TARNAME
974 PACKAGE_NAME
975 PATH_SEPARATOR
976 SHELL'
977 ac_subst_files='deps_frag
978 ns_frag'
979 ac_user_opts='
980 enable_option_checking
981 with_pop
982 with_kerberos
983 with_kerberos5
984 with_hesiod
985 with_mmdf
986 with_mail_unlink
987 with_mailhost
988 with_sound
989 with_sync_input
990 with_x_toolkit
991 with_xpm
992 with_jpeg
993 with_tiff
994 with_gif
995 with_png
996 with_rsvg
997 with_xml2
998 with_imagemagick
999 with_xft
1000 with_libotf
1001 with_m17n_flt
1002 with_toolkit_scroll_bars
1003 with_xaw3d
1004 with_xim
1005 with_ns
1006 with_gpm
1007 with_dbus
1008 with_gconf
1009 with_selinux
1010 with_gnutls
1011 with_makeinfo
1012 with_compress_info
1013 with_pkg_config_prog
1014 with_crt_dir
1015 with_gameuser
1016 with_gnustep_conf
1017 enable_ns_self_contained
1018 enable_asserts
1019 enable_maintainer_mode
1020 enable_locallisppath
1021 enable_checking
1022 enable_use_lisp_union_type
1023 enable_profiling
1024 enable_autodepend
1025 enable_dependency_tracking
1026 enable_largefile
1027 with_x
1028 '
1029 ac_precious_vars='build_alias
1030 host_alias
1031 target_alias
1032 CC
1033 CFLAGS
1034 LDFLAGS
1035 LIBS
1036 CPPFLAGS
1037 CPP
1038 XMKMF'
1039
1040
1041 # Initialize some variables set by options.
1042 ac_init_help=
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1049 exec_prefix=NONE
1050 no_create=
1051 no_recursion=
1052 prefix=NONE
1053 program_prefix=NONE
1054 program_suffix=NONE
1055 program_transform_name=s,x,x,
1056 silent=
1057 site=
1058 srcdir=
1059 verbose=
1060 x_includes=NONE
1061 x_libraries=NONE
1062
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 includedir='${prefix}/include'
1078 oldincludedir='/usr/include'
1079 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1080 infodir='${datarootdir}/info'
1081 htmldir='${docdir}'
1082 dvidir='${docdir}'
1083 pdfdir='${docdir}'
1084 psdir='${docdir}'
1085 libdir='${exec_prefix}/lib'
1086 localedir='${datarootdir}/locale'
1087 mandir='${datarootdir}/man'
1088
1089 ac_prev=
1090 ac_dashdash=
1091 for ac_option
1092 do
1093 # If the previous option needs an argument, assign it.
1094 if test -n "$ac_prev"; then
1095 eval $ac_prev=\$ac_option
1096 ac_prev=
1097 continue
1098 fi
1099
1100 case $ac_option in
1101 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1102 *=) ac_optarg= ;;
1103 *) ac_optarg=yes ;;
1104 esac
1105
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1107
1108 case $ac_dashdash$ac_option in
1109 --)
1110 ac_dashdash=yes ;;
1111
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113 ac_prev=bindir ;;
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1116
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1121
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1128
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1131
1132 -datadir | --datadir | --datadi | --datad)
1133 ac_prev=datadir ;;
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1136
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1143
1144 -disable-* | --disable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "enable_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval enable_$ac_useropt=no ;;
1159
1160 -docdir | --docdir | --docdi | --doc | --do)
1161 ac_prev=docdir ;;
1162 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163 docdir=$ac_optarg ;;
1164
1165 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166 ac_prev=dvidir ;;
1167 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168 dvidir=$ac_optarg ;;
1169
1170 -enable-* | --enable-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid feature name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "enable_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval enable_$ac_useropt=\$ac_optarg ;;
1185
1186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188 | --exec | --exe | --ex)
1189 ac_prev=exec_prefix ;;
1190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192 | --exec=* | --exe=* | --ex=*)
1193 exec_prefix=$ac_optarg ;;
1194
1195 -gas | --gas | --ga | --g)
1196 # Obsolete; use --with-gas.
1197 with_gas=yes ;;
1198
1199 -help | --help | --hel | --he | -h)
1200 ac_init_help=long ;;
1201 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202 ac_init_help=recursive ;;
1203 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204 ac_init_help=short ;;
1205
1206 -host | --host | --hos | --ho)
1207 ac_prev=host_alias ;;
1208 -host=* | --host=* | --hos=* | --ho=*)
1209 host_alias=$ac_optarg ;;
1210
1211 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1212 ac_prev=htmldir ;;
1213 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1214 | --ht=*)
1215 htmldir=$ac_optarg ;;
1216
1217 -includedir | --includedir | --includedi | --included | --include \
1218 | --includ | --inclu | --incl | --inc)
1219 ac_prev=includedir ;;
1220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221 | --includ=* | --inclu=* | --incl=* | --inc=*)
1222 includedir=$ac_optarg ;;
1223
1224 -infodir | --infodir | --infodi | --infod | --info | --inf)
1225 ac_prev=infodir ;;
1226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227 infodir=$ac_optarg ;;
1228
1229 -libdir | --libdir | --libdi | --libd)
1230 ac_prev=libdir ;;
1231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232 libdir=$ac_optarg ;;
1233
1234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235 | --libexe | --libex | --libe)
1236 ac_prev=libexecdir ;;
1237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238 | --libexe=* | --libex=* | --libe=*)
1239 libexecdir=$ac_optarg ;;
1240
1241 -localedir | --localedir | --localedi | --localed | --locale)
1242 ac_prev=localedir ;;
1243 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244 localedir=$ac_optarg ;;
1245
1246 -localstatedir | --localstatedir | --localstatedi | --localstated \
1247 | --localstate | --localstat | --localsta | --localst | --locals)
1248 ac_prev=localstatedir ;;
1249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251 localstatedir=$ac_optarg ;;
1252
1253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1254 ac_prev=mandir ;;
1255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256 mandir=$ac_optarg ;;
1257
1258 -nfp | --nfp | --nf)
1259 # Obsolete; use --without-fp.
1260 with_fp=no ;;
1261
1262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263 | --no-cr | --no-c | -n)
1264 no_create=yes ;;
1265
1266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1268 no_recursion=yes ;;
1269
1270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272 | --oldin | --oldi | --old | --ol | --o)
1273 ac_prev=oldincludedir ;;
1274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277 oldincludedir=$ac_optarg ;;
1278
1279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1280 ac_prev=prefix ;;
1281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282 prefix=$ac_optarg ;;
1283
1284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285 | --program-pre | --program-pr | --program-p)
1286 ac_prev=program_prefix ;;
1287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289 program_prefix=$ac_optarg ;;
1290
1291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292 | --program-suf | --program-su | --program-s)
1293 ac_prev=program_suffix ;;
1294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296 program_suffix=$ac_optarg ;;
1297
1298 -program-transform-name | --program-transform-name \
1299 | --program-transform-nam | --program-transform-na \
1300 | --program-transform-n | --program-transform- \
1301 | --program-transform | --program-transfor \
1302 | --program-transfo | --program-transf \
1303 | --program-trans | --program-tran \
1304 | --progr-tra | --program-tr | --program-t)
1305 ac_prev=program_transform_name ;;
1306 -program-transform-name=* | --program-transform-name=* \
1307 | --program-transform-nam=* | --program-transform-na=* \
1308 | --program-transform-n=* | --program-transform-=* \
1309 | --program-transform=* | --program-transfor=* \
1310 | --program-transfo=* | --program-transf=* \
1311 | --program-trans=* | --program-tran=* \
1312 | --progr-tra=* | --program-tr=* | --program-t=*)
1313 program_transform_name=$ac_optarg ;;
1314
1315 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1316 ac_prev=pdfdir ;;
1317 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318 pdfdir=$ac_optarg ;;
1319
1320 -psdir | --psdir | --psdi | --psd | --ps)
1321 ac_prev=psdir ;;
1322 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1323 psdir=$ac_optarg ;;
1324
1325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326 | -silent | --silent | --silen | --sile | --sil)
1327 silent=yes ;;
1328
1329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1330 ac_prev=sbindir ;;
1331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1332 | --sbi=* | --sb=*)
1333 sbindir=$ac_optarg ;;
1334
1335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337 | --sharedst | --shareds | --shared | --share | --shar \
1338 | --sha | --sh)
1339 ac_prev=sharedstatedir ;;
1340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1343 | --sha=* | --sh=*)
1344 sharedstatedir=$ac_optarg ;;
1345
1346 -site | --site | --sit)
1347 ac_prev=site ;;
1348 -site=* | --site=* | --sit=*)
1349 site=$ac_optarg ;;
1350
1351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1352 ac_prev=srcdir ;;
1353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354 srcdir=$ac_optarg ;;
1355
1356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357 | --syscon | --sysco | --sysc | --sys | --sy)
1358 ac_prev=sysconfdir ;;
1359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361 sysconfdir=$ac_optarg ;;
1362
1363 -target | --target | --targe | --targ | --tar | --ta | --t)
1364 ac_prev=target_alias ;;
1365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366 target_alias=$ac_optarg ;;
1367
1368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1369 verbose=yes ;;
1370
1371 -version | --version | --versio | --versi | --vers | -V)
1372 ac_init_version=: ;;
1373
1374 -with-* | --with-*)
1375 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1382 *"
1383 "with_$ac_useropt"
1384 "*) ;;
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1387 esac
1388 eval with_$ac_useropt=\$ac_optarg ;;
1389
1390 -without-* | --without-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394 as_fn_error $? "invalid package name: $ac_useropt"
1395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1398 *"
1399 "with_$ac_useropt"
1400 "*) ;;
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1403 esac
1404 eval with_$ac_useropt=no ;;
1405
1406 --x)
1407 # Obsolete; use --with-x.
1408 with_x=yes ;;
1409
1410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411 | --x-incl | --x-inc | --x-in | --x-i)
1412 ac_prev=x_includes ;;
1413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415 x_includes=$ac_optarg ;;
1416
1417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419 ac_prev=x_libraries ;;
1420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422 x_libraries=$ac_optarg ;;
1423
1424 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information"
1426 ;;
1427
1428 *=*)
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 case $ac_envvar in #(
1432 '' | [0-9]* | *[!_$as_cr_alnum]* )
1433 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1434 esac
1435 eval $ac_envvar=\$ac_optarg
1436 export $ac_envvar ;;
1437
1438 *)
1439 # FIXME: should be removed in autoconf 3.0.
1440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 ;;
1445
1446 esac
1447 done
1448
1449 if test -n "$ac_prev"; then
1450 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451 as_fn_error $? "missing argument to $ac_option"
1452 fi
1453
1454 if test -n "$ac_unrecognized_opts"; then
1455 case $enable_option_checking in
1456 no) ;;
1457 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459 esac
1460 fi
1461
1462 # Check all directory arguments for consistency.
1463 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1467 do
1468 eval ac_val=\$$ac_var
1469 # Remove trailing slashes.
1470 case $ac_val in
1471 */ )
1472 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473 eval $ac_var=\$ac_val;;
1474 esac
1475 # Be sure to have absolute directory names.
1476 case $ac_val in
1477 [\\/$]* | ?:[\\/]* ) continue;;
1478 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1479 esac
1480 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1481 done
1482
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1486 build=$build_alias
1487 host=$host_alias
1488 target=$target_alias
1489
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492 if test "x$build_alias" = x; then
1493 cross_compiling=maybe
1494 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1495 If a cross compiler is detected then cross compile mode will be used" >&2
1496 elif test "x$build_alias" != "x$host_alias"; then
1497 cross_compiling=yes
1498 fi
1499 fi
1500
1501 ac_tool_prefix=
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504 test "$silent" = yes && exec 6>/dev/null
1505
1506
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error $? "working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error $? "pwd does not report name of working directory"
1513
1514
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526 s//\1/
1527 q
1528 }
1529 /^X\(\/\/\)[^/].*/{
1530 s//\1/
1531 q
1532 }
1533 /^X\(\/\/\)$/{
1534 s//\1/
1535 q
1536 }
1537 /^X\(\/\).*/{
1538 s//\1/
1539 q
1540 }
1541 s/.*/./; q'`
1542 srcdir=$ac_confdir
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1544 srcdir=..
1545 fi
1546 else
1547 ac_srcdir_defaulted=no
1548 fi
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1556 pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559 srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_${ac_var}_value=\$${ac_var}
1570 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1580 cat <<_ACEOF
1581 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking ...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1605 [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1634 _ACEOF
1635
1636 cat <<\_ACEOF
1637
1638 Program names:
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1642
1643 X features:
1644 --x-includes=DIR X include files are in DIR
1645 --x-libraries=DIR X library files are in DIR
1646
1647 System types:
1648 --build=BUILD configure for building on BUILD [guessed]
1649 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1650 _ACEOF
1651 fi
1652
1653 if test -n "$ac_init_help"; then
1654 case $ac_init_help in
1655 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1656 esac
1657 cat <<\_ACEOF
1658
1659 Optional Features:
1660 --disable-option-checking ignore unrecognized --enable/--with options
1661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1663 --disable-ns-self-contained
1664 disable self contained build under NeXTstep
1665 --enable-asserts compile code with asserts enabled
1666 --enable-maintainer-mode
1667 enable make rules and dependencies not useful (and
1668 sometimes confusing) to the casual installer
1669 --enable-locallisppath=PATH
1670 directories Emacs should search for lisp files
1671 specific to this site
1672 --enable-checking[=LIST]
1673 enable expensive run-time checks. With LIST, enable
1674 only specific categories of checks. Categories are:
1675 all,yes,no. Flags are: stringbytes, stringoverrun,
1676 stringfreelist, xmallocoverrun, conslist
1677 --enable-use-lisp-union-type
1678 use a union for the Lisp_Object data type. This is
1679 only useful for development for catching certain
1680 types of bugs.
1681 --enable-profiling build emacs with profiling support. This might not
1682 work on all platforms
1683 --enable-autodepend automatically generate dependencies to .h-files.
1684 Requires GNU Make and Gcc. Enabled if GNU Make and
1685 Gcc is found
1686 --disable-dependency-tracking speeds up one-time build
1687 --enable-dependency-tracking do not reject slow dependency extractors
1688 --disable-largefile omit support for large files
1689
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --without-pop don't support POP mail retrieval with movemail
1694 --with-kerberos support Kerberos-authenticated POP
1695 --with-kerberos5 support Kerberos version 5 authenticated POP
1696 --with-hesiod support Hesiod to get the POP server host
1697 --with-mmdf support MMDF mailboxes
1698 --with-mail-unlink unlink, rather than empty, mail spool after reading
1699 --with-mailhost=HOSTNAME
1700 string giving default POP mail host
1701 --without-sound don't compile with sound support
1702 --without-sync-input process async input synchronously
1703 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1704 lucid or athena, motif, no)
1705 --without-xpm don't compile with XPM image support
1706 --without-jpeg don't compile with JPEG image support
1707 --without-tiff don't compile with TIFF image support
1708 --without-gif don't compile with GIF image support
1709 --without-png don't compile with PNG image support
1710 --without-rsvg don't compile with SVG image support
1711 --without-xml2 don't compile with XML parsing support
1712 --without-imagemagick don't compile with ImageMagick image support
1713 --without-xft don't use XFT for anti aliased fonts
1714 --without-libotf don't use libotf for OpenType font support
1715 --without-m17n-flt don't use m17n-flt for text shaping
1716 --without-toolkit-scroll-bars
1717 don't use Motif or Xaw3d scroll bars
1718 --without-xaw3d don't use Xaw3d
1719 --without-xim don't use X11 XIM
1720 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1721 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1722 console
1723 --without-dbus don't compile with D-Bus support
1724 --without-gconf don't compile with GConf support
1725 --without-selinux don't compile with SELinux support
1726 --without-gnutls don't use -lgnutls for SSL/TLS support
1727 --without-makeinfo don't require makeinfo for building manuals
1728 --without-compress-info don't compress the installed Info pages
1729 --with-pkg-config-prog=PATH
1730 path to pkg-config for finding GTK and librsvg
1731 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1732 /usr/lib, or /usr/lib64 on some platforms.
1733 --with-gameuser=USER user for shared game score files
1734 --with-gnustep-conf=PATH
1735 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1736 or /etc/GNUstep/GNUstep.conf
1737 --with-x use the X Window System
1738
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CPP C preprocessor
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1749
1750 Use these variables to override the choices made by `configure' or to help
1751 it to find libraries and programs with nonstandard names/locations.
1752
1753 Report bugs to the package provider.
1754 _ACEOF
1755 ac_status=$?
1756 fi
1757
1758 if test "$ac_init_help" = "recursive"; then
1759 # If there are subdirs, report their specific --help.
1760 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1761 test -d "$ac_dir" ||
1762 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1763 continue
1764 ac_builddir=.
1765
1766 case "$ac_dir" in
1767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *)
1769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770 # A ".." for each directory in $ac_dir_suffix.
1771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772 case $ac_top_builddir_sub in
1773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1775 esac ;;
1776 esac
1777 ac_abs_top_builddir=$ac_pwd
1778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir=$ac_top_build_prefix
1781
1782 case $srcdir in
1783 .) # We are building in place.
1784 ac_srcdir=.
1785 ac_top_srcdir=$ac_top_builddir_sub
1786 ac_abs_top_srcdir=$ac_pwd ;;
1787 [\\/]* | ?:[\\/]* ) # Absolute name.
1788 ac_srcdir=$srcdir$ac_dir_suffix;
1789 ac_top_srcdir=$srcdir
1790 ac_abs_top_srcdir=$srcdir ;;
1791 *) # Relative name.
1792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793 ac_top_srcdir=$ac_top_build_prefix$srcdir
1794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1795 esac
1796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797
1798 cd "$ac_dir" || { ac_status=$?; continue; }
1799 # Check for guested configure.
1800 if test -f "$ac_srcdir/configure.gnu"; then
1801 echo &&
1802 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803 elif test -f "$ac_srcdir/configure"; then
1804 echo &&
1805 $SHELL "$ac_srcdir/configure" --help=recursive
1806 else
1807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1808 fi || ac_status=$?
1809 cd "$ac_pwd" || { ac_status=$?; break; }
1810 done
1811 fi
1812
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1815 cat <<\_ACEOF
1816 emacs configure 24.0.50
1817 generated by GNU Autoconf 2.67
1818
1819 Copyright (C) 2010 Free Software Foundation, Inc.
1820 This configure script is free software; the Free Software Foundation
1821 gives unlimited permission to copy, distribute and modify it.
1822 _ACEOF
1823 exit
1824 fi
1825
1826 ## ------------------------ ##
1827 ## Autoconf initialization. ##
1828 ## ------------------------ ##
1829
1830 # ac_fn_c_try_compile LINENO
1831 # --------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_compile ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext
1837 if { { ac_try="$ac_compile"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1850 fi
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.$ac_objext; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861 ac_retval=1
1862 fi
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_compile
1867
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_cpp ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899 fi
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_cpp
1904
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_header_mongrel ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval "test \"\${$3+set}\"" = set; then :
1917 $as_echo_n "(cached) " >&6
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 else
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933 else
1934 ac_header_compiler=no
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1939
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949 else
1950 ac_header_preproc=no
1951 fi
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1955
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ;;
1976 esac
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval "test \"\${$3+set}\"" = set; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=\$ac_header_compiler"
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 fi
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990 } # ac_fn_c_check_header_mongrel
1991
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1996 ac_fn_c_try_run ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2007 ac_status=$?
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2020 ac_retval=0
2021 else
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=$ac_status
2027 fi
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 as_fn_set_status $ac_retval
2031
2032 } # ac_fn_c_try_run
2033
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval "test \"\${$3+set}\"" = set; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$3=yes"
2053 else
2054 eval "$3=no"
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062
2063 } # ac_fn_c_check_header_compile
2064
2065 # ac_fn_c_try_link LINENO
2066 # -----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_c_try_link ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext conftest$ac_exeext
2072 if { { ac_try="$ac_link"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>conftest.err
2080 ac_status=$?
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2085 fi
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest$ac_exeext && {
2091 test "$cross_compiling" = yes ||
2092 $as_test_x conftest$ac_exeext
2093 }; then :
2094 ac_retval=0
2095 else
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_retval=1
2100 fi
2101 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2102 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2103 # interfere with the next link command; also delete a directory that is
2104 # left behind by Apple's compiler. We do this before executing the actions.
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 as_fn_set_status $ac_retval
2108
2109 } # ac_fn_c_try_link
2110
2111 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2112 # ---------------------------------------------
2113 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2114 # accordingly.
2115 ac_fn_c_check_decl ()
2116 {
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 as_decl_name=`echo $2|sed 's/ *(.*//'`
2119 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2121 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2122 if eval "test \"\${$3+set}\"" = set; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 $4
2128 int
2129 main ()
2130 {
2131 #ifndef $as_decl_name
2132 #ifdef __cplusplus
2133 (void) $as_decl_use;
2134 #else
2135 (void) $as_decl_name;
2136 #endif
2137 #endif
2138
2139 ;
2140 return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 eval "$3=yes"
2145 else
2146 eval "$3=no"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154
2155 } # ac_fn_c_check_decl
2156
2157 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2158 # ----------------------------------------------
2159 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2160 ac_fn_c_check_header_preproc ()
2161 {
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval "test \"\${$3+set}\"" = set; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_cpp "$LINENO"; then :
2173 eval "$3=yes"
2174 else
2175 eval "$3=no"
2176 fi
2177 rm -f conftest.err conftest.i conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
2184 } # ac_fn_c_check_header_preproc
2185
2186 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2187 # ----------------------------------------------------
2188 # Tries to find if the field MEMBER exists in type AGGR, after including
2189 # INCLUDES, setting cache variable VAR accordingly.
2190 ac_fn_c_check_member ()
2191 {
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2194 $as_echo_n "checking for $2.$3... " >&6; }
2195 if eval "test \"\${$4+set}\"" = set; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $5
2201 int
2202 main ()
2203 {
2204 static $2 ac_aggr;
2205 if (ac_aggr.$3)
2206 return 0;
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 eval "$4=yes"
2213 else
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $5
2217 int
2218 main ()
2219 {
2220 static $2 ac_aggr;
2221 if (sizeof ac_aggr.$3)
2222 return 0;
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$4=yes"
2229 else
2230 eval "$4=no"
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 eval ac_res=\$$4
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240
2241 } # ac_fn_c_check_member
2242
2243 # ac_fn_c_check_func LINENO FUNC VAR
2244 # ----------------------------------
2245 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2246 ac_fn_c_check_func ()
2247 {
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval "test \"\${$3+set}\"" = set; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2258 #define $2 innocuous_$2
2259
2260 /* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $2 (); below.
2262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263 <limits.h> exists even on freestanding compilers. */
2264
2265 #ifdef __STDC__
2266 # include <limits.h>
2267 #else
2268 # include <assert.h>
2269 #endif
2270
2271 #undef $2
2272
2273 /* Override any GCC internal prototype to avoid an error.
2274 Use char because int might match the return type of a GCC
2275 builtin and then its argument prototype would still apply. */
2276 #ifdef __cplusplus
2277 extern "C"
2278 #endif
2279 char $2 ();
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined __stub_$2 || defined __stub___$2
2284 choke me
2285 #endif
2286
2287 int
2288 main ()
2289 {
2290 return $2 ();
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_link "$LINENO"; then :
2296 eval "$3=yes"
2297 else
2298 eval "$3=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext \
2301 conftest$ac_exeext conftest.$ac_ext
2302 fi
2303 eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307
2308 } # ac_fn_c_check_func
2309
2310 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2311 # -------------------------------------------
2312 # Tests whether TYPE exists after having included INCLUDES, setting cache
2313 # variable VAR accordingly.
2314 ac_fn_c_check_type ()
2315 {
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval "test \"\${$3+set}\"" = set; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 eval "$3=no"
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $4
2326 int
2327 main ()
2328 {
2329 if (sizeof ($2))
2330 return 0;
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 int
2340 main ()
2341 {
2342 if (sizeof (($2)))
2343 return 0;
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349
2350 else
2351 eval "$3=yes"
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361
2362 } # ac_fn_c_check_type
2363 cat >config.log <<_ACEOF
2364 This file contains any messages produced by compilers while
2365 running configure, to aid debugging if configure makes a mistake.
2366
2367 It was created by emacs $as_me 24.0.50, which was
2368 generated by GNU Autoconf 2.67. Invocation command line was
2369
2370 $ $0 $@
2371
2372 _ACEOF
2373 exec 5>>config.log
2374 {
2375 cat <<_ASUNAME
2376 ## --------- ##
2377 ## Platform. ##
2378 ## --------- ##
2379
2380 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385
2386 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2388
2389 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2390 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2391 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2392 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2393 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2394 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2395 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2396
2397 _ASUNAME
2398
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 $as_echo "PATH: $as_dir"
2405 done
2406 IFS=$as_save_IFS
2407
2408 } >&5
2409
2410 cat >&5 <<_ACEOF
2411
2412
2413 ## ----------- ##
2414 ## Core tests. ##
2415 ## ----------- ##
2416
2417 _ACEOF
2418
2419
2420 # Keep a trace of the command line.
2421 # Strip out --no-create and --no-recursion so they do not pile up.
2422 # Strip out --silent because we don't want to record it for future runs.
2423 # Also quote any args containing shell meta-characters.
2424 # Make two passes to allow for proper duplicate-argument suppression.
2425 ac_configure_args=
2426 ac_configure_args0=
2427 ac_configure_args1=
2428 ac_must_keep_next=false
2429 for ac_pass in 1 2
2430 do
2431 for ac_arg
2432 do
2433 case $ac_arg in
2434 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2436 | -silent | --silent | --silen | --sile | --sil)
2437 continue ;;
2438 *\'*)
2439 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 esac
2441 case $ac_pass in
2442 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2443 2)
2444 as_fn_append ac_configure_args1 " '$ac_arg'"
2445 if test $ac_must_keep_next = true; then
2446 ac_must_keep_next=false # Got value, back to normal.
2447 else
2448 case $ac_arg in
2449 *=* | --config-cache | -C | -disable-* | --disable-* \
2450 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2451 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2452 | -with-* | --with-* | -without-* | --without-* | --x)
2453 case "$ac_configure_args0 " in
2454 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455 esac
2456 ;;
2457 -* ) ac_must_keep_next=true ;;
2458 esac
2459 fi
2460 as_fn_append ac_configure_args " '$ac_arg'"
2461 ;;
2462 esac
2463 done
2464 done
2465 { ac_configure_args0=; unset ac_configure_args0;}
2466 { ac_configure_args1=; unset ac_configure_args1;}
2467
2468 # When interrupted or exit'd, cleanup temporary files, and complete
2469 # config.log. We remove comments because anyway the quotes in there
2470 # would cause problems or look ugly.
2471 # WARNING: Use '\'' to represent an apostrophe within the trap.
2472 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2473 trap 'exit_status=$?
2474 # Save into config.log some information that might help in debugging.
2475 {
2476 echo
2477
2478 $as_echo "## ---------------- ##
2479 ## Cache variables. ##
2480 ## ---------------- ##"
2481 echo
2482 # The following way of writing the cache mishandles newlines in values,
2483 (
2484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2485 eval ac_val=\$$ac_var
2486 case $ac_val in #(
2487 *${as_nl}*)
2488 case $ac_var in #(
2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491 esac
2492 case $ac_var in #(
2493 _ | IFS | as_nl) ;; #(
2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2495 *) { eval $ac_var=; unset $ac_var;} ;;
2496 esac ;;
2497 esac
2498 done
2499 (set) 2>&1 |
2500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2501 *${as_nl}ac_space=\ *)
2502 sed -n \
2503 "s/'\''/'\''\\\\'\'''\''/g;
2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505 ;; #(
2506 *)
2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2508 ;;
2509 esac |
2510 sort
2511 )
2512 echo
2513
2514 $as_echo "## ----------------- ##
2515 ## Output variables. ##
2516 ## ----------------- ##"
2517 echo
2518 for ac_var in $ac_subst_vars
2519 do
2520 eval ac_val=\$$ac_var
2521 case $ac_val in
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 esac
2524 $as_echo "$ac_var='\''$ac_val'\''"
2525 done | sort
2526 echo
2527
2528 if test -n "$ac_subst_files"; then
2529 $as_echo "## ------------------- ##
2530 ## File substitutions. ##
2531 ## ------------------- ##"
2532 echo
2533 for ac_var in $ac_subst_files
2534 do
2535 eval ac_val=\$$ac_var
2536 case $ac_val in
2537 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2538 esac
2539 $as_echo "$ac_var='\''$ac_val'\''"
2540 done | sort
2541 echo
2542 fi
2543
2544 if test -s confdefs.h; then
2545 $as_echo "## ----------- ##
2546 ## confdefs.h. ##
2547 ## ----------- ##"
2548 echo
2549 cat confdefs.h
2550 echo
2551 fi
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2555 } >&5
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 exit $exit_status
2559 ' 0
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562 done
2563 ac_signal=0
2564
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2567
2568 $as_echo "/* confdefs.h */" > confdefs.h
2569
2570 # Predefined preprocessor variables.
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2594 _ACEOF
2595
2596
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2599 ac_site_file1=NONE
2600 ac_site_file2=NONE
2601 if test -n "$CONFIG_SITE"; then
2602 # We do not want a PATH search for config.site.
2603 case $CONFIG_SITE in #((
2604 -*) ac_site_file1=./$CONFIG_SITE;;
2605 */*) ac_site_file1=$CONFIG_SITE;;
2606 *) ac_site_file1=./$CONFIG_SITE;;
2607 esac
2608 elif test "x$prefix" != xNONE; then
2609 ac_site_file1=$prefix/share/config.site
2610 ac_site_file2=$prefix/etc/config.site
2611 else
2612 ac_site_file1=$ac_default_prefix/share/config.site
2613 ac_site_file2=$ac_default_prefix/etc/config.site
2614 fi
2615 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2616 do
2617 test "x$ac_site_file" = xNONE && continue
2618 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2620 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2621 sed 's/^/| /' "$ac_site_file" >&5
2622 . "$ac_site_file" \
2623 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 as_fn_error $? "failed to load site script $ac_site_file
2626 See \`config.log' for more details" "$LINENO" 5 ; }
2627 fi
2628 done
2629
2630 if test -r "$cache_file"; then
2631 # Some versions of bash will fail to source /dev/null (special files
2632 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2633 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2635 $as_echo "$as_me: loading cache $cache_file" >&6;}
2636 case $cache_file in
2637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2638 *) . "./$cache_file";;
2639 esac
2640 fi
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2643 $as_echo "$as_me: creating cache $cache_file" >&6;}
2644 >$cache_file
2645 fi
2646
2647 as_fn_append ac_header_list " stdlib.h"
2648 as_fn_append ac_header_list " unistd.h"
2649 as_fn_append ac_header_list " sys/param.h"
2650 gl_getopt_required=GNU
2651 as_fn_append ac_header_list " getopt.h"
2652 as_fn_append ac_func_list " alarm"
2653 as_fn_append ac_func_list " tzset"
2654 as_fn_append ac_header_list " sys/time.h"
2655 as_fn_append ac_func_list " localtime_r"
2656 # Check that the precious variables saved in the cache have kept the same
2657 # value.
2658 ac_cache_corrupted=false
2659 for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2665 set,)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2669 ,set)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,);;
2674 *)
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 fi;;
2693 esac
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2696 case $ac_new_val in
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2699 esac
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703 esac
2704 fi
2705 done
2706 if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712 fi
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2716
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2725
2726
2727 am__api_version='1.11'
2728
2729 ac_aux_dir=
2730 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2731 if test -f "$ac_dir/install-sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install-sh -c"
2734 break
2735 elif test -f "$ac_dir/install.sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install.sh -c"
2738 break
2739 elif test -f "$ac_dir/shtool"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/shtool install -c"
2742 break
2743 fi
2744 done
2745 if test -z "$ac_aux_dir"; then
2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2747 fi
2748
2749 # These three variables are undocumented and unsupported,
2750 # and are intended to be withdrawn in a future Autoconf release.
2751 # They can cause serious problems if a builder's source tree is in a directory
2752 # whose full name contains unusual characters.
2753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2756
2757
2758 # Find a good install program. We prefer a C program (faster),
2759 # so one script is as good as another. But avoid the broken or
2760 # incompatible versions:
2761 # SysV /etc/install, /usr/sbin/install
2762 # SunOS /usr/etc/install
2763 # IRIX /sbin/install
2764 # AIX /bin/install
2765 # AmigaOS /C/install, which installs bootblocks on floppy discs
2766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2769 # OS/2's system install, which has a completely different semantic
2770 # ./install, which can be erroneously created by make from ./install.sh.
2771 # Reject install programs that cannot install multiple files.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2774 if test -z "$INSTALL"; then
2775 if test "${ac_cv_path_install+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 # Account for people who put trailing slashes in PATH elements.
2784 case $as_dir/ in #((
2785 ./ | .// | /[cC]/* | \
2786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2788 /usr/ucb/* ) ;;
2789 *)
2790 # OSF1 and SCO ODT 3.0 have their own names for install.
2791 # Don't use installbsd from OSF since it installs stuff as root
2792 # by default.
2793 for ac_prog in ginstall scoinst install; do
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2796 if test $ac_prog = install &&
2797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # AIX install. It has an incompatible calling convention.
2799 :
2800 elif test $ac_prog = install &&
2801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802 # program-specific install script used by HP pwplus--don't use.
2803 :
2804 else
2805 rm -rf conftest.one conftest.two conftest.dir
2806 echo one > conftest.one
2807 echo two > conftest.two
2808 mkdir conftest.dir
2809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2810 test -s conftest.one && test -s conftest.two &&
2811 test -s conftest.dir/conftest.one &&
2812 test -s conftest.dir/conftest.two
2813 then
2814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2815 break 3
2816 fi
2817 fi
2818 fi
2819 done
2820 done
2821 ;;
2822 esac
2823
2824 done
2825 IFS=$as_save_IFS
2826
2827 rm -rf conftest.one conftest.two conftest.dir
2828
2829 fi
2830 if test "${ac_cv_path_install+set}" = set; then
2831 INSTALL=$ac_cv_path_install
2832 else
2833 # As a last resort, use the slow shell script. Don't cache a
2834 # value for INSTALL within a source directory, because that will
2835 # break other packages using the cache if that directory is
2836 # removed, or if the value is a relative name.
2837 INSTALL=$ac_install_sh
2838 fi
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2841 $as_echo "$INSTALL" >&6; }
2842
2843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2844 # It thinks the first close brace ends the variable substitution.
2845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2846
2847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2848
2849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2852 $as_echo_n "checking whether build environment is sane... " >&6; }
2853 # Just in case
2854 sleep 1
2855 echo timestamp > conftest.file
2856 # Reject unsafe characters in $srcdir or the absolute working directory
2857 # name. Accept space and tab only in the latter.
2858 am_lf='
2859 '
2860 case `pwd` in
2861 *[\\\"\#\$\&\'\`$am_lf]*)
2862 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2863 esac
2864 case $srcdir in
2865 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2866 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2867 esac
2868
2869 # Do `set' in a subshell so we don't clobber the current shell's
2870 # arguments. Must try -L first in case configure is actually a
2871 # symlink; some systems play weird games with the mod time of symlinks
2872 # (eg FreeBSD returns the mod time of the symlink's containing
2873 # directory).
2874 if (
2875 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2876 if test "$*" = "X"; then
2877 # -L didn't work.
2878 set X `ls -t "$srcdir/configure" conftest.file`
2879 fi
2880 rm -f conftest.file
2881 if test "$*" != "X $srcdir/configure conftest.file" \
2882 && test "$*" != "X conftest.file $srcdir/configure"; then
2883
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2889 alias in your environment" "$LINENO" 5
2890 fi
2891
2892 test "$2" = conftest.file
2893 )
2894 then
2895 # Ok.
2896 :
2897 else
2898 as_fn_error $? "newly created file is older than distributed files!
2899 Check your system clock" "$LINENO" 5
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 test "$program_prefix" != NONE &&
2904 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2905 # Use a double $ so make ignores it.
2906 test "$program_suffix" != NONE &&
2907 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2908 # Double any \ or $.
2909 # By default was `s,x,x', remove it if useless.
2910 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2911 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2912
2913 # expand $ac_aux_dir to an absolute path
2914 am_aux_dir=`cd $ac_aux_dir && pwd`
2915
2916 if test x"${MISSING+set}" != xset; then
2917 case $am_aux_dir in
2918 *\ * | *\ *)
2919 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2920 *)
2921 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2922 esac
2923 fi
2924 # Use eval to expand $SHELL
2925 if eval "$MISSING --run true"; then
2926 am_missing_run="$MISSING --run "
2927 else
2928 am_missing_run=
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2930 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2931 fi
2932
2933 if test x"${install_sh}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2937 *)
2938 install_sh="\${SHELL} $am_aux_dir/install-sh"
2939 esac
2940 fi
2941
2942 # Installed binaries are usually stripped using `strip' when the user
2943 # run `make install-strip'. However `strip' might not be the right
2944 # tool to use in cross-compilation environments, therefore Automake
2945 # will honor the `STRIP' environment variable to overrule this program.
2946 if test "$cross_compiling" != no; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$STRIP"; then
2956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 STRIP=$ac_cv_prog_STRIP
2976 if test -n "$STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978 $as_echo "$STRIP" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 if test -z "$ac_cv_prog_STRIP"; then
2987 ac_ct_STRIP=$STRIP
2988 # Extract the first word of "strip", so it can be a program name with args.
2989 set dummy strip; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_STRIP"; then
2996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_ac_ct_STRIP="strip"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3016 if test -n "$ac_ct_STRIP"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3018 $as_echo "$ac_ct_STRIP" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024 if test "x$ac_ct_STRIP" = x; then
3025 STRIP=":"
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 STRIP=$ac_ct_STRIP
3034 fi
3035 else
3036 STRIP="$ac_cv_prog_STRIP"
3037 fi
3038
3039 fi
3040 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3043 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3044 if test -z "$MKDIR_P"; then
3045 if test "${ac_cv_path_mkdir+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_prog in mkdir gmkdir; do
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3056 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3057 'mkdir (GNU coreutils) '* | \
3058 'mkdir (coreutils) '* | \
3059 'mkdir (fileutils) '4.1*)
3060 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3061 break 3;;
3062 esac
3063 done
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069
3070 test -d ./--version && rmdir ./--version
3071 if test "${ac_cv_path_mkdir+set}" = set; then
3072 MKDIR_P="$ac_cv_path_mkdir -p"
3073 else
3074 # As a last resort, use the slow shell script. Don't cache a
3075 # value for MKDIR_P within a source directory, because that will
3076 # break other packages using the cache if that directory is
3077 # removed, or if the value is a relative name.
3078 MKDIR_P="$ac_install_sh -d"
3079 fi
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3082 $as_echo "$MKDIR_P" >&6; }
3083
3084
3085 mkdir_p="$MKDIR_P"
3086 case $mkdir_p in
3087 [\\/$]* | ?:[\\/]*) ;;
3088 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3089 esac
3090
3091 for ac_prog in gawk mawk nawk awk
3092 do
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_AWK+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$AWK"; then
3101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_AWK="$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 AWK=$ac_cv_prog_AWK
3121 if test -n "$AWK"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123 $as_echo "$AWK" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 test -n "$AWK" && break
3131 done
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3135 set x ${MAKE-make}
3136 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat >conftest.make <<\_ACEOF
3141 SHELL = /bin/sh
3142 all:
3143 @echo '@@@%%%=$(MAKE)=@@@%%%'
3144 _ACEOF
3145 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3147 *@@@%%%=?*=@@@%%%*)
3148 eval ac_cv_prog_make_${ac_make}_set=yes;;
3149 *)
3150 eval ac_cv_prog_make_${ac_make}_set=no;;
3151 esac
3152 rm -f conftest.make
3153 fi
3154 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3157 SET_MAKE=
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 SET_MAKE="MAKE=${MAKE-make}"
3162 fi
3163
3164 rm -rf .tst 2>/dev/null
3165 mkdir .tst 2>/dev/null
3166 if test -d .tst; then
3167 am__leading_dot=.
3168 else
3169 am__leading_dot=_
3170 fi
3171 rmdir .tst 2>/dev/null
3172
3173 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3174 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3175 # is not polluted with repeated "-I."
3176 am__isrc=' -I$(srcdir)'
3177 # test to see if srcdir already configured
3178 if test -f $srcdir/config.status; then
3179 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3180 fi
3181 fi
3182
3183 # test whether we have cygpath
3184 if test -z "$CYGPATH_W"; then
3185 if (cygpath --version) >/dev/null 2>/dev/null; then
3186 CYGPATH_W='cygpath -w'
3187 else
3188 CYGPATH_W=echo
3189 fi
3190 fi
3191
3192
3193 # Define the identity of the package.
3194 PACKAGE='emacs'
3195 VERSION='24.0.50'
3196
3197
3198 cat >>confdefs.h <<_ACEOF
3199 #define PACKAGE "$PACKAGE"
3200 _ACEOF
3201
3202
3203 cat >>confdefs.h <<_ACEOF
3204 #define VERSION "$VERSION"
3205 _ACEOF
3206
3207 # Some tools Automake needs.
3208
3209 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3210
3211
3212 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3213
3214
3215 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3216
3217
3218 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3219
3220
3221 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3222
3223 # We need awk for the "check" target. The system "awk" is bad on
3224 # some platforms.
3225 # Always define AMTAR for backward compatibility.
3226
3227 AMTAR=${AMTAR-"${am_missing_run}tar"}
3228
3229 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3230
3231
3232
3233
3234
3235
3236
3237
3238 lispdir='${datadir}/emacs/${version}/lisp'
3239 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3240 '${datadir}/emacs/site-lisp'
3241 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3242 etcdir='${datadir}/emacs/${version}/etc'
3243 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3244 docdir='${datadir}/emacs/${version}/etc'
3245 gamedir='${localstatedir}/games/emacs'
3246
3247
3248
3249
3250 # Check whether --with-pop was given.
3251 if test "${with_pop+set}" = set; then :
3252 withval=$with_pop;
3253 else
3254 with_pop=yes
3255 fi
3256
3257 if test "$with_pop" = yes; then
3258 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3259
3260 fi
3261
3262
3263 # Check whether --with-kerberos was given.
3264 if test "${with_kerberos+set}" = set; then :
3265 withval=$with_kerberos;
3266 else
3267 with_kerberos=no
3268 fi
3269
3270 if test "$with_kerberos" != no; then
3271 $as_echo "#define KERBEROS 1" >>confdefs.h
3272
3273 fi
3274
3275
3276 # Check whether --with-kerberos5 was given.
3277 if test "${with_kerberos5+set}" = set; then :
3278 withval=$with_kerberos5;
3279 else
3280 with_kerberos5=no
3281 fi
3282
3283 if test "${with_kerberos5}" != no; then
3284 if test "${with_kerberos}" = no; then
3285 with_kerberos=yes
3286 $as_echo "#define KERBEROS 1" >>confdefs.h
3287
3288 fi
3289
3290 $as_echo "#define KERBEROS5 1" >>confdefs.h
3291
3292 fi
3293
3294
3295 # Check whether --with-hesiod was given.
3296 if test "${with_hesiod+set}" = set; then :
3297 withval=$with_hesiod;
3298 else
3299 with_hesiod=no
3300 fi
3301
3302 if test "$with_hesiod" != no; then
3303
3304 $as_echo "#define HESIOD 1" >>confdefs.h
3305
3306 fi
3307
3308
3309 # Check whether --with-mmdf was given.
3310 if test "${with_mmdf+set}" = set; then :
3311 withval=$with_mmdf;
3312 else
3313 with_mmdf=no
3314 fi
3315
3316 if test "$with_mmdf" != no; then
3317
3318 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3319
3320 fi
3321
3322
3323 # Check whether --with-mail-unlink was given.
3324 if test "${with_mail_unlink+set}" = set; then :
3325 withval=$with_mail_unlink;
3326 else
3327 with_mail_unlink=no
3328 fi
3329
3330 if test "$with_mail_unlink" != no; then
3331
3332 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3333
3334 fi
3335
3336
3337 # Check whether --with-mailhost was given.
3338 if test "${with_mailhost+set}" = set; then :
3339 withval=$with_mailhost;
3340 cat >>confdefs.h <<_ACEOF
3341 #define MAILHOST "$withval"
3342 _ACEOF
3343
3344 fi
3345
3346
3347
3348 # Check whether --with-sound was given.
3349 if test "${with_sound+set}" = set; then :
3350 withval=$with_sound;
3351 else
3352 with_sound=yes
3353 fi
3354
3355
3356
3357 # Check whether --with-sync-input was given.
3358 if test "${with_sync_input+set}" = set; then :
3359 withval=$with_sync_input;
3360 else
3361 with_sync_input=yes
3362 fi
3363
3364 if test "$with_sync_input" = yes; then
3365
3366 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3367
3368 fi
3369
3370
3371 # Check whether --with-x-toolkit was given.
3372 if test "${with_x_toolkit+set}" = set; then :
3373 withval=$with_x_toolkit; case "${withval}" in
3374 y | ye | yes ) val=gtk ;;
3375 n | no ) val=no ;;
3376 l | lu | luc | luci | lucid ) val=lucid ;;
3377 a | at | ath | athe | athen | athena ) val=athena ;;
3378 m | mo | mot | moti | motif ) val=motif ;;
3379 g | gt | gtk ) val=gtk ;;
3380 gtk3 ) val=gtk3 ;;
3381 * )
3382 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3383 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3384 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3385 ;;
3386 esac
3387 with_x_toolkit=$val
3388
3389 fi
3390
3391
3392
3393 # Check whether --with-xpm was given.
3394 if test "${with_xpm+set}" = set; then :
3395 withval=$with_xpm;
3396 else
3397 with_xpm=yes
3398 fi
3399
3400
3401 # Check whether --with-jpeg was given.
3402 if test "${with_jpeg+set}" = set; then :
3403 withval=$with_jpeg;
3404 else
3405 with_jpeg=yes
3406 fi
3407
3408
3409 # Check whether --with-tiff was given.
3410 if test "${with_tiff+set}" = set; then :
3411 withval=$with_tiff;
3412 else
3413 with_tiff=yes
3414 fi
3415
3416
3417 # Check whether --with-gif was given.
3418 if test "${with_gif+set}" = set; then :
3419 withval=$with_gif;
3420 else
3421 with_gif=yes
3422 fi
3423
3424
3425 # Check whether --with-png was given.
3426 if test "${with_png+set}" = set; then :
3427 withval=$with_png;
3428 else
3429 with_png=yes
3430 fi
3431
3432
3433 # Check whether --with-rsvg was given.
3434 if test "${with_rsvg+set}" = set; then :
3435 withval=$with_rsvg;
3436 else
3437 with_rsvg=yes
3438 fi
3439
3440
3441 # Check whether --with-xml2 was given.
3442 if test "${with_xml2+set}" = set; then :
3443 withval=$with_xml2;
3444 else
3445 with_xml2=yes
3446 fi
3447
3448
3449 # Check whether --with-imagemagick was given.
3450 if test "${with_imagemagick+set}" = set; then :
3451 withval=$with_imagemagick;
3452 else
3453 with_imagemagick=yes
3454 fi
3455
3456
3457
3458 # Check whether --with-xft was given.
3459 if test "${with_xft+set}" = set; then :
3460 withval=$with_xft;
3461 else
3462 with_xft=yes
3463 fi
3464
3465
3466 # Check whether --with-libotf was given.
3467 if test "${with_libotf+set}" = set; then :
3468 withval=$with_libotf;
3469 else
3470 with_libotf=yes
3471 fi
3472
3473
3474 # Check whether --with-m17n-flt was given.
3475 if test "${with_m17n_flt+set}" = set; then :
3476 withval=$with_m17n_flt;
3477 else
3478 with_m17n_flt=yes
3479 fi
3480
3481
3482
3483 # Check whether --with-toolkit-scroll-bars was given.
3484 if test "${with_toolkit_scroll_bars+set}" = set; then :
3485 withval=$with_toolkit_scroll_bars;
3486 else
3487 with_toolkit_scroll_bars=yes
3488 fi
3489
3490
3491 # Check whether --with-xaw3d was given.
3492 if test "${with_xaw3d+set}" = set; then :
3493 withval=$with_xaw3d;
3494 else
3495 with_xaw3d=yes
3496 fi
3497
3498
3499 # Check whether --with-xim was given.
3500 if test "${with_xim+set}" = set; then :
3501 withval=$with_xim;
3502 else
3503 with_xim=yes
3504 fi
3505
3506
3507 # Check whether --with-ns was given.
3508 if test "${with_ns+set}" = set; then :
3509 withval=$with_ns;
3510 else
3511 with_ns=no
3512 fi
3513
3514
3515
3516 # Check whether --with-gpm was given.
3517 if test "${with_gpm+set}" = set; then :
3518 withval=$with_gpm;
3519 else
3520 with_gpm=yes
3521 fi
3522
3523
3524 # Check whether --with-dbus was given.
3525 if test "${with_dbus+set}" = set; then :
3526 withval=$with_dbus;
3527 else
3528 with_dbus=yes
3529 fi
3530
3531
3532 # Check whether --with-gconf was given.
3533 if test "${with_gconf+set}" = set; then :
3534 withval=$with_gconf;
3535 else
3536 with_gconf=yes
3537 fi
3538
3539
3540 # Check whether --with-selinux was given.
3541 if test "${with_selinux+set}" = set; then :
3542 withval=$with_selinux;
3543 else
3544 with_selinux=yes
3545 fi
3546
3547
3548 # Check whether --with-gnutls was given.
3549 if test "${with_gnutls+set}" = set; then :
3550 withval=$with_gnutls;
3551 else
3552 with_gnutls=yes
3553 fi
3554
3555
3556 ## For the times when you want to build Emacs but don't have
3557 ## a suitable makeinfo, and can live without the manuals.
3558
3559 # Check whether --with-makeinfo was given.
3560 if test "${with_makeinfo+set}" = set; then :
3561 withval=$with_makeinfo;
3562 else
3563 with_makeinfo=yes
3564 fi
3565
3566
3567 ## This is an option because I do not know if all info/man support
3568 ## compressed files, nor how to test if they do so.
3569
3570 # Check whether --with-compress-info was given.
3571 if test "${with_compress_info+set}" = set; then :
3572 withval=$with_compress_info;
3573 else
3574 with_compress_info=yes
3575 fi
3576
3577 if test $with_compress_info = yes; then
3578 GZIP_INFO=yes
3579 else
3580 GZIP_INFO=
3581 fi
3582
3583
3584
3585 # Check whether --with-pkg-config-prog was given.
3586 if test "${with_pkg_config_prog+set}" = set; then :
3587 withval=$with_pkg_config_prog;
3588 fi
3589
3590 if test "X${with_pkg_config_prog}" != X; then
3591 if test "${with_pkg_config_prog}" != yes; then
3592 PKG_CONFIG="${with_pkg_config_prog}"
3593 fi
3594 fi
3595
3596 CRT_DIR=
3597
3598 # Check whether --with-crt-dir was given.
3599 if test "${with_crt_dir+set}" = set; then :
3600 withval=$with_crt_dir;
3601 fi
3602
3603 CRT_DIR="${with_crt_dir}"
3604
3605
3606 # Check whether --with-gameuser was given.
3607 if test "${with_gameuser+set}" = set; then :
3608 withval=$with_gameuser;
3609 fi
3610
3611 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3612 && gameuser="${with_gameuser}"
3613 test "X$gameuser" = X && gameuser=games
3614
3615
3616 # Check whether --with-gnustep-conf was given.
3617 if test "${with_gnustep_conf+set}" = set; then :
3618 withval=$with_gnustep_conf;
3619 fi
3620
3621 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3622 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3623 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3624 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3625
3626 # Check whether --enable-ns-self-contained was given.
3627 if test "${enable_ns_self_contained+set}" = set; then :
3628 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3629 else
3630 EN_NS_SELF_CONTAINED=yes
3631 fi
3632
3633
3634 # Check whether --enable-asserts was given.
3635 if test "${enable_asserts+set}" = set; then :
3636 enableval=$enable_asserts; USE_XASSERTS=$enableval
3637 else
3638 USE_XASSERTS=no
3639 fi
3640
3641
3642 # Check whether --enable-maintainer-mode was given.
3643 if test "${enable_maintainer_mode+set}" = set; then :
3644 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3645 else
3646 USE_MAINTAINER_MODE=no
3647 fi
3648
3649 if test $USE_MAINTAINER_MODE = yes; then
3650 MAINT=
3651 else
3652 MAINT=#
3653 fi
3654
3655
3656 # Check whether --enable-locallisppath was given.
3657 if test "${enable_locallisppath+set}" = set; then :
3658 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3659 locallisppath=
3660 elif test "${enableval}" != "yes"; then
3661 locallisppath=${enableval}
3662 fi
3663 fi
3664
3665
3666 # Check whether --enable-checking was given.
3667 if test "${enable_checking+set}" = set; then :
3668 enableval=$enable_checking; ac_checking_flags="${enableval}"
3669 fi
3670
3671 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3672 for check in $ac_checking_flags
3673 do
3674 case $check in
3675 # these set all the flags to specific states
3676 yes) ac_enable_checking=1 ;;
3677 no) ac_enable_checking= ;
3678 ac_gc_check_stringbytes= ;
3679 ac_gc_check_string_overrun= ;
3680 ac_gc_check_string_free_list= ;
3681 ac_xmalloc_overrun= ;
3682 ac_gc_check_cons_list= ;;
3683 all) ac_enable_checking=1 ;
3684 ac_gc_check_stringbytes=1 ;
3685 ac_gc_check_string_overrun=1 ;
3686 ac_gc_check_string_free_list=1 ;
3687 ac_xmalloc_overrun=1 ;
3688 ac_gc_check_cons_list=1 ;;
3689 # these enable particular checks
3690 stringbytes) ac_gc_check_stringbytes=1 ;;
3691 stringoverrun) ac_gc_check_string_overrun=1 ;;
3692 stringfreelist) ac_gc_check_string_free_list=1 ;;
3693 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3694 conslist) ac_gc_check_cons_list=1 ;;
3695 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3696 esac
3697 done
3698 IFS="$ac_save_IFS"
3699
3700 if test x$ac_enable_checking != x ; then
3701
3702 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3703
3704 fi
3705 if test x$ac_gc_check_stringbytes != x ; then
3706
3707 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3708
3709 fi
3710 if test x$ac_gc_check_stringoverrun != x ; then
3711
3712 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3713
3714 fi
3715 if test x$ac_gc_check_string_free_list != x ; then
3716
3717 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3718
3719 fi
3720 if test x$ac_xmalloc_overrun != x ; then
3721
3722 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3723
3724 fi
3725 if test x$ac_gc_check_cons_list != x ; then
3726
3727 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3728
3729 fi
3730
3731 # Check whether --enable-use-lisp-union-type was given.
3732 if test "${enable_use_lisp_union_type+set}" = set; then :
3733 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3734
3735 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3736
3737 fi
3738 fi
3739
3740
3741
3742 # Check whether --enable-profiling was given.
3743 if test "${enable_profiling+set}" = set; then :
3744 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3745 fi
3746
3747 if test x$ac_enable_profiling != x ; then
3748 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3749 else
3750 PROFILING_CFLAGS=
3751 fi
3752
3753
3754 # Check whether --enable-autodepend was given.
3755 if test "${enable_autodepend+set}" = set; then :
3756 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3757 else
3758 ac_enable_autodepend=yes
3759 fi
3760
3761
3762 #### Make srcdir absolute, if it isn't already. It's important to
3763 #### avoid running the path through pwd unnecessarily, since pwd can
3764 #### give you automounter prefixes, which can go away. We do all this
3765 #### so Emacs can find its files when run uninstalled.
3766 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3767 unset CDPATH
3768 case "${srcdir}" in
3769 /* ) ;;
3770 . )
3771 ## We may be able to use the $PWD environment variable to make this
3772 ## absolute. But sometimes PWD is inaccurate.
3773 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3774 ## but that tested only for a well-formed and valid PWD,
3775 ## it did not object when PWD was well-formed and valid but just wrong.
3776 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3777 then
3778 srcdir="$PWD"
3779 else
3780 srcdir="`(cd ${srcdir}; pwd)`"
3781 fi
3782 ;;
3783 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3784 esac
3785
3786 #### Check if the source directory already has a configured system in it.
3787 if test `pwd` != `(cd ${srcdir} && pwd)` \
3788 && test -f "${srcdir}/src/config.h" ; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3790 as a build directory right now; it has been configured in its own
3791 right. To configure in another directory as well, you MUST
3792 use GNU make. If you do not have GNU make, then you must
3793 now do \`make distclean' in ${srcdir},
3794 and then run $0 again." >&5
3795 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3796 as a build directory right now; it has been configured in its own
3797 right. To configure in another directory as well, you MUST
3798 use GNU make. If you do not have GNU make, then you must
3799 now do \`make distclean' in ${srcdir},
3800 and then run $0 again." >&2;}
3801 fi
3802
3803 #### Given the configuration name, set machfile and opsysfile to the
3804 #### names of the m/*.h and s/*.h files we should use.
3805
3806 ### Canonicalize the configuration name.
3807
3808 # Make sure we can run config.sub.
3809 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3810 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3811
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3813 $as_echo_n "checking build system type... " >&6; }
3814 if test "${ac_cv_build+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_build_alias=$build_alias
3818 test "x$ac_build_alias" = x &&
3819 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3820 test "x$ac_build_alias" = x &&
3821 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3822 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3823 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3824
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3827 $as_echo "$ac_cv_build" >&6; }
3828 case $ac_cv_build in
3829 *-*-*) ;;
3830 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3831 esac
3832 build=$ac_cv_build
3833 ac_save_IFS=$IFS; IFS='-'
3834 set x $ac_cv_build
3835 shift
3836 build_cpu=$1
3837 build_vendor=$2
3838 shift; shift
3839 # Remember, the first character of IFS is used to create $*,
3840 # except with old shells:
3841 build_os=$*
3842 IFS=$ac_save_IFS
3843 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3844
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3847 $as_echo_n "checking host system type... " >&6; }
3848 if test "${ac_cv_host+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test "x$host_alias" = x; then
3852 ac_cv_host=$ac_cv_build
3853 else
3854 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3856 fi
3857
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3860 $as_echo "$ac_cv_host" >&6; }
3861 case $ac_cv_host in
3862 *-*-*) ;;
3863 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 canonical=$host
3880 configuration=${host_alias-${build_alias-$host}}
3881
3882
3883
3884 ### If you add support for a new configuration, add code to this
3885 ### switch statement to recognize your configuration name and select
3886 ### the appropriate operating system and machine description files.
3887
3888 ### You would hope that you could choose an m/*.h file pretty much
3889 ### based on the machine portion of the configuration name, and an s/*.h
3890 ### file based on the operating system portion. However, it turns out
3891 ### that each m/*.h file is pretty manufacturer-specific - for
3892 ### example mips.h is MIPS
3893 ### So we basically have to have a special case for each
3894 ### configuration name.
3895 ###
3896 ### As far as handling version numbers on operating systems is
3897 ### concerned, make sure things will fail in a fixable way. If
3898 ### /etc/MACHINES doesn't say anything about version numbers, be
3899 ### prepared to handle anything reasonably. If version numbers
3900 ### matter, be sure /etc/MACHINES says something about it.
3901
3902 machine='' opsys='' unported=no
3903 case "${canonical}" in
3904
3905 ## GNU/Linux ports
3906 *-*-linux-gnu*)
3907 opsys=gnu-linux
3908 case ${canonical} in
3909 alpha*) machine=alpha ;;
3910 s390-*) machine=ibms390 ;;
3911 s390x-*) machine=ibms390x ;;
3912 powerpc*) machine=macppc ;;
3913 sparc*) machine=sparc ;;
3914 ia64*) machine=ia64 ;;
3915 m68k*) machine=m68k ;;
3916 x86_64*) machine=amdx86-64 ;;
3917 esac
3918 ;;
3919
3920 ## FreeBSD ports
3921 *-*-freebsd* )
3922 opsys=freebsd
3923 case "${canonical}" in
3924 alpha*) machine=alpha ;;
3925 amd64-*|x86_64-*) machine=amdx86-64 ;;
3926 ia64-*) machine=ia64 ;;
3927 i[3456]86-*) machine=intel386 ;;
3928 powerpc-*) machine=macppc ;;
3929 sparc-*) machine=sparc ;;
3930 sparc64-*) machine=sparc ;;
3931 esac
3932 ;;
3933
3934 ## FreeBSD kernel + glibc based userland
3935 *-*-kfreebsd*gnu* )
3936 opsys=gnu-kfreebsd
3937 case "${canonical}" in
3938 alpha*) machine=alpha ;;
3939 amd64-*|x86_64-*) machine=amdx86-64 ;;
3940 ia64-*) machine=ia64 ;;
3941 i[3456]86-*) machine=intel386 ;;
3942 powerpc-*) machine=macppc ;;
3943 sparc-*) machine=sparc ;;
3944 sparc64-*) machine=sparc ;;
3945 esac
3946 ;;
3947
3948 ## NetBSD ports
3949 *-*-netbsd* )
3950 opsys=netbsd
3951 case "${canonical}" in
3952 alpha*) machine=alpha ;;
3953 x86_64-*) machine=amdx86-64 ;;
3954 i[3456]86-*) machine=intel386 ;;
3955 m68k-*) machine=m68k ;;
3956 powerpc-*) machine=macppc ;;
3957 sparc*-) machine=sparc ;;
3958 vax-*) machine=vax ;;
3959 esac
3960 ;;
3961
3962 ## OpenBSD ports
3963 *-*-openbsd* )
3964 opsys=openbsd
3965 case "${canonical}" in
3966 alpha*) machine=alpha ;;
3967 x86_64-*) machine=amdx86-64 ;;
3968 i386-*) machine=intel386 ;;
3969 powerpc-*) machine=macppc ;;
3970 sparc*) machine=sparc ;;
3971 vax-*) machine=vax ;;
3972 esac
3973 ;;
3974
3975 ## Apple Darwin / Mac OS X
3976 *-apple-darwin* )
3977 case "${canonical}" in
3978 i[3456]86-* ) machine=intel386 ;;
3979 powerpc-* ) machine=macppc ;;
3980 x86_64-* ) machine=amdx86-64 ;;
3981 * ) unported=yes ;;
3982 esac
3983 opsys=darwin
3984 # Define CPP as follows to make autoconf work correctly.
3985 CPP="${CC-cc} -E -no-cpp-precomp"
3986 # Use fink packages if available.
3987 if test -d /sw/include && test -d /sw/lib; then
3988 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3989 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3990 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3991 fi
3992 ;;
3993
3994 ## HP 9000 series 700 and 800, running HP/UX
3995 hppa*-hp-hpux10.2* )
3996 opsys=hpux10-20
3997 ;;
3998 hppa*-hp-hpux1[1-9]* )
3999 opsys=hpux11
4000 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4001 ;;
4002
4003 ia64*-hp-hpux1[1-9]* )
4004 machine=hp800 opsys=hpux11
4005 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4006 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4007 CANNOT_DUMP=yes
4008 ;;
4009
4010 hppa*-*-linux-gnu* )
4011 machine=hp800 opsys=gnu-linux
4012 ;;
4013
4014 ## IBM machines
4015 rs6000-ibm-aix4.[23]* )
4016 machine=ibmrs6000 opsys=aix4-2
4017 ;;
4018 powerpc-ibm-aix4.[23]* )
4019 machine=ibmrs6000 opsys=aix4-2
4020 ;;
4021 rs6000-ibm-aix[56]* )
4022 machine=ibmrs6000 opsys=aix4-2
4023 ;;
4024 powerpc-ibm-aix[56]* )
4025 machine=ibmrs6000 opsys=aix4-2
4026 ;;
4027
4028 ## Silicon Graphics machines
4029 ## Iris 4D
4030 mips-sgi-irix6.5 )
4031 machine=iris4d opsys=irix6-5
4032 # Without defining _LANGUAGE_C, things get masked out in the headers
4033 # so that, for instance, grepping for `free' in stdlib.h fails and
4034 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4035 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4036 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4037 ;;
4038
4039 ## Suns
4040 *-sun-solaris* \
4041 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4042 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4043 case "${canonical}" in
4044 i[3456]86-*-* ) machine=intel386 ;;
4045 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4046 sparc* ) machine=sparc ;;
4047 * ) unported=yes ;;
4048 esac
4049 case "${canonical}" in
4050 *-sunos5.6* | *-solaris2.6* )
4051 opsys=sol2-6
4052 NON_GNU_CPP=/usr/ccs/lib/cpp
4053 RANLIB="ar -ts"
4054 ;;
4055 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4056 opsys=sol2-6
4057 emacs_check_sunpro_c=yes
4058 NON_GNU_CPP=/usr/ccs/lib/cpp
4059 ;;
4060 *-sunos5* | *-solaris* )
4061 opsys=sol2-10
4062 emacs_check_sunpro_c=yes
4063 NON_GNU_CPP=/usr/ccs/lib/cpp
4064 ;;
4065 esac
4066 ## Watch out for a compiler that we know will not work.
4067 case "${canonical}" in
4068 *-solaris* | *-sunos5* )
4069 if [ "x$CC" = x/usr/ucb/cc ]; then
4070 ## /usr/ucb/cc doesn't work;
4071 ## we should find some other compiler that does work.
4072 unset CC
4073 fi
4074 ;;
4075 *) ;;
4076 esac
4077 ;;
4078
4079 ## Intel 386 machines where we don't care about the manufacturer.
4080 i[3456]86-*-* )
4081 machine=intel386
4082 case "${canonical}" in
4083 *-cygwin ) opsys=cygwin ;;
4084 *-darwin* ) opsys=darwin
4085 CPP="${CC-cc} -E -no-cpp-precomp"
4086 ;;
4087 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4088 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4089 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4090 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4091 esac
4092 ;;
4093
4094 * )
4095 unported=yes
4096 ;;
4097 esac
4098
4099 ### If the code above didn't choose an operating system, just choose
4100 ### an operating system based on the configuration name. You really
4101 ### only want to use this when you have no idea what the right
4102 ### operating system is; if you know what operating systems a machine
4103 ### runs, it's cleaner to make it explicit in the case statement
4104 ### above.
4105 if test x"${opsys}" = x; then
4106 case "${canonical}" in
4107 *-gnu* ) opsys=gnu ;;
4108 * )
4109 unported=yes
4110 ;;
4111 esac
4112 fi
4113
4114
4115
4116 if test $unported = yes; then
4117 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4118 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4119 fi
4120
4121 if test -n "$machine"; then
4122 machfile="m/${machine}.h"
4123 else
4124 machfile=
4125 fi
4126 opsysfile="s/${opsys}.h"
4127
4128
4129 #### Choose a compiler.
4130 test -n "$CC" && cc_specified=yes
4131
4132 # Save the value of CFLAGS that the user specified.
4133 SPECIFIED_CFLAGS="$CFLAGS"
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 if test -z "$ac_cv_prog_CC"; then
4180 ac_ct_CC=$CC
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_ac_ct_CC="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217 if test "x$ac_ct_CC" = x; then
4218 CC=""
4219 else
4220 case $cross_compiling:$ac_tool_warned in
4221 yes:)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 CC=$ac_ct_CC
4227 fi
4228 else
4229 CC="$ac_cv_prog_CC"
4230 fi
4231
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 fi
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_CC+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 ac_prog_rejected=no
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected=yes
4294 continue
4295 fi
4296 ac_cv_prog_CC="cc"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300 done
4301 done
4302 IFS=$as_save_IFS
4303
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy $ac_cv_prog_CC
4307 shift
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4312 shift
4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4314 fi
4315 fi
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 fi
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in cl.exe
4332 do
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_CC+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CC=$ac_cv_prog_CC
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 test -n "$CC" && break
4371 done
4372 fi
4373 if test -z "$CC"; then
4374 ac_ct_CC=$CC
4375 for ac_prog in cl.exe
4376 do
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_ac_ct_CC="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414 test -n "$ac_ct_CC" && break
4415 done
4416
4417 if test "x$ac_ct_CC" = x; then
4418 CC=""
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 CC=$ac_ct_CC
4427 fi
4428 fi
4429
4430 fi
4431
4432
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5 ; }
4437
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 set X $ac_compile
4441 ac_compiler=$2
4442 for ac_option in --version -v -V -qversion; do
4443 { { ac_try="$ac_compiler $ac_option >&5"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451 ac_status=$?
4452 if test -s conftest.err; then
4453 sed '10a\
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4457 fi
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4461 done
4462
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4478 # of exeext.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4482
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4485
4486 ac_rmfiles=
4487 for ac_file in $ac_files
4488 do
4489 case $ac_file in
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4492 esac
4493 done
4494 rm -f $ac_rmfiles
4495
4496 if { { ac_try="$ac_link_default"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4511 # Autoconf.
4512 for ac_file in $ac_files ''
4513 do
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4517 ;;
4518 [ab].out )
4519 # We found the default executable, but exeext='' is most
4520 # certainly right.
4521 break;;
4522 *.* )
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4524 then :; else
4525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 fi
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4531 # actually working.
4532 break;;
4533 * )
4534 break;;
4535 esac
4536 done
4537 test "$ac_cv_exeext" = no && ac_cv_exeext=
4538
4539 else
4540 ac_file=''
4541 fi
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error 77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5 ; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext=$ac_cv_exeext
4561
4562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4563 ac_clean_files=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 # `rm'.
4581 for ac_file in conftest.exe conftest conftest.*; do
4582 test -f "$ac_file" || continue
4583 case $ac_file in
4584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 break;;
4587 * ) break;;
4588 esac
4589 done
4590 else
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5 ; }
4595 fi
4596 rm -f conftest conftest$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4599
4600 rm -f conftest.$ac_ext
4601 EXEEXT=$ac_cv_exeext
4602 ac_exeext=$EXEEXT
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <stdio.h>
4606 int
4607 main ()
4608 {
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 ac_clean_files="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4644 cross_compiling=no
4645 else
4646 if test "$cross_compiling" = maybe; then
4647 cross_compiling=yes
4648 else
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $? "cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5 ; }
4654 fi
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4659
4660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4661 ac_clean_files=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if test "${ac_cv_objext+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main ()
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try="$ac_compile"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4687 ac_status=$?
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4692 case $ac_file in
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4695 break;;
4696 esac
4697 done
4698 else
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files: cannot compile
4705 See \`config.log' for more details" "$LINENO" 5 ; }
4706 fi
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4712 ac_objext=$OBJEXT
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724 #ifndef __GNUC__
4725 choke me
4726 #endif
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_compiler_gnu=yes
4734 else
4735 ac_compiler_gnu=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4744 GCC=yes
4745 else
4746 GCC=
4747 fi
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if test "${ac_cv_prog_cc_g+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4757 ac_cv_prog_cc_g=no
4758 CFLAGS="-g"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_g=yes
4772 else
4773 CFLAGS=""
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786
4787 else
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789 CFLAGS="-g"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_g=yes
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4817 CFLAGS="-g -O2"
4818 else
4819 CFLAGS="-g"
4820 fi
4821 else
4822 if test "$GCC" = yes; then
4823 CFLAGS="-O2"
4824 else
4825 CFLAGS=
4826 fi
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_cv_prog_cc_c89=no
4834 ac_save_CC=$CC
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837 #include <stdarg.h>
4838 #include <stdio.h>
4839 #include <sys/types.h>
4840 #include <sys/stat.h>
4841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4842 struct buf { int x; };
4843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4844 static char *e (p, i)
4845 char **p;
4846 int i;
4847 {
4848 return p[i];
4849 }
4850 static char *f (char * (*g) (char **, int), char **p, ...)
4851 {
4852 char *s;
4853 va_list v;
4854 va_start (v,p);
4855 s = g (p, va_arg (v,int));
4856 va_end (v);
4857 return s;
4858 }
4859
4860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4861 function prototypes and stuff, but not '\xHH' hex character constants.
4862 These don't provoke an error unfortunately, instead are silently treated
4863 as 'x'. The following induces an error, until -std is added to get
4864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4865 array size at least. It's necessary to write '\x00'==0 to get something
4866 that's true only with -std. */
4867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4868
4869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4870 inside strings and character constants. */
4871 #define FOO(x) 'x'
4872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4873
4874 int test (int i, double x);
4875 struct s1 {int (*f) (int a);};
4876 struct s2 {int (*f) (double a);};
4877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4878 int argc;
4879 char **argv;
4880 int
4881 main ()
4882 {
4883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 do
4891 CC="$ac_save_CC $ac_arg"
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 ac_cv_prog_cc_c89=$ac_arg
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext
4896 test "x$ac_cv_prog_cc_c89" != "xno" && break
4897 done
4898 rm -f conftest.$ac_ext
4899 CC=$ac_save_CC
4900
4901 fi
4902 # AC_CACHE_VAL
4903 case "x$ac_cv_prog_cc_c89" in
4904 x)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4906 $as_echo "none needed" >&6; } ;;
4907 xno)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4909 $as_echo "unsupported" >&6; } ;;
4910 *)
4911 CC="$CC $ac_cv_prog_cc_c89"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4914 esac
4915 if test "x$ac_cv_prog_cc_c89" != xno; then :
4916
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 DEPDIR="${am__leading_dot}deps"
4925
4926 ac_config_commands="$ac_config_commands depfiles"
4927
4928
4929 am_make=${MAKE-make}
4930 cat > confinc << 'END'
4931 am__doit:
4932 @echo this is the am__doit target
4933 .PHONY: am__doit
4934 END
4935 # If we don't find an include directive, just comment out the code.
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4937 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4938 am__include="#"
4939 am__quote=
4940 _am_result=none
4941 # First try GNU make style include.
4942 echo "include confinc" > confmf
4943 # Ignore all kinds of additional output from `make'.
4944 case `$am_make -s -f confmf 2> /dev/null` in #(
4945 *the\ am__doit\ target*)
4946 am__include=include
4947 am__quote=
4948 _am_result=GNU
4949 ;;
4950 esac
4951 # Now try BSD make style include.
4952 if test "$am__include" = "#"; then
4953 echo '.include "confinc"' > confmf
4954 case `$am_make -s -f confmf 2> /dev/null` in #(
4955 *the\ am__doit\ target*)
4956 am__include=.include
4957 am__quote="\""
4958 _am_result=BSD
4959 ;;
4960 esac
4961 fi
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4965 $as_echo "$_am_result" >&6; }
4966 rm -f confinc confmf
4967
4968 # Check whether --enable-dependency-tracking was given.
4969 if test "${enable_dependency_tracking+set}" = set; then :
4970 enableval=$enable_dependency_tracking;
4971 fi
4972
4973 if test "x$enable_dependency_tracking" != xno; then
4974 am_depcomp="$ac_aux_dir/depcomp"
4975 AMDEPBACKSLASH='\'
4976 fi
4977 if test "x$enable_dependency_tracking" != xno; then
4978 AMDEP_TRUE=
4979 AMDEP_FALSE='#'
4980 else
4981 AMDEP_TRUE='#'
4982 AMDEP_FALSE=
4983 fi
4984
4985
4986
4987 depcc="$CC" am_compiler_list=
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4990 $as_echo_n "checking dependency style of $depcc... " >&6; }
4991 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named `D' -- because `-MD' means `put the output
4999 # in D'.
5000 mkdir conftest.dir
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5004 cd conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5010 # directory.
5011 mkdir sub
5012
5013 am_cv_CC_dependencies_compiler_type=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016 fi
5017 am__universal=false
5018 case " $depcc " in #(
5019 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5020 esac
5021
5022 for depmode in $am_compiler_list; do
5023 # Setup a source with many dependencies, because some compilers
5024 # like to wrap large dependency lists on column 80 (with \), and
5025 # we should not choose a depcomp mode which is confused by this.
5026 #
5027 # We need to recreate these files for each test, as the compiler may
5028 # overwrite some of them when testing with obscure command lines.
5029 # This happens at least with the AIX C compiler.
5030 : > sub/conftest.c
5031 for i in 1 2 3 4 5 6; do
5032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5034 # Solaris 8's {/usr,}/bin/sh.
5035 touch sub/conftst$i.h
5036 done
5037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5038
5039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5040 # mode. It turns out that the SunPro C++ compiler does not properly
5041 # handle `-M -o', and we need to detect this. Also, some Intel
5042 # versions had trouble with output in subdirs
5043 am__obj=sub/conftest.${OBJEXT-o}
5044 am__minus_obj="-o $am__obj"
5045 case $depmode in
5046 gcc)
5047 # This depmode causes a compiler race in universal mode.
5048 test "$am__universal" = false || continue
5049 ;;
5050 nosideeffect)
5051 # after this tag, mechanisms are not by side-effect, so they'll
5052 # only be used when explicitly requested
5053 if test "x$enable_dependency_tracking" = xyes; then
5054 continue
5055 else
5056 break
5057 fi
5058 ;;
5059 msvisualcpp | msvcmsys)
5060 # This compiler won't grok `-c -o', but also, the minuso test has
5061 # not run yet. These depmodes are late enough in the game, and
5062 # so weak that their functioning should not be impacted.
5063 am__obj=conftest.${OBJEXT-o}
5064 am__minus_obj=
5065 ;;
5066 none) break ;;
5067 esac
5068 if depmode=$depmode \
5069 source=sub/conftest.c object=$am__obj \
5070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5072 >/dev/null 2>conftest.err &&
5073 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5074 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5075 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5076 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5077 # icc doesn't choke on unknown options, it will just issue warnings
5078 # or remarks (even with -Werror). So we grep stderr for any message
5079 # that says an option was ignored or not supported.
5080 # When given -MP, icc 7.0 and 7.1 complain thusly:
5081 # icc: Command line warning: ignoring option '-M'; no argument required
5082 # The diagnosis changed in icc 8.0:
5083 # icc: Command line remark: option '-MP' not supported
5084 if (grep 'ignoring option' conftest.err ||
5085 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5086 am_cv_CC_dependencies_compiler_type=$depmode
5087 break
5088 fi
5089 fi
5090 done
5091
5092 cd ..
5093 rm -rf conftest.dir
5094 else
5095 am_cv_CC_dependencies_compiler_type=none
5096 fi
5097
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5100 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5101 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5102
5103 if
5104 test "x$enable_dependency_tracking" != xno \
5105 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5106 am__fastdepCC_TRUE=
5107 am__fastdepCC_FALSE='#'
5108 else
5109 am__fastdepCC_TRUE='#'
5110 am__fastdepCC_FALSE=
5111 fi
5112
5113
5114 if test "x$CC" != xcc; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5116 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5119 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5120 fi
5121 set dummy $CC; ac_cc=`$as_echo "$2" |
5122 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5123 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128
5129 int
5130 main ()
5131 {
5132
5133 ;
5134 return 0;
5135 }
5136 _ACEOF
5137 # Make sure it works both with $CC and with simple cc.
5138 # We do the test twice because some compilers refuse to overwrite an
5139 # existing .o file with -o, though they will create one.
5140 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5141 rm -f conftest2.*
5142 if { { case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_try") 2>&5
5149 ac_status=$?
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; } &&
5152 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_try") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; };
5162 then
5163 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5164 if test "x$CC" != xcc; then
5165 # Test first that cc exists at all.
5166 if { ac_try='cc -c conftest.$ac_ext >&5'
5167 { { case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_try") 2>&5
5174 ac_status=$?
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; }; then
5177 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5178 rm -f conftest2.*
5179 if { { case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5184 $as_echo "$ac_try_echo"; } >&5
5185 (eval "$ac_try") 2>&5
5186 ac_status=$?
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; } &&
5189 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194 $as_echo "$ac_try_echo"; } >&5
5195 (eval "$ac_try") 2>&5
5196 ac_status=$?
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; };
5199 then
5200 # cc works too.
5201 :
5202 else
5203 # cc exists but doesn't like -o.
5204 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5205 fi
5206 fi
5207 fi
5208 else
5209 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5210 fi
5211 rm -f core conftest*
5212
5213 fi
5214 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220
5221 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5222
5223 fi
5224
5225 # FIXME: we rely on the cache variable name because
5226 # there is no other way.
5227 set dummy $CC
5228 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5229 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5230 if test "$am_t" != yes; then
5231 # Losing compiler, so override with the script.
5232 # FIXME: It is wrong to rewrite CC.
5233 # But if we don't then we get into trouble of one sort or another.
5234 # A longer-term fix would be to have automake use am__CC in this case,
5235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5236 CC="$am_aux_dir/compile $CC"
5237 fi
5238
5239
5240
5241 # Initialize gnulib right after verifying that the C compiler works.
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$RANLIB"; then
5251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 RANLIB=$ac_cv_prog_RANLIB
5271 if test -n "$RANLIB"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5273 $as_echo "$RANLIB" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280 fi
5281 if test -z "$ac_cv_prog_RANLIB"; then
5282 ac_ct_RANLIB=$RANLIB
5283 # Extract the first word of "ranlib", so it can be a program name with args.
5284 set dummy ranlib; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$ac_ct_RANLIB"; then
5291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_RANLIB="ranlib"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5311 if test -n "$ac_ct_RANLIB"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5313 $as_echo "$ac_ct_RANLIB" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319 if test "x$ac_ct_RANLIB" = x; then
5320 RANLIB=":"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323 yes:)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5327 esac
5328 RANLIB=$ac_ct_RANLIB
5329 fi
5330 else
5331 RANLIB="$ac_cv_prog_RANLIB"
5332 fi
5333
5334
5335 ac_ext=c
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5341 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5342 # On Suns, sometimes $CPP names a directory.
5343 if test -n "$CPP" && test -d "$CPP"; then
5344 CPP=
5345 fi
5346 if test -z "$CPP"; then
5347 if test "${ac_cv_prog_CPP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 # Double quotes because CPP needs to be expanded
5351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5352 do
5353 ac_preproc_ok=false
5354 for ac_c_preproc_warn_flag in '' yes
5355 do
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 Syntax error
5370 _ACEOF
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5372
5373 else
5374 # Broken: fails on valid input.
5375 continue
5376 fi
5377 rm -f conftest.err conftest.i conftest.$ac_ext
5378
5379 # OK, works on sane cases. Now check whether nonexistent headers
5380 # can be detected and how.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <ac_nonexistent.h>
5384 _ACEOF
5385 if ac_fn_c_try_cpp "$LINENO"; then :
5386 # Broken: success on invalid input.
5387 continue
5388 else
5389 # Passes both tests.
5390 ac_preproc_ok=:
5391 break
5392 fi
5393 rm -f conftest.err conftest.i conftest.$ac_ext
5394
5395 done
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.i conftest.err conftest.$ac_ext
5398 if $ac_preproc_ok; then :
5399 break
5400 fi
5401
5402 done
5403 ac_cv_prog_CPP=$CPP
5404
5405 fi
5406 CPP=$ac_cv_prog_CPP
5407 else
5408 ac_cv_prog_CPP=$CPP
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5411 $as_echo "$CPP" >&6; }
5412 ac_preproc_ok=false
5413 for ac_c_preproc_warn_flag in '' yes
5414 do
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 # <limits.h> exists even on freestanding compilers.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #ifdef __STDC__
5424 # include <limits.h>
5425 #else
5426 # include <assert.h>
5427 #endif
5428 Syntax error
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431
5432 else
5433 # Broken: fails on valid input.
5434 continue
5435 fi
5436 rm -f conftest.err conftest.i conftest.$ac_ext
5437
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5443 _ACEOF
5444 if ac_fn_c_try_cpp "$LINENO"; then :
5445 # Broken: success on invalid input.
5446 continue
5447 else
5448 # Passes both tests.
5449 ac_preproc_ok=:
5450 break
5451 fi
5452 rm -f conftest.err conftest.i conftest.$ac_ext
5453
5454 done
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.i conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then :
5458
5459 else
5460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5462 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details" "$LINENO" 5 ; }
5464 fi
5465
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5474 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5475 if test "${ac_cv_path_GREP+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -z "$GREP"; then
5479 ac_path_GREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in grep ggrep; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5489 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5490 # Check for GNU ac_path_GREP and select it if it is found.
5491 # Check for GNU $ac_path_GREP
5492 case `"$ac_path_GREP" --version 2>&1` in
5493 *GNU*)
5494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5495 *)
5496 ac_count=0
5497 $as_echo_n 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'GREP' >> "conftest.nl"
5504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 as_fn_arith $ac_count + 1 && ac_count=$as_val
5507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_GREP="$ac_path_GREP"
5510 ac_path_GREP_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5517
5518 $ac_path_GREP_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_GREP"; then
5524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5525 fi
5526 else
5527 ac_cv_path_GREP=$GREP
5528 fi
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5532 $as_echo "$ac_cv_path_GREP" >&6; }
5533 GREP="$ac_cv_path_GREP"
5534
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5537 $as_echo_n "checking for egrep... " >&6; }
5538 if test "${ac_cv_path_EGREP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5542 then ac_cv_path_EGREP="$GREP -E"
5543 else
5544 if test -z "$EGREP"; then
5545 ac_path_EGREP_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in egrep; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5556 # Check for GNU ac_path_EGREP and select it if it is found.
5557 # Check for GNU $ac_path_EGREP
5558 case `"$ac_path_EGREP" --version 2>&1` in
5559 *GNU*)
5560 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5561 *)
5562 ac_count=0
5563 $as_echo_n 0123456789 >"conftest.in"
5564 while :
5565 do
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo 'EGREP' >> "conftest.nl"
5570 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_EGREP="$ac_path_EGREP"
5576 ac_path_EGREP_max=$ac_count
5577 fi
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5580 done
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582 esac
5583
5584 $ac_path_EGREP_found && break 3
5585 done
5586 done
5587 done
5588 IFS=$as_save_IFS
5589 if test -z "$ac_cv_path_EGREP"; then
5590 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5591 fi
5592 else
5593 ac_cv_path_EGREP=$EGREP
5594 fi
5595
5596 fi
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5599 $as_echo "$ac_cv_path_EGREP" >&6; }
5600 EGREP="$ac_cv_path_EGREP"
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5604 $as_echo_n "checking for ANSI C header files... " >&6; }
5605 if test "${ac_cv_header_stdc+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <stdlib.h>
5611 #include <stdarg.h>
5612 #include <string.h>
5613 #include <float.h>
5614
5615 int
5616 main ()
5617 {
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 ac_cv_header_stdc=yes
5625 else
5626 ac_cv_header_stdc=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629
5630 if test $ac_cv_header_stdc = yes; then
5631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <string.h>
5635
5636 _ACEOF
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev/null 2>&1; then :
5639
5640 else
5641 ac_cv_header_stdc=no
5642 fi
5643 rm -f conftest*
5644
5645 fi
5646
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 #include <stdlib.h>
5652
5653 _ACEOF
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev/null 2>&1; then :
5656
5657 else
5658 ac_cv_header_stdc=no
5659 fi
5660 rm -f conftest*
5661
5662 fi
5663
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then :
5667 :
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <ctype.h>
5672 #include <stdlib.h>
5673 #if ((' ' & 0x0FF) == 0x020)
5674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5676 #else
5677 # define ISLOWER(c) \
5678 (('a' <= (c) && (c) <= 'i') \
5679 || ('j' <= (c) && (c) <= 'r') \
5680 || ('s' <= (c) && (c) <= 'z'))
5681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5682 #endif
5683
5684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5685 int
5686 main ()
5687 {
5688 int i;
5689 for (i = 0; i < 256; i++)
5690 if (XOR (islower (i), ISLOWER (i))
5691 || toupper (i) != TOUPPER (i))
5692 return 2;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_run "$LINENO"; then :
5697
5698 else
5699 ac_cv_header_stdc=no
5700 fi
5701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5702 conftest.$ac_objext conftest.beam conftest.$ac_ext
5703 fi
5704
5705 fi
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5708 $as_echo "$ac_cv_header_stdc" >&6; }
5709 if test $ac_cv_header_stdc = yes; then
5710
5711 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5712
5713 fi
5714
5715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5716 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5717 inttypes.h stdint.h unistd.h
5718 do :
5719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5721 "
5722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5723 cat >>confdefs.h <<_ACEOF
5724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5725 _ACEOF
5726
5727 fi
5728
5729 done
5730
5731
5732
5733
5734
5735 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5736 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5737 MINIX=yes
5738 else
5739 MINIX=
5740 fi
5741
5742
5743 if test "$MINIX" = yes; then
5744
5745 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5746
5747
5748 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5749
5750
5751 $as_echo "#define _MINIX 1" >>confdefs.h
5752
5753 fi
5754
5755 case "$host_os" in
5756 hpux*)
5757
5758 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5759
5760 ;;
5761 esac
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5765 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5766 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771
5772 # define __EXTENSIONS__ 1
5773 $ac_includes_default
5774 int
5775 main ()
5776 {
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"; then :
5783 ac_cv_safe_to_define___extensions__=yes
5784 else
5785 ac_cv_safe_to_define___extensions__=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5790 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5791 test $ac_cv_safe_to_define___extensions__ = yes &&
5792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5793
5794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5797
5798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5799
5800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 # Code from module arg-nonnull:
5812 # Code from module c++defs:
5813 # Code from module dtoastr:
5814 # Code from module extensions:
5815
5816 # Code from module getopt-gnu:
5817 # Code from module getopt-posix:
5818 # Code from module gettext-h:
5819 # Code from module ignore-value:
5820 # Code from module include_next:
5821 # Code from module intprops:
5822 # Code from module mktime:
5823 # Code from module multiarch:
5824 # Code from module stdbool:
5825 # Code from module stddef:
5826 # Code from module strftime:
5827 # Code from module time:
5828 # Code from module time_r:
5829 # Code from module unistd:
5830 # Code from module warn-on-use:
5831
5832
5833 # On Suns, sometimes $CPP names a directory.
5834 if test -n "$CPP" && test -d "$CPP"; then
5835 CPP=
5836 fi
5837
5838 ## If not using gcc, and on Solaris, and no CPP specified, see if
5839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5840 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5841 test x"$CPP" = x; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5843 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5844 if test "${emacs_cv_sunpro_c+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849
5850 int
5851 main ()
5852 {
5853 #ifndef __SUNPRO_C
5854 fail;
5855 #endif
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 if ac_fn_c_try_link "$LINENO"; then :
5862 emacs_cv_sunpro_c=yes
5863 else
5864 emacs_cv_sunpro_c=no
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5868 fi
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5871 $as_echo "$emacs_cv_sunpro_c" >&6; }
5872
5873 if test x"$emacs_cv_sunpro_c" = xyes; then
5874 NON_GNU_CPP="$CC -E -Xs"
5875 fi
5876 fi
5877
5878 #### Some systems specify a CPP to use unless we are using GCC.
5879 #### Now that we know whether we are using GCC, we can decide whether
5880 #### to use that one.
5881 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5882 then
5883 CPP="$NON_GNU_CPP"
5884 fi
5885
5886 #### Some systems specify a CC to use unless we are using GCC.
5887 #### Now that we know whether we are using GCC, we can decide whether
5888 #### to use that one.
5889 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5890 test x$cc_specified != xyes
5891 then
5892 CC="$NON_GNU_CC"
5893 fi
5894
5895 if test x$GCC = xyes; then
5896 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5897 else
5898 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5899 fi
5900
5901 ### Use -Wno-pointer-sign if the compiler supports it
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5903 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5904 SAVE_CFLAGS="$CFLAGS"
5905 CFLAGS="$CFLAGS -Wno-pointer-sign"
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908
5909 int
5910 main ()
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 has_option=yes
5919 else
5920 has_option=no
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 if test $has_option = yes; then
5924 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5927 $as_echo "$has_option" >&6; }
5928 CFLAGS="$SAVE_CFLAGS"
5929 unset has_option
5930 unset SAVE_CFLAGS
5931
5932 ### Use -Wdeclaration-after-statement if the compiler supports it
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5934 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5935 SAVE_CFLAGS="$CFLAGS"
5936 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939
5940 int
5941 main ()
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 has_option=yes
5950 else
5951 has_option=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 if test $has_option = yes; then
5955 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5958 $as_echo "$has_option" >&6; }
5959 CFLAGS="$SAVE_CFLAGS"
5960 unset has_option
5961 unset SAVE_CFLAGS
5962
5963 ### Use -Wold-style-definition if the compiler supports it
5964 # This can be removed when conversion to standard C is finished.
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5966 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5967 SAVE_CFLAGS="$CFLAGS"
5968 CFLAGS="$CFLAGS -Wold-style-definition"
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971
5972 int
5973 main ()
5974 {
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 has_option=yes
5982 else
5983 has_option=no
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 if test $has_option = yes; then
5987 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5990 $as_echo "$has_option" >&6; }
5991 CFLAGS="$SAVE_CFLAGS"
5992 unset has_option
5993 unset SAVE_CFLAGS
5994
5995 ### Use -Wimplicit-function-declaration if the compiler supports it
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5997 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5998 SAVE_CFLAGS="$CFLAGS"
5999 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002
6003 int
6004 main ()
6005 {
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"; then :
6012 has_option=yes
6013 else
6014 has_option=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 if test $has_option = yes; then
6018 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6021 $as_echo "$has_option" >&6; }
6022 CFLAGS="$SAVE_CFLAGS"
6023 unset has_option
6024 unset SAVE_CFLAGS
6025
6026
6027
6028
6029 #### Some other nice autoconf tests.
6030
6031 ac_ext=c
6032 ac_cpp='$CPP $CPPFLAGS'
6033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6038 # On Suns, sometimes $CPP names a directory.
6039 if test -n "$CPP" && test -d "$CPP"; then
6040 CPP=
6041 fi
6042 if test -z "$CPP"; then
6043 if test "${ac_cv_prog_CPP+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 # Double quotes because CPP needs to be expanded
6047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6048 do
6049 ac_preproc_ok=false
6050 for ac_c_preproc_warn_flag in '' yes
6051 do
6052 # Use a header file that comes with gcc, so configuring glibc
6053 # with a fresh cross-compiler works.
6054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055 # <limits.h> exists even on freestanding compilers.
6056 # On the NeXT, cc -E runs the code through the compiler's parser,
6057 # not just through cpp. "Syntax error" is here to catch this case.
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #ifdef __STDC__
6061 # include <limits.h>
6062 #else
6063 # include <assert.h>
6064 #endif
6065 Syntax error
6066 _ACEOF
6067 if ac_fn_c_try_cpp "$LINENO"; then :
6068
6069 else
6070 # Broken: fails on valid input.
6071 continue
6072 fi
6073 rm -f conftest.err conftest.i conftest.$ac_ext
6074
6075 # OK, works on sane cases. Now check whether nonexistent headers
6076 # can be detected and how.
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <ac_nonexistent.h>
6080 _ACEOF
6081 if ac_fn_c_try_cpp "$LINENO"; then :
6082 # Broken: success on invalid input.
6083 continue
6084 else
6085 # Passes both tests.
6086 ac_preproc_ok=:
6087 break
6088 fi
6089 rm -f conftest.err conftest.i conftest.$ac_ext
6090
6091 done
6092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6093 rm -f conftest.i conftest.err conftest.$ac_ext
6094 if $ac_preproc_ok; then :
6095 break
6096 fi
6097
6098 done
6099 ac_cv_prog_CPP=$CPP
6100
6101 fi
6102 CPP=$ac_cv_prog_CPP
6103 else
6104 ac_cv_prog_CPP=$CPP
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6107 $as_echo "$CPP" >&6; }
6108 ac_preproc_ok=false
6109 for ac_c_preproc_warn_flag in '' yes
6110 do
6111 # Use a header file that comes with gcc, so configuring glibc
6112 # with a fresh cross-compiler works.
6113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6114 # <limits.h> exists even on freestanding compilers.
6115 # On the NeXT, cc -E runs the code through the compiler's parser,
6116 # not just through cpp. "Syntax error" is here to catch this case.
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #ifdef __STDC__
6120 # include <limits.h>
6121 #else
6122 # include <assert.h>
6123 #endif
6124 Syntax error
6125 _ACEOF
6126 if ac_fn_c_try_cpp "$LINENO"; then :
6127
6128 else
6129 # Broken: fails on valid input.
6130 continue
6131 fi
6132 rm -f conftest.err conftest.i conftest.$ac_ext
6133
6134 # OK, works on sane cases. Now check whether nonexistent headers
6135 # can be detected and how.
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <ac_nonexistent.h>
6139 _ACEOF
6140 if ac_fn_c_try_cpp "$LINENO"; then :
6141 # Broken: success on invalid input.
6142 continue
6143 else
6144 # Passes both tests.
6145 ac_preproc_ok=:
6146 break
6147 fi
6148 rm -f conftest.err conftest.i conftest.$ac_ext
6149
6150 done
6151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152 rm -f conftest.i conftest.err conftest.$ac_ext
6153 if $ac_preproc_ok; then :
6154
6155 else
6156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6158 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6159 See \`config.log' for more details" "$LINENO" 5 ; }
6160 fi
6161
6162 ac_ext=c
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167
6168
6169 if test "x$RANLIB" = x; then
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$RANLIB"; then
6179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 RANLIB=$ac_cv_prog_RANLIB
6199 if test -n "$RANLIB"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6201 $as_echo "$RANLIB" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_RANLIB"; then
6210 ac_ct_RANLIB=$RANLIB
6211 # Extract the first word of "ranlib", so it can be a program name with args.
6212 set dummy ranlib; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 if test -n "$ac_ct_RANLIB"; then
6219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_RANLIB="ranlib"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6239 if test -n "$ac_ct_RANLIB"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6241 $as_echo "$ac_ct_RANLIB" >&6; }
6242 else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247 if test "x$ac_ct_RANLIB" = x; then
6248 RANLIB=":"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256 RANLIB=$ac_ct_RANLIB
6257 fi
6258 else
6259 RANLIB="$ac_cv_prog_RANLIB"
6260 fi
6261
6262 fi
6263
6264 ## Although we're running on an amd64 kernel, we're actually compiling for
6265 ## the x86 architecture. The user should probably have provided an
6266 ## explicit --build to `configure', but if everything else than the kernel
6267 ## is running in i386 mode, we can help them out.
6268 if test "$machine" = "amdx86-64"; then
6269 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6270 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6271
6272 fi
6273
6274 if test "$ac_cv_have_decl_i386" = "yes"; then
6275 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6276 machine=intel386
6277 machfile="m/${machine}.h"
6278 fi
6279 fi
6280
6281 # Extract the first word of "install-info", so it can be a program name with args.
6282 set dummy install-info; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 case $INSTALL_INFO in
6289 [\\/]* | ?:[\\/]*)
6290 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6291 ;;
6292 *)
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 ;;
6309 esac
6310 fi
6311 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6312 if test -n "$INSTALL_INFO"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6314 $as_echo "$INSTALL_INFO" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 # Extract the first word of "install-info", so it can be a program name with args.
6322 set dummy install-info; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 case $INSTALL_INFO in
6329 [\\/]* | ?:[\\/]*)
6330 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6331 ;;
6332 *)
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in /usr/sbin
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 ;;
6349 esac
6350 fi
6351 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6352 if test -n "$INSTALL_INFO"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6354 $as_echo "$INSTALL_INFO" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360
6361 # Extract the first word of "install-info", so it can be a program name with args.
6362 set dummy install-info; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 case $INSTALL_INFO in
6369 [\\/]* | ?:[\\/]*)
6370 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6371 ;;
6372 *)
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in /sbin
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6389 ;;
6390 esac
6391 fi
6392 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6393 if test -n "$INSTALL_INFO"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6395 $as_echo "$INSTALL_INFO" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400
6401
6402 # Extract the first word of "gzip", so it can be a program name with args.
6403 set dummy gzip; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 case $GZIP_PROG in
6410 [\\/]* | ?:[\\/]*)
6411 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6412 ;;
6413 *)
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 ;;
6430 esac
6431 fi
6432 GZIP_PROG=$ac_cv_path_GZIP_PROG
6433 if test -n "$GZIP_PROG"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6435 $as_echo "$GZIP_PROG" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442
6443
6444 ## Need makeinfo >= 4.6 (?) to build the manuals.
6445 # Extract the first word of "makeinfo", so it can be a program name with args.
6446 set dummy makeinfo; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 case $MAKEINFO in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6455 ;;
6456 *)
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6473 ;;
6474 esac
6475 fi
6476 MAKEINFO=$ac_cv_path_MAKEINFO
6477 if test -n "$MAKEINFO"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6479 $as_echo "$MAKEINFO" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 if test "$MAKEINFO" != "no" && \
6487 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
6488 MAKEINFO=no
6489 fi
6490
6491 ## Makeinfo is unusual. For a released Emacs, the manuals are
6492 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6493 ## therefore in the category of "special tools" not normally required, which
6494 ## configure does not have to check for (eg autoconf itself).
6495 ## In a Bazaar checkout on the other hand, the manuals are not included.
6496 ## So makeinfo is a requirement to build from Bazaar, and configure
6497 ## should test for it as it does for any other build requirement.
6498 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6499 ## with pre-built manuals, from a Bazaar checkout.
6500 HAVE_MAKEINFO=yes
6501
6502 if test "$MAKEINFO" = "no"; then
6503 MAKEINFO=makeinfo
6504 if test "x${with_makeinfo}" = "xno"; then
6505 HAVE_MAKEINFO=no
6506 elif test ! -e $srcdir/info/emacs; then
6507 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6508 source tree does not seem to have pre-built manuals in the \`info' directory.
6509 Either install a suitable version of makeinfo, or re-run configure
6510 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6511 fi
6512 fi
6513
6514
6515
6516 if test x$GCC = xyes; then
6517 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6518 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6519 else
6520 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6521 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6522 fi
6523
6524
6525 late_LDFLAGS=$LDFLAGS
6526 if test x$GCC = xyes; then
6527 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6528 else
6529 LDFLAGS="$LDFLAGS -znocombreloc"
6530 fi
6531
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6533 $as_echo_n "checking for -znocombreloc... " >&6; }
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536
6537 int
6538 main ()
6539 {
6540
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_c_try_link "$LINENO"; then :
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6547 $as_echo "yes" >&6; }
6548 else
6549 LDFLAGS=$late_LDFLAGS
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555
6556
6557 # The value of CPP is a quoted variable reference, so we need to do this
6558 # to get its actual value...
6559 CPP=`eval "echo $CPP"`
6560
6561
6562 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6563 case "$opsys" in
6564 your-opsys-here) CANNOT_DUMP=yes ;;
6565 esac
6566
6567 test "$CANNOT_DUMP" = "yes" && \
6568
6569 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6570
6571
6572
6573
6574
6575 UNEXEC_OBJ=unexelf.o
6576 case "$opsys" in
6577 # MSDOS uses unexcoff.o
6578 # MSWindows uses unexw32.o
6579 aix4-2)
6580 UNEXEC_OBJ=unexaix.o
6581 ;;
6582 cygwin)
6583 UNEXEC_OBJ=unexcw.o
6584 ;;
6585 darwin)
6586 UNEXEC_OBJ=unexmacosx.o
6587 ;;
6588 hpux10-20 | hpux11)
6589 UNEXEC_OBJ=unexhp9k800.o
6590 ;;
6591 sol2-10)
6592 # Use the Solaris dldump() function, called from unexsol.c, to dump
6593 # emacs, instead of the generic ELF dump code found in unexelf.c.
6594 # The resulting binary has a complete symbol table, and is better
6595 # for debugging and other observability tools (debuggers, pstack, etc).
6596 #
6597 # If you encounter a problem using dldump(), please consider sending
6598 # a message to the OpenSolaris tools-linking mailing list:
6599 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6600 #
6601 # It is likely that dldump() works with older Solaris too, but this has
6602 # not been tested, so for now this change is for Solaris 10 or newer.
6603 UNEXEC_OBJ=unexsol.o
6604 ;;
6605 esac
6606
6607 LD_SWITCH_SYSTEM=
6608 case "$opsys" in
6609 freebsd)
6610 ## Let `ld' find image libs and similar things in /usr/local/lib.
6611 ## The system compiler, GCC, has apparently been modified to not
6612 ## look there, contrary to what a stock GCC would do.
6613 LD_SWITCH_SYSTEM=-L/usr/local/lib
6614 ;;
6615
6616 gnu-linux)
6617 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6618 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6619 ;;
6620
6621 netbsd)
6622 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6623 ;;
6624
6625 openbsd)
6626 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6627 ## otherwise Emacs dumps core on elf systems.
6628 LD_SWITCH_SYSTEM="-Z"
6629 ;;
6630 esac
6631
6632
6633 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6634
6635 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6636 ## which has not been defined yet. When this was handled with cpp,
6637 ## it was expanded to null when configure sourced the s/*.h file.
6638 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6639 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6640 ## (or somesuch), but because it is supposed to go at the _front_
6641 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6642 ## Compare with the gnu-linux case below, which added to the end
6643 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6644 ## LD_SWITCH_SYSTEM_TEMACS.
6645 case "$opsys" in
6646 netbsd|openbsd)
6647 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6648 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6649 esac
6650
6651
6652 C_SWITCH_MACHINE=
6653 if test "$machine" = "alpha"; then
6654 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6655 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
6656
6657 fi
6658
6659 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6660 ## With ELF, make sure that all common symbols get allocated to in the
6661 ## data section. Otherwise, the dump of temacs may miss variables in
6662 ## the shared library that have been initialized. For example, with
6663 ## GNU libc, __malloc_initialized would normally be resolved to the
6664 ## shared library's .bss section, which is fatal.
6665 if test "x$GCC" = "xyes"; then
6666 C_SWITCH_MACHINE="-fno-common"
6667 else
6668 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6669 fi
6670 else
6671 UNEXEC_OBJ=unexalpha.o
6672 fi
6673 fi
6674
6675
6676
6677
6678 C_SWITCH_SYSTEM=
6679 ## Some programs in src produce warnings saying certain subprograms
6680 ## are too complex and need a MAXMEM value greater than 2000 for
6681 ## additional optimization. --nils@exp-math.uni-essen.de
6682 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6683 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6684 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6685 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6686
6687
6688
6689 LIBS_SYSTEM=
6690 case "$opsys" in
6691 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6692 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6693
6694 freebsd) LIBS_SYSTEM="-lutil" ;;
6695
6696 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6697
6698 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6699
6700 ## Motif needs -lgen.
6701 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6702 esac
6703
6704
6705
6706 ### Make sure subsequent tests use flags consistent with the build flags.
6707
6708 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6709 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6710 else
6711 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6712 fi
6713
6714
6715
6716 # Check whether --enable-largefile was given.
6717 if test "${enable_largefile+set}" = set; then :
6718 enableval=$enable_largefile;
6719 fi
6720
6721 if test "$enable_largefile" != no; then
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6724 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6725 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 ac_cv_sys_largefile_CC=no
6729 if test "$GCC" != yes; then
6730 ac_save_CC=$CC
6731 while :; do
6732 # IRIX 6.2 and later do not support large files by default,
6733 # so use the C compiler's -n32 option if that helps.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <sys/types.h>
6737 /* Check that off_t can represent 2**63 - 1 correctly.
6738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6739 since some C++ compilers masquerading as C compilers
6740 incorrectly reject 9223372036854775807. */
6741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6743 && LARGE_OFF_T % 2147483647 == 1)
6744 ? 1 : -1];
6745 int
6746 main ()
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754 break
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext
6757 CC="$CC -n32"
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759 ac_cv_sys_largefile_CC=' -n32'; break
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext
6762 break
6763 done
6764 CC=$ac_save_CC
6765 rm -f conftest.$ac_ext
6766 fi
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6769 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6770 if test "$ac_cv_sys_largefile_CC" != no; then
6771 CC=$CC$ac_cv_sys_largefile_CC
6772 fi
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6775 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6776 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 while :; do
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 /* Check that off_t can represent 2**63 - 1 correctly.
6784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6785 since some C++ compilers masquerading as C compilers
6786 incorrectly reject 9223372036854775807. */
6787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6789 && LARGE_OFF_T % 2147483647 == 1)
6790 ? 1 : -1];
6791 int
6792 main ()
6793 {
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 ac_cv_sys_file_offset_bits=no; break
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 #define _FILE_OFFSET_BITS 64
6806 #include <sys/types.h>
6807 /* Check that off_t can represent 2**63 - 1 correctly.
6808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6809 since some C++ compilers masquerading as C compilers
6810 incorrectly reject 9223372036854775807. */
6811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6813 && LARGE_OFF_T % 2147483647 == 1)
6814 ? 1 : -1];
6815 int
6816 main ()
6817 {
6818
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 ac_cv_sys_file_offset_bits=64; break
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 ac_cv_sys_file_offset_bits=unknown
6828 break
6829 done
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6832 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6833 case $ac_cv_sys_file_offset_bits in #(
6834 no | unknown) ;;
6835 *)
6836 cat >>confdefs.h <<_ACEOF
6837 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6838 _ACEOF
6839 ;;
6840 esac
6841 rm -rf conftest*
6842 if test $ac_cv_sys_file_offset_bits = unknown; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6844 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6845 if test "${ac_cv_sys_large_files+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 while :; do
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <sys/types.h>
6852 /* Check that off_t can represent 2**63 - 1 correctly.
6853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6854 since some C++ compilers masquerading as C compilers
6855 incorrectly reject 9223372036854775807. */
6856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6858 && LARGE_OFF_T % 2147483647 == 1)
6859 ? 1 : -1];
6860 int
6861 main ()
6862 {
6863
6864 ;
6865 return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_compile "$LINENO"; then :
6869 ac_cv_sys_large_files=no; break
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #define _LARGE_FILES 1
6875 #include <sys/types.h>
6876 /* Check that off_t can represent 2**63 - 1 correctly.
6877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6878 since some C++ compilers masquerading as C compilers
6879 incorrectly reject 9223372036854775807. */
6880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6882 && LARGE_OFF_T % 2147483647 == 1)
6883 ? 1 : -1];
6884 int
6885 main ()
6886 {
6887
6888 ;
6889 return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 ac_cv_sys_large_files=1; break
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 ac_cv_sys_large_files=unknown
6897 break
6898 done
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6901 $as_echo "$ac_cv_sys_large_files" >&6; }
6902 case $ac_cv_sys_large_files in #(
6903 no | unknown) ;;
6904 *)
6905 cat >>confdefs.h <<_ACEOF
6906 #define _LARGE_FILES $ac_cv_sys_large_files
6907 _ACEOF
6908 ;;
6909 esac
6910 rm -rf conftest*
6911 fi
6912 fi
6913
6914
6915
6916 ## If user specified a crt-dir, use that unconditionally.
6917 if test "X$CRT_DIR" = "X"; then
6918
6919 case "$canonical" in
6920 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6921 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6922 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6923 ## For anything else (eg /usr/lib32), it is up the user to specify
6924 ## the location (bug#5655).
6925 ## Test for crtn.o, not just the directory, because sometimes the
6926 ## directory exists but does not have the relevant files (bug#1287).
6927 ## FIXME better to test for binary compatibility somehow.
6928 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6929 ;;
6930
6931 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6932 esac
6933
6934 case "$opsys" in
6935 hpux10-20) CRT_DIR=/lib ;;
6936 esac
6937
6938 ## Default is /usr/lib.
6939 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6940
6941 else
6942
6943 ## Some platforms don't use any of these files, so it is not
6944 ## appropriate to put this test outside the if block.
6945 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6946 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6947
6948 fi
6949
6950
6951
6952 LIB_MATH=-lm
6953 LIB_STANDARD=
6954 START_FILES=
6955
6956 case $opsys in
6957 cygwin )
6958 LIB_MATH=
6959 START_FILES='pre-crt0.o'
6960 ;;
6961 darwin )
6962 ## Adding -lm confuses the dynamic linker, so omit it.
6963 LIB_MATH=
6964 START_FILES='pre-crt0.o'
6965 ;;
6966 freebsd )
6967 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6968 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6969 ;;
6970 gnu-linux | gnu-kfreebsd )
6971 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6972 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6973 ;;
6974 hpux10-20 | hpux11 )
6975 LIB_STANDARD=-lc
6976 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6977 ;;
6978 netbsd | openbsd )
6979 if test -f $CRT_DIR/crti.o; then
6980 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6981 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6982 else
6983 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6984 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6985 fi
6986 ;;
6987 esac
6988
6989
6990
6991
6992
6993
6994
6995 if test "${with_sound}" != "no"; then
6996 # Sound support for GNU/Linux and the free BSDs.
6997 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6998 do :
6999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7002 cat >>confdefs.h <<_ACEOF
7003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 _ACEOF
7005 have_sound_header=yes
7006 fi
7007
7008 done
7009
7010 # Emulation library used on NetBSD.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7012 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7013 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 ac_check_lib_save_LIBS=$LIBS
7017 LIBS="-lossaudio $LIBS"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020
7021 /* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
7024 #ifdef __cplusplus
7025 extern "C"
7026 #endif
7027 char _oss_ioctl ();
7028 int
7029 main ()
7030 {
7031 return _oss_ioctl ();
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 ac_cv_lib_ossaudio__oss_ioctl=yes
7038 else
7039 ac_cv_lib_ossaudio__oss_ioctl=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 LIBS=$ac_check_lib_save_LIBS
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7046 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7047 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7048 LIBSOUND=-lossaudio
7049 else
7050 LIBSOUND=
7051 fi
7052
7053
7054
7055 ALSA_REQUIRED=1.0.0
7056 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7057
7058 succeeded=no
7059
7060 # Extract the first word of "pkg-config", so it can be a program name with args.
7061 set dummy pkg-config; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 case $PKG_CONFIG in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7070 ;;
7071 *)
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7088 ;;
7089 esac
7090 fi
7091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7092 if test -n "$PKG_CONFIG"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7094 $as_echo "$PKG_CONFIG" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101
7102 if test "$PKG_CONFIG" = "no" ; then
7103 HAVE_ALSA=no
7104 else
7105 PKG_CONFIG_MIN_VERSION=0.9.0
7106 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7108 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7109
7110 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112 $as_echo "yes" >&6; }
7113 succeeded=yes
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7116 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7117 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7119 $as_echo "$ALSA_CFLAGS" >&6; }
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7122 $as_echo_n "checking ALSA_LIBS... " >&6; }
7123 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7125 $as_echo "$ALSA_LIBS" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 ALSA_CFLAGS=""
7130 ALSA_LIBS=""
7131 ## If we have a custom action on failure, don't print errors, but
7132 ## do set a variable so people can do so.
7133 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7134
7135 fi
7136
7137
7138
7139 else
7140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7142 fi
7143 fi
7144
7145 if test $succeeded = yes; then
7146 HAVE_ALSA=yes
7147 else
7148 HAVE_ALSA=no
7149 fi
7150
7151 if test $HAVE_ALSA = yes; then
7152 SAVE_CFLAGS="$CFLAGS"
7153 SAVE_LDFLAGS="$LDFLAGS"
7154 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7155 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <asoundlib.h>
7159 int
7160 main ()
7161 {
7162 snd_lib_error_set_handler (0);
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_compile "$LINENO"; then :
7168 emacs_alsa_normal=yes
7169 else
7170 emacs_alsa_normal=no
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 if test "$emacs_alsa_normal" != yes; then
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #include <alsa/asoundlib.h>
7177 int
7178 main ()
7179 {
7180 snd_lib_error_set_handler (0);
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 emacs_alsa_subdir=yes
7187 else
7188 emacs_alsa_subdir=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test "$emacs_alsa_subdir" != yes; then
7192 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7193 fi
7194 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7195 fi
7196
7197 CFLAGS="$SAVE_CFLAGS"
7198 LDFLAGS="$SAVE_LDFLAGS"
7199 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7200 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7201
7202 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7203
7204 fi
7205
7206 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7207 case "$opsys" in
7208 gnu-linux|freebsd|netbsd)
7209
7210 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7211
7212 ;;
7213 esac
7214 fi
7215
7216
7217 fi
7218
7219 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7220 linux/version.h sys/systeminfo.h limits.h \
7221 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7222 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7223 sys/utsname.h pwd.h utmp.h dirent.h util.h
7224 do :
7225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7228 cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 _ACEOF
7231
7232 fi
7233
7234 done
7235
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7238 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <sys/personality.h>
7242 int
7243 main ()
7244 {
7245 personality (PER_LINUX32)
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 emacs_cv_personality_linux32=yes
7252 else
7253 emacs_cv_personality_linux32=no
7254 fi
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7257 $as_echo "$emacs_cv_personality_linux32" >&6; }
7258
7259 if test $emacs_cv_personality_linux32 = yes; then
7260
7261 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7262
7263 fi
7264
7265 for ac_header in term.h
7266 do :
7267 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7268 if test "x$ac_cv_header_term_h" = x""yes; then :
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_TERM_H 1
7271 _ACEOF
7272
7273 fi
7274
7275 done
7276
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7278 $as_echo_n "checking for ANSI C header files... " >&6; }
7279 if test "${ac_cv_header_stdc+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <stdlib.h>
7285 #include <stdarg.h>
7286 #include <string.h>
7287 #include <float.h>
7288
7289 int
7290 main ()
7291 {
7292
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 ac_cv_header_stdc=yes
7299 else
7300 ac_cv_header_stdc=no
7301 fi
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303
7304 if test $ac_cv_header_stdc = yes; then
7305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 #include <string.h>
7309
7310 _ACEOF
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 $EGREP "memchr" >/dev/null 2>&1; then :
7313
7314 else
7315 ac_cv_header_stdc=no
7316 fi
7317 rm -f conftest*
7318
7319 fi
7320
7321 if test $ac_cv_header_stdc = yes; then
7322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 #include <stdlib.h>
7326
7327 _ACEOF
7328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7329 $EGREP "free" >/dev/null 2>&1; then :
7330
7331 else
7332 ac_cv_header_stdc=no
7333 fi
7334 rm -f conftest*
7335
7336 fi
7337
7338 if test $ac_cv_header_stdc = yes; then
7339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7340 if test "$cross_compiling" = yes; then :
7341 :
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #include <ctype.h>
7346 #include <stdlib.h>
7347 #if ((' ' & 0x0FF) == 0x020)
7348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7350 #else
7351 # define ISLOWER(c) \
7352 (('a' <= (c) && (c) <= 'i') \
7353 || ('j' <= (c) && (c) <= 'r') \
7354 || ('s' <= (c) && (c) <= 'z'))
7355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7356 #endif
7357
7358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7359 int
7360 main ()
7361 {
7362 int i;
7363 for (i = 0; i < 256; i++)
7364 if (XOR (islower (i), ISLOWER (i))
7365 || toupper (i) != TOUPPER (i))
7366 return 2;
7367 return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_run "$LINENO"; then :
7371
7372 else
7373 ac_cv_header_stdc=no
7374 fi
7375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7376 conftest.$ac_objext conftest.beam conftest.$ac_ext
7377 fi
7378
7379 fi
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7382 $as_echo "$ac_cv_header_stdc" >&6; }
7383 if test $ac_cv_header_stdc = yes; then
7384
7385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7386
7387 fi
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7390 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7391 if test "${ac_cv_header_time+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7397 #include <sys/time.h>
7398 #include <time.h>
7399
7400 int
7401 main ()
7402 {
7403 if ((struct tm *) 0)
7404 return 0;
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_c_try_compile "$LINENO"; then :
7410 ac_cv_header_time=yes
7411 else
7412 ac_cv_header_time=no
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7417 $as_echo "$ac_cv_header_time" >&6; }
7418 if test $ac_cv_header_time = yes; then
7419
7420 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7421
7422 fi
7423
7424 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7425 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7426 ac_have_decl=1
7427 else
7428 ac_have_decl=0
7429 fi
7430
7431 cat >>confdefs.h <<_ACEOF
7432 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7433 _ACEOF
7434
7435 if test $ac_cv_have_decl_sys_siglist != yes; then
7436 # For Tru64, at least:
7437 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7438 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7439 ac_have_decl=1
7440 else
7441 ac_have_decl=0
7442 fi
7443
7444 cat >>confdefs.h <<_ACEOF
7445 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7446 _ACEOF
7447
7448 if test $ac_cv_have_decl___sys_siglist = yes; then
7449
7450 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7451
7452 fi
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7455 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7456 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <sys/types.h>
7462 #include <sys/wait.h>
7463 #ifndef WEXITSTATUS
7464 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7465 #endif
7466 #ifndef WIFEXITED
7467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7468 #endif
7469
7470 int
7471 main ()
7472 {
7473 int s;
7474 wait (&s);
7475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7476 ;
7477 return 0;
7478 }
7479 _ACEOF
7480 if ac_fn_c_try_compile "$LINENO"; then :
7481 ac_cv_header_sys_wait_h=yes
7482 else
7483 ac_cv_header_sys_wait_h=no
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7488 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7489 if test $ac_cv_header_sys_wait_h = yes; then
7490
7491 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7492
7493 fi
7494
7495
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7497 $as_echo_n "checking for struct utimbuf... " >&6; }
7498 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #ifdef TIME_WITH_SYS_TIME
7504 #include <sys/time.h>
7505 #include <time.h>
7506 #else
7507 #ifdef HAVE_SYS_TIME_H
7508 #include <sys/time.h>
7509 #else
7510 #include <time.h>
7511 #endif
7512 #endif
7513 #ifdef HAVE_UTIME_H
7514 #include <utime.h>
7515 #endif
7516 int
7517 main ()
7518 {
7519 static struct utimbuf x; x.actime = x.modtime;
7520 ;
7521 return 0;
7522 }
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7525 emacs_cv_struct_utimbuf=yes
7526 else
7527 emacs_cv_struct_utimbuf=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7532 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7533 if test $emacs_cv_struct_utimbuf = yes; then
7534
7535 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7536
7537 fi
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7540 $as_echo_n "checking return type of signal handlers... " >&6; }
7541 if test "${ac_cv_type_signal+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <sys/types.h>
7547 #include <signal.h>
7548
7549 int
7550 main ()
7551 {
7552 return *(signal (0, 0)) (0) == 1;
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 ac_cv_type_signal=int
7559 else
7560 ac_cv_type_signal=void
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7565 $as_echo "$ac_cv_type_signal" >&6; }
7566
7567 cat >>confdefs.h <<_ACEOF
7568 #define RETSIGTYPE $ac_cv_type_signal
7569 _ACEOF
7570
7571
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7574 $as_echo_n "checking for speed_t... " >&6; }
7575 if test "${emacs_cv_speed_t+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <termios.h>
7581 int
7582 main ()
7583 {
7584 speed_t x = 1;
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 emacs_cv_speed_t=yes
7591 else
7592 emacs_cv_speed_t=no
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7597 $as_echo "$emacs_cv_speed_t" >&6; }
7598 if test $emacs_cv_speed_t = yes; then
7599
7600 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7601
7602 fi
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7605 $as_echo_n "checking for struct timeval... " >&6; }
7606 if test "${emacs_cv_struct_timeval+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #ifdef TIME_WITH_SYS_TIME
7612 #include <sys/time.h>
7613 #include <time.h>
7614 #else
7615 #ifdef HAVE_SYS_TIME_H
7616 #include <sys/time.h>
7617 #else
7618 #include <time.h>
7619 #endif
7620 #endif
7621 int
7622 main ()
7623 {
7624 static struct timeval x; x.tv_sec = x.tv_usec;
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 emacs_cv_struct_timeval=yes
7631 else
7632 emacs_cv_struct_timeval=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7637 $as_echo "$emacs_cv_struct_timeval" >&6; }
7638 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7639 if test $emacs_cv_struct_timeval = yes; then
7640
7641 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7642
7643 fi
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7646 $as_echo_n "checking for struct exception... " >&6; }
7647 if test "${emacs_cv_struct_exception+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <math.h>
7653 int
7654 main ()
7655 {
7656 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 emacs_cv_struct_exception=yes
7663 else
7664 emacs_cv_struct_exception=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7669 $as_echo "$emacs_cv_struct_exception" >&6; }
7670 HAVE_EXCEPTION=$emacs_cv_struct_exception
7671 if test $emacs_cv_struct_exception != yes; then
7672
7673 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7674
7675 fi
7676
7677 for ac_header in sys/socket.h
7678 do :
7679 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7680 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7681 cat >>confdefs.h <<_ACEOF
7682 #define HAVE_SYS_SOCKET_H 1
7683 _ACEOF
7684
7685 fi
7686
7687 done
7688
7689 for ac_header in net/if.h
7690 do :
7691 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7692 #if HAVE_SYS_SOCKET_H
7693 #include <sys/socket.h>
7694 #endif
7695 "
7696 if test "x$ac_cv_header_net_if_h" = x""yes; then :
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_NET_IF_H 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7707 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7708 if test "${ac_cv_struct_tm+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7714 #include <time.h>
7715
7716 int
7717 main ()
7718 {
7719 struct tm tm;
7720 int *p = &tm.tm_sec;
7721 return !p;
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ac_cv_struct_tm=time.h
7728 else
7729 ac_cv_struct_tm=sys/time.h
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7734 $as_echo "$ac_cv_struct_tm" >&6; }
7735 if test $ac_cv_struct_tm = sys/time.h; then
7736
7737 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7738
7739 fi
7740
7741 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7742 #include <$ac_cv_struct_tm>
7743
7744 "
7745 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
7746
7747 cat >>confdefs.h <<_ACEOF
7748 #define HAVE_STRUCT_TM_TM_ZONE 1
7749 _ACEOF
7750
7751
7752 fi
7753
7754 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7755
7756 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7757
7758 else
7759 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7760 "
7761 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
7762 ac_have_decl=1
7763 else
7764 ac_have_decl=0
7765 fi
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_DECL_TZNAME $ac_have_decl
7769 _ACEOF
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7772 $as_echo_n "checking for tzname... " >&6; }
7773 if test "${ac_cv_var_tzname+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <time.h>
7779 #if !HAVE_DECL_TZNAME
7780 extern char *tzname[];
7781 #endif
7782
7783 int
7784 main ()
7785 {
7786 return tzname[0][0];
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 ac_cv_var_tzname=yes
7793 else
7794 ac_cv_var_tzname=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7800 $as_echo "$ac_cv_var_tzname" >&6; }
7801 if test $ac_cv_var_tzname = yes; then
7802
7803 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7804
7805 fi
7806 fi
7807
7808 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7809 "
7810 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
7811
7812 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7813
7814 fi
7815
7816 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7817 #if HAVE_SYS_SOCKET_H
7818 #include <sys/socket.h>
7819 #endif
7820 #if HAVE_NET_IF_H
7821 #include <net/if.h>
7822 #endif
7823 "
7824 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7828 _ACEOF
7829
7830
7831 fi
7832 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7833 #if HAVE_SYS_SOCKET_H
7834 #include <sys/socket.h>
7835 #endif
7836 #if HAVE_NET_IF_H
7837 #include <net/if.h>
7838 #endif
7839 "
7840 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
7841
7842 cat >>confdefs.h <<_ACEOF
7843 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7844 _ACEOF
7845
7846
7847 fi
7848 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7849 #if HAVE_SYS_SOCKET_H
7850 #include <sys/socket.h>
7851 #endif
7852 #if HAVE_NET_IF_H
7853 #include <net/if.h>
7854 #endif
7855 "
7856 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
7857
7858 cat >>confdefs.h <<_ACEOF
7859 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7860 _ACEOF
7861
7862
7863 fi
7864 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7865 #if HAVE_SYS_SOCKET_H
7866 #include <sys/socket.h>
7867 #endif
7868 #if HAVE_NET_IF_H
7869 #include <net/if.h>
7870 #endif
7871 "
7872 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
7873
7874 cat >>confdefs.h <<_ACEOF
7875 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7876 _ACEOF
7877
7878
7879 fi
7880 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7881 #if HAVE_SYS_SOCKET_H
7882 #include <sys/socket.h>
7883 #endif
7884 #if HAVE_NET_IF_H
7885 #include <net/if.h>
7886 #endif
7887 "
7888 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
7889
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7892 _ACEOF
7893
7894
7895 fi
7896
7897
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7900 $as_echo_n "checking for function prototypes... " >&6; }
7901 if test "$ac_cv_prog_cc_c89" != no; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7903 $as_echo "yes" >&6; }
7904
7905 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7906
7907
7908 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7909
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7916 $as_echo_n "checking for working volatile... " >&6; }
7917 if test "${ac_cv_c_volatile+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922
7923 int
7924 main ()
7925 {
7926
7927 volatile int x;
7928 int * volatile y = (int *) 0;
7929 return !x && !y;
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_compile "$LINENO"; then :
7935 ac_cv_c_volatile=yes
7936 else
7937 ac_cv_c_volatile=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7942 $as_echo "$ac_cv_c_volatile" >&6; }
7943 if test $ac_cv_c_volatile = no; then
7944
7945 $as_echo "#define volatile /**/" >>confdefs.h
7946
7947 fi
7948
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7950 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956
7957 int
7958 main ()
7959 {
7960 /* FIXME: Include the comments suggested by Paul. */
7961 #ifndef __cplusplus
7962 /* Ultrix mips cc rejects this. */
7963 typedef int charset[2];
7964 const charset cs;
7965 /* SunOS 4.1.1 cc rejects this. */
7966 char const *const *pcpcc;
7967 char **ppc;
7968 /* NEC SVR4.0.2 mips cc rejects this. */
7969 struct point {int x, y;};
7970 static struct point const zero = {0,0};
7971 /* AIX XL C 1.02.0.0 rejects this.
7972 It does not let you subtract one const X* pointer from another in
7973 an arm of an if-expression whose if-part is not a constant
7974 expression */
7975 const char *g = "string";
7976 pcpcc = &g + (g ? g-g : 0);
7977 /* HPUX 7.0 cc rejects these. */
7978 ++pcpcc;
7979 ppc = (char**) pcpcc;
7980 pcpcc = (char const *const *) ppc;
7981 { /* SCO 3.2v4 cc rejects this. */
7982 char *t;
7983 char const *s = 0 ? (char *) 0 : (char const *) 0;
7984
7985 *t++ = 0;
7986 if (s) return 0;
7987 }
7988 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7989 int x[] = {25, 17};
7990 const int *foo = &x[0];
7991 ++foo;
7992 }
7993 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7994 typedef const int *iptr;
7995 iptr p = 0;
7996 ++p;
7997 }
7998 { /* AIX XL C 1.02.0.0 rejects this saying
7999 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8000 struct s { int j; const int *ap[3]; };
8001 struct s *b; b->j = 5;
8002 }
8003 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8004 const int foo = 10;
8005 if (!foo) return 0;
8006 }
8007 return !cs[0] && !zero.x;
8008 #endif
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015 ac_cv_c_const=yes
8016 else
8017 ac_cv_c_const=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8022 $as_echo "$ac_cv_c_const" >&6; }
8023 if test $ac_cv_c_const = no; then
8024
8025 $as_echo "#define const /**/" >>confdefs.h
8026
8027 fi
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8030 $as_echo_n "checking for void * support... " >&6; }
8031 if test "${emacs_cv_void_star+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036
8037 int
8038 main ()
8039 {
8040 void * foo;
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_compile "$LINENO"; then :
8046 emacs_cv_void_star=yes
8047 else
8048 emacs_cv_void_star=no
8049 fi
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8053 $as_echo "$emacs_cv_void_star" >&6; }
8054 if test $emacs_cv_void_star = yes; then
8055 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8056
8057 else
8058 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8059
8060 fi
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8063 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8064 if test "${ac_cv_c_bigendian+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 ac_cv_c_bigendian=unknown
8068 # See if we're dealing with a universal compiler.
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #ifndef __APPLE_CC__
8072 not a universal capable compiler
8073 #endif
8074 typedef int dummy;
8075
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078
8079 # Check for potential -arch flags. It is not universal unless
8080 # there are at least two -arch flags with different values.
8081 ac_arch=
8082 ac_prev=
8083 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8084 if test -n "$ac_prev"; then
8085 case $ac_word in
8086 i?86 | x86_64 | ppc | ppc64)
8087 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8088 ac_arch=$ac_word
8089 else
8090 ac_cv_c_bigendian=universal
8091 break
8092 fi
8093 ;;
8094 esac
8095 ac_prev=
8096 elif test "x$ac_word" = "x-arch"; then
8097 ac_prev=arch
8098 fi
8099 done
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 if test $ac_cv_c_bigendian = unknown; then
8103 # See if sys/param.h defines the BYTE_ORDER macro.
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <sys/types.h>
8107 #include <sys/param.h>
8108
8109 int
8110 main ()
8111 {
8112 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8113 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8114 && LITTLE_ENDIAN)
8115 bogus endian macros
8116 #endif
8117
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123 # It does; now see whether it defined to BIG_ENDIAN or not.
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <sys/param.h>
8128
8129 int
8130 main ()
8131 {
8132 #if BYTE_ORDER != BIG_ENDIAN
8133 not big endian
8134 #endif
8135
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_compile "$LINENO"; then :
8141 ac_cv_c_bigendian=yes
8142 else
8143 ac_cv_c_bigendian=no
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 if test $ac_cv_c_bigendian = unknown; then
8150 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #include <limits.h>
8154
8155 int
8156 main ()
8157 {
8158 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8159 bogus endian macros
8160 #endif
8161
8162 ;
8163 return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167 # It does; now see whether it defined to _BIG_ENDIAN or not.
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <limits.h>
8171
8172 int
8173 main ()
8174 {
8175 #ifndef _BIG_ENDIAN
8176 not big endian
8177 #endif
8178
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184 ac_cv_c_bigendian=yes
8185 else
8186 ac_cv_c_bigendian=no
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 if test $ac_cv_c_bigendian = unknown; then
8193 # Compile a test program.
8194 if test "$cross_compiling" = yes; then :
8195 # Try to guess by grepping values from an object file.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 short int ascii_mm[] =
8199 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8200 short int ascii_ii[] =
8201 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8202 int use_ascii (int i) {
8203 return ascii_mm[i] + ascii_ii[i];
8204 }
8205 short int ebcdic_ii[] =
8206 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8207 short int ebcdic_mm[] =
8208 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8209 int use_ebcdic (int i) {
8210 return ebcdic_mm[i] + ebcdic_ii[i];
8211 }
8212 extern int foo;
8213
8214 int
8215 main ()
8216 {
8217 return use_ascii (foo) == use_ebcdic (foo);
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_compile "$LINENO"; then :
8223 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8224 ac_cv_c_bigendian=yes
8225 fi
8226 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8227 if test "$ac_cv_c_bigendian" = unknown; then
8228 ac_cv_c_bigendian=no
8229 else
8230 # finding both strings is unlikely to happen, but who knows?
8231 ac_cv_c_bigendian=unknown
8232 fi
8233 fi
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 int
8241 main ()
8242 {
8243
8244 /* Are we little or big endian? From Harbison&Steele. */
8245 union
8246 {
8247 long int l;
8248 char c[sizeof (long int)];
8249 } u;
8250 u.l = 1;
8251 return u.c[sizeof (long int) - 1] == 1;
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_run "$LINENO"; then :
8258 ac_cv_c_bigendian=no
8259 else
8260 ac_cv_c_bigendian=yes
8261 fi
8262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8263 conftest.$ac_objext conftest.beam conftest.$ac_ext
8264 fi
8265
8266 fi
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8269 $as_echo "$ac_cv_c_bigendian" >&6; }
8270 case $ac_cv_c_bigendian in #(
8271 yes)
8272 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8273 ;; #(
8274 no)
8275 ;; #(
8276 universal)
8277
8278 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8279
8280 ;; #(
8281 *)
8282 as_fn_error $? "unknown endianness
8283 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8284 esac
8285
8286
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8288 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8289 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 char __attribute__ ((__aligned__ (1 << 3))) c;
8295 int
8296 main ()
8297 {
8298
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 emacs_cv_attribute_aligned=yes
8305 else
8306 emacs_cv_attribute_aligned=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8311 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8312 if test $emacs_cv_attribute_aligned = yes; then
8313
8314 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8315
8316 fi
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8320 set x ${MAKE-make}
8321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat >conftest.make <<\_ACEOF
8326 SHELL = /bin/sh
8327 all:
8328 @echo '@@@%%%=$(MAKE)=@@@%%%'
8329 _ACEOF
8330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8332 *@@@%%%=?*=@@@%%%*)
8333 eval ac_cv_prog_make_${ac_make}_set=yes;;
8334 *)
8335 eval ac_cv_prog_make_${ac_make}_set=no;;
8336 esac
8337 rm -f conftest.make
8338 fi
8339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8341 $as_echo "yes" >&6; }
8342 SET_MAKE=
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 SET_MAKE="MAKE=${MAKE-make}"
8347 fi
8348
8349
8350 DEPFLAGS=
8351 MKDEPDIR=":"
8352 deps_frag=deps.mk
8353 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8355 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8356 HAVE_GNU_MAKE=no
8357 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8358 if test "x$testval" != x; then
8359 HAVE_GNU_MAKE=yes
8360 else
8361 ac_enable_autodepend=no
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8364 $as_echo "$HAVE_GNU_MAKE" >&6; }
8365 if test $HAVE_GNU_MAKE = yes; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8367 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8368 SAVE_CFLAGS="$CFLAGS"
8369 CFLAGS="$CFLAGS -MMD -MF deps.d"
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372
8373 int
8374 main ()
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382
8383 else
8384 ac_enable_autodepend=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 CFLAGS="$SAVE_CFLAGS"
8388 test -f deps.d || ac_enable_autodepend=no
8389 rm -rf deps.d
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8391 $as_echo "$ac_enable_autodepend" >&6; }
8392 fi
8393 if test $ac_enable_autodepend = yes; then
8394 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8395 ## In parallel builds, another make might create depdir between
8396 ## the first test and mkdir, so stick another test on the end.
8397 ## Or use mkinstalldirs? mkdir -p is not portable.
8398 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8399 deps_frag=autodeps.mk
8400 fi
8401 fi
8402 deps_frag=$srcdir/src/$deps_frag
8403
8404
8405
8406
8407
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8409 $as_echo_n "checking for long file names... " >&6; }
8410 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 ac_cv_sys_long_file_names=yes
8414 # Test for long file names in all the places we know might matter:
8415 # . the current directory, where building will happen
8416 # $prefix/lib where we will be installing things
8417 # $exec_prefix/lib likewise
8418 # $TMPDIR if set, where it might want to write temporary files
8419 # /tmp where it might want to write temporary files
8420 # /var/tmp likewise
8421 # /usr/tmp likewise
8422 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8423 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8424 # in the usual case where exec_prefix is '${prefix}'.
8425 case $ac_dir in #(
8426 . | /* | ?:[\\/]*) ;; #(
8427 *) continue;;
8428 esac
8429 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8430 ac_xdir=$ac_dir/cf$$
8431 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8432 ac_tf1=$ac_xdir/conftest9012345
8433 ac_tf2=$ac_xdir/conftest9012346
8434 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8435 ac_cv_sys_long_file_names=no
8436 rm -f -r "$ac_xdir" 2>/dev/null
8437 test $ac_cv_sys_long_file_names = no && break
8438 done
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8441 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8442 if test $ac_cv_sys_long_file_names = yes; then
8443
8444 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8445
8446 fi
8447
8448
8449 #### Choose a window system.
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8452 $as_echo_n "checking for X... " >&6; }
8453
8454
8455 # Check whether --with-x was given.
8456 if test "${with_x+set}" = set; then :
8457 withval=$with_x;
8458 fi
8459
8460 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8461 if test "x$with_x" = xno; then
8462 # The user explicitly disabled X.
8463 have_x=disabled
8464 else
8465 case $x_includes,$x_libraries in #(
8466 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
8467 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 # One or both of the vars are not set, and there is no cached value.
8471 ac_x_includes=no ac_x_libraries=no
8472 rm -f -r conftest.dir
8473 if mkdir conftest.dir; then
8474 cd conftest.dir
8475 cat >Imakefile <<'_ACEOF'
8476 incroot:
8477 @echo incroot='${INCROOT}'
8478 usrlibdir:
8479 @echo usrlibdir='${USRLIBDIR}'
8480 libdir:
8481 @echo libdir='${LIBDIR}'
8482 _ACEOF
8483 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8484 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8485 for ac_var in incroot usrlibdir libdir; do
8486 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8487 done
8488 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8489 for ac_extension in a so sl dylib la dll; do
8490 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8491 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8492 ac_im_usrlibdir=$ac_im_libdir; break
8493 fi
8494 done
8495 # Screen out bogus values from the imake configuration. They are
8496 # bogus both because they are the default anyway, and because
8497 # using them would break gcc on systems where it needs fixed includes.
8498 case $ac_im_incroot in
8499 /usr/include) ac_x_includes= ;;
8500 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8501 esac
8502 case $ac_im_usrlibdir in
8503 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8504 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8505 esac
8506 fi
8507 cd ..
8508 rm -f -r conftest.dir
8509 fi
8510
8511 # Standard set of common directories for X headers.
8512 # Check X11 before X11Rn because it is often a symlink to the current release.
8513 ac_x_header_dirs='
8514 /usr/X11/include
8515 /usr/X11R7/include
8516 /usr/X11R6/include
8517 /usr/X11R5/include
8518 /usr/X11R4/include
8519
8520 /usr/include/X11
8521 /usr/include/X11R7
8522 /usr/include/X11R6
8523 /usr/include/X11R5
8524 /usr/include/X11R4
8525
8526 /usr/local/X11/include
8527 /usr/local/X11R7/include
8528 /usr/local/X11R6/include
8529 /usr/local/X11R5/include
8530 /usr/local/X11R4/include
8531
8532 /usr/local/include/X11
8533 /usr/local/include/X11R7
8534 /usr/local/include/X11R6
8535 /usr/local/include/X11R5
8536 /usr/local/include/X11R4
8537
8538 /usr/X386/include
8539 /usr/x386/include
8540 /usr/XFree86/include/X11
8541
8542 /usr/include
8543 /usr/local/include
8544 /usr/unsupported/include
8545 /usr/athena/include
8546 /usr/local/x11r5/include
8547 /usr/lpp/Xamples/include
8548
8549 /usr/openwin/include
8550 /usr/openwin/share/include'
8551
8552 if test "$ac_x_includes" = no; then
8553 # Guess where to find include files, by looking for Xlib.h.
8554 # First, try using that file with no special directory specified.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <X11/Xlib.h>
8558 _ACEOF
8559 if ac_fn_c_try_cpp "$LINENO"; then :
8560 # We can compile using X headers with no special include directory.
8561 ac_x_includes=
8562 else
8563 for ac_dir in $ac_x_header_dirs; do
8564 if test -r "$ac_dir/X11/Xlib.h"; then
8565 ac_x_includes=$ac_dir
8566 break
8567 fi
8568 done
8569 fi
8570 rm -f conftest.err conftest.i conftest.$ac_ext
8571 fi # $ac_x_includes = no
8572
8573 if test "$ac_x_libraries" = no; then
8574 # Check for the libraries.
8575 # See if we find them without any special options.
8576 # Don't add to $LIBS permanently.
8577 ac_save_LIBS=$LIBS
8578 LIBS="-lX11 $LIBS"
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <X11/Xlib.h>
8582 int
8583 main ()
8584 {
8585 XrmInitialize ()
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 LIBS=$ac_save_LIBS
8592 # We can link X programs with no special library path.
8593 ac_x_libraries=
8594 else
8595 LIBS=$ac_save_LIBS
8596 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8597 do
8598 # Don't even attempt the hair of trying to link an X program!
8599 for ac_extension in a so sl dylib la dll; do
8600 if test -r "$ac_dir/libX11.$ac_extension"; then
8601 ac_x_libraries=$ac_dir
8602 break 2
8603 fi
8604 done
8605 done
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 fi # $ac_x_libraries = no
8610
8611 case $ac_x_includes,$ac_x_libraries in #(
8612 no,* | *,no | *\'*)
8613 # Didn't find X, or a directory has "'" in its name.
8614 ac_cv_have_x="have_x=no";; #(
8615 *)
8616 # Record where we found X for the cache.
8617 ac_cv_have_x="have_x=yes\
8618 ac_x_includes='$ac_x_includes'\
8619 ac_x_libraries='$ac_x_libraries'"
8620 esac
8621 fi
8622 ;; #(
8623 *) have_x=yes;;
8624 esac
8625 eval "$ac_cv_have_x"
8626 fi # $with_x != no
8627
8628 if test "$have_x" != yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8630 $as_echo "$have_x" >&6; }
8631 no_x=yes
8632 else
8633 # If each of the values was on the command line, it overrides each guess.
8634 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8635 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8636 # Update the cache value to reflect the command line values.
8637 ac_cv_have_x="have_x=yes\
8638 ac_x_includes='$x_includes'\
8639 ac_x_libraries='$x_libraries'"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8641 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8642 fi
8643
8644 if test "$no_x" = yes; then
8645 window_system=none
8646 else
8647 window_system=x11
8648 fi
8649
8650 ## Workaround for bug in autoconf <= 2.62.
8651 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8652 ## No need to do anything special for these standard directories.
8653 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8654
8655 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8656
8657 fi
8658
8659 LD_SWITCH_X_SITE_AUX=
8660 LD_SWITCH_X_SITE_AUX_RPATH=
8661 if test "${x_libraries}" != NONE; then
8662 if test -n "${x_libraries}"; then
8663 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8664 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8665 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8666 fi
8667 x_default_search_path=""
8668 x_search_path=${x_libraries}
8669 if test -z "${x_search_path}"; then
8670 x_search_path=/usr/lib
8671 fi
8672 for x_library in `echo ${x_search_path}: | \
8673 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8674 x_search_path="\
8675 ${x_library}/X11/%L/%T/%N%C%S:\
8676 ${x_library}/X11/%l/%T/%N%C%S:\
8677 ${x_library}/X11/%T/%N%C%S:\
8678 ${x_library}/X11/%L/%T/%N%S:\
8679 ${x_library}/X11/%l/%T/%N%S:\
8680 ${x_library}/X11/%T/%N%S"
8681 if test x"${x_default_search_path}" = x; then
8682 x_default_search_path=${x_search_path}
8683 else
8684 x_default_search_path="${x_search_path}:${x_default_search_path}"
8685 fi
8686 done
8687 fi
8688
8689
8690
8691 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8692 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8693 fi
8694
8695 if test x"${x_includes}" = x; then
8696 bitmapdir=/usr/include/X11/bitmaps
8697 else
8698 # accumulate include directories that have X11 bitmap subdirectories
8699 bmd_acc="dummyval"
8700 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8701 if test -d "${bmd}/X11/bitmaps"; then
8702 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8703 fi
8704 if test -d "${bmd}/bitmaps"; then
8705 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8706 fi
8707 done
8708 if test ${bmd_acc} != "dummyval"; then
8709 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8710 fi
8711 fi
8712
8713 HAVE_NS=no
8714 NS_IMPL_COCOA=no
8715 NS_IMPL_GNUSTEP=no
8716 tmp_CPPFLAGS="$CPPFLAGS"
8717 tmp_CFLAGS="$CFLAGS"
8718 CPPFLAGS="$CPPFLAGS -x objective-c"
8719 CFLAGS="$CFLAGS -x objective-c"
8720 TEMACS_LDFLAGS2="\${LDFLAGS}"
8721 if test "${with_ns}" != no; then
8722 if test "${opsys}" = darwin; then
8723 NS_IMPL_COCOA=yes
8724 ns_appdir=`pwd`/nextstep/Emacs.app
8725 ns_appbindir=${ns_appdir}/Contents/MacOS/
8726 ns_appresdir=${ns_appdir}/Contents/Resources
8727 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8728 elif test -f $GNUSTEP_CONFIG_FILE; then
8729 NS_IMPL_GNUSTEP=yes
8730 ns_appdir=`pwd`/nextstep/Emacs.app
8731 ns_appbindir=${ns_appdir}/
8732 ns_appresdir=${ns_appdir}/Resources
8733 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8734 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8735 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8736 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8737 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8738 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8739 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8740 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8741 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8742 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8743 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8744 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8745 LIB_STANDARD=
8746 START_FILES=
8747 TEMACS_LDFLAGS2=
8748 fi
8749 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8750 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
8751 HAVE_NS=yes
8752 else
8753 as_fn_error $? "\`--with-ns' was specified, but the include
8754 files are missing or cannot be compiled." "$LINENO" 5
8755 fi
8756
8757
8758 NS_HAVE_NSINTEGER=yes
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <Foundation/NSObjCRuntime.h>
8762 int
8763 main ()
8764 {
8765 NSInteger i;
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_compile "$LINENO"; then :
8771 ns_have_nsinteger=yes
8772 else
8773 ns_have_nsinteger=no
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 if test $ns_have_nsinteger = no; then
8777 NS_HAVE_NSINTEGER=no
8778 fi
8779 fi
8780
8781
8782 ns_frag=/dev/null
8783 NS_OBJ=
8784 NS_OBJC_OBJ=
8785 NS_SUPPORT=
8786 if test "${HAVE_NS}" = yes; then
8787 window_system=nextstep
8788 with_xft=no
8789 # set up packaging dirs
8790 exec_prefix=${ns_appbindir}
8791 libexecdir=${ns_appbindir}/libexec
8792 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8793 prefix=${ns_appresdir}
8794 fi
8795 ns_frag=$srcdir/src/ns.mk
8796 NS_OBJ="fontset.o fringe.o image.o"
8797 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
8798 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8799 fi
8800 CFLAGS="$tmp_CFLAGS"
8801 CPPFLAGS="$tmp_CPPFLAGS"
8802
8803
8804
8805
8806
8807
8808 case "${window_system}" in
8809 x11 )
8810 HAVE_X_WINDOWS=yes
8811 HAVE_X11=yes
8812 case "${with_x_toolkit}" in
8813 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8814 motif ) USE_X_TOOLKIT=MOTIF ;;
8815 gtk ) with_gtk=yes
8816 USE_X_TOOLKIT=none ;;
8817 gtk3 ) with_gtk3=yes
8818 USE_X_TOOLKIT=none ;;
8819 no ) USE_X_TOOLKIT=none ;;
8820 * ) USE_X_TOOLKIT=maybe ;;
8821 esac
8822 ;;
8823 nextstep | none )
8824 HAVE_X_WINDOWS=no
8825 HAVE_X11=no
8826 USE_X_TOOLKIT=none
8827 ;;
8828 esac
8829
8830 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8831 # Extract the first word of "X", so it can be a program name with args.
8832 set dummy X; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$HAVE_XSERVER"; then
8839 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_HAVE_XSERVER="true"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8851 fi
8852 done
8853 done
8854 IFS=$as_save_IFS
8855
8856 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8857 fi
8858 fi
8859 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8860 if test -n "$HAVE_XSERVER"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8862 $as_echo "$HAVE_XSERVER" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869 if test "$HAVE_XSERVER" = true ||
8870 test -n "$DISPLAY" ||
8871 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8872 as_fn_error $? "You seem to be running X, but no X development libraries
8873 were found. You should install the relevant development files for X
8874 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8875 sure you have development files for image handling, i.e.
8876 tiff, gif, jpeg, png and xpm.
8877 If you are sure you want Emacs compiled without X window support, pass
8878 --without-x
8879 to configure." "$LINENO" 5
8880 fi
8881 fi
8882
8883 ### If we're using X11, we should use the X menu package.
8884 HAVE_MENUS=no
8885 case ${HAVE_X11} in
8886 yes ) HAVE_MENUS=yes ;;
8887 esac
8888
8889 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8890 # Assume not, until told otherwise.
8891 GNU_MALLOC=yes
8892 doug_lea_malloc=yes
8893 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8894 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
8895
8896 else
8897 doug_lea_malloc=no
8898 fi
8899
8900 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8901 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
8902
8903 else
8904 doug_lea_malloc=no
8905 fi
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8908 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8909 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 extern void (* __after_morecore_hook)();
8915 int
8916 main ()
8917 {
8918 __after_morecore_hook = 0
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 emacs_cv_var___after_morecore_hook=yes
8925 else
8926 emacs_cv_var___after_morecore_hook=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8932 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8933 if test $emacs_cv_var___after_morecore_hook = no; then
8934 doug_lea_malloc=no
8935 fi
8936
8937
8938 system_malloc=no
8939 case "$opsys" in
8940 ## darwin ld insists on the use of malloc routines in the System framework.
8941 darwin|sol2-10) system_malloc=yes ;;
8942 esac
8943
8944 if test "${system_malloc}" = "yes"; then
8945
8946 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8947
8948 GNU_MALLOC=no
8949 GNU_MALLOC_reason="
8950 (The GNU allocators don't work with this system configuration.)"
8951 GMALLOC_OBJ=
8952 VMLIMIT_OBJ=
8953 else
8954 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8955 VMLIMIT_OBJ=vm-limit.o
8956 fi
8957
8958
8959
8960 if test "$doug_lea_malloc" = "yes" ; then
8961 if test "$GNU_MALLOC" = yes ; then
8962 GNU_MALLOC_reason="
8963 (Using Doug Lea's new malloc from the GNU C Library.)"
8964 fi
8965
8966 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8967
8968
8969 ## Use mmap directly for allocating larger buffers.
8970 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8971 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8972 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8973 case "$opsys" in
8974 gnu*) REL_ALLOC=no ;;
8975 esac
8976 fi
8977
8978 if test x"${REL_ALLOC}" = x; then
8979 REL_ALLOC=${GNU_MALLOC}
8980 fi
8981
8982 use_mmap_for_buffers=no
8983 case "$opsys" in
8984 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8985 esac
8986
8987
8988
8989
8990 for ac_header in $ac_header_list
8991 do :
8992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8994 "
8995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8996 cat >>confdefs.h <<_ACEOF
8997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8998 _ACEOF
8999
9000 fi
9001
9002 done
9003
9004
9005
9006
9007
9008
9009
9010
9011 for ac_func in getpagesize
9012 do :
9013 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9014 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_GETPAGESIZE 1
9017 _ACEOF
9018
9019 fi
9020 done
9021
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9023 $as_echo_n "checking for working mmap... " >&6; }
9024 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 if test "$cross_compiling" = yes; then :
9028 ac_cv_func_mmap_fixed_mapped=no
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 $ac_includes_default
9033 /* malloc might have been renamed as rpl_malloc. */
9034 #undef malloc
9035
9036 /* Thanks to Mike Haertel and Jim Avera for this test.
9037 Here is a matrix of mmap possibilities:
9038 mmap private not fixed
9039 mmap private fixed at somewhere currently unmapped
9040 mmap private fixed at somewhere already mapped
9041 mmap shared not fixed
9042 mmap shared fixed at somewhere currently unmapped
9043 mmap shared fixed at somewhere already mapped
9044 For private mappings, we should verify that changes cannot be read()
9045 back from the file, nor mmap's back from the file at a different
9046 address. (There have been systems where private was not correctly
9047 implemented like the infamous i386 svr4.0, and systems where the
9048 VM page cache was not coherent with the file system buffer cache
9049 like early versions of FreeBSD and possibly contemporary NetBSD.)
9050 For shared mappings, we should conversely verify that changes get
9051 propagated back to all the places they're supposed to be.
9052
9053 Grep wants private fixed already mapped.
9054 The main things grep needs to know about mmap are:
9055 * does it exist and is it safe to write into the mmap'd area
9056 * how to use it (BSD variants) */
9057
9058 #include <fcntl.h>
9059 #include <sys/mman.h>
9060
9061 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9062 char *malloc ();
9063 #endif
9064
9065 /* This mess was copied from the GNU getpagesize.h. */
9066 #ifndef HAVE_GETPAGESIZE
9067 # ifdef _SC_PAGESIZE
9068 # define getpagesize() sysconf(_SC_PAGESIZE)
9069 # else /* no _SC_PAGESIZE */
9070 # ifdef HAVE_SYS_PARAM_H
9071 # include <sys/param.h>
9072 # ifdef EXEC_PAGESIZE
9073 # define getpagesize() EXEC_PAGESIZE
9074 # else /* no EXEC_PAGESIZE */
9075 # ifdef NBPG
9076 # define getpagesize() NBPG * CLSIZE
9077 # ifndef CLSIZE
9078 # define CLSIZE 1
9079 # endif /* no CLSIZE */
9080 # else /* no NBPG */
9081 # ifdef NBPC
9082 # define getpagesize() NBPC
9083 # else /* no NBPC */
9084 # ifdef PAGESIZE
9085 # define getpagesize() PAGESIZE
9086 # endif /* PAGESIZE */
9087 # endif /* no NBPC */
9088 # endif /* no NBPG */
9089 # endif /* no EXEC_PAGESIZE */
9090 # else /* no HAVE_SYS_PARAM_H */
9091 # define getpagesize() 8192 /* punt totally */
9092 # endif /* no HAVE_SYS_PARAM_H */
9093 # endif /* no _SC_PAGESIZE */
9094
9095 #endif /* no HAVE_GETPAGESIZE */
9096
9097 int
9098 main ()
9099 {
9100 char *data, *data2, *data3;
9101 const char *cdata2;
9102 int i, pagesize;
9103 int fd, fd2;
9104
9105 pagesize = getpagesize ();
9106
9107 /* First, make a file with some known garbage in it. */
9108 data = (char *) malloc (pagesize);
9109 if (!data)
9110 return 1;
9111 for (i = 0; i < pagesize; ++i)
9112 *(data + i) = rand ();
9113 umask (0);
9114 fd = creat ("conftest.mmap", 0600);
9115 if (fd < 0)
9116 return 2;
9117 if (write (fd, data, pagesize) != pagesize)
9118 return 3;
9119 close (fd);
9120
9121 /* Next, check that the tail of a page is zero-filled. File must have
9122 non-zero length, otherwise we risk SIGBUS for entire page. */
9123 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9124 if (fd2 < 0)
9125 return 4;
9126 cdata2 = "";
9127 if (write (fd2, cdata2, 1) != 1)
9128 return 5;
9129 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9130 if (data2 == MAP_FAILED)
9131 return 6;
9132 for (i = 0; i < pagesize; ++i)
9133 if (*(data2 + i))
9134 return 7;
9135 close (fd2);
9136 if (munmap (data2, pagesize))
9137 return 8;
9138
9139 /* Next, try to mmap the file at a fixed address which already has
9140 something else allocated at it. If we can, also make sure that
9141 we see the same garbage. */
9142 fd = open ("conftest.mmap", O_RDWR);
9143 if (fd < 0)
9144 return 9;
9145 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9146 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9147 return 10;
9148 for (i = 0; i < pagesize; ++i)
9149 if (*(data + i) != *(data2 + i))
9150 return 11;
9151
9152 /* Finally, make sure that changes to the mapped area do not
9153 percolate back to the file as seen by read(). (This is a bug on
9154 some variants of i386 svr4.0.) */
9155 for (i = 0; i < pagesize; ++i)
9156 *(data2 + i) = *(data2 + i) + 1;
9157 data3 = (char *) malloc (pagesize);
9158 if (!data3)
9159 return 12;
9160 if (read (fd, data3, pagesize) != pagesize)
9161 return 13;
9162 for (i = 0; i < pagesize; ++i)
9163 if (*(data + i) != *(data3 + i))
9164 return 14;
9165 close (fd);
9166 return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_run "$LINENO"; then :
9170 ac_cv_func_mmap_fixed_mapped=yes
9171 else
9172 ac_cv_func_mmap_fixed_mapped=no
9173 fi
9174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9175 conftest.$ac_objext conftest.beam conftest.$ac_ext
9176 fi
9177
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9180 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9182
9183 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9184
9185 fi
9186 rm -f conftest.mmap conftest.txt
9187
9188 if test $use_mmap_for_buffers = yes; then
9189
9190 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9191
9192 REL_ALLOC=no
9193 fi
9194
9195 LIBS="$LIBS_SYSTEM $LIBS"
9196
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9198 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9199 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 ac_check_lib_save_LIBS=$LIBS
9203 LIBS="-ldnet $LIBS"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206
9207 /* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
9210 #ifdef __cplusplus
9211 extern "C"
9212 #endif
9213 char dnet_ntoa ();
9214 int
9215 main ()
9216 {
9217 return dnet_ntoa ();
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"; then :
9223 ac_cv_lib_dnet_dnet_ntoa=yes
9224 else
9225 ac_cv_lib_dnet_dnet_ntoa=no
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9232 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9233 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBDNET 1
9236 _ACEOF
9237
9238 LIBS="-ldnet $LIBS"
9239
9240 fi
9241
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9244 $as_echo_n "checking for main in -lXbsd... " >&6; }
9245 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-lXbsd $LIBS"
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252
9253
9254 int
9255 main ()
9256 {
9257 return main ();
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_link "$LINENO"; then :
9263 ac_cv_lib_Xbsd_main=yes
9264 else
9265 ac_cv_lib_Xbsd_main=no
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9272 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9273 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9274 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9275 fi
9276
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9279 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9280 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 ac_check_lib_save_LIBS=$LIBS
9284 LIBS="-lpthreads $LIBS"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char cma_open ();
9295 int
9296 main ()
9297 {
9298 return cma_open ();
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 ac_cv_lib_pthreads_cma_open=yes
9305 else
9306 ac_cv_lib_pthreads_cma_open=no
9307 fi
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_check_lib_save_LIBS
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9313 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9314 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9315 cat >>confdefs.h <<_ACEOF
9316 #define HAVE_LIBPTHREADS 1
9317 _ACEOF
9318
9319 LIBS="-lpthreads $LIBS"
9320
9321 fi
9322
9323
9324 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9325 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9326 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9327 ## added to LIBS in configure would never contain the pthreads part,
9328 ## but the value used in Makefiles might. FIXME?
9329 ##
9330 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9331 ## be harmless on older versions of X where it happens to exist.
9332 test "$opsys" = "aix4-2" && \
9333 test $ac_cv_lib_pthreads_cma_open = yes && \
9334 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9335
9336
9337 case ${host_os} in
9338 aix*)
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9340 $as_echo_n "checking for -bbigtoc option... " >&6; }
9341 if test "${gdb_cv_bigtoc+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344
9345 case $GCC in
9346 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9347 *) gdb_cv_bigtoc=-bbigtoc ;;
9348 esac
9349
9350 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353
9354 int
9355 main ()
9356 {
9357 int i;
9358 ;
9359 return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"; then :
9363
9364 else
9365 gdb_cv_bigtoc=
9366 fi
9367 rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9372 $as_echo "$gdb_cv_bigtoc" >&6; }
9373 ;;
9374 esac
9375
9376 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9377 # used for the tests that follow. We set them back to REAL_CFLAGS and
9378 # REAL_CPPFLAGS later on.
9379
9380 REAL_CFLAGS="$CFLAGS"
9381 REAL_CPPFLAGS="$CPPFLAGS"
9382
9383 if test "${HAVE_X11}" = "yes"; then
9384 DEFS="$C_SWITCH_X_SITE $DEFS"
9385 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9386 LIBS="-lX11 $LIBS"
9387 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9388 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9389
9390 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9391 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9392 # but it's more convenient here to set LD_RUN_PATH
9393 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9394 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9395 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9396 export LD_RUN_PATH
9397 fi
9398
9399 if test "${opsys}" = "gnu-linux"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9401 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404
9405 int
9406 main ()
9407 {
9408 XOpenDisplay ("foo");
9409 ;
9410 return 0;
9411 }
9412 _ACEOF
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 xlinux_first_failure=no
9415 else
9416 xlinux_first_failure=yes
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 if test "${xlinux_first_failure}" = "yes"; then
9421 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9422 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9423 OLD_CPPFLAGS="$CPPFLAGS"
9424 OLD_LIBS="$LIBS"
9425 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9426 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9427 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9428 LIBS="$LIBS -b i486-linuxaout"
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431
9432 int
9433 main ()
9434 {
9435 XOpenDisplay ("foo");
9436 ;
9437 return 0;
9438 }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 xlinux_second_failure=no
9442 else
9443 xlinux_second_failure=yes
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 if test "${xlinux_second_failure}" = "yes"; then
9448 # If we get the same failure with -b, there is no use adding -b.
9449 # So take it out. This plays safe.
9450 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9451 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9452 CPPFLAGS="$OLD_CPPFLAGS"
9453 LIBS="$OLD_LIBS"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9458 $as_echo "yes" >&6; }
9459 fi
9460 else
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 fi
9464 fi
9465
9466 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9467 # header files included from there.
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9469 $as_echo_n "checking for Xkb... " >&6; }
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <X11/Xlib.h>
9473 #include <X11/XKBlib.h>
9474 int
9475 main ()
9476 {
9477 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 emacs_xkb=yes
9484 else
9485 emacs_xkb=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9490 $as_echo "$emacs_xkb" >&6; }
9491 if test $emacs_xkb = yes; then
9492
9493 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9494
9495 fi
9496
9497 for ac_func in XrmSetDatabase XScreenResourceString \
9498 XScreenNumberOfScreen XSetWMProtocols
9499 do :
9500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9503 cat >>confdefs.h <<_ACEOF
9504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9505 _ACEOF
9506
9507 fi
9508 done
9509
9510 fi
9511
9512 if test "${window_system}" = "x11"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9514 $as_echo_n "checking X11 version 6... " >&6; }
9515 if test "${emacs_cv_x11_version_6+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <X11/Xlib.h>
9521 int
9522 main ()
9523 {
9524 #if XlibSpecificationRelease < 6
9525 fail;
9526 #endif
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 emacs_cv_x11_version_6=yes
9534 else
9535 emacs_cv_x11_version_6=no
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 fi
9540
9541 if test $emacs_cv_x11_version_6 = yes; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9543 $as_echo "6 or newer" >&6; }
9544
9545 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9546
9547
9548 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9549
9550 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9551 ## XIM support.
9552 case "$opsys" in
9553 sol2-*) : ;;
9554 *)
9555 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9556
9557 ;;
9558 esac
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9561 $as_echo "before 6" >&6; }
9562 fi
9563 fi
9564
9565
9566 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9567 HAVE_RSVG=no
9568 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9569 if test "${with_rsvg}" != "no"; then
9570 RSVG_REQUIRED=2.11.0
9571 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9572
9573
9574 succeeded=no
9575
9576 # Extract the first word of "pkg-config", so it can be a program name with args.
9577 set dummy pkg-config; ac_word=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 case $PKG_CONFIG in
9584 [\\/]* | ?:[\\/]*)
9585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9586 ;;
9587 *)
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9604 ;;
9605 esac
9606 fi
9607 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9608 if test -n "$PKG_CONFIG"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9610 $as_echo "$PKG_CONFIG" >&6; }
9611 else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615
9616
9617
9618 if test "$PKG_CONFIG" = "no" ; then
9619 :
9620 else
9621 PKG_CONFIG_MIN_VERSION=0.9.0
9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9624 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9625
9626 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 succeeded=yes
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9632 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9633 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9635 $as_echo "$RSVG_CFLAGS" >&6; }
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9638 $as_echo_n "checking RSVG_LIBS... " >&6; }
9639 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9641 $as_echo "$RSVG_LIBS" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 RSVG_CFLAGS=""
9646 RSVG_LIBS=""
9647 ## If we have a custom action on failure, don't print errors, but
9648 ## do set a variable so people can do so.
9649 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9650
9651 fi
9652
9653
9654
9655 else
9656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9658 fi
9659 fi
9660
9661 if test $succeeded = yes; then
9662 HAVE_RSVG=yes
9663 else
9664 :
9665 fi
9666
9667
9668
9669
9670 if test $HAVE_RSVG = yes; then
9671
9672 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9673
9674 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9675 LIBS="$RSVG_LIBS $LIBS"
9676 fi
9677 fi
9678 fi
9679
9680 HAVE_IMAGEMAGICK=no
9681 if test "${HAVE_X11}" = "yes"; then
9682 if test "${with_imagemagick}" != "no"; then
9683 IMAGEMAGICK_MODULE="Wand"
9684
9685 succeeded=no
9686
9687 # Extract the first word of "pkg-config", so it can be a program name with args.
9688 set dummy pkg-config; ac_word=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 case $PKG_CONFIG in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9697 ;;
9698 *)
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710 done
9711 done
9712 IFS=$as_save_IFS
9713
9714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9715 ;;
9716 esac
9717 fi
9718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9719 if test -n "$PKG_CONFIG"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9721 $as_echo "$PKG_CONFIG" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9725 fi
9726
9727
9728
9729 if test "$PKG_CONFIG" = "no" ; then
9730 :
9731 else
9732 PKG_CONFIG_MIN_VERSION=0.9.0
9733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9735 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9736
9737 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9739 $as_echo "yes" >&6; }
9740 succeeded=yes
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9743 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9744 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9746 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9749 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9750 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9752 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9756 IMAGEMAGICK_CFLAGS=""
9757 IMAGEMAGICK_LIBS=""
9758 ## If we have a custom action on failure, don't print errors, but
9759 ## do set a variable so people can do so.
9760 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9761
9762 fi
9763
9764
9765
9766 else
9767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9769 fi
9770 fi
9771
9772 if test $succeeded = yes; then
9773 HAVE_IMAGEMAGICK=yes
9774 else
9775 :
9776 fi
9777
9778
9779
9780
9781 if test $HAVE_IMAGEMAGICK = yes; then
9782
9783 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9784
9785 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9786 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9787 for ac_func in MagickExportImagePixels
9788 do :
9789 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9790 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
9791 cat >>confdefs.h <<_ACEOF
9792 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9793 _ACEOF
9794
9795 fi
9796 done
9797
9798 fi
9799 fi
9800 fi
9801
9802
9803 HAVE_GTK=no
9804 if test "${with_gtk3}" = "yes"; then
9805 GLIB_REQUIRED=2.6
9806 GTK_REQUIRED=2.90
9807 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9808
9809
9810 succeeded=no
9811
9812 # Extract the first word of "pkg-config", so it can be a program name with args.
9813 set dummy pkg-config; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 case $PKG_CONFIG in
9820 [\\/]* | ?:[\\/]*)
9821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9822 ;;
9823 *)
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835 done
9836 done
9837 IFS=$as_save_IFS
9838
9839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9840 ;;
9841 esac
9842 fi
9843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9844 if test -n "$PKG_CONFIG"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9846 $as_echo "$PKG_CONFIG" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 fi
9851
9852
9853
9854 if test "$PKG_CONFIG" = "no" ; then
9855 pkg_check_gtk=no
9856 else
9857 PKG_CONFIG_MIN_VERSION=0.9.0
9858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9860 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9861
9862 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9864 $as_echo "yes" >&6; }
9865 succeeded=yes
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9868 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9869 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9871 $as_echo "$GTK_CFLAGS" >&6; }
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9874 $as_echo_n "checking GTK_LIBS... " >&6; }
9875 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9877 $as_echo "$GTK_LIBS" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9881 GTK_CFLAGS=""
9882 GTK_LIBS=""
9883 ## If we have a custom action on failure, don't print errors, but
9884 ## do set a variable so people can do so.
9885 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9886
9887 fi
9888
9889
9890
9891 else
9892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9894 fi
9895 fi
9896
9897 if test $succeeded = yes; then
9898 pkg_check_gtk=yes
9899 else
9900 pkg_check_gtk=no
9901 fi
9902
9903 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9905 fi
9906 fi
9907
9908 if test "$pkg_check_gtk" != "yes"; then
9909 HAVE_GTK=no
9910 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9911 GLIB_REQUIRED=2.6
9912 GTK_REQUIRED=2.6
9913 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9914
9915
9916 succeeded=no
9917
9918 # Extract the first word of "pkg-config", so it can be a program name with args.
9919 set dummy pkg-config; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 case $PKG_CONFIG in
9926 [\\/]* | ?:[\\/]*)
9927 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9928 ;;
9929 *)
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9946 ;;
9947 esac
9948 fi
9949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9950 if test -n "$PKG_CONFIG"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9952 $as_echo "$PKG_CONFIG" >&6; }
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 fi
9957
9958
9959
9960 if test "$PKG_CONFIG" = "no" ; then
9961 pkg_check_gtk=no
9962 else
9963 PKG_CONFIG_MIN_VERSION=0.9.0
9964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9966 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9967
9968 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9970 $as_echo "yes" >&6; }
9971 succeeded=yes
9972
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9974 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9975 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9977 $as_echo "$GTK_CFLAGS" >&6; }
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9980 $as_echo_n "checking GTK_LIBS... " >&6; }
9981 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9983 $as_echo "$GTK_LIBS" >&6; }
9984 else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 GTK_CFLAGS=""
9988 GTK_LIBS=""
9989 ## If we have a custom action on failure, don't print errors, but
9990 ## do set a variable so people can do so.
9991 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9992
9993 fi
9994
9995
9996
9997 else
9998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10000 fi
10001 fi
10002
10003 if test $succeeded = yes; then
10004 pkg_check_gtk=yes
10005 else
10006 pkg_check_gtk=no
10007 fi
10008
10009 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10010 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10011 fi
10012 fi
10013 fi
10014
10015 GTK_OBJ=
10016 if test x"$pkg_check_gtk" = xyes; then
10017
10018
10019
10020 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10021 CFLAGS="$CFLAGS $GTK_CFLAGS"
10022 LIBS="$GTK_LIBS $LIBS"
10023 GTK_COMPILES=no
10024 for ac_func in gtk_main
10025 do :
10026 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10027 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_GTK_MAIN 1
10030 _ACEOF
10031 GTK_COMPILES=yes
10032 fi
10033 done
10034
10035 if test "${GTK_COMPILES}" != "yes"; then
10036 if test "$USE_X_TOOLKIT" != "maybe"; then
10037 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10038 fi
10039 else
10040 HAVE_GTK=yes
10041
10042 $as_echo "#define USE_GTK 1" >>confdefs.h
10043
10044 GTK_OBJ=gtkutil.o
10045 USE_X_TOOLKIT=none
10046 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10047 :
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10050 closing open displays. This is no problem if you just use
10051 one display, but if you use more than one and close one of them
10052 Emacs may crash." >&5
10053 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10054 closing open displays. This is no problem if you just use
10055 one display, but if you use more than one and close one of them
10056 Emacs may crash." >&2;}
10057 sleep 3
10058 fi
10059 fi
10060
10061 fi
10062
10063
10064
10065 if test "${HAVE_GTK}" = "yes"; then
10066
10067 if test "$with_toolkit_scroll_bars" != no; then
10068 with_toolkit_scroll_bars=yes
10069 fi
10070
10071 HAVE_GTK_FILE_SELECTION=no
10072 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10073 #include <gtk/gtk.h>
10074 "
10075 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10076 HAVE_GTK_FILE_SELECTION=yes
10077 else
10078 HAVE_GTK_FILE_SELECTION=no
10079 fi
10080
10081 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10082 for ac_func in gtk_file_selection_new
10083 do :
10084 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10085 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_GTK_FILE_SELECTION_NEW 1
10088 _ACEOF
10089
10090 fi
10091 done
10092
10093 fi
10094
10095 HAVE_GTK_AND_PTHREAD=no
10096 for ac_header in pthread.h
10097 do :
10098 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10099 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_PTHREAD_H 1
10102 _ACEOF
10103
10104 fi
10105
10106 done
10107
10108 if test "$ac_cv_header_pthread_h"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10110 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10111 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lpthread $LIBS"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char pthread_self ();
10126 int
10127 main ()
10128 {
10129 return pthread_self ();
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 ac_cv_lib_pthread_pthread_self=yes
10136 else
10137 ac_cv_lib_pthread_pthread_self=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10144 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10145 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10146 HAVE_GTK_AND_PTHREAD=yes
10147 fi
10148
10149 fi
10150 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10151 case "${canonical}" in
10152 *-hpux*) ;;
10153 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10154 esac
10155
10156 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10157
10158 fi
10159
10160 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10161 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10162 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10163 gtk_orientable_set_orientation
10164 do :
10165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10168 cat >>confdefs.h <<_ACEOF
10169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10170 _ACEOF
10171
10172 fi
10173 done
10174
10175
10176 fi
10177
10178 HAVE_DBUS=no
10179 DBUS_OBJ=
10180 if test "${with_dbus}" = "yes"; then
10181
10182 succeeded=no
10183
10184 # Extract the first word of "pkg-config", so it can be a program name with args.
10185 set dummy pkg-config; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 case $PKG_CONFIG in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10194 ;;
10195 *)
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207 done
10208 done
10209 IFS=$as_save_IFS
10210
10211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10212 ;;
10213 esac
10214 fi
10215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10216 if test -n "$PKG_CONFIG"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10218 $as_echo "$PKG_CONFIG" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10222 fi
10223
10224
10225
10226 if test "$PKG_CONFIG" = "no" ; then
10227 HAVE_DBUS=no
10228 else
10229 PKG_CONFIG_MIN_VERSION=0.9.0
10230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10232 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10233
10234 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10237 succeeded=yes
10238
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10240 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10241 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10243 $as_echo "$DBUS_CFLAGS" >&6; }
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10246 $as_echo_n "checking DBUS_LIBS... " >&6; }
10247 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10249 $as_echo "$DBUS_LIBS" >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10253 DBUS_CFLAGS=""
10254 DBUS_LIBS=""
10255 ## If we have a custom action on failure, don't print errors, but
10256 ## do set a variable so people can do so.
10257 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10258
10259 fi
10260
10261
10262
10263 else
10264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10266 fi
10267 fi
10268
10269 if test $succeeded = yes; then
10270 HAVE_DBUS=yes
10271 else
10272 HAVE_DBUS=no
10273 fi
10274
10275 if test "$HAVE_DBUS" = yes; then
10276 LIBS="$LIBS $DBUS_LIBS"
10277
10278 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10279
10280 for ac_func in dbus_watch_get_unix_fd
10281 do :
10282 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10283 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10286 _ACEOF
10287
10288 fi
10289 done
10290
10291 DBUS_OBJ=dbusbind.o
10292 fi
10293 fi
10294
10295
10296 HAVE_GCONF=no
10297 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10298
10299 succeeded=no
10300
10301 # Extract the first word of "pkg-config", so it can be a program name with args.
10302 set dummy pkg-config; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 case $PKG_CONFIG in
10309 [\\/]* | ?:[\\/]*)
10310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10311 ;;
10312 *)
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324 done
10325 done
10326 IFS=$as_save_IFS
10327
10328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10329 ;;
10330 esac
10331 fi
10332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10333 if test -n "$PKG_CONFIG"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10335 $as_echo "$PKG_CONFIG" >&6; }
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10339 fi
10340
10341
10342
10343 if test "$PKG_CONFIG" = "no" ; then
10344 HAVE_GCONF=no
10345 else
10346 PKG_CONFIG_MIN_VERSION=0.9.0
10347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10349 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10350
10351 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10353 $as_echo "yes" >&6; }
10354 succeeded=yes
10355
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10357 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10358 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10360 $as_echo "$GCONF_CFLAGS" >&6; }
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10363 $as_echo_n "checking GCONF_LIBS... " >&6; }
10364 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10366 $as_echo "$GCONF_LIBS" >&6; }
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10370 GCONF_CFLAGS=""
10371 GCONF_LIBS=""
10372 ## If we have a custom action on failure, don't print errors, but
10373 ## do set a variable so people can do so.
10374 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10375
10376 fi
10377
10378
10379
10380 else
10381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10383 fi
10384 fi
10385
10386 if test $succeeded = yes; then
10387 HAVE_GCONF=yes
10388 else
10389 HAVE_GCONF=no
10390 fi
10391
10392 if test "$HAVE_GCONF" = yes; then
10393
10394 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10395
10396 for ac_func in g_type_init
10397 do :
10398 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10399 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_G_TYPE_INIT 1
10402 _ACEOF
10403
10404 fi
10405 done
10406
10407 fi
10408 fi
10409
10410 HAVE_LIBSELINUX=no
10411 LIBSELINUX_LIBS=
10412 if test "${with_selinux}" = "yes"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10414 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10415 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-lselinux $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char lgetfilecon ();
10430 int
10431 main ()
10432 {
10433 return lgetfilecon ();
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 ac_cv_lib_selinux_lgetfilecon=yes
10440 else
10441 ac_cv_lib_selinux_lgetfilecon=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10448 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10449 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10450 HAVE_LIBSELINUX=yes
10451 else
10452 HAVE_LIBSELINUX=no
10453 fi
10454
10455 if test "$HAVE_LIBSELINUX" = yes; then
10456
10457 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10458
10459 LIBSELINUX_LIBS=-lselinux
10460 fi
10461 fi
10462
10463
10464 HAVE_GNUTLS=no
10465 if test "${with_gnutls}" = "yes" ; then
10466
10467 succeeded=no
10468
10469 # Extract the first word of "pkg-config", so it can be a program name with args.
10470 set dummy pkg-config; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 case $PKG_CONFIG in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10479 ;;
10480 *)
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492 done
10493 done
10494 IFS=$as_save_IFS
10495
10496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10497 ;;
10498 esac
10499 fi
10500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10501 if test -n "$PKG_CONFIG"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10503 $as_echo "$PKG_CONFIG" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508
10509
10510
10511 if test "$PKG_CONFIG" = "no" ; then
10512 HAVE_GNUTLS=no
10513 else
10514 PKG_CONFIG_MIN_VERSION=0.9.0
10515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10517 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10518
10519 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10522 succeeded=yes
10523
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10525 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10526 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10528 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10531 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10532 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10534 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 LIBGNUTLS_CFLAGS=""
10539 LIBGNUTLS_LIBS=""
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so.
10542 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10543
10544 fi
10545
10546
10547
10548 else
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10551 fi
10552 fi
10553
10554 if test $succeeded = yes; then
10555 HAVE_GNUTLS=yes
10556 else
10557 HAVE_GNUTLS=no
10558 fi
10559
10560 if test "${HAVE_GNUTLS}" = "yes"; then
10561
10562 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10563
10564 fi
10565 fi
10566
10567
10568
10569 HAVE_XAW3D=no
10570 LUCID_LIBW=
10571 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10572 if test "$with_xaw3d" != no; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10574 $as_echo_n "checking for xaw3d... " >&6; }
10575 if test "${emacs_cv_xaw3d+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580
10581 #include <X11/Intrinsic.h>
10582 #include <X11/Xaw3d/Simple.h>
10583 int
10584 main ()
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10593 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10594 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lXaw3d $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char XawScrollbarSetThumb ();
10609 int
10610 main ()
10611 {
10612 return XawScrollbarSetThumb ();
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10619 else
10620 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10627 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10628 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10629 emacs_cv_xaw3d=yes
10630 else
10631 emacs_cv_xaw3d=no
10632 fi
10633
10634 else
10635 emacs_cv_xaw3d=no
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 fi
10640
10641 else
10642 emacs_cv_xaw3d=no
10643 fi
10644 if test $emacs_cv_xaw3d = yes; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10646 $as_echo "yes; using Lucid toolkit" >&6; }
10647 USE_X_TOOLKIT=LUCID
10648 HAVE_XAW3D=yes
10649 LUCID_LIBW=-lXaw3d
10650
10651 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10652
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10657 $as_echo_n "checking for libXaw... " >&6; }
10658 if test "${emacs_cv_xaw+set}" = set; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663
10664 #include <X11/Intrinsic.h>
10665 #include <X11/Xaw/Simple.h>
10666 int
10667 main ()
10668 {
10669
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675 emacs_cv_xaw=yes
10676 else
10677 emacs_cv_xaw=no
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 fi
10682
10683 if test $emacs_cv_xaw = yes; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10685 $as_echo "yes; using Lucid toolkit" >&6; }
10686 USE_X_TOOLKIT=LUCID
10687 LUCID_LIBW=-lXaw
10688 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10689 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10692 $as_echo "no; do not use toolkit by default" >&6; }
10693 USE_X_TOOLKIT=none
10694 fi
10695 fi
10696 fi
10697
10698 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10699
10700 LIBXTR6=
10701 if test "${USE_X_TOOLKIT}" != "none"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10703 $as_echo_n "checking X11 toolkit version... " >&6; }
10704 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <X11/Intrinsic.h>
10710 int
10711 main ()
10712 {
10713 #if XtSpecificationRelease < 6
10714 fail;
10715 #endif
10716
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 emacs_cv_x11_toolkit_version_6=yes
10723 else
10724 emacs_cv_x11_toolkit_version_6=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 fi
10729
10730 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10731 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10733 $as_echo "6 or newer" >&6; }
10734
10735 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10736
10737 LIBXTR6="-lSM -lICE"
10738 case "$opsys" in
10739 ## Use libw.a along with X11R6 Xt.
10740 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10741 esac
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10744 $as_echo "before 6" >&6; }
10745 fi
10746
10747 OLDLIBS="$LIBS"
10748 if test x$HAVE_X11XTR6 = xyes; then
10749 LIBS="-lXt -lSM -lICE $LIBS"
10750 else
10751 LIBS="-lXt $LIBS"
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10754 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10755 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lXmu $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char XmuConvertStandardSelection ();
10770 int
10771 main ()
10772 {
10773 return XmuConvertStandardSelection ();
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10780 else
10781 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10788 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10789 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_LIBXMU 1
10792 _ACEOF
10793
10794 LIBS="-lXmu $LIBS"
10795
10796 fi
10797
10798 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10799 fi
10800
10801
10802 LIBXMU=-lXmu
10803 case $opsys in
10804 ## These systems don't supply Xmu.
10805 hpux* | aix4-2 )
10806 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10807 ;;
10808 esac
10809
10810
10811 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10812 if test "${HAVE_X11}" = "yes"; then
10813 if test "${USE_X_TOOLKIT}" != "none"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10815 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10816 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-lXext $LIBS"
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10823
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char XShapeQueryExtension ();
10831 int
10832 main ()
10833 {
10834 return XShapeQueryExtension ();
10835 ;
10836 return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 ac_cv_lib_Xext_XShapeQueryExtension=yes
10841 else
10842 ac_cv_lib_Xext_XShapeQueryExtension=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10849 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10850 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_LIBXEXT 1
10853 _ACEOF
10854
10855 LIBS="-lXext $LIBS"
10856
10857 fi
10858
10859 fi
10860 fi
10861
10862 LIBXP=
10863 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10865 $as_echo_n "checking for Motif version 2.1... " >&6; }
10866 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 #include <Xm/Xm.h>
10872 int
10873 main ()
10874 {
10875 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10876 int x = 5;
10877 #else
10878 Motif version prior to 2.1.
10879 #endif
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_compile "$LINENO"; then :
10885 emacs_cv_motif_version_2_1=yes
10886 else
10887 emacs_cv_motif_version_2_1=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10892 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10893 if test $emacs_cv_motif_version_2_1 = yes; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10895 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10896 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lXp $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char XpCreateContext ();
10911 int
10912 main ()
10913 {
10914 return XpCreateContext ();
10915 ;
10916 return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 ac_cv_lib_Xp_XpCreateContext=yes
10921 else
10922 ac_cv_lib_Xp_XpCreateContext=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10929 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10930 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
10931 LIBXP=-lXp
10932 fi
10933
10934 else
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10936 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10937 if test "${emacs_cv_lesstif+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 # We put this in CFLAGS temporarily to precede other -I options
10941 # that might be in CFLAGS temporarily.
10942 # We put this in CPPFLAGS where it precedes the other -I options.
10943 OLD_CPPFLAGS=$CPPFLAGS
10944 OLD_CFLAGS=$CFLAGS
10945 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10946 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10950 int
10951 main ()
10952 {
10953 int x = 5;
10954 ;
10955 return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959 emacs_cv_lesstif=yes
10960 else
10961 emacs_cv_lesstif=no
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10966 $as_echo "$emacs_cv_lesstif" >&6; }
10967 if test $emacs_cv_lesstif = yes; then
10968 # Make sure this -I option remains in CPPFLAGS after it is set
10969 # back to REAL_CPPFLAGS.
10970 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10971 # have those other -I options anyway. Ultimately, having this
10972 # directory ultimately in CPPFLAGS will be enough.
10973 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10974 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10975 else
10976 CFLAGS=$OLD_CFLAGS
10977 CPPFLAGS=$OLD_CPPFLAGS
10978 fi
10979 fi
10980 fi
10981
10982
10983 USE_TOOLKIT_SCROLL_BARS=no
10984 if test "${with_toolkit_scroll_bars}" != "no"; then
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10987 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10988
10989 HAVE_XAW3D=no
10990 USE_TOOLKIT_SCROLL_BARS=yes
10991 elif test "${HAVE_XAW3D}" = "yes"; then
10992 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10993
10994 USE_TOOLKIT_SCROLL_BARS=yes
10995 fi
10996 elif test "${HAVE_GTK}" = "yes"; then
10997 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10998
10999 USE_TOOLKIT_SCROLL_BARS=yes
11000 elif test "${HAVE_NS}" = "yes"; then
11001 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11002
11003 USE_TOOLKIT_SCROLL_BARS=yes
11004 fi
11005 fi
11006
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009
11010 #include <X11/Xlib.h>
11011 #include <X11/Xresource.h>
11012 int
11013 main ()
11014 {
11015 XIMProc callback;
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_compile "$LINENO"; then :
11021 HAVE_XIM=yes
11022
11023 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11024
11025 else
11026 HAVE_XIM=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029
11030
11031 if test "${with_xim}" != "no"; then
11032
11033 $as_echo "#define USE_XIM 1" >>confdefs.h
11034
11035 fi
11036
11037
11038 if test "${HAVE_XIM}" != "no"; then
11039 late_CFLAGS=$CFLAGS
11040 if test "$GCC" = yes; then
11041 CFLAGS="$CFLAGS --pedantic-errors"
11042 fi
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045
11046 #include <X11/Xlib.h>
11047 #include <X11/Xresource.h>
11048 int
11049 main ()
11050 {
11051 Display *display;
11052 XrmDatabase db;
11053 char *res_name;
11054 char *res_class;
11055 XIMProc callback;
11056 XPointer *client_data;
11057 #ifndef __GNUC__
11058 /* If we're not using GCC, it's probably not XFree86, and this is
11059 probably right, but we can't use something like --pedantic-errors. */
11060 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11061 char*, XIMProc, XPointer*);
11062 #endif
11063 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11064 client_data);
11065 ;
11066 return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_compile "$LINENO"; then :
11070 emacs_cv_arg6_star=yes
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 if test "$emacs_cv_arg6_star" = yes; then
11074 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11075
11076 else
11077 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11078
11079 fi
11080 CFLAGS=$late_CFLAGS
11081 fi
11082
11083 ### Start of font-backend (under any platform) section.
11084 # (nothing here yet -- this is a placeholder)
11085 ### End of font-backend (under any platform) section.
11086
11087 ### Start of font-backend (under X11) section.
11088 if test "${HAVE_X11}" = "yes"; then
11089
11090 succeeded=no
11091
11092 # Extract the first word of "pkg-config", so it can be a program name with args.
11093 set dummy pkg-config; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 case $PKG_CONFIG in
11100 [\\/]* | ?:[\\/]*)
11101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11102 ;;
11103 *)
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11120 ;;
11121 esac
11122 fi
11123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11124 if test -n "$PKG_CONFIG"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11126 $as_echo "$PKG_CONFIG" >&6; }
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133
11134 if test "$PKG_CONFIG" = "no" ; then
11135 HAVE_FC=no
11136 else
11137 PKG_CONFIG_MIN_VERSION=0.9.0
11138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11140 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11141
11142 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 succeeded=yes
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11148 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11149 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11151 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11152
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11154 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11155 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11157 $as_echo "$FONTCONFIG_LIBS" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161 FONTCONFIG_CFLAGS=""
11162 FONTCONFIG_LIBS=""
11163 ## If we have a custom action on failure, don't print errors, but
11164 ## do set a variable so people can do so.
11165 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11166
11167 fi
11168
11169
11170
11171 else
11172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11174 fi
11175 fi
11176
11177 if test $succeeded = yes; then
11178 HAVE_FC=yes
11179 else
11180 HAVE_FC=no
11181 fi
11182
11183
11184 ## Use -lXft if available, unless `--with-xft=no'.
11185 HAVE_XFT=maybe
11186 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11187 with_xft="no";
11188 fi
11189 if test "x${with_xft}" != "xno"; then
11190
11191
11192 succeeded=no
11193
11194 # Extract the first word of "pkg-config", so it can be a program name with args.
11195 set dummy pkg-config; ac_word=$2
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197 $as_echo_n "checking for $ac_word... " >&6; }
11198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 case $PKG_CONFIG in
11202 [\\/]* | ?:[\\/]*)
11203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11204 ;;
11205 *)
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 break 2
11216 fi
11217 done
11218 done
11219 IFS=$as_save_IFS
11220
11221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11222 ;;
11223 esac
11224 fi
11225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11226 if test -n "$PKG_CONFIG"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11228 $as_echo "$PKG_CONFIG" >&6; }
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234
11235
11236 if test "$PKG_CONFIG" = "no" ; then
11237 HAVE_XFT=no
11238 else
11239 PKG_CONFIG_MIN_VERSION=0.9.0
11240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11242 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11243
11244 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11247 succeeded=yes
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11250 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11251 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11253 $as_echo "$XFT_CFLAGS" >&6; }
11254
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11256 $as_echo_n "checking XFT_LIBS... " >&6; }
11257 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11259 $as_echo "$XFT_LIBS" >&6; }
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 XFT_CFLAGS=""
11264 XFT_LIBS=""
11265 ## If we have a custom action on failure, don't print errors, but
11266 ## do set a variable so people can do so.
11267 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11268
11269 fi
11270
11271
11272
11273 else
11274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11276 fi
11277 fi
11278
11279 if test $succeeded = yes; then
11280 :
11281 else
11282 HAVE_XFT=no
11283 fi
11284
11285 ## Because xftfont.c uses XRenderQueryExtension, we also
11286 ## need to link to -lXrender.
11287 HAVE_XRENDER=no
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11289 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11290 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 ac_check_lib_save_LIBS=$LIBS
11294 LIBS="-lXrender $LIBS"
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 char XRenderQueryExtension ();
11305 int
11306 main ()
11307 {
11308 return XRenderQueryExtension ();
11309 ;
11310 return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11315 else
11316 ac_cv_lib_Xrender_XRenderQueryExtension=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11323 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11324 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11325 HAVE_XRENDER=yes
11326 fi
11327
11328 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11329 OLD_CPPFLAGS="$CPPFLAGS"
11330 OLD_CFLAGS="$CFLAGS"
11331 OLD_LIBS="$LIBS"
11332 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11333 CFLAGS="$CFLAGS $XFT_CFLAGS"
11334 XFT_LIBS="-lXrender $XFT_LIBS"
11335 LIBS="$XFT_LIBS $LIBS"
11336 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11337 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11339 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11340 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-lXft $XFT_LIBS $LIBS"
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11347
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char XftFontOpen ();
11355 int
11356 main ()
11357 {
11358 return XftFontOpen ();
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_Xft_XftFontOpen=yes
11365 else
11366 ac_cv_lib_Xft_XftFontOpen=no
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11371 fi
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11373 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11374 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11375 HAVE_XFT=yes
11376 fi
11377
11378 fi
11379
11380
11381
11382 if test "${HAVE_XFT}" = "yes"; then
11383
11384 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11385
11386
11387 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11388 else
11389 CPPFLAGS="$OLD_CPPFLAGS"
11390 CFLAGS="$OLD_CFLAGS"
11391 LIBS="$OLD_LIBS"
11392 fi # "${HAVE_XFT}" = "yes"
11393 fi # "$HAVE_XFT" != no
11394 fi # "x${with_xft}" != "xno"
11395
11396 if test "$HAVE_XFT" != "yes"; then
11397 HAVE_XFT=no
11398 fi
11399
11400 ## We used to allow building with FreeType and without Xft.
11401 ## However, the ftx font backend driver is not in good shape.
11402 HAVE_FREETYPE=$HAVE_XFT
11403
11404 HAVE_LIBOTF=no
11405 if test "${HAVE_FREETYPE}" = "yes"; then
11406
11407 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11408
11409 if test "${with_libotf}" != "no"; then
11410
11411 succeeded=no
11412
11413 # Extract the first word of "pkg-config", so it can be a program name with args.
11414 set dummy pkg-config; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 case $PKG_CONFIG in
11421 [\\/]* | ?:[\\/]*)
11422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11423 ;;
11424 *)
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11427 do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11435 fi
11436 done
11437 done
11438 IFS=$as_save_IFS
11439
11440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11441 ;;
11442 esac
11443 fi
11444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11445 if test -n "$PKG_CONFIG"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11447 $as_echo "$PKG_CONFIG" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 fi
11452
11453
11454
11455 if test "$PKG_CONFIG" = "no" ; then
11456 HAVE_LIBOTF=no
11457 else
11458 PKG_CONFIG_MIN_VERSION=0.9.0
11459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11461 $as_echo_n "checking for libotf... " >&6; }
11462
11463 if $PKG_CONFIG --exists "libotf" 2>&5; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465 $as_echo "yes" >&6; }
11466 succeeded=yes
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11469 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11470 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11472 $as_echo "$LIBOTF_CFLAGS" >&6; }
11473
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11475 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11476 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11478 $as_echo "$LIBOTF_LIBS" >&6; }
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482 LIBOTF_CFLAGS=""
11483 LIBOTF_LIBS=""
11484 ## If we have a custom action on failure, don't print errors, but
11485 ## do set a variable so people can do so.
11486 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11487
11488 fi
11489
11490
11491
11492 else
11493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11495 fi
11496 fi
11497
11498 if test $succeeded = yes; then
11499 HAVE_LIBOTF=yes
11500 else
11501 HAVE_LIBOTF=no
11502 fi
11503
11504 if test "$HAVE_LIBOTF" = "yes"; then
11505
11506 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11509 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11510 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-lotf $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char OTF_get_variation_glyphs ();
11525 int
11526 main ()
11527 {
11528 return OTF_get_variation_glyphs ();
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11535 else
11536 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11543 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11544 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11545 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11546 else
11547 HAVE_OTF_GET_VARIATION_GLYPHS=no
11548 fi
11549
11550 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11551
11552 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11553
11554 fi
11555 fi
11556 fi
11557 fi
11558
11559 HAVE_M17N_FLT=no
11560 if test "${HAVE_LIBOTF}" = yes; then
11561 if test "${with_m17n_flt}" != "no"; then
11562
11563 succeeded=no
11564
11565 # Extract the first word of "pkg-config", so it can be a program name with args.
11566 set dummy pkg-config; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 case $PKG_CONFIG in
11573 [\\/]* | ?:[\\/]*)
11574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11575 ;;
11576 *)
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588 done
11589 done
11590 IFS=$as_save_IFS
11591
11592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11593 ;;
11594 esac
11595 fi
11596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11597 if test -n "$PKG_CONFIG"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11599 $as_echo "$PKG_CONFIG" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606
11607 if test "$PKG_CONFIG" = "no" ; then
11608 HAVE_M17N_FLT=no
11609 else
11610 PKG_CONFIG_MIN_VERSION=0.9.0
11611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11613 $as_echo_n "checking for m17n-flt... " >&6; }
11614
11615 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11617 $as_echo "yes" >&6; }
11618 succeeded=yes
11619
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11621 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11622 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11624 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11625
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11627 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11628 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11630 $as_echo "$M17N_FLT_LIBS" >&6; }
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11634 M17N_FLT_CFLAGS=""
11635 M17N_FLT_LIBS=""
11636 ## If we have a custom action on failure, don't print errors, but
11637 ## do set a variable so people can do so.
11638 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11639
11640 fi
11641
11642
11643
11644 else
11645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11647 fi
11648 fi
11649
11650 if test $succeeded = yes; then
11651 HAVE_M17N_FLT=yes
11652 else
11653 HAVE_M17N_FLT=no
11654 fi
11655
11656 if test "$HAVE_M17N_FLT" = "yes"; then
11657
11658 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11659
11660 fi
11661 fi
11662 fi
11663 else
11664 HAVE_XFT=no
11665 HAVE_FREETYPE=no
11666 HAVE_LIBOTF=no
11667 HAVE_M17N_FLT=no
11668 fi
11669
11670 ### End of font-backend (under X11) section.
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681 ### Use -lXpm if available, unless `--with-xpm=no'.
11682 HAVE_XPM=no
11683 LIBXPM=
11684 if test "${HAVE_X11}" = "yes"; then
11685 if test "${with_xpm}" != "no"; then
11686 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11687 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11689 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11690 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-lXpm -lX11 $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char XpmReadFileToPixmap ();
11705 int
11706 main ()
11707 {
11708 return XpmReadFileToPixmap ();
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11715 else
11716 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11723 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11724 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
11725 HAVE_XPM=yes
11726 fi
11727
11728 fi
11729
11730
11731 if test "${HAVE_XPM}" = "yes"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11733 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #include "X11/xpm.h"
11737 #ifndef XpmReturnAllocPixels
11738 no_return_alloc_pixels
11739 #endif
11740
11741 _ACEOF
11742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11744 HAVE_XPM=no
11745 else
11746 HAVE_XPM=yes
11747 fi
11748 rm -f conftest*
11749
11750
11751 if test "${HAVE_XPM}" = "yes"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 $as_echo "yes" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758 fi
11759 fi
11760
11761 if test "${HAVE_XPM}" = "yes"; then
11762
11763 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11764
11765 LIBXPM=-lXpm
11766 fi
11767 fi
11768
11769
11770 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11771 HAVE_JPEG=no
11772 LIBJPEG=
11773 if test "${HAVE_X11}" = "yes"; then
11774 if test "${with_jpeg}" != "no"; then
11775 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_jerror_h" = x""yes; then :
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11778 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11779 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 ac_check_lib_save_LIBS=$LIBS
11783 LIBS="-ljpeg $LIBS"
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char jpeg_destroy_compress ();
11794 int
11795 main ()
11796 {
11797 return jpeg_destroy_compress ();
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11804 else
11805 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11806 fi
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11812 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11813 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
11814 HAVE_JPEG=yes
11815 fi
11816
11817 fi
11818
11819
11820 fi
11821
11822 if test "${HAVE_JPEG}" = "yes"; then
11823 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11824
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 #include <jpeglib.h>
11828 version=JPEG_LIB_VERSION
11829
11830 _ACEOF
11831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11832 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11833 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11834
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11837 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11838 HAVE_JPEG=no
11839 fi
11840 rm -f conftest*
11841
11842 fi
11843 if test "${HAVE_JPEG}" = "yes"; then
11844 LIBJPEG=-ljpeg
11845 fi
11846 fi
11847
11848
11849 ### Use -lpng if available, unless `--with-png=no'.
11850 HAVE_PNG=no
11851 LIBPNG=
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_png}" != "no"; then
11854 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11855 # in /usr/include/libpng.
11856 for ac_header in png.h libpng/png.h
11857 do :
11858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11861 cat >>confdefs.h <<_ACEOF
11862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11863 _ACEOF
11864
11865 fi
11866
11867 done
11868
11869 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11871 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11872 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_check_lib_save_LIBS=$LIBS
11876 LIBS="-lpng -lz -lm $LIBS"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char png_get_channels ();
11887 int
11888 main ()
11889 {
11890 return png_get_channels ();
11891 ;
11892 return 0;
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_png_png_get_channels=yes
11897 else
11898 ac_cv_lib_png_png_get_channels=no
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11905 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11906 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
11907 HAVE_PNG=yes
11908 fi
11909
11910 fi
11911 fi
11912
11913 if test "${HAVE_PNG}" = "yes"; then
11914
11915 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11916
11917 LIBPNG="-lpng -lz -lm"
11918 fi
11919 fi
11920
11921
11922 ### Use -ltiff if available, unless `--with-tiff=no'.
11923 HAVE_TIFF=no
11924 LIBTIFF=
11925 if test "${HAVE_X11}" = "yes"; then
11926 if test "${with_tiff}" != "no"; then
11927 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11928 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
11929 tifflibs="-lz -lm"
11930 # At least one tiff package requires the jpeg library.
11931 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11933 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11934 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ltiff $tifflibs $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char TIFFGetVersion ();
11949 int
11950 main ()
11951 {
11952 return TIFFGetVersion ();
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_tiff_TIFFGetVersion=yes
11959 else
11960 ac_cv_lib_tiff_TIFFGetVersion=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11967 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11968 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
11969 HAVE_TIFF=yes
11970 fi
11971
11972 fi
11973
11974
11975 fi
11976
11977 if test "${HAVE_TIFF}" = "yes"; then
11978
11979 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11980
11981 LIBTIFF=-ltiff
11982 fi
11983 fi
11984
11985
11986 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11987 HAVE_GIF=no
11988 LIBGIF=
11989 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11990 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
11992 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11993 # Earlier versions can crash Emacs.
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11995 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11996 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-lgif $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char EGifPutExtensionLast ();
12011 int
12012 main ()
12013 {
12014 return EGifPutExtensionLast ();
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_gif_EGifPutExtensionLast=yes
12021 else
12022 ac_cv_lib_gif_EGifPutExtensionLast=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12029 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12030 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12031 HAVE_GIF=yes
12032 else
12033 HAVE_GIF=maybe
12034 fi
12035
12036 fi
12037
12038
12039
12040 if test "$HAVE_GIF" = yes; then
12041 LIBGIF=-lgif
12042 elif test "$HAVE_GIF" = maybe; then
12043 # If gif_lib.h but no libgif, try libungif.
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12045 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12046 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-lungif $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char EGifPutExtensionLast ();
12061 int
12062 main ()
12063 {
12064 return EGifPutExtensionLast ();
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12071 else
12072 ac_cv_lib_ungif_EGifPutExtensionLast=no
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12079 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12080 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12081 HAVE_GIF=yes
12082 else
12083 HAVE_GIF=no
12084 fi
12085
12086 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12087 fi
12088
12089 if test "${HAVE_GIF}" = "yes"; then
12090
12091 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12092
12093 fi
12094 fi
12095
12096
12097 if test "${HAVE_X11}" = "yes"; then
12098 MISSING=""
12099 WITH_NO=""
12100 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12101 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12102 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12103 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12104 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12105 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12106 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12107 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12108 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12109 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12110
12111 if test "X${MISSING}" != X; then
12112 as_fn_error $? "The following required libraries were not found:
12113 $MISSING
12114 Maybe some development libraries/packages are missing?
12115 If you don't want to link with them give
12116 $WITH_NO
12117 as options to configure" "$LINENO" 5
12118 fi
12119 fi
12120
12121 ### Use -lgpm if available, unless `--with-gpm=no'.
12122 HAVE_GPM=no
12123 LIBGPM=
12124 MOUSE_SUPPORT=
12125 if test "${with_gpm}" != "no"; then
12126 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12127 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12129 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12130 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lgpm $LIBS"
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12137
12138 /* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12141 #ifdef __cplusplus
12142 extern "C"
12143 #endif
12144 char Gpm_Open ();
12145 int
12146 main ()
12147 {
12148 return Gpm_Open ();
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_link "$LINENO"; then :
12154 ac_cv_lib_gpm_Gpm_Open=yes
12155 else
12156 ac_cv_lib_gpm_Gpm_Open=no
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_lib_save_LIBS
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12163 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12164 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12165 HAVE_GPM=yes
12166 fi
12167
12168 fi
12169
12170
12171
12172 if test "${HAVE_GPM}" = "yes"; then
12173
12174 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12175
12176 LIBGPM=-lgpm
12177 ## May be reset below.
12178 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12179 fi
12180 fi
12181
12182
12183 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12184 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12185
12186 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12187
12188 fi
12189
12190
12191
12192 C_SWITCH_X_SYSTEM=
12193 ### Use NeXTstep API to implement GUI.
12194 if test "${HAVE_NS}" = "yes"; then
12195
12196 $as_echo "#define HAVE_NS 1" >>confdefs.h
12197
12198 if test "${NS_IMPL_COCOA}" = "yes"; then
12199
12200 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12201
12202 GNU_OBJC_CFLAGS=
12203 fi
12204 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12205
12206 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12207
12208 # See also .m.o rule in Makefile.in */
12209 # FIXME: are all these flags really needed? Document here why. */
12210 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12211 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12212 fi
12213 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12214
12215 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12216
12217 fi
12218 # We also have mouse menus.
12219 HAVE_MENUS=yes
12220 OTHER_FILES=ns-app
12221 fi
12222
12223
12224 ### Use session management (-lSM -lICE) if available
12225 HAVE_X_SM=no
12226 LIBXSM=
12227 if test "${HAVE_X11}" = "yes"; then
12228 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12231 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12232 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lSM -lICE $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char SmcOpenConnection ();
12247 int
12248 main ()
12249 {
12250 return SmcOpenConnection ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_SM_SmcOpenConnection=yes
12257 else
12258 ac_cv_lib_SM_SmcOpenConnection=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12265 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12266 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12267 HAVE_X_SM=yes
12268 fi
12269
12270 fi
12271
12272
12273
12274 if test "${HAVE_X_SM}" = "yes"; then
12275
12276 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12277
12278 LIBXSM="-lSM -lICE"
12279 case "$LIBS" in
12280 *-lSM*) ;;
12281 *) LIBS="$LIBXSM $LIBS" ;;
12282 esac
12283 fi
12284 fi
12285
12286
12287 ### Use libxml (-lxml2) if available
12288 if test "${with_xml2}" != "no"; then
12289 ### I'm not sure what the version number should be, so I just guessed.
12290
12291 succeeded=no
12292
12293 # Extract the first word of "pkg-config", so it can be a program name with args.
12294 set dummy pkg-config; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $PKG_CONFIG in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12303 ;;
12304 *)
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12321 ;;
12322 esac
12323 fi
12324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12325 if test -n "$PKG_CONFIG"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12327 $as_echo "$PKG_CONFIG" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332
12333
12334
12335 if test "$PKG_CONFIG" = "no" ; then
12336 HAVE_LIBXML2=no
12337 else
12338 PKG_CONFIG_MIN_VERSION=0.9.0
12339 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12341 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12342
12343 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12345 $as_echo "yes" >&6; }
12346 succeeded=yes
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12349 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12350 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12352 $as_echo "$LIBXML2_CFLAGS" >&6; }
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12355 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12356 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12358 $as_echo "$LIBXML2_LIBS" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 LIBXML2_CFLAGS=""
12363 LIBXML2_LIBS=""
12364 ## If we have a custom action on failure, don't print errors, but
12365 ## do set a variable so people can do so.
12366 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12367
12368 fi
12369
12370
12371
12372 else
12373 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12374 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12375 fi
12376 fi
12377
12378 if test $succeeded = yes; then
12379 HAVE_LIBXML2=yes
12380 else
12381 HAVE_LIBXML2=no
12382 fi
12383
12384 if test "${HAVE_LIBXML2}" = "yes"; then
12385 LIBS="$LIBXML2_LIBS $LIBS"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12387 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12388 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lxml2 $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char htmlReadMemory ();
12403 int
12404 main ()
12405 {
12406 return htmlReadMemory ();
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_lib_xml2_htmlReadMemory=yes
12413 else
12414 ac_cv_lib_xml2_htmlReadMemory=no
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12421 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12422 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12423 HAVE_LIBXML2=yes
12424 else
12425 HAVE_LIBXML2=no
12426 fi
12427
12428 if test "${HAVE_LIBXML2}" = "yes"; then
12429
12430 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12431
12432 else
12433 LIBXML2_LIBS=""
12434 LIBXML2_CFLAGS=""
12435 fi
12436 fi
12437 fi
12438
12439
12440
12441 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12443 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12444 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 #include <netdb.h>
12450 int
12451 main ()
12452 {
12453 return h_errno;
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 emacs_cv_netdb_declares_h_errno=yes
12460 else
12461 emacs_cv_netdb_declares_h_errno=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12467 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12468 if test $emacs_cv_netdb_declares_h_errno = yes; then
12469
12470 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12471
12472 fi
12473
12474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12475 # for constant arguments. Useless!
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12477 $as_echo_n "checking for working alloca.h... " >&6; }
12478 if test "${ac_cv_working_alloca_h+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 #include <alloca.h>
12484 int
12485 main ()
12486 {
12487 char *p = (char *) alloca (2 * sizeof (int));
12488 if (p) return 0;
12489 ;
12490 return 0;
12491 }
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_working_alloca_h=yes
12495 else
12496 ac_cv_working_alloca_h=no
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12502 $as_echo "$ac_cv_working_alloca_h" >&6; }
12503 if test $ac_cv_working_alloca_h = yes; then
12504
12505 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12506
12507 fi
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12510 $as_echo_n "checking for alloca... " >&6; }
12511 if test "${ac_cv_func_alloca_works+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 #ifdef __GNUC__
12517 # define alloca __builtin_alloca
12518 #else
12519 # ifdef _MSC_VER
12520 # include <malloc.h>
12521 # define alloca _alloca
12522 # else
12523 # ifdef HAVE_ALLOCA_H
12524 # include <alloca.h>
12525 # else
12526 # ifdef _AIX
12527 #pragma alloca
12528 # else
12529 # ifndef alloca /* predefined by HP cc +Olibcalls */
12530 char *alloca ();
12531 # endif
12532 # endif
12533 # endif
12534 # endif
12535 #endif
12536
12537 int
12538 main ()
12539 {
12540 char *p = (char *) alloca (1);
12541 if (p) return 0;
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_func_alloca_works=yes
12548 else
12549 ac_cv_func_alloca_works=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12555 $as_echo "$ac_cv_func_alloca_works" >&6; }
12556
12557 if test $ac_cv_func_alloca_works = yes; then
12558
12559 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12560
12561 else
12562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12563 # that cause trouble. Some versions do not even contain alloca or
12564 # contain a buggy version. If you still want to use their alloca,
12565 # use ar to extract alloca.o from them instead of compiling alloca.c.
12566
12567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12568
12569 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12570
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12573 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12574 if test "${ac_cv_os_cray+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #if defined CRAY && ! defined CRAY2
12580 webecray
12581 #else
12582 wenotbecray
12583 #endif
12584
12585 _ACEOF
12586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "webecray" >/dev/null 2>&1; then :
12588 ac_cv_os_cray=yes
12589 else
12590 ac_cv_os_cray=no
12591 fi
12592 rm -f conftest*
12593
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12596 $as_echo "$ac_cv_os_cray" >&6; }
12597 if test $ac_cv_os_cray = yes; then
12598 for ac_func in _getb67 GETB67 getb67; do
12599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12602
12603 cat >>confdefs.h <<_ACEOF
12604 #define CRAY_STACKSEG_END $ac_func
12605 _ACEOF
12606
12607 break
12608 fi
12609
12610 done
12611 fi
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12614 $as_echo_n "checking stack direction for C alloca... " >&6; }
12615 if test "${ac_cv_c_stack_direction+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 if test "$cross_compiling" = yes; then :
12619 ac_cv_c_stack_direction=0
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 $ac_includes_default
12624 int
12625 find_stack_direction ()
12626 {
12627 static char *addr = 0;
12628 auto char dummy;
12629 if (addr == 0)
12630 {
12631 addr = &dummy;
12632 return find_stack_direction ();
12633 }
12634 else
12635 return (&dummy > addr) ? 1 : -1;
12636 }
12637
12638 int
12639 main ()
12640 {
12641 return find_stack_direction () < 0;
12642 }
12643 _ACEOF
12644 if ac_fn_c_try_run "$LINENO"; then :
12645 ac_cv_c_stack_direction=1
12646 else
12647 ac_cv_c_stack_direction=-1
12648 fi
12649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12650 conftest.$ac_objext conftest.beam conftest.$ac_ext
12651 fi
12652
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12655 $as_echo "$ac_cv_c_stack_direction" >&6; }
12656 cat >>confdefs.h <<_ACEOF
12657 #define STACK_DIRECTION $ac_cv_c_stack_direction
12658 _ACEOF
12659
12660
12661 fi
12662
12663
12664 if test x"$ac_cv_func_alloca_works" != xyes; then
12665 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12666 fi
12667
12668 # fmod, logb, and frexp are found in -lm on most systems.
12669 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12671 $as_echo_n "checking for sqrt in -lm... " >&6; }
12672 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-lm $LIBS"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char sqrt ();
12687 int
12688 main ()
12689 {
12690 return sqrt ();
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_m_sqrt=yes
12697 else
12698 ac_cv_lib_m_sqrt=no
12699 fi
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12705 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12706 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_LIBM 1
12709 _ACEOF
12710
12711 LIBS="-lm $LIBS"
12712
12713 fi
12714
12715
12716 # Check for mail-locking functions in a "mail" library. Probably this should
12717 # have the same check as for liblockfile below.
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12719 $as_echo_n "checking for maillock in -lmail... " >&6; }
12720 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 ac_check_lib_save_LIBS=$LIBS
12724 LIBS="-lmail $LIBS"
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12731 #ifdef __cplusplus
12732 extern "C"
12733 #endif
12734 char maillock ();
12735 int
12736 main ()
12737 {
12738 return maillock ();
12739 ;
12740 return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 ac_cv_lib_mail_maillock=yes
12745 else
12746 ac_cv_lib_mail_maillock=no
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12753 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12754 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
12755 have_mail=yes
12756 else
12757 have_mail=no
12758 fi
12759
12760 if test $have_mail = yes; then
12761 LIBS_MAIL=-lmail
12762 LIBS="$LIBS_MAIL $LIBS"
12763
12764 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12765
12766 else
12767 LIBS_MAIL=
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12770 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12771 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-llockfile $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char maillock ();
12786 int
12787 main ()
12788 {
12789 return maillock ();
12790 ;
12791 return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_lockfile_maillock=yes
12796 else
12797 ac_cv_lib_lockfile_maillock=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12804 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12805 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
12806 have_lockfile=yes
12807 else
12808 have_lockfile=no
12809 fi
12810
12811 if test $have_lockfile = yes; then
12812 LIBS_MAIL=-llockfile
12813 LIBS="$LIBS_MAIL $LIBS"
12814
12815 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12816
12817 else
12818 # If we have the shared liblockfile, assume we must use it for mail
12819 # locking (e.g. Debian). If we couldn't link against liblockfile
12820 # (no liblockfile.a installed), ensure that we don't need to.
12821 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12822 set dummy liblockfile.so; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 if test -n "$liblockfile"; then
12829 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12833 for as_dir in $as_dummy
12834 do
12835 IFS=$as_save_IFS
12836 test -z "$as_dir" && as_dir=.
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12839 ac_cv_prog_liblockfile="yes"
12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 break 2
12842 fi
12843 done
12844 done
12845 IFS=$as_save_IFS
12846
12847 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12848 fi
12849 fi
12850 liblockfile=$ac_cv_prog_liblockfile
12851 if test -n "$liblockfile"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12853 $as_echo "$liblockfile" >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859
12860 if test $ac_cv_prog_liblockfile = yes; then
12861 as_fn_error $? "Shared liblockfile found but can't link against it.
12862 This probably means that movemail could lose mail.
12863 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12864 fi
12865 fi
12866 for ac_func in touchlock
12867 do :
12868 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12869 if test "x$ac_cv_func_touchlock" = x""yes; then :
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_TOUCHLOCK 1
12872 _ACEOF
12873
12874 fi
12875 done
12876
12877 for ac_header in maillock.h
12878 do :
12879 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12880 if test "x$ac_cv_header_maillock_h" = x""yes; then :
12881 cat >>confdefs.h <<_ACEOF
12882 #define HAVE_MAILLOCK_H 1
12883 _ACEOF
12884
12885 fi
12886
12887 done
12888
12889
12890
12891 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12892 ## interlock access to the mail spool. The alternative is a lock file named
12893 ## /usr/spool/mail/$USER.lock.
12894 mail_lock=no
12895 case "$opsys" in
12896 aix4-2) mail_lock="lockf" ;;
12897
12898 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12899
12900 ## On GNU/Linux systems, both methods are used by various mail programs.
12901 ## I assume most people are using newer mailers that have heard of flock.
12902 ## Change this if you need to.
12903 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12904 ## configure gets the right answers, and that means *NOT* using flock.
12905 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12906 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12907 ## Debian maintainer hasn't provided a clean fix for Emacs.
12908 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12909 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12910 ## correct logic. -- fx
12911 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12912 ## liblockfile is a Free Software replacement for libmail, used on
12913 ## Debian systems and elsewhere. -rfr.
12914 gnu-*)
12915 mail_lock="flock"
12916 if test $have_mail = yes || test $have_lockfile = yes; then
12917 test $ac_cv_header_maillock_h = yes && mail_lock=no
12918 fi
12919 ;;
12920 esac
12921
12922 BLESSMAIL_TARGET=
12923 case "$mail_lock" in
12924 flock)
12925 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12926 ;;
12927
12928 lockf)
12929 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12930 ;;
12931
12932 *) BLESSMAIL_TARGET="need-blessmail" ;;
12933 esac
12934
12935
12936
12937 for ac_func in gethostname getdomainname dup2 \
12938 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12939 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12940 strerror fpathconf select euidaccess getpagesize tzset setlocale \
12941 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12942 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12943 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12944 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12945 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12946 cfmakeraw cfsetspeed isnan copysign __executable_start
12947 do :
12948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12951 cat >>confdefs.h <<_ACEOF
12952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12953 _ACEOF
12954
12955 fi
12956 done
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12960 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12961 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966
12967 int
12968 main ()
12969 {
12970 __builtin_unwind_init ();
12971 ;
12972 return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 emacs_cv_func___builtin_unwind_init=yes
12977 else
12978 emacs_cv_func___builtin_unwind_init=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12984 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12985 if test $emacs_cv_func___builtin_unwind_init = yes; then
12986
12987 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12988
12989 fi
12990
12991 for ac_header in sys/un.h
12992 do :
12993 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_SYS_UN_H 1
12997 _ACEOF
12998
12999 fi
13000
13001 done
13002
13003
13004 ac_have_func=no # yes means we've found a way to get the load average.
13005
13006 # Make sure getloadavg.c is where it belongs, at configure-time.
13007 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13008 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13009
13010 ac_save_LIBS=$LIBS
13011
13012 # Check for getloadavg, but be sure not to touch the cache variable.
13013 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13014 if test "x$ac_cv_func_getloadavg" = x""yes; then :
13015 exit 0
13016 else
13017 exit 1
13018 fi
13019 ) && ac_have_func=yes
13020
13021 # On HPUX9, an unprivileged user can get load averages through this function.
13022 for ac_func in pstat_getdynamic
13023 do :
13024 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13025 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
13026 cat >>confdefs.h <<_ACEOF
13027 #define HAVE_PSTAT_GETDYNAMIC 1
13028 _ACEOF
13029
13030 fi
13031 done
13032
13033
13034 # Solaris has libkstat which does not require root.
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13036 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13037 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lkstat $LIBS"
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char kstat_open ();
13052 int
13053 main ()
13054 {
13055 return kstat_open ();
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_link "$LINENO"; then :
13061 ac_cv_lib_kstat_kstat_open=yes
13062 else
13063 ac_cv_lib_kstat_kstat_open=no
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13070 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13071 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_LIBKSTAT 1
13074 _ACEOF
13075
13076 LIBS="-lkstat $LIBS"
13077
13078 fi
13079
13080 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13081
13082 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13083 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13084 # to get the right answer into the cache.
13085 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13086 if test $ac_have_func = no; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13088 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 ac_check_lib_save_LIBS=$LIBS
13093 LIBS="-lelf $LIBS"
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 char elf_begin ();
13104 int
13105 main ()
13106 {
13107 return elf_begin ();
13108 ;
13109 return 0;
13110 }
13111 _ACEOF
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_lib_elf_elf_begin=yes
13114 else
13115 ac_cv_lib_elf_elf_begin=no
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13122 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13123 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
13124 LIBS="-lelf $LIBS"
13125 fi
13126
13127 fi
13128 if test $ac_have_func = no; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13130 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13131 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 ac_check_lib_save_LIBS=$LIBS
13135 LIBS="-lkvm $LIBS"
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char kvm_open ();
13146 int
13147 main ()
13148 {
13149 return kvm_open ();
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13155 ac_cv_lib_kvm_kvm_open=yes
13156 else
13157 ac_cv_lib_kvm_kvm_open=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13164 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13165 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
13166 LIBS="-lkvm $LIBS"
13167 fi
13168
13169 # Check for the 4.4BSD definition of getloadavg.
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13171 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13172 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 ac_check_lib_save_LIBS=$LIBS
13176 LIBS="-lutil $LIBS"
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char getloadavg ();
13187 int
13188 main ()
13189 {
13190 return getloadavg ();
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_util_getloadavg=yes
13197 else
13198 ac_cv_lib_util_getloadavg=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13205 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13206 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
13207 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13208 fi
13209
13210 fi
13211
13212 if test $ac_have_func = no; then
13213 # There is a commonly available library for RS/6000 AIX.
13214 # Since it is not a standard part of AIX, it might be installed locally.
13215 ac_getloadavg_LIBS=$LIBS
13216 LIBS="-L/usr/local/lib $LIBS"
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13218 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13219 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222 ac_check_lib_save_LIBS=$LIBS
13223 LIBS="-lgetloadavg $LIBS"
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 char getloadavg ();
13234 int
13235 main ()
13236 {
13237 return getloadavg ();
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"; then :
13243 ac_cv_lib_getloadavg_getloadavg=yes
13244 else
13245 ac_cv_lib_getloadavg_getloadavg=no
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13252 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13253 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
13254 LIBS="-lgetloadavg $LIBS"
13255 else
13256 LIBS=$ac_getloadavg_LIBS
13257 fi
13258
13259 fi
13260
13261 # Make sure it is really in the library, if we think we found it,
13262 # otherwise set up the replacement function.
13263 for ac_func in getloadavg
13264 do :
13265 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13266 if test "x$ac_cv_func_getloadavg" = x""yes; then :
13267 cat >>confdefs.h <<_ACEOF
13268 #define HAVE_GETLOADAVG 1
13269 _ACEOF
13270
13271 else
13272 case " $LIBOBJS " in
13273 *" getloadavg.$ac_objext "* ) ;;
13274 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13275 ;;
13276 esac
13277
13278
13279 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13280
13281 # Figure out what our getloadavg.c needs.
13282 ac_have_func=no
13283 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13284 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
13285 ac_have_func=yes
13286
13287 $as_echo "#define DGUX 1" >>confdefs.h
13288
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13290 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13291 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-ldgc $LIBS"
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13302 #ifdef __cplusplus
13303 extern "C"
13304 #endif
13305 char dg_sys_info ();
13306 int
13307 main ()
13308 {
13309 return dg_sys_info ();
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315 ac_cv_lib_dgc_dg_sys_info=yes
13316 else
13317 ac_cv_lib_dgc_dg_sys_info=no
13318 fi
13319 rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13322 fi
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13324 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13325 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_LIBDGC 1
13328 _ACEOF
13329
13330 LIBS="-ldgc $LIBS"
13331
13332 fi
13333
13334 fi
13335
13336
13337
13338 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13339 if test "x$ac_cv_header_locale_h" = x""yes; then :
13340
13341 fi
13342
13343
13344 for ac_func in setlocale
13345 do :
13346 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13347 if test "x$ac_cv_func_setlocale" = x""yes; then :
13348 cat >>confdefs.h <<_ACEOF
13349 #define HAVE_SETLOCALE 1
13350 _ACEOF
13351
13352 fi
13353 done
13354
13355
13356 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13357 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13358 # Irix 4.0.5F has the header but not the library.
13359 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13360 ac_have_func=yes
13361
13362 $as_echo "#define SVR4 1" >>confdefs.h
13363
13364 fi
13365
13366 if test $ac_have_func = no; then
13367 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13369 ac_have_func=yes
13370
13371 $as_echo "#define UMAX 1" >>confdefs.h
13372
13373
13374 $as_echo "#define UMAX4_3 1" >>confdefs.h
13375
13376 fi
13377
13378
13379 fi
13380
13381 if test $ac_have_func = no; then
13382 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13383 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13384 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13385
13386 fi
13387
13388
13389 fi
13390
13391 if test $ac_have_func = no; then
13392 for ac_header in mach/mach.h
13393 do :
13394 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13395 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_MACH_MACH_H 1
13398 _ACEOF
13399
13400 fi
13401
13402 done
13403
13404 fi
13405
13406 for ac_header in nlist.h
13407 do :
13408 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13409 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_NLIST_H 1
13412 _ACEOF
13413 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13414 "
13415 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13416
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13419 _ACEOF
13420
13421
13422 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13423
13424 fi
13425
13426
13427 fi
13428
13429 done
13430
13431 fi
13432 done
13433
13434
13435 # Some definitions of getloadavg require that the program be installed setgid.
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13437 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13438 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13444 #ifdef LDAV_PRIVILEGED
13445 Yowza Am I SETGID yet
13446 #endif
13447 _ACEOF
13448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13449 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13450 ac_cv_func_getloadavg_setgid=yes
13451 else
13452 ac_cv_func_getloadavg_setgid=no
13453 fi
13454 rm -f conftest*
13455
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13458 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13459 if test $ac_cv_func_getloadavg_setgid = yes; then
13460 NEED_SETGID=true
13461
13462 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13463
13464 else
13465 NEED_SETGID=false
13466 fi
13467
13468 if test $ac_cv_func_getloadavg_setgid = yes; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13470 $as_echo_n "checking group of /dev/kmem... " >&6; }
13471 if test "${ac_cv_group_kmem+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13475 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13476 # If we got an error (system does not support symlinks), try without -L.
13477 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13478 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13479 | sed -ne 's/[ ][ ]*/ /g;
13480 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13481 / /s/.* //;p;'`
13482
13483 fi
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13485 $as_echo "$ac_cv_group_kmem" >&6; }
13486 KMEM_GROUP=$ac_cv_group_kmem
13487 fi
13488 if test "x$ac_save_LIBS" = x; then
13489 GETLOADAVG_LIBS=$LIBS
13490 else
13491 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13492 fi
13493 LIBS=$ac_save_LIBS
13494
13495
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13498 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13499 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 while :; do
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <sys/types.h> /* for off_t */
13506 #include <stdio.h>
13507 int
13508 main ()
13509 {
13510 int (*fp) (FILE *, off_t, int) = fseeko;
13511 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_sys_largefile_source=no; break
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 #define _LARGEFILE_SOURCE 1
13524 #include <sys/types.h> /* for off_t */
13525 #include <stdio.h>
13526 int
13527 main ()
13528 {
13529 int (*fp) (FILE *, off_t, int) = fseeko;
13530 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13531 ;
13532 return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_sys_largefile_source=1; break
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 ac_cv_sys_largefile_source=unknown
13541 break
13542 done
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13545 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13546 case $ac_cv_sys_largefile_source in #(
13547 no | unknown) ;;
13548 *)
13549 cat >>confdefs.h <<_ACEOF
13550 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13551 _ACEOF
13552 ;;
13553 esac
13554 rm -rf conftest*
13555
13556 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13557 # in glibc 2.1.3, but that breaks too many other things.
13558 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13559 if test $ac_cv_sys_largefile_source != unknown; then
13560
13561 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13562
13563 fi
13564
13565
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13567 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13568 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 # Use it with a single arg.
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 $ac_includes_default
13575 int
13576 main ()
13577 {
13578 getpgrp (0);
13579 ;
13580 return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_compile "$LINENO"; then :
13584 ac_cv_func_getpgrp_void=no
13585 else
13586 ac_cv_func_getpgrp_void=yes
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589
13590 fi
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13592 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13593 if test $ac_cv_func_getpgrp_void = yes; then
13594
13595 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13596
13597 fi
13598
13599
13600 # Configure gnulib.
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611 LIBC_FATAL_STDERR_=1
13612 export LIBC_FATAL_STDERR_
13613
13614
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13616 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13617 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 /* On HP-UX before 11.23, strtold returns a struct instead of
13623 long double. Reject implementations like that, by requiring
13624 compatibility with the C99 prototype. */
13625 #include <stdlib.h>
13626 static long double (*p) (char const *, char **) = strtold;
13627 static long double
13628 test (char const *nptr, char **endptr)
13629 {
13630 long double r;
13631 r = strtold (nptr, endptr);
13632 return r;
13633 }
13634 int
13635 main ()
13636 {
13637 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13638 ;
13639 return 0;
13640 }
13641 _ACEOF
13642 if ac_fn_c_try_link "$LINENO"; then :
13643 gl_cv_func_c99_strtold=yes
13644 else
13645 gl_cv_func_c99_strtold=no
13646 fi
13647 rm -f core conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13651 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13652 if test $gl_cv_func_c99_strtold = yes; then
13653
13654 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13655
13656 fi
13657
13658
13659 GNULIB_CHOWN=0;
13660 GNULIB_CLOSE=0;
13661 GNULIB_DUP2=0;
13662 GNULIB_DUP3=0;
13663 GNULIB_ENVIRON=0;
13664 GNULIB_EUIDACCESS=0;
13665 GNULIB_FACCESSAT=0;
13666 GNULIB_FCHDIR=0;
13667 GNULIB_FCHOWNAT=0;
13668 GNULIB_FSYNC=0;
13669 GNULIB_FTRUNCATE=0;
13670 GNULIB_GETCWD=0;
13671 GNULIB_GETDOMAINNAME=0;
13672 GNULIB_GETDTABLESIZE=0;
13673 GNULIB_GETGROUPS=0;
13674 GNULIB_GETHOSTNAME=0;
13675 GNULIB_GETLOGIN=0;
13676 GNULIB_GETLOGIN_R=0;
13677 GNULIB_GETPAGESIZE=0;
13678 GNULIB_GETUSERSHELL=0;
13679 GNULIB_LCHOWN=0;
13680 GNULIB_LINK=0;
13681 GNULIB_LINKAT=0;
13682 GNULIB_LSEEK=0;
13683 GNULIB_PIPE=0;
13684 GNULIB_PIPE2=0;
13685 GNULIB_PREAD=0;
13686 GNULIB_PWRITE=0;
13687 GNULIB_READLINK=0;
13688 GNULIB_READLINKAT=0;
13689 GNULIB_RMDIR=0;
13690 GNULIB_SLEEP=0;
13691 GNULIB_SYMLINK=0;
13692 GNULIB_SYMLINKAT=0;
13693 GNULIB_TTYNAME_R=0;
13694 GNULIB_UNISTD_H_GETOPT=0;
13695 GNULIB_UNISTD_H_SIGPIPE=0;
13696 GNULIB_UNLINK=0;
13697 GNULIB_UNLINKAT=0;
13698 GNULIB_USLEEP=0;
13699 GNULIB_WRITE=0;
13700 HAVE_CHOWN=1;
13701 HAVE_DUP2=1;
13702 HAVE_DUP3=1;
13703 HAVE_EUIDACCESS=1;
13704 HAVE_FACCESSAT=1;
13705 HAVE_FCHDIR=1;
13706 HAVE_FCHOWNAT=1;
13707 HAVE_FSYNC=1;
13708 HAVE_FTRUNCATE=1;
13709 HAVE_GETDTABLESIZE=1;
13710 HAVE_GETGROUPS=1;
13711 HAVE_GETHOSTNAME=1;
13712 HAVE_GETLOGIN=1;
13713 HAVE_GETPAGESIZE=1;
13714 HAVE_LCHOWN=1;
13715 HAVE_LINK=1;
13716 HAVE_LINKAT=1;
13717 HAVE_PIPE=1;
13718 HAVE_PIPE2=1;
13719 HAVE_PREAD=1;
13720 HAVE_PWRITE=1;
13721 HAVE_READLINK=1;
13722 HAVE_READLINKAT=1;
13723 HAVE_SLEEP=1;
13724 HAVE_SYMLINK=1;
13725 HAVE_SYMLINKAT=1;
13726 HAVE_UNLINKAT=1;
13727 HAVE_USLEEP=1;
13728 HAVE_DECL_ENVIRON=1;
13729 HAVE_DECL_FCHDIR=1;
13730 HAVE_DECL_GETDOMAINNAME=1;
13731 HAVE_DECL_GETLOGIN_R=1;
13732 HAVE_DECL_GETPAGESIZE=1;
13733 HAVE_DECL_GETUSERSHELL=1;
13734 HAVE_DECL_TTYNAME_R=1;
13735 HAVE_OS_H=0;
13736 HAVE_SYS_PARAM_H=0;
13737 REPLACE_CHOWN=0;
13738 REPLACE_CLOSE=0;
13739 REPLACE_DUP=0;
13740 REPLACE_DUP2=0;
13741 REPLACE_FCHOWNAT=0;
13742 REPLACE_GETCWD=0;
13743 REPLACE_GETDOMAINNAME=0;
13744 REPLACE_GETLOGIN_R=0;
13745 REPLACE_GETGROUPS=0;
13746 REPLACE_GETPAGESIZE=0;
13747 REPLACE_LCHOWN=0;
13748 REPLACE_LINK=0;
13749 REPLACE_LINKAT=0;
13750 REPLACE_LSEEK=0;
13751 REPLACE_PREAD=0;
13752 REPLACE_PWRITE=0;
13753 REPLACE_READLINK=0;
13754 REPLACE_RMDIR=0;
13755 REPLACE_SLEEP=0;
13756 REPLACE_SYMLINK=0;
13757 REPLACE_TTYNAME_R=0;
13758 REPLACE_UNLINK=0;
13759 REPLACE_UNLINKAT=0;
13760 REPLACE_USLEEP=0;
13761 REPLACE_WRITE=0;
13762 UNISTD_H_HAVE_WINSOCK2_H=0;
13763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13764
13765
13766
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13769 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13770 if test "${gl_cv_have_include_next+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 rm -rf conftestd1a conftestd1b conftestd2
13774 mkdir conftestd1a conftestd1b conftestd2
13775 cat <<EOF > conftestd1a/conftest.h
13776 #define DEFINED_IN_CONFTESTD1
13777 #include_next <conftest.h>
13778 #ifdef DEFINED_IN_CONFTESTD2
13779 int foo;
13780 #else
13781 #error "include_next doesn't work"
13782 #endif
13783 EOF
13784 cat <<EOF > conftestd1b/conftest.h
13785 #define DEFINED_IN_CONFTESTD1
13786 #include <stdio.h>
13787 #include_next <conftest.h>
13788 #ifdef DEFINED_IN_CONFTESTD2
13789 int foo;
13790 #else
13791 #error "include_next doesn't work"
13792 #endif
13793 EOF
13794 cat <<EOF > conftestd2/conftest.h
13795 #ifndef DEFINED_IN_CONFTESTD1
13796 #error "include_next test doesn't work"
13797 #endif
13798 #define DEFINED_IN_CONFTESTD2
13799 EOF
13800 gl_save_CPPFLAGS="$CPPFLAGS"
13801 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <conftest.h>
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807 gl_cv_have_include_next=yes
13808 else
13809 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 #include <conftest.h>
13813 _ACEOF
13814 if ac_fn_c_try_compile "$LINENO"; then :
13815 gl_cv_have_include_next=buggy
13816 else
13817 gl_cv_have_include_next=no
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 CPPFLAGS="$gl_save_CPPFLAGS"
13824 rm -rf conftestd1a conftestd1b conftestd2
13825
13826 fi
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13828 $as_echo "$gl_cv_have_include_next" >&6; }
13829 PRAGMA_SYSTEM_HEADER=
13830 if test $gl_cv_have_include_next = yes; then
13831 INCLUDE_NEXT=include_next
13832 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13833 if test -n "$GCC"; then
13834 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13835 fi
13836 else
13837 if test $gl_cv_have_include_next = buggy; then
13838 INCLUDE_NEXT=include
13839 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13840 else
13841 INCLUDE_NEXT=include
13842 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13843 fi
13844 fi
13845
13846
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13849 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13850 if test "${gl_cv_pragma_columns+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855
13856 #ifdef __TANDEM
13857 choke me
13858 #endif
13859
13860 _ACEOF
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862 $EGREP "choke me" >/dev/null 2>&1; then :
13863 gl_cv_pragma_columns=yes
13864 else
13865 gl_cv_pragma_columns=no
13866 fi
13867 rm -f conftest*
13868
13869
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13872 $as_echo "$gl_cv_pragma_columns" >&6; }
13873 if test $gl_cv_pragma_columns = yes; then
13874 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13875 else
13876 PRAGMA_COLUMNS=
13877 fi
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 if test $gl_cv_have_include_next = yes; then
13896 gl_cv_next_getopt_h='<'getopt.h'>'
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13899 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13900 if test "${gl_cv_next_getopt_h+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903
13904 if test $ac_cv_header_getopt_h = yes; then
13905
13906
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #include <getopt.h>
13910
13911 _ACEOF
13912 case "$host_os" in
13913 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13914 *) gl_absname_cpp="$ac_cpp" ;;
13915 esac
13916 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13917 sed -n '\#/getopt.h#{
13918 s#.*"\(.*/getopt.h\)".*#\1#
13919 s#^/[^/]#//&#
13920 p
13921 q
13922 }'`'"'
13923 else
13924 gl_cv_next_getopt_h='<'getopt.h'>'
13925 fi
13926
13927
13928 fi
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13930 $as_echo "$gl_cv_next_getopt_h" >&6; }
13931 fi
13932 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13933
13934 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13936 gl_next_as_first_directive='<'getopt.h'>'
13937 else
13938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13939 gl_next_as_first_directive=$gl_cv_next_getopt_h
13940 fi
13941 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13942
13943
13944
13945
13946 if test $ac_cv_header_getopt_h = yes; then
13947 HAVE_GETOPT_H=1
13948 else
13949 HAVE_GETOPT_H=0
13950 fi
13951
13952
13953 gl_replace_getopt=
13954
13955 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13956 for ac_header in getopt.h
13957 do :
13958 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13959 if test "x$ac_cv_header_getopt_h" = x""yes; then :
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_GETOPT_H 1
13962 _ACEOF
13963
13964 else
13965 gl_replace_getopt=yes
13966 fi
13967
13968 done
13969
13970 fi
13971
13972 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13973 for ac_func in getopt_long_only
13974 do :
13975 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13976 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
13977 cat >>confdefs.h <<_ACEOF
13978 #define HAVE_GETOPT_LONG_ONLY 1
13979 _ACEOF
13980
13981 else
13982 gl_replace_getopt=yes
13983 fi
13984 done
13985
13986 fi
13987
13988 if test -z "$gl_replace_getopt"; then
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13990 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13991 if test "${gl_cv_func_getopt_posix+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <unistd.h>
13998 int
13999 main ()
14000 {
14001 int *p = &optreset; return optreset;
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 gl_optind_min=1
14008 else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <getopt.h>
14012 int
14013 main ()
14014 {
14015 return !getopt_clip;
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021 gl_optind_min=1
14022 else
14023 gl_optind_min=0
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028
14029 gl_save_CPPFLAGS=$CPPFLAGS
14030 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14031 if test "$cross_compiling" = yes; then :
14032 case "$host_os" in
14033 mingw*) gl_cv_func_getopt_posix="guessing no";;
14034 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14035 *) gl_cv_func_getopt_posix="guessing yes";;
14036 esac
14037
14038 else
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041
14042 #include <unistd.h>
14043 #include <stdlib.h>
14044 #include <string.h>
14045
14046 int
14047 main ()
14048 {
14049 {
14050 int argc = 0;
14051 char *argv[10];
14052 int c;
14053
14054 argv[argc++] = "program";
14055 argv[argc++] = "-a";
14056 argv[argc++] = "foo";
14057 argv[argc++] = "bar";
14058 argv[argc] = NULL;
14059 optind = OPTIND_MIN;
14060 opterr = 0;
14061
14062 c = getopt (argc, argv, "ab");
14063 if (!(c == 'a'))
14064 return 1;
14065 c = getopt (argc, argv, "ab");
14066 if (!(c == -1))
14067 return 2;
14068 if (!(optind == 2))
14069 return 3;
14070 }
14071 /* Some internal state exists at this point. */
14072 {
14073 int argc = 0;
14074 char *argv[10];
14075 int c;
14076
14077 argv[argc++] = "program";
14078 argv[argc++] = "donald";
14079 argv[argc++] = "-p";
14080 argv[argc++] = "billy";
14081 argv[argc++] = "duck";
14082 argv[argc++] = "-a";
14083 argv[argc++] = "bar";
14084 argv[argc] = NULL;
14085 optind = OPTIND_MIN;
14086 opterr = 0;
14087
14088 c = getopt (argc, argv, "+abp:q:");
14089 if (!(c == -1))
14090 return 4;
14091 if (!(strcmp (argv[0], "program") == 0))
14092 return 5;
14093 if (!(strcmp (argv[1], "donald") == 0))
14094 return 6;
14095 if (!(strcmp (argv[2], "-p") == 0))
14096 return 7;
14097 if (!(strcmp (argv[3], "billy") == 0))
14098 return 8;
14099 if (!(strcmp (argv[4], "duck") == 0))
14100 return 9;
14101 if (!(strcmp (argv[5], "-a") == 0))
14102 return 10;
14103 if (!(strcmp (argv[6], "bar") == 0))
14104 return 11;
14105 if (!(optind == 1))
14106 return 12;
14107 }
14108 /* Detect MacOS 10.5, AIX 7.1 bug. */
14109 {
14110 char *argv[3] = { "program", "-ab", NULL };
14111 optind = OPTIND_MIN;
14112 opterr = 0;
14113 if (getopt (2, argv, "ab:") != 'a')
14114 return 13;
14115 if (getopt (2, argv, "ab:") != '?')
14116 return 14;
14117 if (optopt != 'b')
14118 return 15;
14119 if (optind != 2)
14120 return 16;
14121 }
14122
14123 return 0;
14124 }
14125
14126 _ACEOF
14127 if ac_fn_c_try_run "$LINENO"; then :
14128 gl_cv_func_getopt_posix=yes
14129 else
14130 gl_cv_func_getopt_posix=no
14131 fi
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14134 fi
14135
14136 CPPFLAGS=$gl_save_CPPFLAGS
14137
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14140 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14141 case "$gl_cv_func_getopt_posix" in
14142 *no) gl_replace_getopt=yes ;;
14143 esac
14144 fi
14145
14146 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14148 $as_echo_n "checking for working GNU getopt function... " >&6; }
14149 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14153 # optstring is necessary for programs like m4 that have POSIX-mandated
14154 # semantics for supporting options interspersed with files.
14155 # Also, since getopt_long is a GNU extension, we require optind=0.
14156 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14157 # so take care to revert to the correct (non-)export state.
14158 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14159 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14160 xx) gl_had_POSIXLY_CORRECT=exported ;;
14161 x) gl_had_POSIXLY_CORRECT=yes ;;
14162 *) gl_had_POSIXLY_CORRECT= ;;
14163 esac
14164 POSIXLY_CORRECT=1
14165 export POSIXLY_CORRECT
14166 if test "$cross_compiling" = yes; then :
14167 case $host_os:$ac_cv_have_decl_optreset in
14168 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14169 *:yes) gl_cv_func_getopt_gnu=no;;
14170 *) gl_cv_func_getopt_gnu=yes;;
14171 esac
14172
14173 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #include <getopt.h>
14177 #include <stddef.h>
14178 #include <string.h>
14179
14180 int
14181 main ()
14182 {
14183
14184 int result = 0;
14185 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14186 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14187 OSF/1 5.1, Solaris 10. */
14188 {
14189 char *myargv[3];
14190 myargv[0] = "conftest";
14191 myargv[1] = "-+";
14192 myargv[2] = 0;
14193 opterr = 0;
14194 if (getopt (2, myargv, "+a") != '?')
14195 result |= 1;
14196 }
14197 /* This code succeeds on glibc 2.8, mingw,
14198 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14199 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14200 {
14201 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14202
14203 optind = 1;
14204 if (getopt (4, argv, "p::") != 'p')
14205 result |= 2;
14206 else if (optarg != NULL)
14207 result |= 4;
14208 else if (getopt (4, argv, "p::") != -1)
14209 result |= 6;
14210 else if (optind != 2)
14211 result |= 8;
14212 }
14213 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14214 {
14215 char *argv[] = { "program", "foo", "-p", NULL };
14216 optind = 0;
14217 if (getopt (3, argv, "-p") != 1)
14218 result |= 16;
14219 else if (getopt (3, argv, "-p") != 'p')
14220 result |= 32;
14221 }
14222 /* This code fails on glibc 2.11. */
14223 {
14224 char *argv[] = { "program", "-b", "-a", NULL };
14225 optind = opterr = 0;
14226 if (getopt (3, argv, "+:a:b") != 'b')
14227 result |= 64;
14228 else if (getopt (3, argv, "+:a:b") != ':')
14229 result |= 64;
14230 }
14231 return result;
14232
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_run "$LINENO"; then :
14238 gl_cv_func_getopt_gnu=yes
14239 else
14240 gl_cv_func_getopt_gnu=no
14241 fi
14242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14243 conftest.$ac_objext conftest.beam conftest.$ac_ext
14244 fi
14245
14246 case $gl_had_POSIXLY_CORRECT in
14247 exported) ;;
14248 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14249 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14250 esac
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14254 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14255 if test "$gl_cv_func_getopt_gnu" = "no"; then
14256 gl_replace_getopt=yes
14257 fi
14258 fi
14259
14260 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14261 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14262 ac_have_decl=1
14263 else
14264 ac_have_decl=0
14265 fi
14266
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_DECL_GETENV $ac_have_decl
14269 _ACEOF
14270
14271
14272
14273
14274
14275
14276 if test -n "$gl_replace_getopt"; then :
14277
14278
14279
14280 GETOPT_H=getopt.h
14281
14282 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14283
14284
14285
14286 GNULIB_UNISTD_H_GETOPT=1
14287
14288
14289
14290
14291
14292
14293
14294
14295 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14306
14307
14308
14309
14310
14311
14312 fi
14313
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14316 $as_echo_n "checking for inline... " >&6; }
14317 if test "${ac_cv_c_inline+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_cv_c_inline=no
14321 for ac_kw in inline __inline__ __inline; do
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 #ifndef __cplusplus
14325 typedef int foo_t;
14326 static $ac_kw foo_t static_foo () {return 0; }
14327 $ac_kw foo_t foo () {return 0; }
14328 #endif
14329
14330 _ACEOF
14331 if ac_fn_c_try_compile "$LINENO"; then :
14332 ac_cv_c_inline=$ac_kw
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 test "$ac_cv_c_inline" != no && break
14336 done
14337
14338 fi
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14340 $as_echo "$ac_cv_c_inline" >&6; }
14341
14342 case $ac_cv_c_inline in
14343 inline | yes) ;;
14344 *)
14345 case $ac_cv_c_inline in
14346 no) ac_val=;;
14347 *) ac_val=$ac_cv_c_inline;;
14348 esac
14349 cat >>confdefs.h <<_ACEOF
14350 #ifndef __cplusplus
14351 #define inline $ac_val
14352 #endif
14353 _ACEOF
14354 ;;
14355 esac
14356
14357
14358 GNULIB_MKTIME=0;
14359 GNULIB_NANOSLEEP=0;
14360 GNULIB_STRPTIME=0;
14361 GNULIB_TIMEGM=0;
14362 GNULIB_TIME_R=0;
14363 HAVE_DECL_LOCALTIME_R=1;
14364 HAVE_NANOSLEEP=1;
14365 HAVE_STRPTIME=1;
14366 HAVE_TIMEGM=1;
14367 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14368 REPLACE_MKTIME=GNULIB_PORTCHECK;
14369 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14370 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14371
14372
14373
14374
14375 for ac_func in $ac_func_list
14376 do :
14377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14380 cat >>confdefs.h <<_ACEOF
14381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14382 _ACEOF
14383
14384 fi
14385 done
14386
14387
14388
14389
14390 gl_cv_c_multiarch=no
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 #ifndef __APPLE_CC__
14394 not a universal capable compiler
14395 #endif
14396 typedef int dummy;
14397
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400
14401 arch=
14402 prev=
14403 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14404 if test -n "$prev"; then
14405 case $word in
14406 i?86 | x86_64 | ppc | ppc64)
14407 if test -z "$arch" || test "$arch" = "$word"; then
14408 arch="$word"
14409 else
14410 gl_cv_c_multiarch=yes
14411 fi
14412 ;;
14413 esac
14414 prev=
14415 else
14416 if test "x$word" = "x-arch"; then
14417 prev=arch
14418 fi
14419 fi
14420 done
14421
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 if test $gl_cv_c_multiarch = yes; then
14425 APPLE_UNIVERSAL_BUILD=1
14426 else
14427 APPLE_UNIVERSAL_BUILD=0
14428 fi
14429
14430
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14432 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14433 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438
14439 #include <stdbool.h>
14440 #ifndef bool
14441 "error: bool is not defined"
14442 #endif
14443 #ifndef false
14444 "error: false is not defined"
14445 #endif
14446 #if false
14447 "error: false is not 0"
14448 #endif
14449 #ifndef true
14450 "error: true is not defined"
14451 #endif
14452 #if true != 1
14453 "error: true is not 1"
14454 #endif
14455 #ifndef __bool_true_false_are_defined
14456 "error: __bool_true_false_are_defined is not defined"
14457 #endif
14458
14459 struct s { _Bool s: 1; _Bool t; } s;
14460
14461 char a[true == 1 ? 1 : -1];
14462 char b[false == 0 ? 1 : -1];
14463 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14464 char d[(bool) 0.5 == true ? 1 : -1];
14465 /* See body of main program for 'e'. */
14466 char f[(_Bool) 0.0 == false ? 1 : -1];
14467 char g[true];
14468 char h[sizeof (_Bool)];
14469 char i[sizeof s.t];
14470 enum { j = false, k = true, l = false * true, m = true * 256 };
14471 /* The following fails for
14472 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14473 _Bool n[m];
14474 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14475 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14476 /* Catch a bug in an HP-UX C compiler. See
14477 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14478 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14479 */
14480 _Bool q = true;
14481 _Bool *pq = &q;
14482
14483 int
14484 main ()
14485 {
14486
14487 bool e = &s;
14488 *pq |= q;
14489 *pq |= ! q;
14490 /* Refer to every declared value, to avoid compiler optimizations. */
14491 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14492 + !m + !n + !o + !p + !q + !pq);
14493
14494 ;
14495 return 0;
14496 }
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 ac_cv_header_stdbool_h=yes
14500 else
14501 ac_cv_header_stdbool_h=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14506 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14507 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14508 if test "x$ac_cv_type__Bool" = x""yes; then :
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE__BOOL 1
14512 _ACEOF
14513
14514
14515 fi
14516
14517
14518
14519 REPLACE_NULL=0;
14520 HAVE_WCHAR_T=1;
14521 STDDEF_H='';
14522
14523
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14525 $as_echo_n "checking for wchar_t... " >&6; }
14526 if test "${gt_cv_c_wchar_t+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14528 else
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <stddef.h>
14532 wchar_t foo = (wchar_t)'\0';
14533 int
14534 main ()
14535 {
14536
14537 ;
14538 return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_compile "$LINENO"; then :
14542 gt_cv_c_wchar_t=yes
14543 else
14544 gt_cv_c_wchar_t=no
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14549 $as_echo "$gt_cv_c_wchar_t" >&6; }
14550 if test $gt_cv_c_wchar_t = yes; then
14551
14552 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14553
14554 fi
14555
14556
14557 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14558 "
14559 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
14560
14561 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14562
14563 fi
14564
14565
14566
14567
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14569 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14570 if test "${ac_cv_c_restrict+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 ac_cv_c_restrict=no
14574 # The order here caters to the fact that C++ does not require restrict.
14575 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14578 typedef int * int_ptr;
14579 int foo (int_ptr $ac_kw ip) {
14580 return ip[0];
14581 }
14582 int
14583 main ()
14584 {
14585 int s[1];
14586 int * $ac_kw t = s;
14587 t[0] = 0;
14588 return foo(t)
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 ac_cv_c_restrict=$ac_kw
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 test "$ac_cv_c_restrict" != no && break
14598 done
14599
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14602 $as_echo "$ac_cv_c_restrict" >&6; }
14603
14604 case $ac_cv_c_restrict in
14605 restrict) ;;
14606 no) $as_echo "#define restrict /**/" >>confdefs.h
14607 ;;
14608 *) cat >>confdefs.h <<_ACEOF
14609 #define restrict $ac_cv_c_restrict
14610 _ACEOF
14611 ;;
14612 esac
14613
14614
14615
14616
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14619 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14620 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625 #include <time.h>
14626
14627 int
14628 main ()
14629 {
14630 static struct timespec x; x.tv_sec = x.tv_nsec;
14631 ;
14632 return 0;
14633 }
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 gl_cv_sys_struct_timespec_in_time_h=yes
14637 else
14638 gl_cv_sys_struct_timespec_in_time_h=no
14639 fi
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14643 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14644
14645 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14646 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14647 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14648 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14649 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14650 else
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14652 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14653 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 #include <sys/time.h>
14659
14660 int
14661 main ()
14662 {
14663 static struct timespec x; x.tv_sec = x.tv_nsec;
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_compile "$LINENO"; then :
14669 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14670 else
14671 gl_cv_sys_struct_timespec_in_sys_time_h=no
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14676 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14677 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14679 else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14681 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14682 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 #include <pthread.h>
14688
14689 int
14690 main ()
14691 {
14692 static struct timespec x; x.tv_sec = x.tv_nsec;
14693 ;
14694 return 0;
14695 }
14696 _ACEOF
14697 if ac_fn_c_try_compile "$LINENO"; then :
14698 gl_cv_sys_struct_timespec_in_pthread_h=yes
14699 else
14700 gl_cv_sys_struct_timespec_in_pthread_h=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 fi
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14705 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14706 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14707 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14708 fi
14709 fi
14710 fi
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726 if test $gl_cv_have_include_next = yes; then
14727 gl_cv_next_time_h='<'time.h'>'
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14730 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14731 if test "${gl_cv_next_time_h+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14733 else
14734
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 #include <time.h>
14738
14739 _ACEOF
14740 case "$host_os" in
14741 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14742 *) gl_absname_cpp="$ac_cpp" ;;
14743 esac
14744 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14745 sed -n '\#/time.h#{
14746 s#.*"\(.*/time.h\)".*#\1#
14747 s#^/[^/]#//&#
14748 p
14749 q
14750 }'`'"'
14751
14752
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14755 $as_echo "$gl_cv_next_time_h" >&6; }
14756 fi
14757 NEXT_TIME_H=$gl_cv_next_time_h
14758
14759 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14761 gl_next_as_first_directive='<'time.h'>'
14762 else
14763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14764 gl_next_as_first_directive=$gl_cv_next_time_h
14765 fi
14766 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14767
14768
14769
14770
14771
14772
14773 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14774 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
14775 ac_have_decl=1
14776 else
14777 ac_have_decl=0
14778 fi
14779
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14782 _ACEOF
14783
14784
14785
14786
14787 if false; then
14788 GL_COND_LIBTOOL_TRUE=
14789 GL_COND_LIBTOOL_FALSE='#'
14790 else
14791 GL_COND_LIBTOOL_TRUE='#'
14792 GL_COND_LIBTOOL_FALSE=
14793 fi
14794
14795 gl_cond_libtool=false
14796 gl_libdeps=
14797 gl_ltlibdeps=
14798 gl_m4_base='m4'
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808 gl_source_base='lib'
14809 # Code from module arg-nonnull:
14810 # Code from module c++defs:
14811 # Code from module dtoastr:
14812
14813 # Code from module extensions:
14814 # Code from module getopt-gnu:
14815
14816
14817
14818
14819
14820
14821 # Code from module getopt-posix:
14822
14823
14824
14825
14826
14827 if test -n "$gl_replace_getopt"; then :
14828
14829
14830
14831 GETOPT_H=getopt.h
14832
14833 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14834
14835
14836
14837 GNULIB_UNISTD_H_GETOPT=1
14838
14839
14840
14841
14842
14843
14844
14845
14846 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14857
14858
14859
14860
14861
14862
14863 fi
14864
14865
14866 # Code from module gettext-h:
14867
14868
14869 # Code from module ignore-value:
14870
14871 # Code from module include_next:
14872 # Code from module intprops:
14873 # Code from module mktime:
14874
14875
14876
14877
14878
14879 if test $APPLE_UNIVERSAL_BUILD = 1; then
14880 # A universal build on Apple MacOS X platforms.
14881 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14882 # But we need a configuration result that is valid in both modes.
14883 ac_cv_func_working_mktime=no
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14886 $as_echo_n "checking for working mktime... " >&6; }
14887 if test "${ac_cv_func_working_mktime+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 if test "$cross_compiling" = yes; then :
14891 ac_cv_func_working_mktime=no
14892 else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895 /* Test program from Paul Eggert and Tony Leneis. */
14896 #include <limits.h>
14897 #include <stdlib.h>
14898 #include <time.h>
14899
14900 #ifdef HAVE_UNISTD_H
14901 # include <unistd.h>
14902 #endif
14903
14904 #ifndef HAVE_ALARM
14905 # define alarm(X) /* empty */
14906 #endif
14907
14908 /* Work around redefinition to rpl_putenv by other config tests. */
14909 #undef putenv
14910
14911 static time_t time_t_max;
14912 static time_t time_t_min;
14913
14914 /* Values we'll use to set the TZ environment variable. */
14915 static char *tz_strings[] = {
14916 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14917 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14918 };
14919 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14920
14921 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14922 Based on a problem report from Andreas Jaeger. */
14923 static int
14924 spring_forward_gap ()
14925 {
14926 /* glibc (up to about 1998-10-07) failed this test. */
14927 struct tm tm;
14928
14929 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14930 instead of "TZ=America/Vancouver" in order to detect the bug even
14931 on systems that don't support the Olson extension, or don't have the
14932 full zoneinfo tables installed. */
14933 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14934
14935 tm.tm_year = 98;
14936 tm.tm_mon = 3;
14937 tm.tm_mday = 5;
14938 tm.tm_hour = 2;
14939 tm.tm_min = 0;
14940 tm.tm_sec = 0;
14941 tm.tm_isdst = -1;
14942 return mktime (&tm) != (time_t) -1;
14943 }
14944
14945 static int
14946 mktime_test1 (time_t now)
14947 {
14948 struct tm *lt;
14949 return ! (lt = localtime (&now)) || mktime (lt) == now;
14950 }
14951
14952 static int
14953 mktime_test (time_t now)
14954 {
14955 return (mktime_test1 (now)
14956 && mktime_test1 ((time_t) (time_t_max - now))
14957 && mktime_test1 ((time_t) (time_t_min + now)));
14958 }
14959
14960 static int
14961 irix_6_4_bug ()
14962 {
14963 /* Based on code from Ariel Faigon. */
14964 struct tm tm;
14965 tm.tm_year = 96;
14966 tm.tm_mon = 3;
14967 tm.tm_mday = 0;
14968 tm.tm_hour = 0;
14969 tm.tm_min = 0;
14970 tm.tm_sec = 0;
14971 tm.tm_isdst = -1;
14972 mktime (&tm);
14973 return tm.tm_mon == 2 && tm.tm_mday == 31;
14974 }
14975
14976 static int
14977 bigtime_test (int j)
14978 {
14979 struct tm tm;
14980 time_t now;
14981 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14982 now = mktime (&tm);
14983 if (now != (time_t) -1)
14984 {
14985 struct tm *lt = localtime (&now);
14986 if (! (lt
14987 && lt->tm_year == tm.tm_year
14988 && lt->tm_mon == tm.tm_mon
14989 && lt->tm_mday == tm.tm_mday
14990 && lt->tm_hour == tm.tm_hour
14991 && lt->tm_min == tm.tm_min
14992 && lt->tm_sec == tm.tm_sec
14993 && lt->tm_yday == tm.tm_yday
14994 && lt->tm_wday == tm.tm_wday
14995 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14996 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14997 return 0;
14998 }
14999 return 1;
15000 }
15001
15002 static int
15003 year_2050_test ()
15004 {
15005 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15006 ignoring leap seconds. */
15007 unsigned long int answer = 2527315200UL;
15008
15009 struct tm tm;
15010 time_t t;
15011 tm.tm_year = 2050 - 1900;
15012 tm.tm_mon = 2 - 1;
15013 tm.tm_mday = 1;
15014 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15015 tm.tm_isdst = -1;
15016
15017 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15018 instead of "TZ=America/Vancouver" in order to detect the bug even
15019 on systems that don't support the Olson extension, or don't have the
15020 full zoneinfo tables installed. */
15021 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15022
15023 t = mktime (&tm);
15024
15025 /* Check that the result is either a failure, or close enough
15026 to the correct answer that we can assume the discrepancy is
15027 due to leap seconds. */
15028 return (t == (time_t) -1
15029 || (0 < t && answer - 120 <= t && t <= answer + 120));
15030 }
15031
15032 int
15033 main ()
15034 {
15035 int result = 0;
15036 time_t t, delta;
15037 int i, j;
15038 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15039 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15040
15041 /* This test makes some buggy mktime implementations loop.
15042 Give up after 60 seconds; a mktime slower than that
15043 isn't worth using anyway. */
15044 alarm (60);
15045
15046 time_t_max = (! time_t_signed
15047 ? (time_t) -1
15048 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15049 * 2 + 1));
15050 time_t_min = (! time_t_signed
15051 ? (time_t) 0
15052 : time_t_signed_magnitude
15053 ? ~ (time_t) 0
15054 : ~ time_t_max);
15055
15056 delta = time_t_max / 997; /* a suitable prime number */
15057 for (i = 0; i < N_STRINGS; i++)
15058 {
15059 if (tz_strings[i])
15060 putenv (tz_strings[i]);
15061
15062 for (t = 0; t <= time_t_max - delta; t += delta)
15063 if (! mktime_test (t))
15064 result |= 1;
15065 if (! (mktime_test ((time_t) 1)
15066 && mktime_test ((time_t) (60 * 60))
15067 && mktime_test ((time_t) (60 * 60 * 24))))
15068 result |= 2;
15069
15070 for (j = 1; ; j <<= 1)
15071 if (! bigtime_test (j))
15072 result |= 4;
15073 else if (INT_MAX / 2 < j)
15074 break;
15075 if (! bigtime_test (INT_MAX))
15076 result |= 8;
15077 }
15078 if (! irix_6_4_bug ())
15079 result |= 16;
15080 if (! spring_forward_gap ())
15081 result |= 32;
15082 if (! year_2050_test ())
15083 result |= 64;
15084 return result;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_run "$LINENO"; then :
15088 ac_cv_func_working_mktime=yes
15089 else
15090 ac_cv_func_working_mktime=no
15091 fi
15092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15093 conftest.$ac_objext conftest.beam conftest.$ac_ext
15094 fi
15095
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15098 $as_echo "$ac_cv_func_working_mktime" >&6; }
15099 if test $ac_cv_func_working_mktime = no; then
15100
15101
15102
15103
15104
15105
15106
15107
15108 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15109
15110 fi
15111
15112 if test $ac_cv_func_working_mktime = no; then
15113 REPLACE_MKTIME=1
15114
15115
15116
15117 else
15118 REPLACE_MKTIME=0
15119 fi
15120
15121
15122
15123
15124 GNULIB_MKTIME=1
15125
15126
15127
15128 # Code from module multiarch:
15129
15130 # Code from module stdbool:
15131
15132
15133
15134 # Define two additional variables used in the Makefile substitution.
15135
15136 if test "$ac_cv_header_stdbool_h" = yes; then
15137 STDBOOL_H=''
15138 else
15139 STDBOOL_H='stdbool.h'
15140 fi
15141
15142
15143 if test "$ac_cv_type__Bool" = yes; then
15144 HAVE__BOOL=1
15145 else
15146 HAVE__BOOL=0
15147 fi
15148
15149
15150 # Code from module stddef:
15151
15152
15153
15154 if test $gt_cv_c_wchar_t = no; then
15155 HAVE_WCHAR_T=0
15156 STDDEF_H=stddef.h
15157 fi
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15159 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15160 if test "${gl_cv_decl_null_works+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #include <stddef.h>
15166 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15167
15168 int
15169 main ()
15170 {
15171
15172 ;
15173 return 0;
15174 }
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"; then :
15177 gl_cv_decl_null_works=yes
15178 else
15179 gl_cv_decl_null_works=no
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15184 $as_echo "$gl_cv_decl_null_works" >&6; }
15185 if test $gl_cv_decl_null_works = no; then
15186 REPLACE_NULL=1
15187 STDDEF_H=stddef.h
15188 fi
15189 if test -n "$STDDEF_H"; then
15190
15191
15192
15193
15194
15195
15196
15197
15198 if test $gl_cv_have_include_next = yes; then
15199 gl_cv_next_stddef_h='<'stddef.h'>'
15200 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15202 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15203 if test "${gl_cv_next_stddef_h+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 #include <stddef.h>
15210
15211 _ACEOF
15212 case "$host_os" in
15213 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15214 *) gl_absname_cpp="$ac_cpp" ;;
15215 esac
15216 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15217 sed -n '\#/stddef.h#{
15218 s#.*"\(.*/stddef.h\)".*#\1#
15219 s#^/[^/]#//&#
15220 p
15221 q
15222 }'`'"'
15223
15224
15225 fi
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15227 $as_echo "$gl_cv_next_stddef_h" >&6; }
15228 fi
15229 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15230
15231 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15233 gl_next_as_first_directive='<'stddef.h'>'
15234 else
15235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15236 gl_next_as_first_directive=$gl_cv_next_stddef_h
15237 fi
15238 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15239
15240
15241
15242
15243 fi
15244
15245 # Code from module strftime:
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15257
15258
15259 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15260
15261
15262
15263
15264
15265
15266
15267 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15268
15269
15270
15271 # Code from module time:
15272
15273
15274
15275 # Code from module time_r:
15276
15277
15278
15279
15280
15281
15282
15283 if test $ac_cv_have_decl_localtime_r = no; then
15284 HAVE_DECL_LOCALTIME_R=0
15285 fi
15286
15287
15288 if test $ac_cv_func_localtime_r = yes; then
15289 HAVE_LOCALTIME_R=1
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15291 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15292 if test "${gl_cv_time_r_posix+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297 #include <time.h>
15298 int
15299 main ()
15300 {
15301 /* We don't need to append 'restrict's to the argument types,
15302 even though the POSIX signature has the 'restrict's,
15303 since C99 says they can't affect type compatibility. */
15304 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15305 if (ptr) return 0;
15306 /* Check the return type is a pointer.
15307 On HP-UX 10 it is 'int'. */
15308 *localtime_r (0, 0);
15309 ;
15310 return 0;
15311 }
15312
15313 _ACEOF
15314 if ac_fn_c_try_compile "$LINENO"; then :
15315 gl_cv_time_r_posix=yes
15316 else
15317 gl_cv_time_r_posix=no
15318 fi
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15323 $as_echo "$gl_cv_time_r_posix" >&6; }
15324 if test $gl_cv_time_r_posix = yes; then
15325 REPLACE_LOCALTIME_R=0
15326 else
15327 REPLACE_LOCALTIME_R=1
15328 fi
15329 else
15330 HAVE_LOCALTIME_R=0
15331 fi
15332 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15333
15334
15335
15336
15337
15338
15339
15340
15341 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15342
15343
15344 :
15345
15346 fi
15347
15348
15349
15350
15351 GNULIB_TIME_R=1
15352
15353
15354
15355 # Code from module unistd:
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 if test $gl_cv_have_include_next = yes; then
15370 gl_cv_next_unistd_h='<'unistd.h'>'
15371 else
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15373 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15374 if test "${gl_cv_next_unistd_h+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377
15378 if test $ac_cv_header_unistd_h = yes; then
15379
15380
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15383 #include <unistd.h>
15384
15385 _ACEOF
15386 case "$host_os" in
15387 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15388 *) gl_absname_cpp="$ac_cpp" ;;
15389 esac
15390 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15391 sed -n '\#/unistd.h#{
15392 s#.*"\(.*/unistd.h\)".*#\1#
15393 s#^/[^/]#//&#
15394 p
15395 q
15396 }'`'"'
15397 else
15398 gl_cv_next_unistd_h='<'unistd.h'>'
15399 fi
15400
15401
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15404 $as_echo "$gl_cv_next_unistd_h" >&6; }
15405 fi
15406 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15407
15408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15410 gl_next_as_first_directive='<'unistd.h'>'
15411 else
15412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15413 gl_next_as_first_directive=$gl_cv_next_unistd_h
15414 fi
15415 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15416
15417
15418
15419
15420 if test $ac_cv_header_unistd_h = yes; then
15421 HAVE_UNISTD_H=1
15422 else
15423 HAVE_UNISTD_H=0
15424 fi
15425
15426
15427
15428
15429 # Code from module warn-on-use:
15430 # End of code from modules
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440 gltests_libdeps=
15441 gltests_ltlibdeps=
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451 gl_source_base='tests'
15452 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15453
15454 gl_module_indicator_condition=$gltests_WITNESS
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464 LIBGNU_LIBDEPS="$gl_libdeps"
15465
15466 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15467
15468
15469
15470 # UNIX98 PTYs.
15471 for ac_func in grantpt
15472 do :
15473 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15474 if test "x$ac_cv_func_grantpt" = x""yes; then :
15475 cat >>confdefs.h <<_ACEOF
15476 #define HAVE_GRANTPT 1
15477 _ACEOF
15478
15479 fi
15480 done
15481
15482
15483 # PTY-related GNU extensions.
15484 for ac_func in getpt
15485 do :
15486 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15487 if test "x$ac_cv_func_getpt" = x""yes; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define HAVE_GETPT 1
15490 _ACEOF
15491
15492 fi
15493 done
15494
15495
15496 # Check this now, so that we will NOT find the above functions in ncurses.
15497 # That is because we have not set up to link ncurses in lib-src.
15498 # It's better to believe a function is not available
15499 # than to expect to find it in ncurses.
15500 # Also we need tputs and friends to be able to build at all.
15501 have_tputs_et_al=true
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15503 $as_echo_n "checking for library containing tputs... " >&6; }
15504 if test "${ac_cv_search_tputs+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 ac_func_search_save_LIBS=$LIBS
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15514 #ifdef __cplusplus
15515 extern "C"
15516 #endif
15517 char tputs ();
15518 int
15519 main ()
15520 {
15521 return tputs ();
15522 ;
15523 return 0;
15524 }
15525 _ACEOF
15526 for ac_lib in '' ncurses terminfo termcap; do
15527 if test -z "$ac_lib"; then
15528 ac_res="none required"
15529 else
15530 ac_res=-l$ac_lib
15531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15532 fi
15533 if ac_fn_c_try_link "$LINENO"; then :
15534 ac_cv_search_tputs=$ac_res
15535 fi
15536 rm -f core conftest.err conftest.$ac_objext \
15537 conftest$ac_exeext
15538 if test "${ac_cv_search_tputs+set}" = set; then :
15539 break
15540 fi
15541 done
15542 if test "${ac_cv_search_tputs+set}" = set; then :
15543
15544 else
15545 ac_cv_search_tputs=no
15546 fi
15547 rm conftest.$ac_ext
15548 LIBS=$ac_func_search_save_LIBS
15549 fi
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15551 $as_echo "$ac_cv_search_tputs" >&6; }
15552 ac_res=$ac_cv_search_tputs
15553 if test "$ac_res" != no; then :
15554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15555
15556 else
15557 have_tputs_et_al=false
15558 fi
15559
15560 if test "$have_tputs_et_al" != true; then
15561 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15562 Maybe some development libraries/packages are missing? Try installing
15563 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15564 fi
15565 # Must define this when any termcap library is found.
15566
15567 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15568
15569 ## FIXME This was the cpp logic, but I am not sure it is right.
15570 ## The above test has not necessarily found libncurses.
15571 HAVE_LIBNCURSES=yes
15572
15573 ## Use terminfo instead of termcap?
15574 ## Note only system files NOT using terminfo are:
15575 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15576 ## darwin|gnu without ncurses.
15577 TERMINFO=no
15578 LIBS_TERMCAP=
15579 case "$opsys" in
15580 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15581 ## hpux10-20: Use the system provided termcap(3) library.
15582 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15583 ## is necessary. Otherwise Emacs dumps core when run -nw.
15584 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15585
15586 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15587 ## The ncurses library has been moved out of the System framework in
15588 ## Mac OS X 10.2. So if configure detects it, set the command-line
15589 ## option to use it.
15590 darwin|gnu*)
15591 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15592 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15593 TERMINFO=yes
15594 LIBS_TERMCAP="-lncurses"
15595 fi
15596 ;;
15597
15598 freebsd)
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15600 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15601 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <osreldate.h>
15607 int
15608 main ()
15609 {
15610 #if __FreeBSD_version < 400000
15611 fail;
15612 #endif
15613
15614 ;
15615 return 0;
15616 }
15617 _ACEOF
15618 if ac_fn_c_try_link "$LINENO"; then :
15619 emacs_cv_freebsd_terminfo=yes
15620 else
15621 emacs_cv_freebsd_terminfo=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 fi
15626
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15629 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15630
15631 if test $emacs_cv_freebsd_terminfo = yes; then
15632 TERMINFO=yes
15633 LIBS_TERMCAP="-lncurses"
15634 else
15635 LIBS_TERMCAP="-ltermcap"
15636 fi
15637 ;;
15638
15639 netbsd)
15640 if test $ac_cv_search_tputs = -lterminfo; then
15641 TERMINFO=yes
15642 LIBS_TERMCAP="-lterminfo"
15643 else
15644 LIBS_TERMCAP="-ltermcap"
15645 fi
15646 ;;
15647
15648 esac
15649
15650 case "$opsys" in
15651 ## hpux: Make sure we get select from libc rather than from libcurses
15652 ## because libcurses on HPUX 10.10 has a broken version of select.
15653 ## We used to use -lc -lcurses, but this may be cleaner.
15654 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15655
15656 openbsd) LIBS_TERMCAP="-lncurses" ;;
15657
15658 ## Must use system termcap, if we use any termcap. It does special things.
15659 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15660 esac
15661
15662 TERMCAP_OBJ=tparam.o
15663 if test $TERMINFO = yes; then
15664
15665 $as_echo "#define TERMINFO 1" >>confdefs.h
15666
15667
15668 ## Default used to be -ltermcap. Add a case above if need something else.
15669 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15670
15671 TERMCAP_OBJ=terminfo.o
15672 fi
15673
15674
15675
15676
15677 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15678 resolv=no
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 #include <netinet/in.h>
15682 #include <arpa/nameser.h>
15683 #include <resolv.h>
15684 int
15685 main ()
15686 {
15687 return res_init();
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 if ac_fn_c_try_link "$LINENO"; then :
15693 have_res_init=yes
15694 else
15695 have_res_init=no
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 if test "$have_res_init" = no; then
15700 OLIBS="$LIBS"
15701 LIBS="$LIBS -lresolv"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15703 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #include <netinet/in.h>
15707 #include <arpa/nameser.h>
15708 #include <resolv.h>
15709 int
15710 main ()
15711 {
15712 return res_init();
15713 ;
15714 return 0;
15715 }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"; then :
15718 have_res_init=yes
15719 else
15720 have_res_init=no
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15725 $as_echo "$have_res_init" >&6; }
15726 if test "$have_res_init" = yes ; then
15727 resolv=yes
15728 fi
15729 LIBS="$OLIBS"
15730 fi
15731
15732 if test "$have_res_init" = yes; then
15733
15734 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15735
15736 fi
15737
15738 # Do we need the Hesiod library to provide the support routines?
15739 LIBHESIOD=
15740 if test "$with_hesiod" != no ; then
15741 # Don't set $LIBS here -- see comments above. FIXME which comments?
15742 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15743 if test "x$ac_cv_func_res_send" = x""yes; then :
15744
15745 else
15746 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15747 if test "x$ac_cv_func___res_send" = x""yes; then :
15748
15749 else
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15751 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15752 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 ac_check_lib_save_LIBS=$LIBS
15756 LIBS="-lresolv $LIBS"
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15763 #ifdef __cplusplus
15764 extern "C"
15765 #endif
15766 char res_send ();
15767 int
15768 main ()
15769 {
15770 return res_send ();
15771 ;
15772 return 0;
15773 }
15774 _ACEOF
15775 if ac_fn_c_try_link "$LINENO"; then :
15776 ac_cv_lib_resolv_res_send=yes
15777 else
15778 ac_cv_lib_resolv_res_send=no
15779 fi
15780 rm -f core conftest.err conftest.$ac_objext \
15781 conftest$ac_exeext conftest.$ac_ext
15782 LIBS=$ac_check_lib_save_LIBS
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15785 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15786 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15787 resolv=yes
15788 else
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15790 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15791 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-lresolv $LIBS"
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char __res_send ();
15806 int
15807 main ()
15808 {
15809 return __res_send ();
15810 ;
15811 return 0;
15812 }
15813 _ACEOF
15814 if ac_fn_c_try_link "$LINENO"; then :
15815 ac_cv_lib_resolv___res_send=yes
15816 else
15817 ac_cv_lib_resolv___res_send=no
15818 fi
15819 rm -f core conftest.err conftest.$ac_objext \
15820 conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15822 fi
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15824 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15825 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15826 resolv=yes
15827 fi
15828
15829 fi
15830
15831 fi
15832
15833 fi
15834
15835 if test "$resolv" = yes ; then
15836 RESOLVLIB=-lresolv
15837 else
15838 RESOLVLIB=
15839 fi
15840 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15841 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15842
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15845 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15846 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15847 $as_echo_n "(cached) " >&6
15848 else
15849 ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lhesiod $RESOLVLIB $LIBS"
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853
15854 /* Override any GCC internal prototype to avoid an error.
15855 Use char because int might match the return type of a GCC
15856 builtin and then its argument prototype would still apply. */
15857 #ifdef __cplusplus
15858 extern "C"
15859 #endif
15860 char hes_getmailhost ();
15861 int
15862 main ()
15863 {
15864 return hes_getmailhost ();
15865 ;
15866 return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_link "$LINENO"; then :
15870 ac_cv_lib_hesiod_hes_getmailhost=yes
15871 else
15872 ac_cv_lib_hesiod_hes_getmailhost=no
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
15876 LIBS=$ac_check_lib_save_LIBS
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15879 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15880 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15881 hesiod=yes
15882 else
15883 :
15884 fi
15885
15886 fi
15887
15888
15889 if test x"$hesiod" = xyes; then
15890
15891 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15892
15893 LIBHESIOD=-lhesiod
15894 fi
15895 fi
15896
15897
15898 # Do we need libresolv (due to res_init or Hesiod)?
15899 if test "$resolv" = yes ; then
15900
15901 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15902
15903 LIBRESOLV=-lresolv
15904 else
15905 LIBRESOLV=
15906 fi
15907
15908
15909 # These tell us which Kerberos-related libraries to use.
15910 COM_ERRLIB=
15911 CRYPTOLIB=
15912 KRB5LIB=
15913 DESLIB=
15914 KRB4LIB=
15915
15916 if test "${with_kerberos}" != no; then
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15918 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15919 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15920 $as_echo_n "(cached) " >&6
15921 else
15922 ac_check_lib_save_LIBS=$LIBS
15923 LIBS="-lcom_err $LIBS"
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926
15927 /* Override any GCC internal prototype to avoid an error.
15928 Use char because int might match the return type of a GCC
15929 builtin and then its argument prototype would still apply. */
15930 #ifdef __cplusplus
15931 extern "C"
15932 #endif
15933 char com_err ();
15934 int
15935 main ()
15936 {
15937 return com_err ();
15938 ;
15939 return 0;
15940 }
15941 _ACEOF
15942 if ac_fn_c_try_link "$LINENO"; then :
15943 ac_cv_lib_com_err_com_err=yes
15944 else
15945 ac_cv_lib_com_err_com_err=no
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15950 fi
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15952 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15953 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15954 have_com_err=yes
15955 else
15956 have_com_err=no
15957 fi
15958
15959 if test $have_com_err = yes; then
15960 COM_ERRLIB=-lcom_err
15961 LIBS="$COM_ERRLIB $LIBS"
15962
15963 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15964
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15967 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15968 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-lcrypto $LIBS"
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char mit_des_cbc_encrypt ();
15983 int
15984 main ()
15985 {
15986 return mit_des_cbc_encrypt ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"; then :
15992 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15993 else
15994 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15998 LIBS=$ac_check_lib_save_LIBS
15999 fi
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16001 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16002 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
16003 have_crypto=yes
16004 else
16005 have_crypto=no
16006 fi
16007
16008 if test $have_crypto = yes; then
16009 CRYPTOLIB=-lcrypto
16010 LIBS="$CRYPTOLIB $LIBS"
16011
16012 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16013
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16016 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16017 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16020 ac_check_lib_save_LIBS=$LIBS
16021 LIBS="-lk5crypto $LIBS"
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply. */
16028 #ifdef __cplusplus
16029 extern "C"
16030 #endif
16031 char mit_des_cbc_encrypt ();
16032 int
16033 main ()
16034 {
16035 return mit_des_cbc_encrypt ();
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 if ac_fn_c_try_link "$LINENO"; then :
16041 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16042 else
16043 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16044 fi
16045 rm -f core conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16047 LIBS=$ac_check_lib_save_LIBS
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16050 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16051 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
16052 have_k5crypto=yes
16053 else
16054 have_k5crypto=no
16055 fi
16056
16057 if test $have_k5crypto = yes; then
16058 CRYPTOLIB=-lk5crypto
16059 LIBS="$CRYPTOLIB $LIBS"
16060
16061 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16062
16063 fi
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16065 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16066 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 ac_check_lib_save_LIBS=$LIBS
16070 LIBS="-lkrb5 $LIBS"
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073
16074 /* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16077 #ifdef __cplusplus
16078 extern "C"
16079 #endif
16080 char krb5_init_context ();
16081 int
16082 main ()
16083 {
16084 return krb5_init_context ();
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 if ac_fn_c_try_link "$LINENO"; then :
16090 ac_cv_lib_krb5_krb5_init_context=yes
16091 else
16092 ac_cv_lib_krb5_krb5_init_context=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext \
16095 conftest$ac_exeext conftest.$ac_ext
16096 LIBS=$ac_check_lib_save_LIBS
16097 fi
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16099 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16100 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
16101 have_krb5=yes
16102 else
16103 have_krb5=no
16104 fi
16105
16106 if test $have_krb5=yes; then
16107 KRB5LIB=-lkrb5
16108 LIBS="$KRB5LIB $LIBS"
16109
16110 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16111
16112 fi
16113 if test "${with_kerberos5}" = no; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16115 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16116 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 ac_check_lib_save_LIBS=$LIBS
16120 LIBS="-ldes425 $LIBS"
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16127 #ifdef __cplusplus
16128 extern "C"
16129 #endif
16130 char des_cbc_encrypt ();
16131 int
16132 main ()
16133 {
16134 return des_cbc_encrypt ();
16135 ;
16136 return 0;
16137 }
16138 _ACEOF
16139 if ac_fn_c_try_link "$LINENO"; then :
16140 ac_cv_lib_des425_des_cbc_encrypt=yes
16141 else
16142 ac_cv_lib_des425_des_cbc_encrypt=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 LIBS=$ac_check_lib_save_LIBS
16147 fi
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16149 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16150 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
16151 have_des425=yes
16152 else
16153 have_des425=no
16154 fi
16155
16156 if test $have_des425 = yes; then
16157 DESLIB=-ldes425
16158 LIBS="$DESLIB $LIBS"
16159
16160 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16161
16162 else
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16164 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16165 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 ac_check_lib_save_LIBS=$LIBS
16169 LIBS="-ldes $LIBS"
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172
16173 /* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16176 #ifdef __cplusplus
16177 extern "C"
16178 #endif
16179 char des_cbc_encrypt ();
16180 int
16181 main ()
16182 {
16183 return des_cbc_encrypt ();
16184 ;
16185 return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189 ac_cv_lib_des_des_cbc_encrypt=yes
16190 else
16191 ac_cv_lib_des_des_cbc_encrypt=no
16192 fi
16193 rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16196 fi
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16198 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16199 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16200 have_des=yes
16201 else
16202 have_des=no
16203 fi
16204
16205 if test $have_des = yes; then
16206 DESLIB=-ldes
16207 LIBS="$DESLIB $LIBS"
16208
16209 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16210
16211 fi
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16214 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16215 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lkrb4 $LIBS"
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16226 #ifdef __cplusplus
16227 extern "C"
16228 #endif
16229 char krb_get_cred ();
16230 int
16231 main ()
16232 {
16233 return krb_get_cred ();
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"; then :
16239 ac_cv_lib_krb4_krb_get_cred=yes
16240 else
16241 ac_cv_lib_krb4_krb_get_cred=no
16242 fi
16243 rm -f core conftest.err conftest.$ac_objext \
16244 conftest$ac_exeext conftest.$ac_ext
16245 LIBS=$ac_check_lib_save_LIBS
16246 fi
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16248 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16249 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
16250 have_krb4=yes
16251 else
16252 have_krb4=no
16253 fi
16254
16255 if test $have_krb4 = yes; then
16256 KRB4LIB=-lkrb4
16257 LIBS="$KRB4LIB $LIBS"
16258
16259 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16260
16261 else
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16263 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16264 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 ac_check_lib_save_LIBS=$LIBS
16268 LIBS="-lkrb $LIBS"
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271
16272 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */
16275 #ifdef __cplusplus
16276 extern "C"
16277 #endif
16278 char krb_get_cred ();
16279 int
16280 main ()
16281 {
16282 return krb_get_cred ();
16283 ;
16284 return 0;
16285 }
16286 _ACEOF
16287 if ac_fn_c_try_link "$LINENO"; then :
16288 ac_cv_lib_krb_krb_get_cred=yes
16289 else
16290 ac_cv_lib_krb_krb_get_cred=no
16291 fi
16292 rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294 LIBS=$ac_check_lib_save_LIBS
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16297 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16298 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
16299 have_krb=yes
16300 else
16301 have_krb=no
16302 fi
16303
16304 if test $have_krb = yes; then
16305 KRB4LIB=-lkrb
16306 LIBS="$KRB4LIB $LIBS"
16307
16308 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16309
16310 fi
16311 fi
16312 fi
16313
16314 if test "${with_kerberos5}" != no; then
16315 for ac_header in krb5.h
16316 do :
16317 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16318 if test "x$ac_cv_header_krb5_h" = x""yes; then :
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_KRB5_H 1
16321 _ACEOF
16322 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16323 "
16324 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
16325
16326 cat >>confdefs.h <<_ACEOF
16327 #define HAVE_KRB5_ERROR_TEXT 1
16328 _ACEOF
16329
16330
16331 fi
16332 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16333 "
16334 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
16335
16336 cat >>confdefs.h <<_ACEOF
16337 #define HAVE_KRB5_ERROR_E_TEXT 1
16338 _ACEOF
16339
16340
16341 fi
16342
16343 fi
16344
16345 done
16346
16347 else
16348 for ac_header in des.h
16349 do :
16350 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16351 if test "x$ac_cv_header_des_h" = x""yes; then :
16352 cat >>confdefs.h <<_ACEOF
16353 #define HAVE_DES_H 1
16354 _ACEOF
16355
16356 else
16357 for ac_header in kerberosIV/des.h
16358 do :
16359 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16360 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
16361 cat >>confdefs.h <<_ACEOF
16362 #define HAVE_KERBEROSIV_DES_H 1
16363 _ACEOF
16364
16365 else
16366 for ac_header in kerberos/des.h
16367 do :
16368 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16369 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_KERBEROS_DES_H 1
16372 _ACEOF
16373
16374 fi
16375
16376 done
16377
16378 fi
16379
16380 done
16381
16382 fi
16383
16384 done
16385
16386 for ac_header in krb.h
16387 do :
16388 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16389 if test "x$ac_cv_header_krb_h" = x""yes; then :
16390 cat >>confdefs.h <<_ACEOF
16391 #define HAVE_KRB_H 1
16392 _ACEOF
16393
16394 else
16395 for ac_header in kerberosIV/krb.h
16396 do :
16397 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
16399 cat >>confdefs.h <<_ACEOF
16400 #define HAVE_KERBEROSIV_KRB_H 1
16401 _ACEOF
16402
16403 else
16404 for ac_header in kerberos/krb.h
16405 do :
16406 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16407 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_KERBEROS_KRB_H 1
16410 _ACEOF
16411
16412 fi
16413
16414 done
16415
16416 fi
16417
16418 done
16419
16420 fi
16421
16422 done
16423
16424 fi
16425 for ac_header in com_err.h
16426 do :
16427 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16428 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_COM_ERR_H 1
16431 _ACEOF
16432
16433 fi
16434
16435 done
16436
16437 fi
16438
16439
16440
16441
16442
16443
16444
16445 # Solaris requires -lintl if you want strerror (which calls dgettext)
16446 # to return localized messages.
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16448 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16449 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 ac_check_lib_save_LIBS=$LIBS
16453 LIBS="-lintl $LIBS"
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16460 #ifdef __cplusplus
16461 extern "C"
16462 #endif
16463 char dgettext ();
16464 int
16465 main ()
16466 {
16467 return dgettext ();
16468 ;
16469 return 0;
16470 }
16471 _ACEOF
16472 if ac_fn_c_try_link "$LINENO"; then :
16473 ac_cv_lib_intl_dgettext=yes
16474 else
16475 ac_cv_lib_intl_dgettext=no
16476 fi
16477 rm -f core conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16480 fi
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16482 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16483 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_LIBINTL 1
16486 _ACEOF
16487
16488 LIBS="-lintl $LIBS"
16489
16490 fi
16491
16492
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16494 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16495 if test "${emacs_cv_localtime_cache+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 if test x$ac_cv_func_tzset = xyes; then
16499 if test "$cross_compiling" = yes; then :
16500 # If we have tzset, assume the worst when cross-compiling.
16501 emacs_cv_localtime_cache=yes
16502 else
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 #include <time.h>
16506 char TZ_GMT0[] = "TZ=GMT0";
16507 char TZ_PST8[] = "TZ=PST8";
16508 main()
16509 {
16510 time_t now = time ((time_t *) 0);
16511 int hour_GMT0, hour_unset;
16512 if (putenv (TZ_GMT0) != 0)
16513 exit (1);
16514 hour_GMT0 = localtime (&now)->tm_hour;
16515 unsetenv("TZ");
16516 hour_unset = localtime (&now)->tm_hour;
16517 if (putenv (TZ_PST8) != 0)
16518 exit (1);
16519 if (localtime (&now)->tm_hour == hour_GMT0)
16520 exit (1);
16521 unsetenv("TZ");
16522 if (localtime (&now)->tm_hour != hour_unset)
16523 exit (1);
16524 exit (0);
16525 }
16526 _ACEOF
16527 if ac_fn_c_try_run "$LINENO"; then :
16528 emacs_cv_localtime_cache=no
16529 else
16530 emacs_cv_localtime_cache=yes
16531 fi
16532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16533 conftest.$ac_objext conftest.beam conftest.$ac_ext
16534 fi
16535
16536 else
16537 # If we lack tzset, report that localtime does not cache TZ,
16538 # since we can't invalidate the cache if we don't have tzset.
16539 emacs_cv_localtime_cache=no
16540 fi
16541 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16543 $as_echo "$emacs_cv_localtime_cache" >&6; }
16544 if test $emacs_cv_localtime_cache = yes; then
16545
16546 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16547
16548 fi
16549
16550 if test "x$HAVE_TIMEVAL" = xyes; then
16551 for ac_func in gettimeofday
16552 do :
16553 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16554 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_GETTIMEOFDAY 1
16557 _ACEOF
16558
16559 fi
16560 done
16561
16562 if test $ac_cv_func_gettimeofday = yes; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16564 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16565 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570
16571 #ifdef TIME_WITH_SYS_TIME
16572 #include <sys/time.h>
16573 #include <time.h>
16574 #else
16575 #ifdef HAVE_SYS_TIME_H
16576 #include <sys/time.h>
16577 #else
16578 #include <time.h>
16579 #endif
16580 #endif
16581 int
16582 main ()
16583 {
16584 struct timeval time;
16585 gettimeofday (&time, 0);
16586 ;
16587 return 0;
16588 }
16589 _ACEOF
16590 if ac_fn_c_try_compile "$LINENO"; then :
16591 emacs_cv_gettimeofday_two_arguments=yes
16592 else
16593 emacs_cv_gettimeofday_two_arguments=no
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16598 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16599 if test $emacs_cv_gettimeofday_two_arguments = no; then
16600
16601 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16602
16603 fi
16604 fi
16605 fi
16606
16607 ok_so_far=yes
16608 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16609 if test "x$ac_cv_func_socket" = x""yes; then :
16610
16611 else
16612 ok_so_far=no
16613 fi
16614
16615 if test $ok_so_far = yes; then
16616 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16617 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16618
16619 else
16620 ok_so_far=no
16621 fi
16622
16623
16624 fi
16625 if test $ok_so_far = yes; then
16626 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16627 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16628
16629 else
16630 ok_so_far=no
16631 fi
16632
16633
16634 fi
16635 if test $ok_so_far = yes; then
16636
16637 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16638
16639 fi
16640
16641 if test -f /usr/lpp/X11/bin/smt.exp; then
16642
16643 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16644
16645 fi
16646
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16648 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16649 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651 $as_echo "yes" >&6; }
16652
16653 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16654
16655 else
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658 fi
16659
16660 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16661 if test "x$ac_cv_type_pid_t" = x""yes; then :
16662
16663 else
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define pid_t int
16667 _ACEOF
16668
16669 fi
16670
16671 for ac_header in vfork.h
16672 do :
16673 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16674 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_VFORK_H 1
16677 _ACEOF
16678
16679 fi
16680
16681 done
16682
16683 for ac_func in fork vfork
16684 do :
16685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16688 cat >>confdefs.h <<_ACEOF
16689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16691
16692 fi
16693 done
16694
16695 if test "x$ac_cv_func_fork" = xyes; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16697 $as_echo_n "checking for working fork... " >&6; }
16698 if test "${ac_cv_func_fork_works+set}" = set; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 if test "$cross_compiling" = yes; then :
16702 ac_cv_func_fork_works=cross
16703 else
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 $ac_includes_default
16707 int
16708 main ()
16709 {
16710
16711 /* By Ruediger Kuhlmann. */
16712 return fork () < 0;
16713
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_run "$LINENO"; then :
16719 ac_cv_func_fork_works=yes
16720 else
16721 ac_cv_func_fork_works=no
16722 fi
16723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16724 conftest.$ac_objext conftest.beam conftest.$ac_ext
16725 fi
16726
16727 fi
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16729 $as_echo "$ac_cv_func_fork_works" >&6; }
16730
16731 else
16732 ac_cv_func_fork_works=$ac_cv_func_fork
16733 fi
16734 if test "x$ac_cv_func_fork_works" = xcross; then
16735 case $host in
16736 *-*-amigaos* | *-*-msdosdjgpp*)
16737 # Override, as these systems have only a dummy fork() stub
16738 ac_cv_func_fork_works=no
16739 ;;
16740 *)
16741 ac_cv_func_fork_works=yes
16742 ;;
16743 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16745 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16746 fi
16747 ac_cv_func_vfork_works=$ac_cv_func_vfork
16748 if test "x$ac_cv_func_vfork" = xyes; then
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16750 $as_echo_n "checking for working vfork... " >&6; }
16751 if test "${ac_cv_func_vfork_works+set}" = set; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 if test "$cross_compiling" = yes; then :
16755 ac_cv_func_vfork_works=cross
16756 else
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759 /* Thanks to Paul Eggert for this test. */
16760 $ac_includes_default
16761 #include <sys/wait.h>
16762 #ifdef HAVE_VFORK_H
16763 # include <vfork.h>
16764 #endif
16765 /* On some sparc systems, changes by the child to local and incoming
16766 argument registers are propagated back to the parent. The compiler
16767 is told about this with #include <vfork.h>, but some compilers
16768 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16769 static variable whose address is put into a register that is
16770 clobbered by the vfork. */
16771 static void
16772 #ifdef __cplusplus
16773 sparc_address_test (int arg)
16774 # else
16775 sparc_address_test (arg) int arg;
16776 #endif
16777 {
16778 static pid_t child;
16779 if (!child) {
16780 child = vfork ();
16781 if (child < 0) {
16782 perror ("vfork");
16783 _exit(2);
16784 }
16785 if (!child) {
16786 arg = getpid();
16787 write(-1, "", 0);
16788 _exit (arg);
16789 }
16790 }
16791 }
16792
16793 int
16794 main ()
16795 {
16796 pid_t parent = getpid ();
16797 pid_t child;
16798
16799 sparc_address_test (0);
16800
16801 child = vfork ();
16802
16803 if (child == 0) {
16804 /* Here is another test for sparc vfork register problems. This
16805 test uses lots of local variables, at least as many local
16806 variables as main has allocated so far including compiler
16807 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16808 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16809 reuse the register of parent for one of the local variables,
16810 since it will think that parent can't possibly be used any more
16811 in this routine. Assigning to the local variable will thus
16812 munge parent in the parent process. */
16813 pid_t
16814 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16815 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16816 /* Convince the compiler that p..p7 are live; otherwise, it might
16817 use the same hardware register for all 8 local variables. */
16818 if (p != p1 || p != p2 || p != p3 || p != p4
16819 || p != p5 || p != p6 || p != p7)
16820 _exit(1);
16821
16822 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16823 from child file descriptors. If the child closes a descriptor
16824 before it execs or exits, this munges the parent's descriptor
16825 as well. Test for this by closing stdout in the child. */
16826 _exit(close(fileno(stdout)) != 0);
16827 } else {
16828 int status;
16829 struct stat st;
16830
16831 while (wait(&status) != child)
16832 ;
16833 return (
16834 /* Was there some problem with vforking? */
16835 child < 0
16836
16837 /* Did the child fail? (This shouldn't happen.) */
16838 || status
16839
16840 /* Did the vfork/compiler bug occur? */
16841 || parent != getpid()
16842
16843 /* Did the file descriptor bug occur? */
16844 || fstat(fileno(stdout), &st) != 0
16845 );
16846 }
16847 }
16848 _ACEOF
16849 if ac_fn_c_try_run "$LINENO"; then :
16850 ac_cv_func_vfork_works=yes
16851 else
16852 ac_cv_func_vfork_works=no
16853 fi
16854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16855 conftest.$ac_objext conftest.beam conftest.$ac_ext
16856 fi
16857
16858 fi
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16860 $as_echo "$ac_cv_func_vfork_works" >&6; }
16861
16862 fi;
16863 if test "x$ac_cv_func_fork_works" = xcross; then
16864 ac_cv_func_vfork_works=$ac_cv_func_vfork
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16866 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16867 fi
16868
16869 if test "x$ac_cv_func_vfork_works" = xyes; then
16870
16871 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16872
16873 else
16874
16875 $as_echo "#define vfork fork" >>confdefs.h
16876
16877 fi
16878 if test "x$ac_cv_func_fork_works" = xyes; then
16879
16880 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16881
16882 fi
16883
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16886 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16887 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 #include <langinfo.h>
16893 int
16894 main ()
16895 {
16896 char* cs = nl_langinfo(CODESET);
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 if ac_fn_c_try_link "$LINENO"; then :
16902 emacs_cv_langinfo_codeset=yes
16903 else
16904 emacs_cv_langinfo_codeset=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16911 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16912 if test $emacs_cv_langinfo_codeset = yes; then
16913
16914 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16915
16916 fi
16917
16918 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16919 if test "x$ac_cv_type_size_t" = x""yes; then :
16920
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_SIZE_T 1
16923 _ACEOF
16924
16925
16926 fi
16927
16928
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16930 $as_echo_n "checking for mbstate_t... " >&6; }
16931 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16935 /* end confdefs.h. */
16936 $ac_includes_default
16937 # include <wchar.h>
16938 int
16939 main ()
16940 {
16941 mbstate_t x; return sizeof x;
16942 ;
16943 return 0;
16944 }
16945 _ACEOF
16946 if ac_fn_c_try_compile "$LINENO"; then :
16947 ac_cv_type_mbstate_t=yes
16948 else
16949 ac_cv_type_mbstate_t=no
16950 fi
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16954 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16955 if test $ac_cv_type_mbstate_t = yes; then
16956
16957 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16958
16959 else
16960
16961 $as_echo "#define mbstate_t int" >>confdefs.h
16962
16963 fi
16964
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16966 $as_echo_n "checking for C restricted array declarations... " >&6; }
16967 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16969 else
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 void fred (int x[__restrict]);
16973 int
16974 main ()
16975 {
16976
16977 ;
16978 return 0;
16979 }
16980 _ACEOF
16981 if ac_fn_c_try_compile "$LINENO"; then :
16982 emacs_cv_c_restrict_arr=yes
16983 else
16984 emacs_cv_c_restrict_arr=no
16985 fi
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 fi
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16989 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16990 if test "$emacs_cv_c_restrict_arr" = yes; then
16991
16992 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16993
16994 fi
16995
16996
16997
16998 # Set up the CFLAGS for real compilation, so we can substitute it.
16999 CFLAGS="$REAL_CFLAGS"
17000 CPPFLAGS="$REAL_CPPFLAGS"
17001
17002 ## Hack to detect a buggy GCC version.
17003 if test "x$GCC" = xyes \
17004 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17005 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17006 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17007 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17008 fi
17009
17010 version=$PACKAGE_VERSION
17011
17012 ### Specify what sort of things we'll be editing into Makefile and config.h.
17013 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17014
17015
17016 ## Unused?
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17038 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17039 ## end of LIBX_BASE, but nothing ever set it.
17040
17041
17042
17043
17044 ## Used in lwlib/Makefile.in.
17045
17046 if test -n "${machfile}"; then
17047 M_FILE="\$(srcdir)/${machfile}"
17048 else
17049 M_FILE=
17050 fi
17051 S_FILE="\$(srcdir)/${opsysfile}"
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define EMACS_CONFIGURATION "${canonical}"
17065 _ACEOF
17066
17067
17068 cat >>confdefs.h <<_ACEOF
17069 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17070 _ACEOF
17071
17072 if test -n "$machfile"; then
17073
17074 cat >>confdefs.h <<_ACEOF
17075 #define config_machfile "${machfile}"
17076 _ACEOF
17077
17078 fi
17079
17080 cat >>confdefs.h <<_ACEOF
17081 #define config_opsysfile "${opsysfile}"
17082 _ACEOF
17083
17084
17085 XMENU_OBJ=
17086 XOBJ=
17087 FONT_OBJ=
17088 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17089
17090 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17091
17092 XMENU_OBJ=xmenu.o
17093 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17094 FONT_OBJ=xfont.o
17095 if test "$HAVE_XFT" = "yes"; then
17096 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17097 elif test "$HAVE_FREETYPE" = "yes"; then
17098 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17099 fi
17100
17101 fi
17102
17103
17104
17105
17106 WIDGET_OBJ=
17107 MOTIF_LIBW=
17108 if test "${USE_X_TOOLKIT}" != "none" ; then
17109 WIDGET_OBJ=widget.o
17110
17111 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17112
17113 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17114
17115 $as_echo "#define USE_LUCID 1" >>confdefs.h
17116
17117 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17118
17119 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17120
17121 MOTIF_LIBW=-lXm
17122 case "$opsys" in
17123 gnu-linux)
17124 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17125 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17126 ;;
17127
17128 unixware)
17129 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17130 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17131 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17132 ;;
17133
17134 aix4-2)
17135 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17136 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17137 ;;
17138 esac
17139 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17140 fi
17141 fi
17142
17143
17144 TOOLKIT_LIBW=
17145 case "$USE_X_TOOLKIT" in
17146 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17147 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17148 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17149 esac
17150
17151
17152 if test "$USE_X_TOOLKIT" = "none"; then
17153 LIBXT_OTHER="\$(LIBXSM)"
17154 OLDXMENU_TARGET="really-oldXMenu"
17155 else
17156 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17157 OLDXMENU_TARGET="really-lwlib"
17158 fi
17159
17160
17161 ## The X Menu stuff is present in the X10 distribution, but missing
17162 ## from X11. If we have X10, just use the installed library;
17163 ## otherwise, use our own copy.
17164 if test "${HAVE_X11}" = "yes" ; then
17165
17166 $as_echo "#define HAVE_X11 1" >>confdefs.h
17167
17168
17169 if test "$USE_X_TOOLKIT" = "none"; then
17170 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17171 else
17172 OLDXMENU="\${lwlibdir}/liblw.a"
17173 fi
17174 LIBXMENU="\$(OLDXMENU)"
17175 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17176 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17177 else
17178 ## For a syntactically valid Makefile; not actually used for anything.
17179 ## See comments in src/Makefile.in.
17180 OLDXMENU=nothing
17181 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17182 if test "${HAVE_X_WINDOWS}" = "yes"; then
17183 LIBXMENU="-lXMenu"
17184 else
17185 LIBXMENU=
17186 fi
17187 LIBX_OTHER=
17188 OLDXMENU_DEPS=
17189 fi
17190
17191 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17192 OLDXMENU_TARGET=
17193 OLDXMENU=nothing
17194 LIBXMENU=
17195 OLDXMENU_DEPS=
17196 fi
17197
17198
17199
17200
17201
17202
17203
17204 if test "${HAVE_MENUS}" = "yes" ; then
17205
17206 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17207
17208 fi
17209
17210 if test "${GNU_MALLOC}" = "yes" ; then
17211
17212 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17213
17214 fi
17215
17216 RALLOC_OBJ=
17217 if test "${REL_ALLOC}" = "yes" ; then
17218
17219 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17220
17221
17222 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17223 fi
17224
17225
17226 if test "$opsys" = "cygwin"; then
17227 CYGWIN_OBJ="sheap.o"
17228 ## Cygwin differs because of its unexec().
17229 PRE_ALLOC_OBJ=
17230 POST_ALLOC_OBJ=lastfile.o
17231 else
17232 CYGWIN_OBJ=
17233 PRE_ALLOC_OBJ=lastfile.o
17234 POST_ALLOC_OBJ=
17235 fi
17236
17237
17238
17239
17240
17241 case "$opsys" in
17242 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17243
17244 darwin)
17245 ## The -headerpad option tells ld (see man page) to leave room at the
17246 ## end of the header for adding load commands. Needed for dumping.
17247 ## 0x690 is the total size of 30 segment load commands (at 56
17248 ## each); under Cocoa 31 commands are required.
17249 if test "$HAVE_NS" = "yes"; then
17250 libs_nsgui="-framework AppKit"
17251 headerpad_extra=6C8
17252 else
17253 libs_nsgui=
17254 headerpad_extra=690
17255 fi
17256 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17257
17258 ## This is here because src/Makefile.in did some extra fiddling around
17259 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17260 ## #ifndef LD_SWITCH_SYSTEM
17261 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17262 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17263 ## not using gcc, darwin system not on an alpha (ie darwin, since
17264 ## darwin + alpha does not occur).
17265 ## Because this was done in src/Makefile.in, the resulting part of
17266 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17267 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17268 ## rather than LD_SWITCH_SYSTEM.
17269 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17270 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17271 ;;
17272
17273 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17274 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17275 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17276 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17277 ## had different values in configure (in ac_link) and src/Makefile.in.
17278 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17279 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17280
17281 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17282 esac
17283
17284 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17285 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17286 fi
17287
17288
17289
17290
17291 LD_FIRSTFLAG=
17292 ORDINARY_LINK=
17293 case "$opsys" in
17294 ## gnu: GNU needs its own crt0.
17295 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17296
17297 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17298 ## library search parth, i.e. it won't search /usr/lib for libc and
17299 ## friends. Using -nostartfiles instead avoids this problem, and
17300 ## will also work on earlier NetBSD releases.
17301 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17302
17303 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17304 ## MkLinux/LinuxPPC needs this.
17305 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17306 gnu-*)
17307 case "$machine" in
17308 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17309 esac
17310 ;;
17311 esac
17312
17313
17314 if test "x$ORDINARY_LINK" = "xyes"; then
17315
17316 LD_FIRSTFLAG=""
17317
17318 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17319
17320
17321 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17322 ## freebsd, gnu-* not on macppc|ibms390x.
17323 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17324
17325 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17326 ## places that are difficult to figure out at make time. Fortunately,
17327 ## these same versions allow you to pass arbitrary flags on to the
17328 ## linker, so there is no reason not to use it as a linker.
17329 ##
17330 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17331 ## searching for libraries in its internal directories, so we have to
17332 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17333 LD_FIRSTFLAG="-nostdlib"
17334 fi
17335
17336 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17337 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17338
17339
17340
17341
17342 ## FIXME? The logic here is not precisely the same as that above.
17343 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17344 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17345 LIB_GCC=
17346 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17347
17348 case "$opsys" in
17349 freebsd|netbsd|openbsd) LIB_GCC= ;;
17350
17351 gnu-*)
17352 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17353 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17354 case $host_cpu in
17355 arm*)
17356 LIB_GCC="-lgcc_s"
17357 ;;
17358 *)
17359 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17360 ## immediately undefine it again and redefine it to empty.
17361 ## Was the C_SWITCH_X_SITE part really necessary?
17362 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17363 LIB_GCC=
17364 ;;
17365 esac
17366 ;;
17367
17368 ## Ask GCC where to find libgcc.a.
17369 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17370 esac
17371 fi
17372
17373
17374 TOOLTIP_SUPPORT=
17375 WINDOW_SUPPORT=
17376 ## If we're using X11/GNUstep, define some consequences.
17377 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17378
17379 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17380
17381
17382 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17383
17384 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17385 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17386
17387 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17388 test "$HAVE_X_WINDOWS" = "yes" && \
17389 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17390
17391 fi
17392
17393
17394
17395
17396
17397
17398
17399 #### Report on what we decided to do.
17400 #### Report GTK as a toolkit, even if it doesn't use Xt.
17401 #### It makes printing result more understandable as using GTK sets
17402 #### toolkit_scroll_bars to yes by default.
17403 if test "${HAVE_GTK}" = "yes"; then
17404 USE_X_TOOLKIT=GTK
17405 fi
17406
17407 and_machfile=
17408 if test -n "$machfile"; then
17409 and_machfile=" and \`${machfile}'"
17410 fi
17411
17412 echo "
17413 Configured for \`${canonical}'.
17414
17415 Where should the build process find the source code? ${srcdir}
17416 What operating system and machine description files should Emacs use?
17417 \`${opsysfile}'${and_machfile}
17418 What compiler should emacs be built with? ${CC} ${CFLAGS}
17419 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17420 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17421 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17422 What window system should Emacs use? ${window_system}
17423 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17424
17425 if test -n "${x_includes}"; then
17426 echo " Where do we find X Windows header files? ${x_includes}"
17427 else
17428 echo " Where do we find X Windows header files? Standard dirs"
17429 fi
17430 if test -n "${x_libraries}"; then
17431 echo " Where do we find X Windows libraries? ${x_libraries}"
17432 else
17433 echo " Where do we find X Windows libraries? Standard dirs"
17434 fi
17435
17436 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17437 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17438 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17439 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17440 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17441 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17442 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17443 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17444
17445 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17446 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17447 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17448 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17449 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17450 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17451
17452 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17453 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17454 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17455 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17456
17457 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17458 echo
17459
17460 if test $USE_XASSERTS = yes; then
17461 echo " Compiling with asserts turned on."
17462 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17463 fi
17464
17465 echo
17466
17467 if test "$HAVE_NS" = "yes"; then
17468 echo
17469 echo "You must run \"make install\" in order to test the built application.
17470 The installed application will go to nextstep/Emacs.app and can be
17471 run or moved from there."
17472 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17473 echo "The application will be fully self-contained."
17474 else
17475 echo "The lisp resources for the application will be installed under ${prefix}.
17476 You may need to run \"make install\" with sudo. The application will fail
17477 to run if these resources are not installed."
17478 fi
17479 echo
17480 fi
17481
17482
17483 # Remove any trailing slashes in these variables.
17484 test "${prefix}" != NONE &&
17485 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17486 test "${exec_prefix}" != NONE &&
17487 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17488
17489 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
17490
17491 ac_config_commands="$ac_config_commands default"
17492
17493 cat >confcache <<\_ACEOF
17494 # This file is a shell script that caches the results of configure
17495 # tests run on this system so they can be shared between configure
17496 # scripts and configure runs, see configure's option --config-cache.
17497 # It is not useful on other systems. If it contains results you don't
17498 # want to keep, you may remove or edit it.
17499 #
17500 # config.status only pays attention to the cache file if you give it
17501 # the --recheck option to rerun configure.
17502 #
17503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17505 # following values.
17506
17507 _ACEOF
17508
17509 # The following way of writing the cache mishandles newlines in values,
17510 # but we know of no workaround that is simple, portable, and efficient.
17511 # So, we kill variables containing newlines.
17512 # Ultrix sh set writes to stderr and can't be redirected directly,
17513 # and sets the high bit in the cache file unless we assign to the vars.
17514 (
17515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17516 eval ac_val=\$$ac_var
17517 case $ac_val in #(
17518 *${as_nl}*)
17519 case $ac_var in #(
17520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17522 esac
17523 case $ac_var in #(
17524 _ | IFS | as_nl) ;; #(
17525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17526 *) { eval $ac_var=; unset $ac_var;} ;;
17527 esac ;;
17528 esac
17529 done
17530
17531 (set) 2>&1 |
17532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17533 *${as_nl}ac_space=\ *)
17534 # `set' does not quote correctly, so add quotes: double-quote
17535 # substitution turns \\\\ into \\, and sed turns \\ into \.
17536 sed -n \
17537 "s/'/'\\\\''/g;
17538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17539 ;; #(
17540 *)
17541 # `set' quotes correctly as required by POSIX, so do not add quotes.
17542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17543 ;;
17544 esac |
17545 sort
17546 ) |
17547 sed '
17548 /^ac_cv_env_/b end
17549 t clear
17550 :clear
17551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17552 t end
17553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17554 :end' >>confcache
17555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17556 if test -w "$cache_file"; then
17557 test "x$cache_file" != "x/dev/null" &&
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17559 $as_echo "$as_me: updating cache $cache_file" >&6;}
17560 cat confcache >$cache_file
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17564 fi
17565 fi
17566 rm -f confcache
17567
17568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17569 # Let make expand exec_prefix.
17570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17571
17572 DEFS=-DHAVE_CONFIG_H
17573
17574 ac_libobjs=
17575 ac_ltlibobjs=
17576 U=
17577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17578 # 1. Remove the extension, and $U if already installed.
17579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17580 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17582 # will be set to the directory where LIBOBJS objects are built.
17583 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17584 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17585 done
17586 LIBOBJS=$ac_libobjs
17587
17588 LTLIBOBJS=$ac_ltlibobjs
17589
17590
17591 if test -n "$EXEEXT"; then
17592 am__EXEEXT_TRUE=
17593 am__EXEEXT_FALSE='#'
17594 else
17595 am__EXEEXT_TRUE='#'
17596 am__EXEEXT_FALSE=
17597 fi
17598
17599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17600 as_fn_error $? "conditional \"AMDEP\" was never defined.
17601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17602 fi
17603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17604 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17606 fi
17607
17608 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17609 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17611 fi
17612
17613 gl_libobjs=
17614 gl_ltlibobjs=
17615 if test -n "$gl_LIBOBJS"; then
17616 # Remove the extension.
17617 sed_drop_objext='s/\.o$//;s/\.obj$//'
17618 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17619 gl_libobjs="$gl_libobjs $i.$ac_objext"
17620 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17621 done
17622 fi
17623 gl_LIBOBJS=$gl_libobjs
17624
17625 gl_LTLIBOBJS=$gl_ltlibobjs
17626
17627
17628
17629 gltests_libobjs=
17630 gltests_ltlibobjs=
17631 if test -n "$gltests_LIBOBJS"; then
17632 # Remove the extension.
17633 sed_drop_objext='s/\.o$//;s/\.obj$//'
17634 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17635 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17636 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17637 done
17638 fi
17639 gltests_LIBOBJS=$gltests_libobjs
17640
17641 gltests_LTLIBOBJS=$gltests_ltlibobjs
17642
17643
17644
17645 : ${CONFIG_STATUS=./config.status}
17646 ac_write_fail=0
17647 ac_clean_files_save=$ac_clean_files
17648 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17650 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17651 as_write_fail=0
17652 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17653 #! $SHELL
17654 # Generated by $as_me.
17655 # Run this file to recreate the current configuration.
17656 # Compiler output produced by configure, useful for debugging
17657 # configure, is in config.log if it exists.
17658
17659 debug=false
17660 ac_cs_recheck=false
17661 ac_cs_silent=false
17662
17663 SHELL=\${CONFIG_SHELL-$SHELL}
17664 export SHELL
17665 _ASEOF
17666 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17667 ## -------------------- ##
17668 ## M4sh Initialization. ##
17669 ## -------------------- ##
17670
17671 # Be more Bourne compatible
17672 DUALCASE=1; export DUALCASE # for MKS sh
17673 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17674 emulate sh
17675 NULLCMD=:
17676 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17677 # is contrary to our usage. Disable this feature.
17678 alias -g '${1+"$@"}'='"$@"'
17679 setopt NO_GLOB_SUBST
17680 else
17681 case `(set -o) 2>/dev/null` in #(
17682 *posix*) :
17683 set -o posix ;; #(
17684 *) :
17685 ;;
17686 esac
17687 fi
17688
17689
17690 as_nl='
17691 '
17692 export as_nl
17693 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17694 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17697 # Prefer a ksh shell builtin over an external printf program on Solaris,
17698 # but without wasting forks for bash or zsh.
17699 if test -z "$BASH_VERSION$ZSH_VERSION" \
17700 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17701 as_echo='print -r --'
17702 as_echo_n='print -rn --'
17703 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17704 as_echo='printf %s\n'
17705 as_echo_n='printf %s'
17706 else
17707 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17708 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17709 as_echo_n='/usr/ucb/echo -n'
17710 else
17711 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17712 as_echo_n_body='eval
17713 arg=$1;
17714 case $arg in #(
17715 *"$as_nl"*)
17716 expr "X$arg" : "X\\(.*\\)$as_nl";
17717 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17718 esac;
17719 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17720 '
17721 export as_echo_n_body
17722 as_echo_n='sh -c $as_echo_n_body as_echo'
17723 fi
17724 export as_echo_body
17725 as_echo='sh -c $as_echo_body as_echo'
17726 fi
17727
17728 # The user is always right.
17729 if test "${PATH_SEPARATOR+set}" != set; then
17730 PATH_SEPARATOR=:
17731 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17732 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17733 PATH_SEPARATOR=';'
17734 }
17735 fi
17736
17737
17738 # IFS
17739 # We need space, tab and new line, in precisely that order. Quoting is
17740 # there to prevent editors from complaining about space-tab.
17741 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17742 # splitting by setting IFS to empty value.)
17743 IFS=" "" $as_nl"
17744
17745 # Find who we are. Look in the path if we contain no directory separator.
17746 case $0 in #((
17747 *[\\/]* ) as_myself=$0 ;;
17748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751 IFS=$as_save_IFS
17752 test -z "$as_dir" && as_dir=.
17753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17754 done
17755 IFS=$as_save_IFS
17756
17757 ;;
17758 esac
17759 # We did not find ourselves, most probably we were run as `sh COMMAND'
17760 # in which case we are not to be found in the path.
17761 if test "x$as_myself" = x; then
17762 as_myself=$0
17763 fi
17764 if test ! -f "$as_myself"; then
17765 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17766 exit 1
17767 fi
17768
17769 # Unset variables that we do not need and which cause bugs (e.g. in
17770 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17771 # suppresses any "Segmentation fault" message there. '((' could
17772 # trigger a bug in pdksh 5.2.14.
17773 for as_var in BASH_ENV ENV MAIL MAILPATH
17774 do eval test x\${$as_var+set} = xset \
17775 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17776 done
17777 PS1='$ '
17778 PS2='> '
17779 PS4='+ '
17780
17781 # NLS nuisances.
17782 LC_ALL=C
17783 export LC_ALL
17784 LANGUAGE=C
17785 export LANGUAGE
17786
17787 # CDPATH.
17788 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17789
17790
17791 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17792 # ----------------------------------------
17793 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17794 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17795 # script with STATUS, using 1 if that was 0.
17796 as_fn_error ()
17797 {
17798 as_status=$1; test $as_status -eq 0 && as_status=1
17799 if test "$4"; then
17800 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17801 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17802 fi
17803 $as_echo "$as_me: error: $2" >&2
17804 as_fn_exit $as_status
17805 } # as_fn_error
17806
17807
17808 # as_fn_set_status STATUS
17809 # -----------------------
17810 # Set $? to STATUS, without forking.
17811 as_fn_set_status ()
17812 {
17813 return $1
17814 } # as_fn_set_status
17815
17816 # as_fn_exit STATUS
17817 # -----------------
17818 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17819 as_fn_exit ()
17820 {
17821 set +e
17822 as_fn_set_status $1
17823 exit $1
17824 } # as_fn_exit
17825
17826 # as_fn_unset VAR
17827 # ---------------
17828 # Portably unset VAR.
17829 as_fn_unset ()
17830 {
17831 { eval $1=; unset $1;}
17832 }
17833 as_unset=as_fn_unset
17834 # as_fn_append VAR VALUE
17835 # ----------------------
17836 # Append the text in VALUE to the end of the definition contained in VAR. Take
17837 # advantage of any shell optimizations that allow amortized linear growth over
17838 # repeated appends, instead of the typical quadratic growth present in naive
17839 # implementations.
17840 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17841 eval 'as_fn_append ()
17842 {
17843 eval $1+=\$2
17844 }'
17845 else
17846 as_fn_append ()
17847 {
17848 eval $1=\$$1\$2
17849 }
17850 fi # as_fn_append
17851
17852 # as_fn_arith ARG...
17853 # ------------------
17854 # Perform arithmetic evaluation on the ARGs, and store the result in the
17855 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17856 # must be portable across $(()) and expr.
17857 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17858 eval 'as_fn_arith ()
17859 {
17860 as_val=$(( $* ))
17861 }'
17862 else
17863 as_fn_arith ()
17864 {
17865 as_val=`expr "$@" || test $? -eq 1`
17866 }
17867 fi # as_fn_arith
17868
17869
17870 if expr a : '\(a\)' >/dev/null 2>&1 &&
17871 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17872 as_expr=expr
17873 else
17874 as_expr=false
17875 fi
17876
17877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17878 as_basename=basename
17879 else
17880 as_basename=false
17881 fi
17882
17883 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17884 as_dirname=dirname
17885 else
17886 as_dirname=false
17887 fi
17888
17889 as_me=`$as_basename -- "$0" ||
17890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17891 X"$0" : 'X\(//\)$' \| \
17892 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17893 $as_echo X/"$0" |
17894 sed '/^.*\/\([^/][^/]*\)\/*$/{
17895 s//\1/
17896 q
17897 }
17898 /^X\/\(\/\/\)$/{
17899 s//\1/
17900 q
17901 }
17902 /^X\/\(\/\).*/{
17903 s//\1/
17904 q
17905 }
17906 s/.*/./; q'`
17907
17908 # Avoid depending upon Character Ranges.
17909 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17910 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17911 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17912 as_cr_digits='0123456789'
17913 as_cr_alnum=$as_cr_Letters$as_cr_digits
17914
17915 ECHO_C= ECHO_N= ECHO_T=
17916 case `echo -n x` in #(((((
17917 -n*)
17918 case `echo 'xy\c'` in
17919 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17920 xy) ECHO_C='\c';;
17921 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17922 ECHO_T=' ';;
17923 esac;;
17924 *)
17925 ECHO_N='-n';;
17926 esac
17927
17928 rm -f conf$$ conf$$.exe conf$$.file
17929 if test -d conf$$.dir; then
17930 rm -f conf$$.dir/conf$$.file
17931 else
17932 rm -f conf$$.dir
17933 mkdir conf$$.dir 2>/dev/null
17934 fi
17935 if (echo >conf$$.file) 2>/dev/null; then
17936 if ln -s conf$$.file conf$$ 2>/dev/null; then
17937 as_ln_s='ln -s'
17938 # ... but there are two gotchas:
17939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17941 # In both cases, we have to default to `cp -p'.
17942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17943 as_ln_s='cp -p'
17944 elif ln conf$$.file conf$$ 2>/dev/null; then
17945 as_ln_s=ln
17946 else
17947 as_ln_s='cp -p'
17948 fi
17949 else
17950 as_ln_s='cp -p'
17951 fi
17952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17953 rmdir conf$$.dir 2>/dev/null
17954
17955
17956 # as_fn_mkdir_p
17957 # -------------
17958 # Create "$as_dir" as a directory, including parents if necessary.
17959 as_fn_mkdir_p ()
17960 {
17961
17962 case $as_dir in #(
17963 -*) as_dir=./$as_dir;;
17964 esac
17965 test -d "$as_dir" || eval $as_mkdir_p || {
17966 as_dirs=
17967 while :; do
17968 case $as_dir in #(
17969 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17970 *) as_qdir=$as_dir;;
17971 esac
17972 as_dirs="'$as_qdir' $as_dirs"
17973 as_dir=`$as_dirname -- "$as_dir" ||
17974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17975 X"$as_dir" : 'X\(//\)[^/]' \| \
17976 X"$as_dir" : 'X\(//\)$' \| \
17977 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17978 $as_echo X"$as_dir" |
17979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17980 s//\1/
17981 q
17982 }
17983 /^X\(\/\/\)[^/].*/{
17984 s//\1/
17985 q
17986 }
17987 /^X\(\/\/\)$/{
17988 s//\1/
17989 q
17990 }
17991 /^X\(\/\).*/{
17992 s//\1/
17993 q
17994 }
17995 s/.*/./; q'`
17996 test -d "$as_dir" && break
17997 done
17998 test -z "$as_dirs" || eval "mkdir $as_dirs"
17999 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18000
18001
18002 } # as_fn_mkdir_p
18003 if mkdir -p . 2>/dev/null; then
18004 as_mkdir_p='mkdir -p "$as_dir"'
18005 else
18006 test -d ./-p && rmdir ./-p
18007 as_mkdir_p=false
18008 fi
18009
18010 if test -x / >/dev/null 2>&1; then
18011 as_test_x='test -x'
18012 else
18013 if ls -dL / >/dev/null 2>&1; then
18014 as_ls_L_option=L
18015 else
18016 as_ls_L_option=
18017 fi
18018 as_test_x='
18019 eval sh -c '\''
18020 if test -d "$1"; then
18021 test -d "$1/.";
18022 else
18023 case $1 in #(
18024 -*)set "./$1";;
18025 esac;
18026 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18027 ???[sx]*):;;*)false;;esac;fi
18028 '\'' sh
18029 '
18030 fi
18031 as_executable_p=$as_test_x
18032
18033 # Sed expression to map a string onto a valid CPP name.
18034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18035
18036 # Sed expression to map a string onto a valid variable name.
18037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18038
18039
18040 exec 6>&1
18041 ## ----------------------------------- ##
18042 ## Main body of $CONFIG_STATUS script. ##
18043 ## ----------------------------------- ##
18044 _ASEOF
18045 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18046
18047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048 # Save the log message, to keep $0 and so on meaningful, and to
18049 # report actual input values of CONFIG_FILES etc. instead of their
18050 # values after options handling.
18051 ac_log="
18052 This file was extended by emacs $as_me 24.0.50, which was
18053 generated by GNU Autoconf 2.67. Invocation command line was
18054
18055 CONFIG_FILES = $CONFIG_FILES
18056 CONFIG_HEADERS = $CONFIG_HEADERS
18057 CONFIG_LINKS = $CONFIG_LINKS
18058 CONFIG_COMMANDS = $CONFIG_COMMANDS
18059 $ $0 $@
18060
18061 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18062 "
18063
18064 _ACEOF
18065
18066 case $ac_config_files in *"
18067 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18068 esac
18069
18070 case $ac_config_headers in *"
18071 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18072 esac
18073
18074
18075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076 # Files that config.status was made for.
18077 config_files="$ac_config_files"
18078 config_headers="$ac_config_headers"
18079 config_commands="$ac_config_commands"
18080
18081 _ACEOF
18082
18083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18084 ac_cs_usage="\
18085 \`$as_me' instantiates files and other configuration actions
18086 from templates according to the current configuration. Unless the files
18087 and actions are specified as TAGs, all are instantiated by default.
18088
18089 Usage: $0 [OPTION]... [TAG]...
18090
18091 -h, --help print this help, then exit
18092 -V, --version print version number and configuration settings, then exit
18093 --config print configuration, then exit
18094 -q, --quiet, --silent
18095 do not print progress messages
18096 -d, --debug don't remove temporary files
18097 --recheck update $as_me by reconfiguring in the same conditions
18098 --file=FILE[:TEMPLATE]
18099 instantiate the configuration file FILE
18100 --header=FILE[:TEMPLATE]
18101 instantiate the configuration header FILE
18102
18103 Configuration files:
18104 $config_files
18105
18106 Configuration headers:
18107 $config_headers
18108
18109 Configuration commands:
18110 $config_commands
18111
18112 Report bugs to the package provider."
18113
18114 _ACEOF
18115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18117 ac_cs_version="\\
18118 emacs config.status 24.0.50
18119 configured by $0, generated by GNU Autoconf 2.67,
18120 with options \\"\$ac_cs_config\\"
18121
18122 Copyright (C) 2010 Free Software Foundation, Inc.
18123 This config.status script is free software; the Free Software Foundation
18124 gives unlimited permission to copy, distribute and modify it."
18125
18126 ac_pwd='$ac_pwd'
18127 srcdir='$srcdir'
18128 INSTALL='$INSTALL'
18129 MKDIR_P='$MKDIR_P'
18130 AWK='$AWK'
18131 test -n "\$AWK" || AWK=awk
18132 _ACEOF
18133
18134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18135 # The default lists apply if the user does not specify any file.
18136 ac_need_defaults=:
18137 while test $# != 0
18138 do
18139 case $1 in
18140 --*=?*)
18141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18143 ac_shift=:
18144 ;;
18145 --*=)
18146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18147 ac_optarg=
18148 ac_shift=:
18149 ;;
18150 *)
18151 ac_option=$1
18152 ac_optarg=$2
18153 ac_shift=shift
18154 ;;
18155 esac
18156
18157 case $ac_option in
18158 # Handling of the options.
18159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18160 ac_cs_recheck=: ;;
18161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18162 $as_echo "$ac_cs_version"; exit ;;
18163 --config | --confi | --conf | --con | --co | --c )
18164 $as_echo "$ac_cs_config"; exit ;;
18165 --debug | --debu | --deb | --de | --d | -d )
18166 debug=: ;;
18167 --file | --fil | --fi | --f )
18168 $ac_shift
18169 case $ac_optarg in
18170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18171 '') as_fn_error $? "missing file argument" ;;
18172 esac
18173 as_fn_append CONFIG_FILES " '$ac_optarg'"
18174 ac_need_defaults=false;;
18175 --header | --heade | --head | --hea )
18176 $ac_shift
18177 case $ac_optarg in
18178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18179 esac
18180 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18181 ac_need_defaults=false;;
18182 --he | --h)
18183 # Conflict between --help and --header
18184 as_fn_error $? "ambiguous option: \`$1'
18185 Try \`$0 --help' for more information.";;
18186 --help | --hel | -h )
18187 $as_echo "$ac_cs_usage"; exit ;;
18188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18190 ac_cs_silent=: ;;
18191
18192 # This is an error.
18193 -*) as_fn_error $? "unrecognized option: \`$1'
18194 Try \`$0 --help' for more information." ;;
18195
18196 *) as_fn_append ac_config_targets " $1"
18197 ac_need_defaults=false ;;
18198
18199 esac
18200 shift
18201 done
18202
18203 ac_configure_extra_args=
18204
18205 if $ac_cs_silent; then
18206 exec 6>/dev/null
18207 ac_configure_extra_args="$ac_configure_extra_args --silent"
18208 fi
18209
18210 _ACEOF
18211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18212 if \$ac_cs_recheck; then
18213 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18214 shift
18215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18216 CONFIG_SHELL='$SHELL'
18217 export CONFIG_SHELL
18218 exec "\$@"
18219 fi
18220
18221 _ACEOF
18222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18223 exec 5>>config.log
18224 {
18225 echo
18226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18227 ## Running $as_me. ##
18228 _ASBOX
18229 $as_echo "$ac_log"
18230 } >&5
18231
18232 _ACEOF
18233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234 #
18235 # INIT-COMMANDS
18236 #
18237 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18238 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18239
18240 _ACEOF
18241
18242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18243
18244 # Handling of arguments.
18245 for ac_config_target in $ac_config_targets
18246 do
18247 case $ac_config_target in
18248 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18249 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18250 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18251 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18252 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18253 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18254 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18255 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18256 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18257 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18258 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18259 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18260 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18261 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18262 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18263 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18264
18265 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
18266 esac
18267 done
18268
18269
18270 # If the user did not use the arguments to specify the items to instantiate,
18271 # then the envvar interface is used. Set only those that are not.
18272 # We use the long form for the default assignment because of an extremely
18273 # bizarre bug on SunOS 4.1.3.
18274 if $ac_need_defaults; then
18275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18278 fi
18279
18280 # Have a temporary directory for convenience. Make it in the build tree
18281 # simply because there is no reason against having it here, and in addition,
18282 # creating and moving files from /tmp can sometimes cause problems.
18283 # Hook for its removal unless debugging.
18284 # Note that there is a small window in which the directory will not be cleaned:
18285 # after its creation but before its name has been assigned to `$tmp'.
18286 $debug ||
18287 {
18288 tmp=
18289 trap 'exit_status=$?
18290 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18291 ' 0
18292 trap 'as_fn_exit 1' 1 2 13 15
18293 }
18294 # Create a (secure) tmp directory for tmp files.
18295
18296 {
18297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18298 test -n "$tmp" && test -d "$tmp"
18299 } ||
18300 {
18301 tmp=./conf$$-$RANDOM
18302 (umask 077 && mkdir "$tmp")
18303 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18304
18305 # Set up the scripts for CONFIG_FILES section.
18306 # No need to generate them if there are no CONFIG_FILES.
18307 # This happens for instance with `./config.status config.h'.
18308 if test -n "$CONFIG_FILES"; then
18309
18310 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18311 ac_cs_awk_getline=:
18312 ac_cs_awk_pipe_init=
18313 ac_cs_awk_read_file='
18314 while ((getline aline < (F[key])) > 0)
18315 print(aline)
18316 close(F[key])'
18317 ac_cs_awk_pipe_fini=
18318 else
18319 ac_cs_awk_getline=false
18320 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18321 ac_cs_awk_read_file='
18322 print "|#_!!_#|"
18323 print "cat " F[key] " &&"
18324 '$ac_cs_awk_pipe_init
18325 # The final `:' finishes the AND list.
18326 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18327 fi
18328 ac_cr=`echo X | tr X '\015'`
18329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18330 # But we know of no other shell where ac_cr would be empty at this
18331 # point, so we can use a bashism as a fallback.
18332 if test "x$ac_cr" = x; then
18333 eval ac_cr=\$\'\\r\'
18334 fi
18335 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18337 ac_cs_awk_cr='\\r'
18338 else
18339 ac_cs_awk_cr=$ac_cr
18340 fi
18341
18342 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18343 _ACEOF
18344
18345 # Create commands to substitute file output variables.
18346 {
18347 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18348 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18349 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18350 echo "_ACAWK" &&
18351 echo "_ACEOF"
18352 } >conf$$files.sh &&
18353 . ./conf$$files.sh ||
18354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18355 rm -f conf$$files.sh
18356
18357 {
18358 echo "cat >conf$$subs.awk <<_ACEOF" &&
18359 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18360 echo "_ACEOF"
18361 } >conf$$subs.sh ||
18362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18363 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18364 ac_delim='%!_!# '
18365 for ac_last_try in false false false false false :; do
18366 . ./conf$$subs.sh ||
18367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18368
18369 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18370 if test $ac_delim_n = $ac_delim_num; then
18371 break
18372 elif $ac_last_try; then
18373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18374 else
18375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18376 fi
18377 done
18378 rm -f conf$$subs.sh
18379
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18382 _ACEOF
18383 sed -n '
18384 h
18385 s/^/S["/; s/!.*/"]=/
18386 p
18387 g
18388 s/^[^!]*!//
18389 :repl
18390 t repl
18391 s/'"$ac_delim"'$//
18392 t delim
18393 :nl
18394 h
18395 s/\(.\{148\}\)..*/\1/
18396 t more1
18397 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18398 p
18399 n
18400 b repl
18401 :more1
18402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18403 p
18404 g
18405 s/.\{148\}//
18406 t nl
18407 :delim
18408 h
18409 s/\(.\{148\}\)..*/\1/
18410 t more2
18411 s/["\\]/\\&/g; s/^/"/; s/$/"/
18412 p
18413 b
18414 :more2
18415 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18416 p
18417 g
18418 s/.\{148\}//
18419 t delim
18420 ' <conf$$subs.awk | sed '
18421 /^[^""]/{
18422 N
18423 s/\n//
18424 }
18425 ' >>$CONFIG_STATUS || ac_write_fail=1
18426 rm -f conf$$subs.awk
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 _ACAWK
18429 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18430 for (key in S) S_is_set[key] = 1
18431 FS = "\a"
18432 \$ac_cs_awk_pipe_init
18433 }
18434 {
18435 line = $ 0
18436 nfields = split(line, field, "@")
18437 substed = 0
18438 len = length(field[1])
18439 for (i = 2; i < nfields; i++) {
18440 key = field[i]
18441 keylen = length(key)
18442 if (S_is_set[key]) {
18443 value = S[key]
18444 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18445 len += length(value) + length(field[++i])
18446 substed = 1
18447 } else
18448 len += 1 + keylen
18449 }
18450 if (nfields == 3 && !substed) {
18451 key = field[2]
18452 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18453 \$ac_cs_awk_read_file
18454 next
18455 }
18456 }
18457 print line
18458 }
18459 \$ac_cs_awk_pipe_fini
18460 _ACAWK
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18465 else
18466 cat
18467 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18469 _ACEOF
18470
18471 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18472 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18473 # trailing colons and then remove the whole line if VPATH becomes empty
18474 # (actually we leave an empty line to preserve line numbers).
18475 if test "x$srcdir" = x.; then
18476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18477 h
18478 s///
18479 s/^/:/
18480 s/[ ]*$/:/
18481 s/:\$(srcdir):/:/g
18482 s/:\${srcdir}:/:/g
18483 s/:@srcdir@:/:/g
18484 s/^:*//
18485 s/:*$//
18486 x
18487 s/\(=[ ]*\).*/\1/
18488 G
18489 s/\n//
18490 s/^[^=]*=[ ]*$//
18491 }'
18492 fi
18493
18494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18495 fi # test -n "$CONFIG_FILES"
18496
18497 # Set up the scripts for CONFIG_HEADERS section.
18498 # No need to generate them if there are no CONFIG_HEADERS.
18499 # This happens for instance with `./config.status Makefile'.
18500 if test -n "$CONFIG_HEADERS"; then
18501 cat >"$tmp/defines.awk" <<\_ACAWK ||
18502 BEGIN {
18503 _ACEOF
18504
18505 # Transform confdefs.h into an awk script `defines.awk', embedded as
18506 # here-document in config.status, that substitutes the proper values into
18507 # config.h.in to produce config.h.
18508
18509 # Create a delimiter string that does not exist in confdefs.h, to ease
18510 # handling of long lines.
18511 ac_delim='%!_!# '
18512 for ac_last_try in false false :; do
18513 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18514 if test -z "$ac_t"; then
18515 break
18516 elif $ac_last_try; then
18517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18518 else
18519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18520 fi
18521 done
18522
18523 # For the awk script, D is an array of macro values keyed by name,
18524 # likewise P contains macro parameters if any. Preserve backslash
18525 # newline sequences.
18526
18527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18528 sed -n '
18529 s/.\{148\}/&'"$ac_delim"'/g
18530 t rset
18531 :rset
18532 s/^[ ]*#[ ]*define[ ][ ]*/ /
18533 t def
18534 d
18535 :def
18536 s/\\$//
18537 t bsnl
18538 s/["\\]/\\&/g
18539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18540 D["\1"]=" \3"/p
18541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18542 d
18543 :bsnl
18544 s/["\\]/\\&/g
18545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18546 D["\1"]=" \3\\\\\\n"\\/p
18547 t cont
18548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18549 t cont
18550 d
18551 :cont
18552 n
18553 s/.\{148\}/&'"$ac_delim"'/g
18554 t clear
18555 :clear
18556 s/\\$//
18557 t bsnlc
18558 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18559 d
18560 :bsnlc
18561 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18562 b cont
18563 ' <confdefs.h | sed '
18564 s/'"$ac_delim"'/"\\\
18565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18566
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 for (key in D) D_is_set[key] = 1
18569 FS = "\a"
18570 }
18571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18572 line = \$ 0
18573 split(line, arg, " ")
18574 if (arg[1] == "#") {
18575 defundef = arg[2]
18576 mac1 = arg[3]
18577 } else {
18578 defundef = substr(arg[1], 2)
18579 mac1 = arg[2]
18580 }
18581 split(mac1, mac2, "(") #)
18582 macro = mac2[1]
18583 prefix = substr(line, 1, index(line, defundef) - 1)
18584 if (D_is_set[macro]) {
18585 # Preserve the white space surrounding the "#".
18586 print prefix "define", macro P[macro] D[macro]
18587 next
18588 } else {
18589 # Replace #undef with comments. This is necessary, for example,
18590 # in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 if (defundef == "undef") {
18593 print "/*", prefix defundef, macro, "*/"
18594 next
18595 }
18596 }
18597 }
18598 { print }
18599 _ACAWK
18600 _ACEOF
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18603 fi # test -n "$CONFIG_HEADERS"
18604
18605
18606 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18607 shift
18608 for ac_tag
18609 do
18610 case $ac_tag in
18611 :[FHLC]) ac_mode=$ac_tag; continue;;
18612 esac
18613 case $ac_mode$ac_tag in
18614 :[FHL]*:*);;
18615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18616 :[FH]-) ac_tag=-:-;;
18617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18618 esac
18619 ac_save_IFS=$IFS
18620 IFS=:
18621 set x $ac_tag
18622 IFS=$ac_save_IFS
18623 shift
18624 ac_file=$1
18625 shift
18626
18627 case $ac_mode in
18628 :L) ac_source=$1;;
18629 :[FH])
18630 ac_file_inputs=
18631 for ac_f
18632 do
18633 case $ac_f in
18634 -) ac_f="$tmp/stdin";;
18635 *) # Look for the file first in the build tree, then in the source tree
18636 # (if the path is not absolute). The absolute path cannot be DOS-style,
18637 # because $ac_f cannot contain `:'.
18638 test -f "$ac_f" ||
18639 case $ac_f in
18640 [\\/$]*) false;;
18641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18642 esac ||
18643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18644 esac
18645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18646 as_fn_append ac_file_inputs " '$ac_f'"
18647 done
18648
18649 # Let's still pretend it is `configure' which instantiates (i.e., don't
18650 # use $as_me), people would be surprised to read:
18651 # /* config.h. Generated by config.status. */
18652 configure_input='Generated from '`
18653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18654 `' by configure.'
18655 if test x"$ac_file" != x-; then
18656 configure_input="$ac_file. $configure_input"
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18658 $as_echo "$as_me: creating $ac_file" >&6;}
18659 fi
18660 # Neutralize special characters interpreted by sed in replacement strings.
18661 case $configure_input in #(
18662 *\&* | *\|* | *\\* )
18663 ac_sed_conf_input=`$as_echo "$configure_input" |
18664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18665 *) ac_sed_conf_input=$configure_input;;
18666 esac
18667
18668 case $ac_tag in
18669 *:-:* | *:-) cat >"$tmp/stdin" \
18670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18671 esac
18672 ;;
18673 esac
18674
18675 ac_dir=`$as_dirname -- "$ac_file" ||
18676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$ac_file" : 'X\(//\)[^/]' \| \
18678 X"$ac_file" : 'X\(//\)$' \| \
18679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18680 $as_echo X"$ac_file" |
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 s//\1/
18683 q
18684 }
18685 /^X\(\/\/\)[^/].*/{
18686 s//\1/
18687 q
18688 }
18689 /^X\(\/\/\)$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\(\/\).*/{
18694 s//\1/
18695 q
18696 }
18697 s/.*/./; q'`
18698 as_dir="$ac_dir"; as_fn_mkdir_p
18699 ac_builddir=.
18700
18701 case "$ac_dir" in
18702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18703 *)
18704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18705 # A ".." for each directory in $ac_dir_suffix.
18706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18707 case $ac_top_builddir_sub in
18708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18710 esac ;;
18711 esac
18712 ac_abs_top_builddir=$ac_pwd
18713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18714 # for backward compatibility:
18715 ac_top_builddir=$ac_top_build_prefix
18716
18717 case $srcdir in
18718 .) # We are building in place.
18719 ac_srcdir=.
18720 ac_top_srcdir=$ac_top_builddir_sub
18721 ac_abs_top_srcdir=$ac_pwd ;;
18722 [\\/]* | ?:[\\/]* ) # Absolute name.
18723 ac_srcdir=$srcdir$ac_dir_suffix;
18724 ac_top_srcdir=$srcdir
18725 ac_abs_top_srcdir=$srcdir ;;
18726 *) # Relative name.
18727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18728 ac_top_srcdir=$ac_top_build_prefix$srcdir
18729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18730 esac
18731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18732
18733
18734 case $ac_mode in
18735 :F)
18736 #
18737 # CONFIG_FILE
18738 #
18739
18740 case $INSTALL in
18741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18743 esac
18744 ac_MKDIR_P=$MKDIR_P
18745 case $MKDIR_P in
18746 [\\/$]* | ?:[\\/]* ) ;;
18747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18748 esac
18749 _ACEOF
18750
18751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18752 # If the template does not know about datarootdir, expand it.
18753 # FIXME: This hack should be removed a few years after 2.60.
18754 ac_datarootdir_hack=; ac_datarootdir_seen=
18755 ac_sed_dataroot='
18756 /datarootdir/ {
18757 p
18758 q
18759 }
18760 /@datadir@/p
18761 /@docdir@/p
18762 /@infodir@/p
18763 /@localedir@/p
18764 /@mandir@/p'
18765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18766 *datarootdir*) ac_datarootdir_seen=yes;;
18767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18770 _ACEOF
18771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18772 ac_datarootdir_hack='
18773 s&@datadir@&$datadir&g
18774 s&@docdir@&$docdir&g
18775 s&@infodir@&$infodir&g
18776 s&@localedir@&$localedir&g
18777 s&@mandir@&$mandir&g
18778 s&\\\${datarootdir}&$datarootdir&g' ;;
18779 esac
18780 _ACEOF
18781
18782 # Neutralize VPATH when `$srcdir' = `.'.
18783 # Shell code in configure.ac might set extrasub.
18784 # FIXME: do we really want to maintain this feature?
18785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18786 ac_sed_extra="$ac_vpsub
18787 $extrasub
18788 _ACEOF
18789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18790 :t
18791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18792 s|@configure_input@|$ac_sed_conf_input|;t t
18793 s&@top_builddir@&$ac_top_builddir_sub&;t t
18794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18795 s&@srcdir@&$ac_srcdir&;t t
18796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18797 s&@top_srcdir@&$ac_top_srcdir&;t t
18798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18799 s&@builddir@&$ac_builddir&;t t
18800 s&@abs_builddir@&$ac_abs_builddir&;t t
18801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18802 s&@INSTALL@&$ac_INSTALL&;t t
18803 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18804 $ac_datarootdir_hack
18805 "
18806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18807 if $ac_cs_awk_getline; then
18808 $AWK -f "$tmp/subs.awk"
18809 else
18810 $AWK -f "$tmp/subs.awk" | $SHELL
18811 fi >$tmp/out \
18812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18813
18814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18818 which seems to be undefined. Please make sure it is defined" >&5
18819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18820 which seems to be undefined. Please make sure it is defined" >&2;}
18821
18822 rm -f "$tmp/stdin"
18823 case $ac_file in
18824 -) cat "$tmp/out" && rm -f "$tmp/out";;
18825 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18826 esac \
18827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18828 ;;
18829 :H)
18830 #
18831 # CONFIG_HEADER
18832 #
18833 if test x"$ac_file" != x-; then
18834 {
18835 $as_echo "/* $configure_input */" \
18836 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18837 } >"$tmp/config.h" \
18838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18839 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18841 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18842 else
18843 rm -f "$ac_file"
18844 mv "$tmp/config.h" "$ac_file" \
18845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18846 fi
18847 else
18848 $as_echo "/* $configure_input */" \
18849 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18850 || as_fn_error $? "could not create -" "$LINENO" 5
18851 fi
18852 # Compute "$ac_file"'s index in $config_headers.
18853 _am_arg="$ac_file"
18854 _am_stamp_count=1
18855 for _am_header in $config_headers :; do
18856 case $_am_header in
18857 $_am_arg | $_am_arg:* )
18858 break ;;
18859 * )
18860 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18861 esac
18862 done
18863 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18864 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18865 X"$_am_arg" : 'X\(//\)[^/]' \| \
18866 X"$_am_arg" : 'X\(//\)$' \| \
18867 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18868 $as_echo X"$_am_arg" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18870 s//\1/
18871 q
18872 }
18873 /^X\(\/\/\)[^/].*/{
18874 s//\1/
18875 q
18876 }
18877 /^X\(\/\/\)$/{
18878 s//\1/
18879 q
18880 }
18881 /^X\(\/\).*/{
18882 s//\1/
18883 q
18884 }
18885 s/.*/./; q'`/stamp-h$_am_stamp_count
18886 ;;
18887
18888 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18889 $as_echo "$as_me: executing $ac_file commands" >&6;}
18890 ;;
18891 esac
18892
18893
18894 case $ac_file$ac_mode in
18895 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18896 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18897 # are listed without --file. Let's play safe and only enable the eval
18898 # if we detect the quoting.
18899 case $CONFIG_FILES in
18900 *\'*) eval set x "$CONFIG_FILES" ;;
18901 *) set x $CONFIG_FILES ;;
18902 esac
18903 shift
18904 for mf
18905 do
18906 # Strip MF so we end up with the name of the file.
18907 mf=`echo "$mf" | sed -e 's/:.*$//'`
18908 # Check whether this is an Automake generated Makefile or not.
18909 # We used to match only the files named `Makefile.in', but
18910 # some people rename them; so instead we look at the file content.
18911 # Grep'ing the first line is not enough: some people post-process
18912 # each Makefile.in and add a new line on top of each file to say so.
18913 # Grep'ing the whole file is not good either: AIX grep has a line
18914 # limit of 2048, but all sed's we know have understand at least 4000.
18915 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18916 dirpart=`$as_dirname -- "$mf" ||
18917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18918 X"$mf" : 'X\(//\)[^/]' \| \
18919 X"$mf" : 'X\(//\)$' \| \
18920 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18921 $as_echo X"$mf" |
18922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18923 s//\1/
18924 q
18925 }
18926 /^X\(\/\/\)[^/].*/{
18927 s//\1/
18928 q
18929 }
18930 /^X\(\/\/\)$/{
18931 s//\1/
18932 q
18933 }
18934 /^X\(\/\).*/{
18935 s//\1/
18936 q
18937 }
18938 s/.*/./; q'`
18939 else
18940 continue
18941 fi
18942 # Extract the definition of DEPDIR, am__include, and am__quote
18943 # from the Makefile without running `make'.
18944 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18945 test -z "$DEPDIR" && continue
18946 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18947 test -z "am__include" && continue
18948 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18949 # When using ansi2knr, U may be empty or an underscore; expand it
18950 U=`sed -n 's/^U = //p' < "$mf"`
18951 # Find all dependency output files, they are included files with
18952 # $(DEPDIR) in their names. We invoke sed twice because it is the
18953 # simplest approach to changing $(DEPDIR) to its actual value in the
18954 # expansion.
18955 for file in `sed -n "
18956 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18957 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18958 # Make sure the directory exists.
18959 test -f "$dirpart/$file" && continue
18960 fdir=`$as_dirname -- "$file" ||
18961 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18962 X"$file" : 'X\(//\)[^/]' \| \
18963 X"$file" : 'X\(//\)$' \| \
18964 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18965 $as_echo X"$file" |
18966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18967 s//\1/
18968 q
18969 }
18970 /^X\(\/\/\)[^/].*/{
18971 s//\1/
18972 q
18973 }
18974 /^X\(\/\/\)$/{
18975 s//\1/
18976 q
18977 }
18978 /^X\(\/\).*/{
18979 s//\1/
18980 q
18981 }
18982 s/.*/./; q'`
18983 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18984 # echo "creating $dirpart/$file"
18985 echo '# dummy' > "$dirpart/$file"
18986 done
18987 done
18988 }
18989 ;;
18990 "default":C)
18991
18992 ### Make the necessary directories, if they don't exist.
18993 for dir in etc lisp ; do
18994 test -d ${dir} || mkdir ${dir}
18995 done
18996
18997 echo creating src/epaths.h
18998 ${MAKE-make} epaths-force
18999
19000 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19001 echo creating src/.gdbinit
19002 echo source $srcdir/src/.gdbinit > src/.gdbinit
19003 fi
19004
19005 ;;
19006
19007 esac
19008 done # for ac_tag
19009
19010
19011 as_fn_exit 0
19012 _ACEOF
19013 ac_clean_files=$ac_clean_files_save
19014
19015 test $ac_write_fail = 0 ||
19016 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19017
19018
19019 # configure is writing to config.log, and then calls config.status.
19020 # config.status does its own redirection, appending to config.log.
19021 # Unfortunately, on DOS this fails, as config.log is still kept open
19022 # by configure, so config.status won't be able to write to it; its
19023 # output is simply discarded. So we exec the FD to /dev/null,
19024 # effectively closing config.log, so it can be properly (re)opened and
19025 # appended to by config.status. When coming back to configure, we
19026 # need to make the FD available again.
19027 if test "$no_create" != yes; then
19028 ac_cs_success=:
19029 ac_config_status_args=
19030 test "$silent" = yes &&
19031 ac_config_status_args="$ac_config_status_args --quiet"
19032 exec 5>/dev/null
19033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19034 exec 5>>config.log
19035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19036 # would make configure fail if this is the last instruction.
19037 $ac_cs_success || as_fn_exit 1
19038 fi
19039 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19041 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19042 fi
19043