Auto-commit of generated files.
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.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_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
629 LTLIBINTL
630 LIBINTL
631 WARN_CFLAGS
632 HAVE_UNISTD_H
633 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 NEXT_UNISTD_H
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
645 NEXT_STDIO_H
646 REPLACE_VSPRINTF
647 REPLACE_VSNPRINTF
648 REPLACE_VPRINTF
649 REPLACE_VFPRINTF
650 REPLACE_VDPRINTF
651 REPLACE_VASPRINTF
652 REPLACE_TMPFILE
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
655 REPLACE_SPRINTF
656 REPLACE_SNPRINTF
657 REPLACE_RENAMEAT
658 REPLACE_RENAME
659 REPLACE_REMOVE
660 REPLACE_PRINTF
661 REPLACE_POPEN
662 REPLACE_PERROR
663 REPLACE_OBSTACK_PRINTF
664 REPLACE_GETLINE
665 REPLACE_GETDELIM
666 REPLACE_FTELLO
667 REPLACE_FTELL
668 REPLACE_FSEEKO
669 REPLACE_FSEEK
670 REPLACE_FREOPEN
671 REPLACE_FPURGE
672 REPLACE_FPRINTF
673 REPLACE_FOPEN
674 REPLACE_FFLUSH
675 REPLACE_FDOPEN
676 REPLACE_FCLOSE
677 REPLACE_DPRINTF
678 HAVE_VDPRINTF
679 HAVE_VASPRINTF
680 HAVE_RENAMEAT
681 HAVE_POPEN
682 HAVE_PCLOSE
683 HAVE_FTELLO
684 HAVE_FSEEKO
685 HAVE_DPRINTF
686 HAVE_DECL_VSNPRINTF
687 HAVE_DECL_SNPRINTF
688 HAVE_DECL_OBSTACK_PRINTF
689 HAVE_DECL_GETLINE
690 HAVE_DECL_GETDELIM
691 HAVE_DECL_FTELLO
692 HAVE_DECL_FSEEKO
693 HAVE_DECL_FPURGE
694 GNULIB_VSPRINTF_POSIX
695 GNULIB_VSNPRINTF
696 GNULIB_VPRINTF_POSIX
697 GNULIB_VPRINTF
698 GNULIB_VFPRINTF_POSIX
699 GNULIB_VFPRINTF
700 GNULIB_VDPRINTF
701 GNULIB_VSCANF
702 GNULIB_VFSCANF
703 GNULIB_VASPRINTF
704 GNULIB_TMPFILE
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
707 GNULIB_SPRINTF_POSIX
708 GNULIB_SNPRINTF
709 GNULIB_SCANF
710 GNULIB_RENAMEAT
711 GNULIB_RENAME
712 GNULIB_REMOVE
713 GNULIB_PUTS
714 GNULIB_PUTCHAR
715 GNULIB_PUTC
716 GNULIB_PRINTF_POSIX
717 GNULIB_PRINTF
718 GNULIB_POPEN
719 GNULIB_PERROR
720 GNULIB_PCLOSE
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
723 GNULIB_GETS
724 GNULIB_GETLINE
725 GNULIB_GETDELIM
726 GNULIB_GETCHAR
727 GNULIB_GETC
728 GNULIB_FWRITE
729 GNULIB_FTELLO
730 GNULIB_FTELL
731 GNULIB_FSEEKO
732 GNULIB_FSEEK
733 GNULIB_FSCANF
734 GNULIB_FREOPEN
735 GNULIB_FREAD
736 GNULIB_FPUTS
737 GNULIB_FPUTC
738 GNULIB_FPURGE
739 GNULIB_FPRINTF_POSIX
740 GNULIB_FPRINTF
741 GNULIB_FOPEN
742 GNULIB_FGETS
743 GNULIB_FGETC
744 GNULIB_FFLUSH
745 GNULIB_FDOPEN
746 GNULIB_FCLOSE
747 GNULIB_DPRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 NEXT_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
752 STDDEF_H
753 HAVE_WCHAR_T
754 REPLACE_NULL
755 HAVE__BOOL
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
758 STDBOOL_H
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
761 STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
765 NEXT_SIGNAL_H
766 REPLACE_RAISE
767 REPLACE_PTHREAD_SIGMASK
768 HAVE_SIGHANDLER_T
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
771 HAVE_SIGACTION
772 HAVE_SIGINFO_T
773 HAVE_SIGSET_T
774 HAVE_RAISE
775 HAVE_PTHREAD_SIGMASK
776 HAVE_POSIX_SIGNALBLOCKING
777 GNULIB_SIGACTION
778 GNULIB_SIGPROCMASK
779 GNULIB_SIGNAL_H_SIGPIPE
780 GNULIB_RAISE
781 GNULIB_PTHREAD_SIGMASK
782 LIB_PTHREAD_SIGMASK
783 REPLACE_TIMEGM
784 REPLACE_NANOSLEEP
785 REPLACE_MKTIME
786 REPLACE_LOCALTIME_R
787 HAVE_TIMEGM
788 HAVE_STRPTIME
789 HAVE_NANOSLEEP
790 HAVE_DECL_LOCALTIME_R
791 GNULIB_TIME_R
792 GNULIB_TIMEGM
793 GNULIB_STRPTIME
794 GNULIB_NANOSLEEP
795 GNULIB_MKTIME
796 REPLACE_UTIMENSAT
797 REPLACE_STAT
798 REPLACE_MKNOD
799 REPLACE_MKFIFO
800 REPLACE_MKDIR
801 REPLACE_LSTAT
802 REPLACE_FUTIMENS
803 REPLACE_FSTATAT
804 REPLACE_FSTAT
805 HAVE_UTIMENSAT
806 HAVE_MKNODAT
807 HAVE_MKNOD
808 HAVE_MKFIFOAT
809 HAVE_MKFIFO
810 HAVE_MKDIRAT
811 HAVE_LSTAT
812 HAVE_LCHMOD
813 HAVE_FUTIMENS
814 HAVE_FSTATAT
815 HAVE_FCHMODAT
816 GNULIB_UTIMENSAT
817 GNULIB_STAT
818 GNULIB_MKNODAT
819 GNULIB_MKNOD
820 GNULIB_MKFIFOAT
821 GNULIB_MKFIFO
822 GNULIB_MKDIRAT
823 GNULIB_LSTAT
824 GNULIB_LCHMOD
825 GNULIB_FUTIMENS
826 GNULIB_FSTATAT
827 GNULIB_FSTAT
828 GNULIB_FCHMODAT
829 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
830 NEXT_INTTYPES_H
831 UINT64_MAX_EQ_ULONG_MAX
832 UINT32_MAX_LT_UINTMAX_MAX
833 PRIPTR_PREFIX
834 PRI_MACROS_BROKEN
835 INT64_MAX_EQ_LONG_MAX
836 INT32_MAX_LT_INTMAX_MAX
837 HAVE_DECL_STRTOUMAX
838 HAVE_DECL_STRTOIMAX
839 HAVE_DECL_IMAXDIV
840 HAVE_DECL_IMAXABS
841 GNULIB_STRTOUMAX
842 GNULIB_STRTOIMAX
843 GNULIB_IMAXDIV
844 GNULIB_IMAXABS
845 GL_GENERATE_STDINT_H_FALSE
846 GL_GENERATE_STDINT_H_TRUE
847 STDINT_H
848 WINT_T_SUFFIX
849 WCHAR_T_SUFFIX
850 SIG_ATOMIC_T_SUFFIX
851 SIZE_T_SUFFIX
852 PTRDIFF_T_SUFFIX
853 HAVE_SIGNED_WINT_T
854 HAVE_SIGNED_WCHAR_T
855 HAVE_SIGNED_SIG_ATOMIC_T
856 BITSIZEOF_WINT_T
857 BITSIZEOF_WCHAR_T
858 BITSIZEOF_SIG_ATOMIC_T
859 BITSIZEOF_SIZE_T
860 BITSIZEOF_PTRDIFF_T
861 APPLE_UNIVERSAL_BUILD
862 HAVE_SYS_BITYPES_H
863 HAVE_SYS_INTTYPES_H
864 HAVE_STDINT_H
865 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
866 NEXT_STDINT_H
867 HAVE_SYS_TYPES_H
868 HAVE_INTTYPES_H
869 HAVE_WCHAR_H
870 HAVE_UNSIGNED_LONG_LONG_INT
871 HAVE_LONG_LONG_INT
872 GETOPT_H
873 HAVE_GETOPT_H
874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
875 NEXT_GETOPT_H
876 PRAGMA_COLUMNS
877 PRAGMA_SYSTEM_HEADER
878 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
879 INCLUDE_NEXT
880 GETLOADAVG_LIBS
881 REPLACE_WCTOMB
882 REPLACE_UNSETENV
883 REPLACE_STRTOD
884 REPLACE_SETENV
885 REPLACE_REALPATH
886 REPLACE_REALLOC
887 REPLACE_PUTENV
888 REPLACE_MKSTEMP
889 REPLACE_MBTOWC
890 REPLACE_MALLOC
891 REPLACE_CANONICALIZE_FILE_NAME
892 REPLACE_CALLOC
893 HAVE_DECL_UNSETENV
894 HAVE_UNLOCKPT
895 HAVE_SYS_LOADAVG_H
896 HAVE_STRUCT_RANDOM_DATA
897 HAVE_STRTOULL
898 HAVE_STRTOLL
899 HAVE_STRTOD
900 HAVE_DECL_SETENV
901 HAVE_SETENV
902 HAVE_RPMATCH
903 HAVE_REALPATH
904 HAVE_RANDOM_R
905 HAVE_RANDOM_H
906 HAVE_PTSNAME
907 HAVE_MKSTEMPS
908 HAVE_MKSTEMP
909 HAVE_MKOSTEMPS
910 HAVE_MKOSTEMP
911 HAVE_MKDTEMP
912 HAVE_GRANTPT
913 HAVE_GETSUBOPT
914 HAVE_DECL_GETLOADAVG
915 HAVE_CANONICALIZE_FILE_NAME
916 HAVE_ATOLL
917 HAVE__EXIT
918 GNULIB_WCTOMB
919 GNULIB_UNSETENV
920 GNULIB_UNLOCKPT
921 GNULIB_SYSTEM_POSIX
922 GNULIB_STRTOULL
923 GNULIB_STRTOLL
924 GNULIB_STRTOD
925 GNULIB_SETENV
926 GNULIB_RPMATCH
927 GNULIB_REALPATH
928 GNULIB_REALLOC_POSIX
929 GNULIB_RANDOM_R
930 GNULIB_PUTENV
931 GNULIB_PTSNAME
932 GNULIB_MKSTEMPS
933 GNULIB_MKSTEMP
934 GNULIB_MKOSTEMPS
935 GNULIB_MKOSTEMP
936 GNULIB_MKDTEMP
937 GNULIB_MBTOWC
938 GNULIB_MALLOC_POSIX
939 GNULIB_GRANTPT
940 GNULIB_GETSUBOPT
941 GNULIB_GETLOADAVG
942 GNULIB_CANONICALIZE_FILE_NAME
943 GNULIB_CALLOC_POSIX
944 GNULIB_ATOLL
945 GNULIB__EXIT
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
948 REPLACE_WRITE
949 REPLACE_USLEEP
950 REPLACE_UNLINKAT
951 REPLACE_UNLINK
952 REPLACE_TTYNAME_R
953 REPLACE_SYMLINK
954 REPLACE_SLEEP
955 REPLACE_RMDIR
956 REPLACE_READLINK
957 REPLACE_READ
958 REPLACE_PWRITE
959 REPLACE_PREAD
960 REPLACE_LSEEK
961 REPLACE_LINKAT
962 REPLACE_LINK
963 REPLACE_LCHOWN
964 REPLACE_GETPAGESIZE
965 REPLACE_GETGROUPS
966 REPLACE_GETLOGIN_R
967 REPLACE_GETDOMAINNAME
968 REPLACE_GETCWD
969 REPLACE_FCHOWNAT
970 REPLACE_DUP2
971 REPLACE_DUP
972 REPLACE_CLOSE
973 REPLACE_CHOWN
974 HAVE_SYS_PARAM_H
975 HAVE_OS_H
976 HAVE_DECL_TTYNAME_R
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
979 HAVE_DECL_GETLOGIN_R
980 HAVE_DECL_GETDOMAINNAME
981 HAVE_DECL_FDATASYNC
982 HAVE_DECL_FCHDIR
983 HAVE_DECL_ENVIRON
984 HAVE_USLEEP
985 HAVE_UNLINKAT
986 HAVE_SYMLINKAT
987 HAVE_SYMLINK
988 HAVE_SLEEP
989 HAVE_READLINKAT
990 HAVE_READLINK
991 HAVE_PWRITE
992 HAVE_PREAD
993 HAVE_PIPE2
994 HAVE_PIPE
995 HAVE_LINKAT
996 HAVE_LINK
997 HAVE_LCHOWN
998 HAVE_GROUP_MEMBER
999 HAVE_GETPAGESIZE
1000 HAVE_GETLOGIN
1001 HAVE_GETHOSTNAME
1002 HAVE_GETGROUPS
1003 HAVE_GETDTABLESIZE
1004 HAVE_FTRUNCATE
1005 HAVE_FSYNC
1006 HAVE_FDATASYNC
1007 HAVE_FCHOWNAT
1008 HAVE_FCHDIR
1009 HAVE_FACCESSAT
1010 HAVE_EUIDACCESS
1011 HAVE_DUP3
1012 HAVE_DUP2
1013 HAVE_CHOWN
1014 GNULIB_WRITE
1015 GNULIB_USLEEP
1016 GNULIB_UNLINKAT
1017 GNULIB_UNLINK
1018 GNULIB_UNISTD_H_SIGPIPE
1019 GNULIB_UNISTD_H_NONBLOCKING
1020 GNULIB_UNISTD_H_GETOPT
1021 GNULIB_TTYNAME_R
1022 GNULIB_SYMLINKAT
1023 GNULIB_SYMLINK
1024 GNULIB_SLEEP
1025 GNULIB_RMDIR
1026 GNULIB_READLINKAT
1027 GNULIB_READLINK
1028 GNULIB_READ
1029 GNULIB_PWRITE
1030 GNULIB_PREAD
1031 GNULIB_PIPE2
1032 GNULIB_PIPE
1033 GNULIB_LSEEK
1034 GNULIB_LINKAT
1035 GNULIB_LINK
1036 GNULIB_LCHOWN
1037 GNULIB_GROUP_MEMBER
1038 GNULIB_GETUSERSHELL
1039 GNULIB_GETPAGESIZE
1040 GNULIB_GETLOGIN_R
1041 GNULIB_GETLOGIN
1042 GNULIB_GETHOSTNAME
1043 GNULIB_GETGROUPS
1044 GNULIB_GETDTABLESIZE
1045 GNULIB_GETDOMAINNAME
1046 GNULIB_GETCWD
1047 GNULIB_FTRUNCATE
1048 GNULIB_FSYNC
1049 GNULIB_FDATASYNC
1050 GNULIB_FCHOWNAT
1051 GNULIB_FCHDIR
1052 GNULIB_FACCESSAT
1053 GNULIB_EUIDACCESS
1054 GNULIB_ENVIRON
1055 GNULIB_DUP3
1056 GNULIB_DUP2
1057 GNULIB_DUP
1058 GNULIB_CLOSE
1059 GNULIB_CHOWN
1060 GNULIB_CHDIR
1061 GL_GENERATE_ALLOCA_H_FALSE
1062 GL_GENERATE_ALLOCA_H_TRUE
1063 ALLOCA_H
1064 ALLOCA
1065 GL_COND_LIBTOOL_FALSE
1066 GL_COND_LIBTOOL_TRUE
1067 POST_ALLOC_OBJ
1068 PRE_ALLOC_OBJ
1069 CYGWIN_OBJ
1070 RALLOC_OBJ
1071 OLDXMENU_DEPS
1072 LIBX_OTHER
1073 LIBXMENU
1074 OLDXMENU
1075 OLDXMENU_TARGET
1076 LIBXT_OTHER
1077 TOOLKIT_LIBW
1078 WIDGET_OBJ
1079 XOBJ
1080 XMENU_OBJ
1081 FONT_OBJ
1082 OTHER_FILES
1083 GNU_OBJC_CFLAGS
1084 ns_appsrc
1085 ns_appresdir
1086 ns_appbindir
1087 ns_appdir
1088 S_FILE
1089 M_FILE
1090 X_TOOLKIT_TYPE
1091 GNUSTEP_CFLAGS
1092 C_SWITCH_X_SITE
1093 LD_SWITCH_X_SITE
1094 gameuser
1095 gamedir
1096 bitmapdir
1097 archlibdir
1098 etcdir
1099 x_default_search_path
1100 lisppath
1101 locallisppath
1102 lispdir
1103 srcdir
1104 canonical
1105 configuration
1106 version
1107 KRB4LIB
1108 DESLIB
1109 KRB5LIB
1110 CRYPTOLIB
1111 COM_ERRLIB
1112 LIBRESOLV
1113 LIBHESIOD
1114 TERMCAP_OBJ
1115 LIBS_TERMCAP
1116 BLESSMAIL_TARGET
1117 LIBS_MAIL
1118 liblockfile
1119 LIBXML2_LIBS
1120 LIBXML2_CFLAGS
1121 LIBXSM
1122 LIBGPM
1123 LIBGIF
1124 LIBTIFF
1125 LIBPNG
1126 LIBJPEG
1127 LIBXPM
1128 M17N_FLT_LIBS
1129 M17N_FLT_CFLAGS
1130 LIBOTF_LIBS
1131 LIBOTF_CFLAGS
1132 FREETYPE_LIBS
1133 FREETYPE_CFLAGS
1134 XFT_LIBS
1135 XFT_CFLAGS
1136 FONTCONFIG_LIBS
1137 FONTCONFIG_CFLAGS
1138 LIBXMU
1139 LIBXTR6
1140 LIBGNUTLS_LIBS
1141 LIBGNUTLS_CFLAGS
1142 LIBSELINUX_LIBS
1143 SETTINGS_LIBS
1144 SETTINGS_CFLAGS
1145 GCONF_LIBS
1146 GCONF_CFLAGS
1147 GSETTINGS_LIBS
1148 GSETTINGS_CFLAGS
1149 DBUS_OBJ
1150 DBUS_LIBS
1151 DBUS_CFLAGS
1152 GTK_OBJ
1153 GTK_LIBS
1154 GTK_CFLAGS
1155 IMAGEMAGICK_LIBS
1156 IMAGEMAGICK_CFLAGS
1157 RSVG_LIBS
1158 RSVG_CFLAGS
1159 LIB_PTHREAD
1160 VMLIMIT_OBJ
1161 GMALLOC_OBJ
1162 HAVE_XSERVER
1163 LIB_STANDARD
1164 NS_OBJC_OBJ
1165 NS_OBJ
1166 LEIM_INSTALLDIR
1167 TEMACS_LDFLAGS2
1168 LD_SWITCH_X_SITE_RPATH
1169 XMKMF
1170 DEPFLAGS
1171 MKDEPDIR
1172 CFLAGS_SOUND
1173 ALSA_LIBS
1174 ALSA_CFLAGS
1175 PKG_CONFIG
1176 LIBSOUND
1177 CRT_DIR
1178 START_FILES
1179 LIB_MATH
1180 LIBS_SYSTEM
1181 C_SWITCH_SYSTEM
1182 UNEXEC_OBJ
1183 C_SWITCH_MACHINE
1184 LD_SWITCH_SYSTEM
1185 CANNOT_DUMP
1186 INFO_OPTS
1187 INFO_EXT
1188 HAVE_MAKEINFO
1189 GZIP_PROG
1190 INSTALL_INFO
1191 GNULIB_WARN_CFLAGS
1192 WERROR_CFLAGS
1193 RANLIB
1194 ARFLAGS
1195 AR
1196 EGREP
1197 GREP
1198 CPP
1199 am__fastdepCC_FALSE
1200 am__fastdepCC_TRUE
1201 CCDEPMODE
1202 AMDEPBACKSLASH
1203 AMDEP_FALSE
1204 AMDEP_TRUE
1205 am__quote
1206 am__include
1207 DEPDIR
1208 OBJEXT
1209 EXEEXT
1210 ac_ct_CC
1211 CPPFLAGS
1212 LDFLAGS
1213 CFLAGS
1214 CC
1215 host_os
1216 host_vendor
1217 host_cpu
1218 host
1219 build_os
1220 build_vendor
1221 build_cpu
1222 build
1223 PROFILING_CFLAGS
1224 MAINT
1225 GZIP_INFO
1226 cache_file
1227 am__untar
1228 am__tar
1229 AMTAR
1230 am__leading_dot
1231 SET_MAKE
1232 AWK
1233 mkdir_p
1234 MKDIR_P
1235 INSTALL_STRIP_PROGRAM
1236 STRIP
1237 install_sh
1238 MAKEINFO
1239 AUTOHEADER
1240 AUTOMAKE
1241 AUTOCONF
1242 ACLOCAL
1243 VERSION
1244 PACKAGE
1245 CYGPATH_W
1246 am__isrc
1247 INSTALL_DATA
1248 INSTALL_SCRIPT
1249 INSTALL_PROGRAM
1250 target_alias
1251 host_alias
1252 build_alias
1253 LIBS
1254 ECHO_T
1255 ECHO_N
1256 ECHO_C
1257 DEFS
1258 mandir
1259 localedir
1260 libdir
1261 psdir
1262 pdfdir
1263 dvidir
1264 htmldir
1265 infodir
1266 docdir
1267 oldincludedir
1268 includedir
1269 localstatedir
1270 sharedstatedir
1271 sysconfdir
1272 datadir
1273 datarootdir
1274 libexecdir
1275 sbindir
1276 bindir
1277 program_transform_name
1278 prefix
1279 exec_prefix
1280 PACKAGE_URL
1281 PACKAGE_BUGREPORT
1282 PACKAGE_STRING
1283 PACKAGE_VERSION
1284 PACKAGE_TARNAME
1285 PACKAGE_NAME
1286 PATH_SEPARATOR
1287 SHELL'
1288 ac_subst_files='deps_frag
1289 lisp_frag
1290 ns_frag'
1291 ac_user_opts='
1292 enable_option_checking
1293 with_pop
1294 with_kerberos
1295 with_kerberos5
1296 with_hesiod
1297 with_mmdf
1298 with_mail_unlink
1299 with_mailhost
1300 with_sound
1301 with_sync_input
1302 with_x_toolkit
1303 with_wide_int
1304 with_xpm
1305 with_jpeg
1306 with_tiff
1307 with_gif
1308 with_png
1309 with_rsvg
1310 with_xml2
1311 with_imagemagick
1312 with_xft
1313 with_libotf
1314 with_m17n_flt
1315 with_toolkit_scroll_bars
1316 with_xaw3d
1317 with_xim
1318 with_ns
1319 with_gpm
1320 with_dbus
1321 with_gconf
1322 with_gsettings
1323 with_selinux
1324 with_gnutls
1325 with_makeinfo
1326 with_compress_info
1327 with_pkg_config_prog
1328 with_crt_dir
1329 with_gameuser
1330 with_gnustep_conf
1331 enable_ns_self_contained
1332 enable_asserts
1333 enable_maintainer_mode
1334 enable_locallisppath
1335 enable_checking
1336 enable_use_lisp_union_type
1337 enable_profiling
1338 enable_autodepend
1339 enable_dependency_tracking
1340 enable_largefile
1341 enable_gcc_warnings
1342 with_x
1343 '
1344 ac_precious_vars='build_alias
1345 host_alias
1346 target_alias
1347 CC
1348 CFLAGS
1349 LDFLAGS
1350 LIBS
1351 CPPFLAGS
1352 CPP
1353 XMKMF'
1354
1355
1356 # Initialize some variables set by options.
1357 ac_init_help=
1358 ac_init_version=false
1359 ac_unrecognized_opts=
1360 ac_unrecognized_sep=
1361 # The variables have the same names as the options, with
1362 # dashes changed to underlines.
1363 cache_file=/dev/null
1364 exec_prefix=NONE
1365 no_create=
1366 no_recursion=
1367 prefix=NONE
1368 program_prefix=NONE
1369 program_suffix=NONE
1370 program_transform_name=s,x,x,
1371 silent=
1372 site=
1373 srcdir=
1374 verbose=
1375 x_includes=NONE
1376 x_libraries=NONE
1377
1378 # Installation directory options.
1379 # These are left unexpanded so users can "make install exec_prefix=/foo"
1380 # and all the variables that are supposed to be based on exec_prefix
1381 # by default will actually change.
1382 # Use braces instead of parens because sh, perl, etc. also accept them.
1383 # (The list follows the same order as the GNU Coding Standards.)
1384 bindir='${exec_prefix}/bin'
1385 sbindir='${exec_prefix}/sbin'
1386 libexecdir='${exec_prefix}/libexec'
1387 datarootdir='${prefix}/share'
1388 datadir='${datarootdir}'
1389 sysconfdir='${prefix}/etc'
1390 sharedstatedir='${prefix}/com'
1391 localstatedir='${prefix}/var'
1392 includedir='${prefix}/include'
1393 oldincludedir='/usr/include'
1394 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1395 infodir='${datarootdir}/info'
1396 htmldir='${docdir}'
1397 dvidir='${docdir}'
1398 pdfdir='${docdir}'
1399 psdir='${docdir}'
1400 libdir='${exec_prefix}/lib'
1401 localedir='${datarootdir}/locale'
1402 mandir='${datarootdir}/man'
1403
1404 ac_prev=
1405 ac_dashdash=
1406 for ac_option
1407 do
1408 # If the previous option needs an argument, assign it.
1409 if test -n "$ac_prev"; then
1410 eval $ac_prev=\$ac_option
1411 ac_prev=
1412 continue
1413 fi
1414
1415 case $ac_option in
1416 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1417 *) ac_optarg=yes ;;
1418 esac
1419
1420 # Accept the important Cygnus configure options, so we can diagnose typos.
1421
1422 case $ac_dashdash$ac_option in
1423 --)
1424 ac_dashdash=yes ;;
1425
1426 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1427 ac_prev=bindir ;;
1428 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1429 bindir=$ac_optarg ;;
1430
1431 -build | --build | --buil | --bui | --bu)
1432 ac_prev=build_alias ;;
1433 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1434 build_alias=$ac_optarg ;;
1435
1436 -cache-file | --cache-file | --cache-fil | --cache-fi \
1437 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1438 ac_prev=cache_file ;;
1439 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1440 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1441 cache_file=$ac_optarg ;;
1442
1443 --config-cache | -C)
1444 cache_file=config.cache ;;
1445
1446 -datadir | --datadir | --datadi | --datad)
1447 ac_prev=datadir ;;
1448 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1449 datadir=$ac_optarg ;;
1450
1451 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1452 | --dataroo | --dataro | --datar)
1453 ac_prev=datarootdir ;;
1454 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1455 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1456 datarootdir=$ac_optarg ;;
1457
1458 -disable-* | --disable-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 as_fn_error "invalid feature name: $ac_useropt"
1463 ac_useropt_orig=$ac_useropt
1464 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1466 *"
1467 "enable_$ac_useropt"
1468 "*) ;;
1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1470 ac_unrecognized_sep=', ';;
1471 esac
1472 eval enable_$ac_useropt=no ;;
1473
1474 -docdir | --docdir | --docdi | --doc | --do)
1475 ac_prev=docdir ;;
1476 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1477 docdir=$ac_optarg ;;
1478
1479 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1480 ac_prev=dvidir ;;
1481 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1482 dvidir=$ac_optarg ;;
1483
1484 -enable-* | --enable-*)
1485 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1488 as_fn_error "invalid feature name: $ac_useropt"
1489 ac_useropt_orig=$ac_useropt
1490 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1492 *"
1493 "enable_$ac_useropt"
1494 "*) ;;
1495 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1496 ac_unrecognized_sep=', ';;
1497 esac
1498 eval enable_$ac_useropt=\$ac_optarg ;;
1499
1500 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1501 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1502 | --exec | --exe | --ex)
1503 ac_prev=exec_prefix ;;
1504 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1505 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1506 | --exec=* | --exe=* | --ex=*)
1507 exec_prefix=$ac_optarg ;;
1508
1509 -gas | --gas | --ga | --g)
1510 # Obsolete; use --with-gas.
1511 with_gas=yes ;;
1512
1513 -help | --help | --hel | --he | -h)
1514 ac_init_help=long ;;
1515 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1516 ac_init_help=recursive ;;
1517 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1518 ac_init_help=short ;;
1519
1520 -host | --host | --hos | --ho)
1521 ac_prev=host_alias ;;
1522 -host=* | --host=* | --hos=* | --ho=*)
1523 host_alias=$ac_optarg ;;
1524
1525 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1526 ac_prev=htmldir ;;
1527 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1528 | --ht=*)
1529 htmldir=$ac_optarg ;;
1530
1531 -includedir | --includedir | --includedi | --included | --include \
1532 | --includ | --inclu | --incl | --inc)
1533 ac_prev=includedir ;;
1534 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1535 | --includ=* | --inclu=* | --incl=* | --inc=*)
1536 includedir=$ac_optarg ;;
1537
1538 -infodir | --infodir | --infodi | --infod | --info | --inf)
1539 ac_prev=infodir ;;
1540 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1541 infodir=$ac_optarg ;;
1542
1543 -libdir | --libdir | --libdi | --libd)
1544 ac_prev=libdir ;;
1545 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1546 libdir=$ac_optarg ;;
1547
1548 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1549 | --libexe | --libex | --libe)
1550 ac_prev=libexecdir ;;
1551 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1552 | --libexe=* | --libex=* | --libe=*)
1553 libexecdir=$ac_optarg ;;
1554
1555 -localedir | --localedir | --localedi | --localed | --locale)
1556 ac_prev=localedir ;;
1557 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1558 localedir=$ac_optarg ;;
1559
1560 -localstatedir | --localstatedir | --localstatedi | --localstated \
1561 | --localstate | --localstat | --localsta | --localst | --locals)
1562 ac_prev=localstatedir ;;
1563 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1564 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1565 localstatedir=$ac_optarg ;;
1566
1567 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1568 ac_prev=mandir ;;
1569 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1570 mandir=$ac_optarg ;;
1571
1572 -nfp | --nfp | --nf)
1573 # Obsolete; use --without-fp.
1574 with_fp=no ;;
1575
1576 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1577 | --no-cr | --no-c | -n)
1578 no_create=yes ;;
1579
1580 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1581 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1582 no_recursion=yes ;;
1583
1584 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1585 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1586 | --oldin | --oldi | --old | --ol | --o)
1587 ac_prev=oldincludedir ;;
1588 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1589 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1590 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1591 oldincludedir=$ac_optarg ;;
1592
1593 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1594 ac_prev=prefix ;;
1595 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1596 prefix=$ac_optarg ;;
1597
1598 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1599 | --program-pre | --program-pr | --program-p)
1600 ac_prev=program_prefix ;;
1601 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1602 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1603 program_prefix=$ac_optarg ;;
1604
1605 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1606 | --program-suf | --program-su | --program-s)
1607 ac_prev=program_suffix ;;
1608 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1609 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1610 program_suffix=$ac_optarg ;;
1611
1612 -program-transform-name | --program-transform-name \
1613 | --program-transform-nam | --program-transform-na \
1614 | --program-transform-n | --program-transform- \
1615 | --program-transform | --program-transfor \
1616 | --program-transfo | --program-transf \
1617 | --program-trans | --program-tran \
1618 | --progr-tra | --program-tr | --program-t)
1619 ac_prev=program_transform_name ;;
1620 -program-transform-name=* | --program-transform-name=* \
1621 | --program-transform-nam=* | --program-transform-na=* \
1622 | --program-transform-n=* | --program-transform-=* \
1623 | --program-transform=* | --program-transfor=* \
1624 | --program-transfo=* | --program-transf=* \
1625 | --program-trans=* | --program-tran=* \
1626 | --progr-tra=* | --program-tr=* | --program-t=*)
1627 program_transform_name=$ac_optarg ;;
1628
1629 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1630 ac_prev=pdfdir ;;
1631 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1632 pdfdir=$ac_optarg ;;
1633
1634 -psdir | --psdir | --psdi | --psd | --ps)
1635 ac_prev=psdir ;;
1636 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1637 psdir=$ac_optarg ;;
1638
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1641 silent=yes ;;
1642
1643 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1644 ac_prev=sbindir ;;
1645 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1646 | --sbi=* | --sb=*)
1647 sbindir=$ac_optarg ;;
1648
1649 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1650 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1651 | --sharedst | --shareds | --shared | --share | --shar \
1652 | --sha | --sh)
1653 ac_prev=sharedstatedir ;;
1654 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1655 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1656 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1657 | --sha=* | --sh=*)
1658 sharedstatedir=$ac_optarg ;;
1659
1660 -site | --site | --sit)
1661 ac_prev=site ;;
1662 -site=* | --site=* | --sit=*)
1663 site=$ac_optarg ;;
1664
1665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1666 ac_prev=srcdir ;;
1667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1668 srcdir=$ac_optarg ;;
1669
1670 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1671 | --syscon | --sysco | --sysc | --sys | --sy)
1672 ac_prev=sysconfdir ;;
1673 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1674 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1675 sysconfdir=$ac_optarg ;;
1676
1677 -target | --target | --targe | --targ | --tar | --ta | --t)
1678 ac_prev=target_alias ;;
1679 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1680 target_alias=$ac_optarg ;;
1681
1682 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1683 verbose=yes ;;
1684
1685 -version | --version | --versio | --versi | --vers | -V)
1686 ac_init_version=: ;;
1687
1688 -with-* | --with-*)
1689 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1690 # Reject names that are not valid shell variable names.
1691 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1692 as_fn_error "invalid package name: $ac_useropt"
1693 ac_useropt_orig=$ac_useropt
1694 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1695 case $ac_user_opts in
1696 *"
1697 "with_$ac_useropt"
1698 "*) ;;
1699 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1700 ac_unrecognized_sep=', ';;
1701 esac
1702 eval with_$ac_useropt=\$ac_optarg ;;
1703
1704 -without-* | --without-*)
1705 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1706 # Reject names that are not valid shell variable names.
1707 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1708 as_fn_error "invalid package name: $ac_useropt"
1709 ac_useropt_orig=$ac_useropt
1710 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1711 case $ac_user_opts in
1712 *"
1713 "with_$ac_useropt"
1714 "*) ;;
1715 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1716 ac_unrecognized_sep=', ';;
1717 esac
1718 eval with_$ac_useropt=no ;;
1719
1720 --x)
1721 # Obsolete; use --with-x.
1722 with_x=yes ;;
1723
1724 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1725 | --x-incl | --x-inc | --x-in | --x-i)
1726 ac_prev=x_includes ;;
1727 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1728 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1729 x_includes=$ac_optarg ;;
1730
1731 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1732 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1733 ac_prev=x_libraries ;;
1734 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1735 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1736 x_libraries=$ac_optarg ;;
1737
1738 -*) as_fn_error "unrecognized option: \`$ac_option'
1739 Try \`$0 --help' for more information."
1740 ;;
1741
1742 *=*)
1743 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1744 # Reject names that are not valid shell variable names.
1745 case $ac_envvar in #(
1746 '' | [0-9]* | *[!_$as_cr_alnum]* )
1747 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1748 esac
1749 eval $ac_envvar=\$ac_optarg
1750 export $ac_envvar ;;
1751
1752 *)
1753 # FIXME: should be removed in autoconf 3.0.
1754 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1755 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1756 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1757 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1758 ;;
1759
1760 esac
1761 done
1762
1763 if test -n "$ac_prev"; then
1764 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1765 as_fn_error "missing argument to $ac_option"
1766 fi
1767
1768 if test -n "$ac_unrecognized_opts"; then
1769 case $enable_option_checking in
1770 no) ;;
1771 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1772 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1773 esac
1774 fi
1775
1776 # Check all directory arguments for consistency.
1777 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1778 datadir sysconfdir sharedstatedir localstatedir includedir \
1779 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1780 libdir localedir mandir
1781 do
1782 eval ac_val=\$$ac_var
1783 # Remove trailing slashes.
1784 case $ac_val in
1785 */ )
1786 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1787 eval $ac_var=\$ac_val;;
1788 esac
1789 # Be sure to have absolute directory names.
1790 case $ac_val in
1791 [\\/$]* | ?:[\\/]* ) continue;;
1792 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1793 esac
1794 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1795 done
1796
1797 # There might be people who depend on the old broken behavior: `$host'
1798 # used to hold the argument of --host etc.
1799 # FIXME: To remove some day.
1800 build=$build_alias
1801 host=$host_alias
1802 target=$target_alias
1803
1804 # FIXME: To remove some day.
1805 if test "x$host_alias" != x; then
1806 if test "x$build_alias" = x; then
1807 cross_compiling=maybe
1808 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1809 If a cross compiler is detected then cross compile mode will be used." >&2
1810 elif test "x$build_alias" != "x$host_alias"; then
1811 cross_compiling=yes
1812 fi
1813 fi
1814
1815 ac_tool_prefix=
1816 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1817
1818 test "$silent" = yes && exec 6>/dev/null
1819
1820
1821 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1822 ac_ls_di=`ls -di .` &&
1823 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1824 as_fn_error "working directory cannot be determined"
1825 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1826 as_fn_error "pwd does not report name of working directory"
1827
1828
1829 # Find the source files, if location was not specified.
1830 if test -z "$srcdir"; then
1831 ac_srcdir_defaulted=yes
1832 # Try the directory containing this script, then the parent directory.
1833 ac_confdir=`$as_dirname -- "$as_myself" ||
1834 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1835 X"$as_myself" : 'X\(//\)[^/]' \| \
1836 X"$as_myself" : 'X\(//\)$' \| \
1837 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1838 $as_echo X"$as_myself" |
1839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1840 s//\1/
1841 q
1842 }
1843 /^X\(\/\/\)[^/].*/{
1844 s//\1/
1845 q
1846 }
1847 /^X\(\/\/\)$/{
1848 s//\1/
1849 q
1850 }
1851 /^X\(\/\).*/{
1852 s//\1/
1853 q
1854 }
1855 s/.*/./; q'`
1856 srcdir=$ac_confdir
1857 if test ! -r "$srcdir/$ac_unique_file"; then
1858 srcdir=..
1859 fi
1860 else
1861 ac_srcdir_defaulted=no
1862 fi
1863 if test ! -r "$srcdir/$ac_unique_file"; then
1864 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1865 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1866 fi
1867 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1868 ac_abs_confdir=`(
1869 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1870 pwd)`
1871 # When building in place, set srcdir=.
1872 if test "$ac_abs_confdir" = "$ac_pwd"; then
1873 srcdir=.
1874 fi
1875 # Remove unnecessary trailing slashes from srcdir.
1876 # Double slashes in file names in object file debugging info
1877 # mess up M-x gdb in Emacs.
1878 case $srcdir in
1879 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1880 esac
1881 for ac_var in $ac_precious_vars; do
1882 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1883 eval ac_env_${ac_var}_value=\$${ac_var}
1884 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1885 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1886 done
1887
1888 #
1889 # Report the --help message.
1890 #
1891 if test "$ac_init_help" = "long"; then
1892 # Omit some internal or obsolete options to make the list less imposing.
1893 # This message is too long to be a string in the A/UX 3.1 sh.
1894 cat <<_ACEOF
1895 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1896
1897 Usage: $0 [OPTION]... [VAR=VALUE]...
1898
1899 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1900 VAR=VALUE. See below for descriptions of some of the useful variables.
1901
1902 Defaults for the options are specified in brackets.
1903
1904 Configuration:
1905 -h, --help display this help and exit
1906 --help=short display options specific to this package
1907 --help=recursive display the short help of all the included packages
1908 -V, --version display version information and exit
1909 -q, --quiet, --silent do not print \`checking...' messages
1910 --cache-file=FILE cache test results in FILE [disabled]
1911 -C, --config-cache alias for \`--cache-file=config.cache'
1912 -n, --no-create do not create output files
1913 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1914
1915 Installation directories:
1916 --prefix=PREFIX install architecture-independent files in PREFIX
1917 [$ac_default_prefix]
1918 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1919 [PREFIX]
1920
1921 By default, \`make install' will install all the files in
1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1924 for instance \`--prefix=\$HOME'.
1925
1926 For better control, use the options below.
1927
1928 Fine tuning of the installation directories:
1929 --bindir=DIR user executables [EPREFIX/bin]
1930 --sbindir=DIR system admin executables [EPREFIX/sbin]
1931 --libexecdir=DIR program executables [EPREFIX/libexec]
1932 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1933 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1934 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1935 --libdir=DIR object code libraries [EPREFIX/lib]
1936 --includedir=DIR C header files [PREFIX/include]
1937 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1938 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1939 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1940 --infodir=DIR info documentation [DATAROOTDIR/info]
1941 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1942 --mandir=DIR man documentation [DATAROOTDIR/man]
1943 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1944 --htmldir=DIR html documentation [DOCDIR]
1945 --dvidir=DIR dvi documentation [DOCDIR]
1946 --pdfdir=DIR pdf documentation [DOCDIR]
1947 --psdir=DIR ps documentation [DOCDIR]
1948 _ACEOF
1949
1950 cat <<\_ACEOF
1951
1952 Program names:
1953 --program-prefix=PREFIX prepend PREFIX to installed program names
1954 --program-suffix=SUFFIX append SUFFIX to installed program names
1955 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1956
1957 X features:
1958 --x-includes=DIR X include files are in DIR
1959 --x-libraries=DIR X library files are in DIR
1960
1961 System types:
1962 --build=BUILD configure for building on BUILD [guessed]
1963 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1964 _ACEOF
1965 fi
1966
1967 if test -n "$ac_init_help"; then
1968 case $ac_init_help in
1969 short | recursive ) echo "Configuration of emacs 24.1.50:";;
1970 esac
1971 cat <<\_ACEOF
1972
1973 Optional Features:
1974 --disable-option-checking ignore unrecognized --enable/--with options
1975 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1976 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1977 --disable-ns-self-contained
1978 disable self contained build under NeXTstep
1979 --enable-asserts compile code with asserts enabled
1980 --disable-maintainer-mode
1981 disable make rules and dependencies not useful (and
1982 sometimes confusing) to the casual installer
1983 --enable-locallisppath=PATH
1984 directories Emacs should search for lisp files
1985 specific to this site
1986 --enable-checking[=LIST]
1987 enable expensive run-time checks. With LIST, enable
1988 only specific categories of checks. Categories are:
1989 all,yes,no. Flags are: stringbytes, stringoverrun,
1990 stringfreelist, xmallocoverrun, conslist
1991 --enable-use-lisp-union-type
1992 use a union for the Lisp_Object data type. This is
1993 only useful for development for catching certain
1994 types of bugs.
1995 --enable-profiling build emacs with profiling support. This might not
1996 work on all platforms
1997 --enable-autodepend automatically generate dependencies to .h-files.
1998 Requires GNU Make and Gcc. Enabled if GNU Make and
1999 Gcc is found
2000 --disable-dependency-tracking speeds up one-time build
2001 --enable-dependency-tracking do not reject slow dependency extractors
2002 --disable-largefile omit support for large files
2003 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2004
2005 Optional Packages:
2006 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2007 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2008 --without-pop don't support POP mail retrieval with movemail
2009 --with-kerberos support Kerberos-authenticated POP
2010 --with-kerberos5 support Kerberos version 5 authenticated POP
2011 --with-hesiod support Hesiod to get the POP server host
2012 --with-mmdf support MMDF mailboxes
2013 --with-mail-unlink unlink, rather than empty, mail spool after reading
2014 --with-mailhost=HOSTNAME
2015 string giving default POP mail host
2016 --without-sound don't compile with sound support
2017 --without-sync-input process async input synchronously
2018 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2019 lucid or athena, motif, no)
2020 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2021 --without-xpm don't compile with XPM image support
2022 --without-jpeg don't compile with JPEG image support
2023 --without-tiff don't compile with TIFF image support
2024 --without-gif don't compile with GIF image support
2025 --without-png don't compile with PNG image support
2026 --without-rsvg don't compile with SVG image support
2027 --without-xml2 don't compile with XML parsing support
2028 --without-imagemagick don't compile with ImageMagick image support
2029 --without-xft don't use XFT for anti aliased fonts
2030 --without-libotf don't use libotf for OpenType font support
2031 --without-m17n-flt don't use m17n-flt for text shaping
2032 --without-toolkit-scroll-bars
2033 don't use Motif or Xaw3d scroll bars
2034 --without-xaw3d don't use Xaw3d
2035 --without-xim don't use X11 XIM
2036 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2037 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2038 console
2039 --without-dbus don't compile with D-Bus support
2040 --without-gconf don't compile with GConf support
2041 --without-gsettings don't compile with GSettings support
2042 --without-selinux don't compile with SELinux support
2043 --without-gnutls don't use -lgnutls for SSL/TLS support
2044 --without-makeinfo don't require makeinfo for building manuals
2045 --without-compress-info don't compress the installed Info pages
2046 --with-pkg-config-prog=PATH
2047 path to pkg-config for finding GTK and librsvg
2048 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2049 /usr/lib, or /usr/lib64 on some platforms.
2050 --with-gameuser=USER user for shared game score files
2051 --with-gnustep-conf=PATH
2052 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2053 or /etc/GNUstep/GNUstep.conf
2054 --with-x use the X Window System
2055
2056 Some influential environment variables:
2057 CC C compiler command
2058 CFLAGS C compiler flags
2059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2060 nonstandard directory <lib dir>
2061 LIBS libraries to pass to the linker, e.g. -l<library>
2062 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2063 you have headers in a nonstandard directory <include dir>
2064 CPP C preprocessor
2065 XMKMF Path to xmkmf, Makefile generator for X Window System
2066
2067 Use these variables to override the choices made by `configure' or to help
2068 it to find libraries and programs with nonstandard names/locations.
2069
2070 Report bugs to the package provider.
2071 _ACEOF
2072 ac_status=$?
2073 fi
2074
2075 if test "$ac_init_help" = "recursive"; then
2076 # If there are subdirs, report their specific --help.
2077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2078 test -d "$ac_dir" ||
2079 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2080 continue
2081 ac_builddir=.
2082
2083 case "$ac_dir" in
2084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2085 *)
2086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2087 # A ".." for each directory in $ac_dir_suffix.
2088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2089 case $ac_top_builddir_sub in
2090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2092 esac ;;
2093 esac
2094 ac_abs_top_builddir=$ac_pwd
2095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2096 # for backward compatibility:
2097 ac_top_builddir=$ac_top_build_prefix
2098
2099 case $srcdir in
2100 .) # We are building in place.
2101 ac_srcdir=.
2102 ac_top_srcdir=$ac_top_builddir_sub
2103 ac_abs_top_srcdir=$ac_pwd ;;
2104 [\\/]* | ?:[\\/]* ) # Absolute name.
2105 ac_srcdir=$srcdir$ac_dir_suffix;
2106 ac_top_srcdir=$srcdir
2107 ac_abs_top_srcdir=$srcdir ;;
2108 *) # Relative name.
2109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2110 ac_top_srcdir=$ac_top_build_prefix$srcdir
2111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2112 esac
2113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2114
2115 cd "$ac_dir" || { ac_status=$?; continue; }
2116 # Check for guested configure.
2117 if test -f "$ac_srcdir/configure.gnu"; then
2118 echo &&
2119 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2120 elif test -f "$ac_srcdir/configure"; then
2121 echo &&
2122 $SHELL "$ac_srcdir/configure" --help=recursive
2123 else
2124 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2125 fi || ac_status=$?
2126 cd "$ac_pwd" || { ac_status=$?; break; }
2127 done
2128 fi
2129
2130 test -n "$ac_init_help" && exit $ac_status
2131 if $ac_init_version; then
2132 cat <<\_ACEOF
2133 emacs configure 24.1.50
2134 generated by GNU Autoconf 2.65
2135
2136 Copyright (C) 2009 Free Software Foundation, Inc.
2137 This configure script is free software; the Free Software Foundation
2138 gives unlimited permission to copy, distribute and modify it.
2139 _ACEOF
2140 exit
2141 fi
2142
2143 ## ------------------------ ##
2144 ## Autoconf initialization. ##
2145 ## ------------------------ ##
2146
2147 # ac_fn_c_try_compile LINENO
2148 # --------------------------
2149 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_c_try_compile ()
2151 {
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 rm -f conftest.$ac_objext
2154 if { { ac_try="$ac_compile"
2155 case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_compile") 2>conftest.err
2162 ac_status=$?
2163 if test -s conftest.err; then
2164 grep -v '^ *+' conftest.err >conftest.er1
2165 cat conftest.er1 >&5
2166 mv -f conftest.er1 conftest.err
2167 fi
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } && {
2170 test -z "$ac_c_werror_flag" ||
2171 test ! -s conftest.err
2172 } && test -s conftest.$ac_objext; then :
2173 ac_retval=0
2174 else
2175 $as_echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 ac_retval=1
2179 fi
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 as_fn_set_status $ac_retval
2182
2183 } # ac_fn_c_try_compile
2184
2185 # ac_fn_c_try_cpp LINENO
2186 # ----------------------
2187 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2188 ac_fn_c_try_cpp ()
2189 {
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if { { ac_try="$ac_cpp conftest.$ac_ext"
2192 case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2199 ac_status=$?
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2204 fi
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } >/dev/null && {
2207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2208 test ! -s conftest.err
2209 }; then :
2210 ac_retval=0
2211 else
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_retval=1
2216 fi
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 as_fn_set_status $ac_retval
2219
2220 } # ac_fn_c_try_cpp
2221
2222 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2223 # -------------------------------------------------------
2224 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2225 # the include files in INCLUDES and setting the cache variable VAR
2226 # accordingly.
2227 ac_fn_c_check_header_mongrel ()
2228 {
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235 fi
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 else
2240 # Is the header compilable?
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2242 $as_echo_n "checking $2 usability... " >&6; }
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 $4
2246 #include <$2>
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_header_compiler=yes
2250 else
2251 ac_header_compiler=no
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2255 $as_echo "$ac_header_compiler" >&6; }
2256
2257 # Is the header present?
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2259 $as_echo_n "checking $2 presence... " >&6; }
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 #include <$2>
2263 _ACEOF
2264 if ac_fn_c_try_cpp "$LINENO"; then :
2265 ac_header_preproc=yes
2266 else
2267 ac_header_preproc=no
2268 fi
2269 rm -f conftest.err conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2271 $as_echo "$ac_header_preproc" >&6; }
2272
2273 # So? What about this header?
2274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2275 yes:no: )
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2277 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2279 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2280 ;;
2281 no:yes:* )
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2283 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2285 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2287 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2289 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2291 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2292 ;;
2293 esac
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 eval "$3=\$ac_header_compiler"
2300 fi
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 fi
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306
2307 } # ac_fn_c_check_header_mongrel
2308
2309 # ac_fn_c_try_run LINENO
2310 # ----------------------
2311 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2312 # that executables *can* be run.
2313 ac_fn_c_try_run ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 if { { ac_try="$ac_link"
2317 case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323 (eval "$ac_link") 2>&5
2324 ac_status=$?
2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2326 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2327 { { case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_try") 2>&5
2334 ac_status=$?
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; }; }; then :
2337 ac_retval=0
2338 else
2339 $as_echo "$as_me: program exited with status $ac_status" >&5
2340 $as_echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 ac_retval=$ac_status
2344 fi
2345 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 as_fn_set_status $ac_retval
2348
2349 } # ac_fn_c_try_run
2350
2351 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2352 # -------------------------------------------------------
2353 # Tests whether HEADER exists and can be compiled using the include files in
2354 # INCLUDES, setting the cache variable VAR accordingly.
2355 ac_fn_c_check_header_compile ()
2356 {
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $4
2366 #include <$2>
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369 eval "$3=yes"
2370 else
2371 eval "$3=no"
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_check_header_compile
2381
2382 # ac_fn_c_check_decl LINENO SYMBOL VAR
2383 # ------------------------------------
2384 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2385 ac_fn_c_check_decl ()
2386 {
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2389 $as_echo_n "checking whether $2 is declared... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $4
2396 int
2397 main ()
2398 {
2399 #ifndef $2
2400 (void) $2;
2401 #endif
2402
2403 ;
2404 return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 eval "$3=yes"
2409 else
2410 eval "$3=no"
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 eval ac_res=\$$3
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2418
2419 } # ac_fn_c_check_decl
2420
2421 # ac_fn_c_try_link LINENO
2422 # -----------------------
2423 # Try to link conftest.$ac_ext, and return whether this succeeded.
2424 ac_fn_c_try_link ()
2425 {
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { { ac_try="$ac_link"
2429 case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432 esac
2433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_link") 2>conftest.err
2436 ac_status=$?
2437 if test -s conftest.err; then
2438 grep -v '^ *+' conftest.err >conftest.er1
2439 cat conftest.er1 >&5
2440 mv -f conftest.er1 conftest.err
2441 fi
2442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 test $ac_status = 0; } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest$ac_exeext && {
2447 test "$cross_compiling" = yes ||
2448 $as_test_x conftest$ac_exeext
2449 }; then :
2450 ac_retval=0
2451 else
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_retval=1
2456 fi
2457 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2458 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2459 # interfere with the next link command; also delete a directory that is
2460 # left behind by Apple's compiler. We do this before executing the actions.
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 as_fn_set_status $ac_retval
2464
2465 } # ac_fn_c_try_link
2466
2467 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2468 # ----------------------------------------------
2469 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2470 ac_fn_c_check_header_preproc ()
2471 {
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_c_try_cpp "$LINENO"; then :
2483 eval "$3=yes"
2484 else
2485 eval "$3=no"
2486 fi
2487 rm -f conftest.err conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$3
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2493
2494 } # ac_fn_c_check_header_preproc
2495
2496 # ac_fn_c_check_func LINENO FUNC VAR
2497 # ----------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_c_check_func ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2512
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2517
2518 #ifdef __STDC__
2519 # include <limits.h>
2520 #else
2521 # include <assert.h>
2522 #endif
2523
2524 #undef $2
2525
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 char $2 ();
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2537 choke me
2538 #endif
2539
2540 int
2541 main ()
2542 {
2543 return $2 ();
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_link "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2552 fi
2553 rm -f core conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2555 fi
2556 eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560
2561 } # ac_fn_c_check_func
2562
2563 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2564 # ----------------------------------------------------
2565 # Tries to find if the field MEMBER exists in type AGGR, after including
2566 # INCLUDES, setting cache variable VAR accordingly.
2567 ac_fn_c_check_member ()
2568 {
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2571 $as_echo_n "checking for $2.$3... " >&6; }
2572 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 $5
2578 int
2579 main ()
2580 {
2581 static $2 ac_aggr;
2582 if (ac_aggr.$3)
2583 return 0;
2584 ;
2585 return 0;
2586 }
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 eval "$4=yes"
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $5
2594 int
2595 main ()
2596 {
2597 static $2 ac_aggr;
2598 if (sizeof ac_aggr.$3)
2599 return 0;
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 eval "$4=yes"
2606 else
2607 eval "$4=no"
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 eval ac_res=\$$4
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617
2618 } # ac_fn_c_check_member
2619
2620 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2621 # -------------------------------------------
2622 # Tests whether TYPE exists after having included INCLUDES, setting cache
2623 # variable VAR accordingly.
2624 ac_fn_c_check_type ()
2625 {
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2628 $as_echo_n "checking for $2... " >&6; }
2629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 eval "$3=no"
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2635 $4
2636 int
2637 main ()
2638 {
2639 if (sizeof ($2))
2640 return 0;
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_c_try_compile "$LINENO"; then :
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 $4
2649 int
2650 main ()
2651 {
2652 if (sizeof (($2)))
2653 return 0;
2654 ;
2655 return 0;
2656 }
2657 _ACEOF
2658 if ac_fn_c_try_compile "$LINENO"; then :
2659
2660 else
2661 eval "$3=yes"
2662 fi
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 fi
2667 eval ac_res=\$$3
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671
2672 } # ac_fn_c_check_type
2673
2674 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2675 # --------------------------------------------
2676 # Tries to find the compile-time value of EXPR in a program that includes
2677 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2678 # computed
2679 ac_fn_c_compute_int ()
2680 {
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 if test "$cross_compiling" = yes; then
2683 # Depending upon the size, compute the lo and hi bounds.
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2686 $4
2687 int
2688 main ()
2689 {
2690 static int test_array [1 - 2 * !(($2) >= 0)];
2691 test_array [0] = 0
2692
2693 ;
2694 return 0;
2695 }
2696 _ACEOF
2697 if ac_fn_c_try_compile "$LINENO"; then :
2698 ac_lo=0 ac_mid=0
2699 while :; do
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702 $4
2703 int
2704 main ()
2705 {
2706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2707 test_array [0] = 0
2708
2709 ;
2710 return 0;
2711 }
2712 _ACEOF
2713 if ac_fn_c_try_compile "$LINENO"; then :
2714 ac_hi=$ac_mid; break
2715 else
2716 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2717 if test $ac_lo -le $ac_mid; then
2718 ac_lo= ac_hi=
2719 break
2720 fi
2721 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2722 fi
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 else
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728 $4
2729 int
2730 main ()
2731 {
2732 static int test_array [1 - 2 * !(($2) < 0)];
2733 test_array [0] = 0
2734
2735 ;
2736 return 0;
2737 }
2738 _ACEOF
2739 if ac_fn_c_try_compile "$LINENO"; then :
2740 ac_hi=-1 ac_mid=-1
2741 while :; do
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2744 $4
2745 int
2746 main ()
2747 {
2748 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2749 test_array [0] = 0
2750
2751 ;
2752 return 0;
2753 }
2754 _ACEOF
2755 if ac_fn_c_try_compile "$LINENO"; then :
2756 ac_lo=$ac_mid; break
2757 else
2758 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2759 if test $ac_mid -le $ac_hi; then
2760 ac_lo= ac_hi=
2761 break
2762 fi
2763 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2764 fi
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 done
2767 else
2768 ac_lo= ac_hi=
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 fi
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 # Binary search between lo and hi bounds.
2774 while test "x$ac_lo" != "x$ac_hi"; do
2775 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 $4
2779 int
2780 main ()
2781 {
2782 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2783 test_array [0] = 0
2784
2785 ;
2786 return 0;
2787 }
2788 _ACEOF
2789 if ac_fn_c_try_compile "$LINENO"; then :
2790 ac_hi=$ac_mid
2791 else
2792 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2793 fi
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 done
2796 case $ac_lo in #((
2797 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2798 '') ac_retval=1 ;;
2799 esac
2800 else
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803 $4
2804 static long int longval () { return $2; }
2805 static unsigned long int ulongval () { return $2; }
2806 #include <stdio.h>
2807 #include <stdlib.h>
2808 int
2809 main ()
2810 {
2811
2812 FILE *f = fopen ("conftest.val", "w");
2813 if (! f)
2814 return 1;
2815 if (($2) < 0)
2816 {
2817 long int i = longval ();
2818 if (i != ($2))
2819 return 1;
2820 fprintf (f, "%ld", i);
2821 }
2822 else
2823 {
2824 unsigned long int i = ulongval ();
2825 if (i != ($2))
2826 return 1;
2827 fprintf (f, "%lu", i);
2828 }
2829 /* Do not output a trailing newline, as this causes \r\n confusion
2830 on some platforms. */
2831 return ferror (f) || fclose (f) != 0;
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 if ac_fn_c_try_run "$LINENO"; then :
2838 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2839 else
2840 ac_retval=1
2841 fi
2842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2843 conftest.$ac_objext conftest.beam conftest.$ac_ext
2844 rm -f conftest.val
2845
2846 fi
2847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2848 as_fn_set_status $ac_retval
2849
2850 } # ac_fn_c_compute_int
2851 cat >config.log <<_ACEOF
2852 This file contains any messages produced by compilers while
2853 running configure, to aid debugging if configure makes a mistake.
2854
2855 It was created by emacs $as_me 24.1.50, which was
2856 generated by GNU Autoconf 2.65. Invocation command line was
2857
2858 $ $0 $@
2859
2860 _ACEOF
2861 exec 5>>config.log
2862 {
2863 cat <<_ASUNAME
2864 ## --------- ##
2865 ## Platform. ##
2866 ## --------- ##
2867
2868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2873
2874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2876
2877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2884
2885 _ASUNAME
2886
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 $as_echo "PATH: $as_dir"
2893 done
2894 IFS=$as_save_IFS
2895
2896 } >&5
2897
2898 cat >&5 <<_ACEOF
2899
2900
2901 ## ----------- ##
2902 ## Core tests. ##
2903 ## ----------- ##
2904
2905 _ACEOF
2906
2907
2908 # Keep a trace of the command line.
2909 # Strip out --no-create and --no-recursion so they do not pile up.
2910 # Strip out --silent because we don't want to record it for future runs.
2911 # Also quote any args containing shell meta-characters.
2912 # Make two passes to allow for proper duplicate-argument suppression.
2913 ac_configure_args=
2914 ac_configure_args0=
2915 ac_configure_args1=
2916 ac_must_keep_next=false
2917 for ac_pass in 1 2
2918 do
2919 for ac_arg
2920 do
2921 case $ac_arg in
2922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2924 | -silent | --silent | --silen | --sile | --sil)
2925 continue ;;
2926 *\'*)
2927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2928 esac
2929 case $ac_pass in
2930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2931 2)
2932 as_fn_append ac_configure_args1 " '$ac_arg'"
2933 if test $ac_must_keep_next = true; then
2934 ac_must_keep_next=false # Got value, back to normal.
2935 else
2936 case $ac_arg in
2937 *=* | --config-cache | -C | -disable-* | --disable-* \
2938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2940 | -with-* | --with-* | -without-* | --without-* | --x)
2941 case "$ac_configure_args0 " in
2942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2943 esac
2944 ;;
2945 -* ) ac_must_keep_next=true ;;
2946 esac
2947 fi
2948 as_fn_append ac_configure_args " '$ac_arg'"
2949 ;;
2950 esac
2951 done
2952 done
2953 { ac_configure_args0=; unset ac_configure_args0;}
2954 { ac_configure_args1=; unset ac_configure_args1;}
2955
2956 # When interrupted or exit'd, cleanup temporary files, and complete
2957 # config.log. We remove comments because anyway the quotes in there
2958 # would cause problems or look ugly.
2959 # WARNING: Use '\'' to represent an apostrophe within the trap.
2960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2961 trap 'exit_status=$?
2962 # Save into config.log some information that might help in debugging.
2963 {
2964 echo
2965
2966 cat <<\_ASBOX
2967 ## ---------------- ##
2968 ## Cache variables. ##
2969 ## ---------------- ##
2970 _ASBOX
2971 echo
2972 # The following way of writing the cache mishandles newlines in values,
2973 (
2974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2975 eval ac_val=\$$ac_var
2976 case $ac_val in #(
2977 *${as_nl}*)
2978 case $ac_var in #(
2979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2981 esac
2982 case $ac_var in #(
2983 _ | IFS | as_nl) ;; #(
2984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2985 *) { eval $ac_var=; unset $ac_var;} ;;
2986 esac ;;
2987 esac
2988 done
2989 (set) 2>&1 |
2990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2991 *${as_nl}ac_space=\ *)
2992 sed -n \
2993 "s/'\''/'\''\\\\'\'''\''/g;
2994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2995 ;; #(
2996 *)
2997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2998 ;;
2999 esac |
3000 sort
3001 )
3002 echo
3003
3004 cat <<\_ASBOX
3005 ## ----------------- ##
3006 ## Output variables. ##
3007 ## ----------------- ##
3008 _ASBOX
3009 echo
3010 for ac_var in $ac_subst_vars
3011 do
3012 eval ac_val=\$$ac_var
3013 case $ac_val in
3014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3015 esac
3016 $as_echo "$ac_var='\''$ac_val'\''"
3017 done | sort
3018 echo
3019
3020 if test -n "$ac_subst_files"; then
3021 cat <<\_ASBOX
3022 ## ------------------- ##
3023 ## File substitutions. ##
3024 ## ------------------- ##
3025 _ASBOX
3026 echo
3027 for ac_var in $ac_subst_files
3028 do
3029 eval ac_val=\$$ac_var
3030 case $ac_val in
3031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3032 esac
3033 $as_echo "$ac_var='\''$ac_val'\''"
3034 done | sort
3035 echo
3036 fi
3037
3038 if test -s confdefs.h; then
3039 cat <<\_ASBOX
3040 ## ----------- ##
3041 ## confdefs.h. ##
3042 ## ----------- ##
3043 _ASBOX
3044 echo
3045 cat confdefs.h
3046 echo
3047 fi
3048 test "$ac_signal" != 0 &&
3049 $as_echo "$as_me: caught signal $ac_signal"
3050 $as_echo "$as_me: exit $exit_status"
3051 } >&5
3052 rm -f core *.core core.conftest.* &&
3053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3054 exit $exit_status
3055 ' 0
3056 for ac_signal in 1 2 13 15; do
3057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3058 done
3059 ac_signal=0
3060
3061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3062 rm -f -r conftest* confdefs.h
3063
3064 $as_echo "/* confdefs.h */" > confdefs.h
3065
3066 # Predefined preprocessor variables.
3067
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_NAME "$PACKAGE_NAME"
3070 _ACEOF
3071
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3074 _ACEOF
3075
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3078 _ACEOF
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_STRING "$PACKAGE_STRING"
3082 _ACEOF
3083
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3086 _ACEOF
3087
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_URL "$PACKAGE_URL"
3090 _ACEOF
3091
3092
3093 # Let the site file select an alternate cache file if it wants to.
3094 # Prefer an explicitly selected file to automatically selected ones.
3095 ac_site_file1=NONE
3096 ac_site_file2=NONE
3097 if test -n "$CONFIG_SITE"; then
3098 ac_site_file1=$CONFIG_SITE
3099 elif test "x$prefix" != xNONE; then
3100 ac_site_file1=$prefix/share/config.site
3101 ac_site_file2=$prefix/etc/config.site
3102 else
3103 ac_site_file1=$ac_default_prefix/share/config.site
3104 ac_site_file2=$ac_default_prefix/etc/config.site
3105 fi
3106 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3107 do
3108 test "x$ac_site_file" = xNONE && continue
3109 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3111 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3112 sed 's/^/| /' "$ac_site_file" >&5
3113 . "$ac_site_file"
3114 fi
3115 done
3116
3117 if test -r "$cache_file"; then
3118 # Some versions of bash will fail to source /dev/null (special files
3119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3122 $as_echo "$as_me: loading cache $cache_file" >&6;}
3123 case $cache_file in
3124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3125 *) . "./$cache_file";;
3126 esac
3127 fi
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3130 $as_echo "$as_me: creating cache $cache_file" >&6;}
3131 >$cache_file
3132 fi
3133
3134 as_fn_append ac_header_list " stdlib.h"
3135 as_fn_append ac_header_list " unistd.h"
3136 as_fn_append ac_header_list " sys/param.h"
3137 as_fn_append ac_func_list " readlinkat"
3138 gl_getopt_required=GNU
3139 as_fn_append ac_header_list " getopt.h"
3140 as_fn_append ac_header_list " wchar.h"
3141 as_fn_append ac_header_list " stdint.h"
3142 as_fn_append ac_header_list " inttypes.h"
3143 as_fn_append ac_func_list " lstat"
3144 as_fn_append ac_func_list " alarm"
3145 as_fn_append ac_func_list " pthread_sigmask"
3146 as_fn_append ac_func_list " readlink"
3147 as_fn_append ac_header_list " sys/socket.h"
3148 as_fn_append ac_func_list " tzset"
3149 as_fn_append ac_func_list " strtoimax"
3150 as_fn_append ac_func_list " strtoumax"
3151 as_fn_append ac_func_list " symlink"
3152 as_fn_append ac_header_list " sys/stat.h"
3153 as_fn_append ac_header_list " sys/time.h"
3154 as_fn_append ac_func_list " localtime_r"
3155 # Check that the precious variables saved in the cache have kept the same
3156 # value.
3157 ac_cache_corrupted=false
3158 for ac_var in $ac_precious_vars; do
3159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3160 eval ac_new_set=\$ac_env_${ac_var}_set
3161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3162 eval ac_new_val=\$ac_env_${ac_var}_value
3163 case $ac_old_set,$ac_new_set in
3164 set,)
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3167 ac_cache_corrupted=: ;;
3168 ,set)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3171 ac_cache_corrupted=: ;;
3172 ,);;
3173 *)
3174 if test "x$ac_old_val" != "x$ac_new_val"; then
3175 # differences in whitespace do not lead to failure.
3176 ac_old_val_w=`echo x $ac_old_val`
3177 ac_new_val_w=`echo x $ac_new_val`
3178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3181 ac_cache_corrupted=:
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3185 eval $ac_var=\$ac_old_val
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3191 fi;;
3192 esac
3193 # Pass precious variables to config.status.
3194 if test "$ac_new_set" = set; then
3195 case $ac_new_val in
3196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3197 *) ac_arg=$ac_var=$ac_new_val ;;
3198 esac
3199 case " $ac_configure_args " in
3200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3202 esac
3203 fi
3204 done
3205 if $ac_cache_corrupted; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3210 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3211 fi
3212 ## -------------------- ##
3213 ## Main body of script. ##
3214 ## -------------------- ##
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3224
3225
3226 ac_aux_dir=
3227 for ac_dir in build-aux "$srcdir"/build-aux; do
3228 for ac_t in install-sh install.sh shtool; do
3229 if test -f "$ac_dir/$ac_t"; then
3230 ac_aux_dir=$ac_dir
3231 ac_install_sh="$ac_aux_dir/$ac_t -c"
3232 break 2
3233 fi
3234 done
3235 done
3236 if test -z "$ac_aux_dir"; then
3237 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3238 fi
3239
3240 # These three variables are undocumented and unsupported,
3241 # and are intended to be withdrawn in a future Autoconf release.
3242 # They can cause serious problems if a builder's source tree is in a directory
3243 # whose full name contains unusual characters.
3244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247
3248
3249 am__api_version='1.11'
3250
3251 # Find a good install program. We prefer a C program (faster),
3252 # so one script is as good as another. But avoid the broken or
3253 # incompatible versions:
3254 # SysV /etc/install, /usr/sbin/install
3255 # SunOS /usr/etc/install
3256 # IRIX /sbin/install
3257 # AIX /bin/install
3258 # AmigaOS /C/install, which installs bootblocks on floppy discs
3259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3262 # OS/2's system install, which has a completely different semantic
3263 # ./install, which can be erroneously created by make from ./install.sh.
3264 # Reject install programs that cannot install multiple files.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3267 if test -z "$INSTALL"; then
3268 if test "${ac_cv_path_install+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 # Account for people who put trailing slashes in PATH elements.
3277 case $as_dir/ in #((
3278 ./ | .// | /[cC]/* | \
3279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3281 /usr/ucb/* ) ;;
3282 *)
3283 # OSF1 and SCO ODT 3.0 have their own names for install.
3284 # Don't use installbsd from OSF since it installs stuff as root
3285 # by default.
3286 for ac_prog in ginstall scoinst install; do
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3289 if test $ac_prog = install &&
3290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3291 # AIX install. It has an incompatible calling convention.
3292 :
3293 elif test $ac_prog = install &&
3294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3295 # program-specific install script used by HP pwplus--don't use.
3296 :
3297 else
3298 rm -rf conftest.one conftest.two conftest.dir
3299 echo one > conftest.one
3300 echo two > conftest.two
3301 mkdir conftest.dir
3302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3303 test -s conftest.one && test -s conftest.two &&
3304 test -s conftest.dir/conftest.one &&
3305 test -s conftest.dir/conftest.two
3306 then
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 break 3
3309 fi
3310 fi
3311 fi
3312 done
3313 done
3314 ;;
3315 esac
3316
3317 done
3318 IFS=$as_save_IFS
3319
3320 rm -rf conftest.one conftest.two conftest.dir
3321
3322 fi
3323 if test "${ac_cv_path_install+set}" = set; then
3324 INSTALL=$ac_cv_path_install
3325 else
3326 # As a last resort, use the slow shell script. Don't cache a
3327 # value for INSTALL within a source directory, because that will
3328 # break other packages using the cache if that directory is
3329 # removed, or if the value is a relative name.
3330 INSTALL=$ac_install_sh
3331 fi
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3334 $as_echo "$INSTALL" >&6; }
3335
3336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3337 # It thinks the first close brace ends the variable substitution.
3338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3339
3340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3341
3342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3345 $as_echo_n "checking whether build environment is sane... " >&6; }
3346 # Just in case
3347 sleep 1
3348 echo timestamp > conftest.file
3349 # Reject unsafe characters in $srcdir or the absolute working directory
3350 # name. Accept space and tab only in the latter.
3351 am_lf='
3352 '
3353 case `pwd` in
3354 *[\\\"\#\$\&\'\`$am_lf]*)
3355 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3356 esac
3357 case $srcdir in
3358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3359 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3360 esac
3361
3362 # Do `set' in a subshell so we don't clobber the current shell's
3363 # arguments. Must try -L first in case configure is actually a
3364 # symlink; some systems play weird games with the mod time of symlinks
3365 # (eg FreeBSD returns the mod time of the symlink's containing
3366 # directory).
3367 if (
3368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3369 if test "$*" = "X"; then
3370 # -L didn't work.
3371 set X `ls -t "$srcdir/configure" conftest.file`
3372 fi
3373 rm -f conftest.file
3374 if test "$*" != "X $srcdir/configure conftest.file" \
3375 && test "$*" != "X conftest.file $srcdir/configure"; then
3376
3377 # If neither matched, then we have a broken ls. This can happen
3378 # if, for instance, CONFIG_SHELL is bash and it inherits a
3379 # broken ls alias from the environment. This has actually
3380 # happened. Such a system could not be considered "sane".
3381 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3382 alias in your environment" "$LINENO" 5
3383 fi
3384
3385 test "$2" = conftest.file
3386 )
3387 then
3388 # Ok.
3389 :
3390 else
3391 as_fn_error "newly created file is older than distributed files!
3392 Check your system clock" "$LINENO" 5
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396 test "$program_prefix" != NONE &&
3397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE &&
3400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3405
3406 # expand $ac_aux_dir to an absolute path
3407 am_aux_dir=`cd $ac_aux_dir && pwd`
3408
3409 if test x"${MISSING+set}" != xset; then
3410 case $am_aux_dir in
3411 *\ * | *\ *)
3412 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3413 *)
3414 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3415 esac
3416 fi
3417 # Use eval to expand $SHELL
3418 if eval "$MISSING --run true"; then
3419 am_missing_run="$MISSING --run "
3420 else
3421 am_missing_run=
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3424 fi
3425
3426 if test x"${install_sh}" != xset; then
3427 case $am_aux_dir in
3428 *\ * | *\ *)
3429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3430 *)
3431 install_sh="\${SHELL} $am_aux_dir/install-sh"
3432 esac
3433 fi
3434
3435 # Installed binaries are usually stripped using `strip' when the user
3436 # run `make install-strip'. However `strip' might not be the right
3437 # tool to use in cross-compilation environments, therefore Automake
3438 # will honor the `STRIP' environment variable to overrule this program.
3439 if test "$cross_compiling" != no; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}strip; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_STRIP+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$STRIP"; then
3449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 STRIP=$ac_cv_prog_STRIP
3469 if test -n "$STRIP"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3471 $as_echo "$STRIP" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$ac_cv_prog_STRIP"; then
3480 ac_ct_STRIP=$STRIP
3481 # Extract the first word of "strip", so it can be a program name with args.
3482 set dummy strip; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$ac_ct_STRIP"; then
3489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_STRIP="strip"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3509 if test -n "$ac_ct_STRIP"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3511 $as_echo "$ac_ct_STRIP" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517 if test "x$ac_ct_STRIP" = x; then
3518 STRIP=":"
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 STRIP=$ac_ct_STRIP
3527 fi
3528 else
3529 STRIP="$ac_cv_prog_STRIP"
3530 fi
3531
3532 fi
3533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3537 if test -z "$MKDIR_P"; then
3538 if test "${ac_cv_path_mkdir+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_prog in mkdir gmkdir; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3550 'mkdir (GNU coreutils) '* | \
3551 'mkdir (coreutils) '* | \
3552 'mkdir (fileutils) '4.1*)
3553 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3554 break 3;;
3555 esac
3556 done
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562
3563 test -d ./--version && rmdir ./--version
3564 if test "${ac_cv_path_mkdir+set}" = set; then
3565 MKDIR_P="$ac_cv_path_mkdir -p"
3566 else
3567 # As a last resort, use the slow shell script. Don't cache a
3568 # value for MKDIR_P within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the value is a relative name.
3571 MKDIR_P="$ac_install_sh -d"
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3575 $as_echo "$MKDIR_P" >&6; }
3576
3577
3578 mkdir_p="$MKDIR_P"
3579 case $mkdir_p in
3580 [\\/$]* | ?:[\\/]*) ;;
3581 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3582 esac
3583
3584 for ac_prog in gawk mawk nawk awk
3585 do
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_AWK+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$AWK"; then
3594 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_AWK="$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 AWK=$ac_cv_prog_AWK
3614 if test -n "$AWK"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3616 $as_echo "$AWK" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 test -n "$AWK" && break
3624 done
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3628 set x ${MAKE-make}
3629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 cat >conftest.make <<\_ACEOF
3634 SHELL = /bin/sh
3635 all:
3636 @echo '@@@%%%=$(MAKE)=@@@%%%'
3637 _ACEOF
3638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3640 *@@@%%%=?*=@@@%%%*)
3641 eval ac_cv_prog_make_${ac_make}_set=yes;;
3642 *)
3643 eval ac_cv_prog_make_${ac_make}_set=no;;
3644 esac
3645 rm -f conftest.make
3646 fi
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 SET_MAKE=
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 SET_MAKE="MAKE=${MAKE-make}"
3655 fi
3656
3657 rm -rf .tst 2>/dev/null
3658 mkdir .tst 2>/dev/null
3659 if test -d .tst; then
3660 am__leading_dot=.
3661 else
3662 am__leading_dot=_
3663 fi
3664 rmdir .tst 2>/dev/null
3665
3666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3667 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3668 # is not polluted with repeated "-I."
3669 am__isrc=' -I$(srcdir)'
3670 # test to see if srcdir already configured
3671 if test -f $srcdir/config.status; then
3672 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3673 fi
3674 fi
3675
3676 # test whether we have cygpath
3677 if test -z "$CYGPATH_W"; then
3678 if (cygpath --version) >/dev/null 2>/dev/null; then
3679 CYGPATH_W='cygpath -w'
3680 else
3681 CYGPATH_W=echo
3682 fi
3683 fi
3684
3685
3686 # Define the identity of the package.
3687 PACKAGE='emacs'
3688 VERSION='24.1.50'
3689
3690
3691 cat >>confdefs.h <<_ACEOF
3692 #define PACKAGE "$PACKAGE"
3693 _ACEOF
3694
3695
3696 cat >>confdefs.h <<_ACEOF
3697 #define VERSION "$VERSION"
3698 _ACEOF
3699
3700 # Some tools Automake needs.
3701
3702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703
3704
3705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3706
3707
3708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709
3710
3711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3712
3713
3714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3715
3716 # We need awk for the "check" target. The system "awk" is bad on
3717 # some platforms.
3718 # Always define AMTAR for backward compatibility.
3719
3720 AMTAR=${AMTAR-"${am_missing_run}tar"}
3721
3722 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3723
3724
3725
3726
3727
3728
3729
3730
3731 lispdir='${datadir}/emacs/${version}/lisp'
3732 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3733 '${datadir}/emacs/site-lisp'
3734 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3735 etcdir='${datadir}/emacs/${version}/etc'
3736 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3737 docdir='${datadir}/emacs/${version}/etc'
3738 gamedir='${localstatedir}/games/emacs'
3739
3740
3741
3742
3743 # Check whether --with-pop was given.
3744 if test "${with_pop+set}" = set; then :
3745 withval=$with_pop;
3746 else
3747 with_pop=yes
3748 fi
3749
3750 if test "$with_pop" = yes; then
3751 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3752
3753 fi
3754
3755
3756 # Check whether --with-kerberos was given.
3757 if test "${with_kerberos+set}" = set; then :
3758 withval=$with_kerberos;
3759 else
3760 with_kerberos=no
3761 fi
3762
3763 if test "$with_kerberos" != no; then
3764 $as_echo "#define KERBEROS 1" >>confdefs.h
3765
3766 fi
3767
3768
3769 # Check whether --with-kerberos5 was given.
3770 if test "${with_kerberos5+set}" = set; then :
3771 withval=$with_kerberos5;
3772 else
3773 with_kerberos5=no
3774 fi
3775
3776 if test "${with_kerberos5}" != no; then
3777 if test "${with_kerberos}" = no; then
3778 with_kerberos=yes
3779 $as_echo "#define KERBEROS 1" >>confdefs.h
3780
3781 fi
3782
3783 $as_echo "#define KERBEROS5 1" >>confdefs.h
3784
3785 fi
3786
3787
3788 # Check whether --with-hesiod was given.
3789 if test "${with_hesiod+set}" = set; then :
3790 withval=$with_hesiod;
3791 else
3792 with_hesiod=no
3793 fi
3794
3795 if test "$with_hesiod" != no; then
3796
3797 $as_echo "#define HESIOD 1" >>confdefs.h
3798
3799 fi
3800
3801
3802 # Check whether --with-mmdf was given.
3803 if test "${with_mmdf+set}" = set; then :
3804 withval=$with_mmdf;
3805 else
3806 with_mmdf=no
3807 fi
3808
3809 if test "$with_mmdf" != no; then
3810
3811 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3812
3813 fi
3814
3815
3816 # Check whether --with-mail-unlink was given.
3817 if test "${with_mail_unlink+set}" = set; then :
3818 withval=$with_mail_unlink;
3819 else
3820 with_mail_unlink=no
3821 fi
3822
3823 if test "$with_mail_unlink" != no; then
3824
3825 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3826
3827 fi
3828
3829
3830 # Check whether --with-mailhost was given.
3831 if test "${with_mailhost+set}" = set; then :
3832 withval=$with_mailhost;
3833 cat >>confdefs.h <<_ACEOF
3834 #define MAILHOST "$withval"
3835 _ACEOF
3836
3837 fi
3838
3839
3840
3841 # Check whether --with-sound was given.
3842 if test "${with_sound+set}" = set; then :
3843 withval=$with_sound;
3844 else
3845 with_sound=yes
3846 fi
3847
3848
3849
3850 # Check whether --with-sync-input was given.
3851 if test "${with_sync_input+set}" = set; then :
3852 withval=$with_sync_input;
3853 else
3854 with_sync_input=yes
3855 fi
3856
3857 if test "$with_sync_input" = yes; then
3858
3859 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3860
3861 fi
3862
3863
3864 # Check whether --with-x-toolkit was given.
3865 if test "${with_x_toolkit+set}" = set; then :
3866 withval=$with_x_toolkit; case "${withval}" in
3867 y | ye | yes ) val=gtk ;;
3868 n | no ) val=no ;;
3869 l | lu | luc | luci | lucid ) val=lucid ;;
3870 a | at | ath | athe | athen | athena ) val=athena ;;
3871 m | mo | mot | moti | motif ) val=motif ;;
3872 g | gt | gtk ) val=gtk ;;
3873 gtk3 ) val=gtk3 ;;
3874 * )
3875 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3876 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3877 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3878 ;;
3879 esac
3880 with_x_toolkit=$val
3881
3882 fi
3883
3884
3885
3886 # Check whether --with-wide-int was given.
3887 if test "${with_wide_int+set}" = set; then :
3888 withval=$with_wide_int;
3889 else
3890 with_wide_int=no
3891 fi
3892
3893 if test "$with_wide_int" = yes; then
3894
3895 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3896
3897 fi
3898
3899
3900 # Check whether --with-xpm was given.
3901 if test "${with_xpm+set}" = set; then :
3902 withval=$with_xpm;
3903 else
3904 with_xpm=yes
3905 fi
3906
3907
3908 # Check whether --with-jpeg was given.
3909 if test "${with_jpeg+set}" = set; then :
3910 withval=$with_jpeg;
3911 else
3912 with_jpeg=yes
3913 fi
3914
3915
3916 # Check whether --with-tiff was given.
3917 if test "${with_tiff+set}" = set; then :
3918 withval=$with_tiff;
3919 else
3920 with_tiff=yes
3921 fi
3922
3923
3924 # Check whether --with-gif was given.
3925 if test "${with_gif+set}" = set; then :
3926 withval=$with_gif;
3927 else
3928 with_gif=yes
3929 fi
3930
3931
3932 # Check whether --with-png was given.
3933 if test "${with_png+set}" = set; then :
3934 withval=$with_png;
3935 else
3936 with_png=yes
3937 fi
3938
3939
3940 # Check whether --with-rsvg was given.
3941 if test "${with_rsvg+set}" = set; then :
3942 withval=$with_rsvg;
3943 else
3944 with_rsvg=yes
3945 fi
3946
3947
3948 # Check whether --with-xml2 was given.
3949 if test "${with_xml2+set}" = set; then :
3950 withval=$with_xml2;
3951 else
3952 with_xml2=yes
3953 fi
3954
3955
3956 # Check whether --with-imagemagick was given.
3957 if test "${with_imagemagick+set}" = set; then :
3958 withval=$with_imagemagick;
3959 else
3960 with_imagemagick=yes
3961 fi
3962
3963
3964
3965 # Check whether --with-xft was given.
3966 if test "${with_xft+set}" = set; then :
3967 withval=$with_xft;
3968 else
3969 with_xft=yes
3970 fi
3971
3972
3973 # Check whether --with-libotf was given.
3974 if test "${with_libotf+set}" = set; then :
3975 withval=$with_libotf;
3976 else
3977 with_libotf=yes
3978 fi
3979
3980
3981 # Check whether --with-m17n-flt was given.
3982 if test "${with_m17n_flt+set}" = set; then :
3983 withval=$with_m17n_flt;
3984 else
3985 with_m17n_flt=yes
3986 fi
3987
3988
3989
3990 # Check whether --with-toolkit-scroll-bars was given.
3991 if test "${with_toolkit_scroll_bars+set}" = set; then :
3992 withval=$with_toolkit_scroll_bars;
3993 else
3994 with_toolkit_scroll_bars=yes
3995 fi
3996
3997
3998 # Check whether --with-xaw3d was given.
3999 if test "${with_xaw3d+set}" = set; then :
4000 withval=$with_xaw3d;
4001 else
4002 with_xaw3d=yes
4003 fi
4004
4005
4006 # Check whether --with-xim was given.
4007 if test "${with_xim+set}" = set; then :
4008 withval=$with_xim;
4009 else
4010 with_xim=yes
4011 fi
4012
4013
4014 # Check whether --with-ns was given.
4015 if test "${with_ns+set}" = set; then :
4016 withval=$with_ns;
4017 else
4018 with_ns=no
4019 fi
4020
4021
4022
4023 # Check whether --with-gpm was given.
4024 if test "${with_gpm+set}" = set; then :
4025 withval=$with_gpm;
4026 else
4027 with_gpm=yes
4028 fi
4029
4030
4031 # Check whether --with-dbus was given.
4032 if test "${with_dbus+set}" = set; then :
4033 withval=$with_dbus;
4034 else
4035 with_dbus=yes
4036 fi
4037
4038
4039 # Check whether --with-gconf was given.
4040 if test "${with_gconf+set}" = set; then :
4041 withval=$with_gconf;
4042 else
4043 with_gconf=yes
4044 fi
4045
4046
4047 # Check whether --with-gsettings was given.
4048 if test "${with_gsettings+set}" = set; then :
4049 withval=$with_gsettings;
4050 else
4051 with_gsettings=yes
4052 fi
4053
4054
4055 # Check whether --with-selinux was given.
4056 if test "${with_selinux+set}" = set; then :
4057 withval=$with_selinux;
4058 else
4059 with_selinux=yes
4060 fi
4061
4062
4063 # Check whether --with-gnutls was given.
4064 if test "${with_gnutls+set}" = set; then :
4065 withval=$with_gnutls;
4066 else
4067 with_gnutls=yes
4068 fi
4069
4070
4071 ## For the times when you want to build Emacs but don't have
4072 ## a suitable makeinfo, and can live without the manuals.
4073
4074 # Check whether --with-makeinfo was given.
4075 if test "${with_makeinfo+set}" = set; then :
4076 withval=$with_makeinfo;
4077 else
4078 with_makeinfo=yes
4079 fi
4080
4081
4082 ## Makefile.in needs the cache file name.
4083
4084
4085 ## This is an option because I do not know if all info/man support
4086 ## compressed files, nor how to test if they do so.
4087
4088 # Check whether --with-compress-info was given.
4089 if test "${with_compress_info+set}" = set; then :
4090 withval=$with_compress_info;
4091 else
4092 with_compress_info=yes
4093 fi
4094
4095 if test $with_compress_info = yes; then
4096 GZIP_INFO=yes
4097 else
4098 GZIP_INFO=
4099 fi
4100
4101
4102
4103 # Check whether --with-pkg-config-prog was given.
4104 if test "${with_pkg_config_prog+set}" = set; then :
4105 withval=$with_pkg_config_prog;
4106 fi
4107
4108 if test "X${with_pkg_config_prog}" != X; then
4109 if test "${with_pkg_config_prog}" != yes; then
4110 PKG_CONFIG="${with_pkg_config_prog}"
4111 fi
4112 fi
4113
4114 CRT_DIR=
4115
4116 # Check whether --with-crt-dir was given.
4117 if test "${with_crt_dir+set}" = set; then :
4118 withval=$with_crt_dir;
4119 fi
4120
4121 CRT_DIR="${with_crt_dir}"
4122
4123
4124 # Check whether --with-gameuser was given.
4125 if test "${with_gameuser+set}" = set; then :
4126 withval=$with_gameuser;
4127 fi
4128
4129 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4130 && gameuser="${with_gameuser}"
4131 test "X$gameuser" = X && gameuser=games
4132
4133
4134 # Check whether --with-gnustep-conf was given.
4135 if test "${with_gnustep_conf+set}" = set; then :
4136 withval=$with_gnustep_conf;
4137 fi
4138
4139 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4140 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4141 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4142 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4143
4144 # Check whether --enable-ns-self-contained was given.
4145 if test "${enable_ns_self_contained+set}" = set; then :
4146 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4147 else
4148 EN_NS_SELF_CONTAINED=yes
4149 fi
4150
4151
4152 # Check whether --enable-asserts was given.
4153 if test "${enable_asserts+set}" = set; then :
4154 enableval=$enable_asserts; USE_XASSERTS=$enableval
4155 else
4156 USE_XASSERTS=no
4157 fi
4158
4159
4160 # Check whether --enable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then :
4162 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4163 else
4164 USE_MAINTAINER_MODE=yes
4165 fi
4166
4167 if test $USE_MAINTAINER_MODE = yes; then
4168 MAINT=
4169 else
4170 MAINT=#
4171 fi
4172
4173
4174 # Check whether --enable-locallisppath was given.
4175 if test "${enable_locallisppath+set}" = set; then :
4176 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4177 locallisppath=
4178 elif test "${enableval}" != "yes"; then
4179 locallisppath=${enableval}
4180 fi
4181 fi
4182
4183
4184 # Check whether --enable-checking was given.
4185 if test "${enable_checking+set}" = set; then :
4186 enableval=$enable_checking; ac_checking_flags="${enableval}"
4187 fi
4188
4189 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4190 for check in $ac_checking_flags
4191 do
4192 case $check in
4193 # these set all the flags to specific states
4194 yes) ac_enable_checking=1 ;;
4195 no) ac_enable_checking= ;
4196 ac_gc_check_stringbytes= ;
4197 ac_gc_check_string_overrun= ;
4198 ac_gc_check_string_free_list= ;
4199 ac_xmalloc_overrun= ;
4200 ac_gc_check_cons_list= ;;
4201 all) ac_enable_checking=1 ;
4202 ac_gc_check_stringbytes=1 ;
4203 ac_gc_check_string_overrun=1 ;
4204 ac_gc_check_string_free_list=1 ;
4205 ac_xmalloc_overrun=1 ;
4206 ac_gc_check_cons_list=1 ;;
4207 # these enable particular checks
4208 stringbytes) ac_gc_check_stringbytes=1 ;;
4209 stringoverrun) ac_gc_check_string_overrun=1 ;;
4210 stringfreelist) ac_gc_check_string_free_list=1 ;;
4211 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4212 conslist) ac_gc_check_cons_list=1 ;;
4213 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4214 esac
4215 done
4216 IFS="$ac_save_IFS"
4217
4218 if test x$ac_enable_checking != x ; then
4219
4220 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4221
4222 fi
4223 if test x$ac_gc_check_stringbytes != x ; then
4224
4225 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4226
4227 fi
4228 if test x$ac_gc_check_string_overrun != x ; then
4229
4230 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4231
4232 fi
4233 if test x$ac_gc_check_string_free_list != x ; then
4234
4235 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4236
4237 fi
4238 if test x$ac_xmalloc_overrun != x ; then
4239
4240 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4241
4242 fi
4243 if test x$ac_gc_check_cons_list != x ; then
4244
4245 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4246
4247 fi
4248
4249 # Check whether --enable-use-lisp-union-type was given.
4250 if test "${enable_use_lisp_union_type+set}" = set; then :
4251 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4252
4253 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4254
4255 fi
4256 fi
4257
4258
4259
4260 # Check whether --enable-profiling was given.
4261 if test "${enable_profiling+set}" = set; then :
4262 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4263 fi
4264
4265 if test x$ac_enable_profiling != x ; then
4266 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4267 else
4268 PROFILING_CFLAGS=
4269 fi
4270
4271
4272 # Check whether --enable-autodepend was given.
4273 if test "${enable_autodepend+set}" = set; then :
4274 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4275 else
4276 ac_enable_autodepend=yes
4277 fi
4278
4279
4280 #### Make srcdir absolute, if it isn't already. It's important to
4281 #### avoid running the path through pwd unnecessarily, since pwd can
4282 #### give you automounter prefixes, which can go away. We do all this
4283 #### so Emacs can find its files when run uninstalled.
4284 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4285 unset CDPATH
4286 case "${srcdir}" in
4287 /* ) ;;
4288 . )
4289 ## We may be able to use the $PWD environment variable to make this
4290 ## absolute. But sometimes PWD is inaccurate.
4291 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4292 ## but that tested only for a well-formed and valid PWD,
4293 ## it did not object when PWD was well-formed and valid but just wrong.
4294 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4295 then
4296 srcdir="$PWD"
4297 else
4298 srcdir="`(cd ${srcdir}; pwd)`"
4299 fi
4300 ;;
4301 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4302 esac
4303
4304 #### Given the configuration name, set machfile and opsysfile to the
4305 #### names of the m/*.h and s/*.h files we should use.
4306
4307 ### Canonicalize the configuration name.
4308
4309 # Make sure we can run config.sub.
4310 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4311 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4314 $as_echo_n "checking build system type... " >&6; }
4315 if test "${ac_cv_build+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 ac_build_alias=$build_alias
4319 test "x$ac_build_alias" = x &&
4320 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4321 test "x$ac_build_alias" = x &&
4322 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4323 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4324 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4328 $as_echo "$ac_cv_build" >&6; }
4329 case $ac_cv_build in
4330 *-*-*) ;;
4331 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4332 esac
4333 build=$ac_cv_build
4334 ac_save_IFS=$IFS; IFS='-'
4335 set x $ac_cv_build
4336 shift
4337 build_cpu=$1
4338 build_vendor=$2
4339 shift; shift
4340 # Remember, the first character of IFS is used to create $*,
4341 # except with old shells:
4342 build_os=$*
4343 IFS=$ac_save_IFS
4344 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4345
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4348 $as_echo_n "checking host system type... " >&6; }
4349 if test "${ac_cv_host+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test "x$host_alias" = x; then
4353 ac_cv_host=$ac_cv_build
4354 else
4355 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4356 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4357 fi
4358
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4361 $as_echo "$ac_cv_host" >&6; }
4362 case $ac_cv_host in
4363 *-*-*) ;;
4364 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4365 esac
4366 host=$ac_cv_host
4367 ac_save_IFS=$IFS; IFS='-'
4368 set x $ac_cv_host
4369 shift
4370 host_cpu=$1
4371 host_vendor=$2
4372 shift; shift
4373 # Remember, the first character of IFS is used to create $*,
4374 # except with old shells:
4375 host_os=$*
4376 IFS=$ac_save_IFS
4377 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378
4379
4380 canonical=$host
4381 configuration=${host_alias-${build_alias-$host}}
4382
4383
4384
4385 ### If you add support for a new configuration, add code to this
4386 ### switch statement to recognize your configuration name and select
4387 ### the appropriate operating system and machine description files.
4388
4389 ### You would hope that you could choose an m/*.h file pretty much
4390 ### based on the machine portion of the configuration name, and an s/*.h
4391 ### file based on the operating system portion. However, it turns out
4392 ### that each m/*.h file is pretty manufacturer-specific - for
4393 ### example mips.h is MIPS
4394 ### So we basically have to have a special case for each
4395 ### configuration name.
4396 ###
4397 ### As far as handling version numbers on operating systems is
4398 ### concerned, make sure things will fail in a fixable way. If
4399 ### /etc/MACHINES doesn't say anything about version numbers, be
4400 ### prepared to handle anything reasonably. If version numbers
4401 ### matter, be sure /etc/MACHINES says something about it.
4402
4403 machine='' opsys='' unported=no
4404 case "${canonical}" in
4405
4406 ## GNU/Linux and similar ports
4407 *-*-linux* )
4408 opsys=gnu-linux
4409 case ${canonical} in
4410 alpha*) machine=alpha ;;
4411 s390x-*) machine=ibms390x ;;
4412 powerpc*) machine=macppc ;;
4413 sparc*) machine=sparc ;;
4414 ia64*) machine=ia64 ;;
4415 m68k*) machine=m68k ;;
4416 x86_64*) machine=amdx86-64 ;;
4417 esac
4418 ;;
4419
4420 ## FreeBSD ports
4421 *-*-freebsd* )
4422 opsys=freebsd
4423 case "${canonical}" in
4424 alpha*) machine=alpha ;;
4425 amd64-*|x86_64-*) machine=amdx86-64 ;;
4426 ia64-*) machine=ia64 ;;
4427 i[3456]86-*) machine=intel386 ;;
4428 powerpc-*) machine=macppc ;;
4429 sparc-*) machine=sparc ;;
4430 sparc64-*) machine=sparc ;;
4431 esac
4432 ;;
4433
4434 ## FreeBSD kernel + glibc based userland
4435 *-*-kfreebsd*gnu* )
4436 opsys=gnu-kfreebsd
4437 case "${canonical}" in
4438 alpha*) machine=alpha ;;
4439 amd64-*|x86_64-*) machine=amdx86-64 ;;
4440 ia64-*) machine=ia64 ;;
4441 i[3456]86-*) machine=intel386 ;;
4442 powerpc-*) machine=macppc ;;
4443 sparc-*) machine=sparc ;;
4444 sparc64-*) machine=sparc ;;
4445 esac
4446 ;;
4447
4448 ## NetBSD ports
4449 *-*-netbsd* )
4450 opsys=netbsd
4451 case "${canonical}" in
4452 alpha*) machine=alpha ;;
4453 x86_64-*) machine=amdx86-64 ;;
4454 i[3456]86-*) machine=intel386 ;;
4455 m68k-*) machine=m68k ;;
4456 powerpc-*) machine=macppc ;;
4457 sparc*-) machine=sparc ;;
4458 vax-*) machine=vax ;;
4459 esac
4460 ;;
4461
4462 ## OpenBSD ports
4463 *-*-openbsd* )
4464 opsys=openbsd
4465 case "${canonical}" in
4466 alpha*) machine=alpha ;;
4467 x86_64-*) machine=amdx86-64 ;;
4468 i386-*) machine=intel386 ;;
4469 powerpc-*) machine=macppc ;;
4470 sparc*) machine=sparc ;;
4471 vax-*) machine=vax ;;
4472 esac
4473 ;;
4474
4475 ## Apple Darwin / Mac OS X
4476 *-apple-darwin* )
4477 case "${canonical}" in
4478 i[3456]86-* ) machine=intel386 ;;
4479 powerpc-* ) machine=macppc ;;
4480 x86_64-* ) machine=amdx86-64 ;;
4481 * ) unported=yes ;;
4482 esac
4483 opsys=darwin
4484 # Use fink packages if available.
4485 # FIXME? Is it really our business to decide this for the user?
4486 if test -d /sw/include && test -d /sw/lib; then
4487 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4488 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4489 fi
4490 ;;
4491
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa*-hp-hpux10.2* )
4494 opsys=hpux10-20
4495 ;;
4496 hppa*-hp-hpux1[1-9]* )
4497 opsys=hpux11
4498 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4499 ;;
4500
4501 ## IBM machines
4502 rs6000-ibm-aix4.[23]* )
4503 machine=ibmrs6000 opsys=aix4-2
4504 ;;
4505 powerpc-ibm-aix4.[23]* )
4506 machine=ibmrs6000 opsys=aix4-2
4507 ;;
4508 rs6000-ibm-aix[56]* )
4509 machine=ibmrs6000 opsys=aix4-2
4510 ;;
4511 powerpc-ibm-aix[56]* )
4512 machine=ibmrs6000 opsys=aix4-2
4513 ;;
4514
4515 ## Silicon Graphics machines
4516 ## Iris 4D
4517 mips-sgi-irix6.5 )
4518 opsys=irix6-5
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4523 ;;
4524
4525 ## Suns
4526 *-sun-solaris* \
4527 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4528 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4529 case "${canonical}" in
4530 i[3456]86-*-* ) machine=intel386 ;;
4531 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4532 sparc* ) machine=sparc ;;
4533 * ) unported=yes ;;
4534 esac
4535 case "${canonical}" in
4536 *-sunos5.6* | *-solaris2.6* )
4537 opsys=sol2-6
4538 RANLIB="ar -ts"
4539 ;;
4540 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4541 opsys=sol2-6
4542 emacs_check_sunpro_c=yes
4543 ;;
4544 *-sunos5* | *-solaris* )
4545 opsys=sol2-10
4546 emacs_check_sunpro_c=yes
4547 ;;
4548 esac
4549 ## Watch out for a compiler that we know will not work.
4550 case "${canonical}" in
4551 *-solaris* | *-sunos5* )
4552 if [ "x$CC" = x/usr/ucb/cc ]; then
4553 ## /usr/ucb/cc doesn't work;
4554 ## we should find some other compiler that does work.
4555 unset CC
4556 fi
4557 ;;
4558 *) ;;
4559 esac
4560 ;;
4561
4562 ## Intel 386 machines where we don't care about the manufacturer.
4563 i[3456]86-*-* )
4564 machine=intel386
4565 case "${canonical}" in
4566 *-cygwin ) opsys=cygwin ;;
4567 *-darwin* ) opsys=darwin ;;
4568 *-sysv4.2uw* ) opsys=unixware ;;
4569 *-sysv5uw* ) opsys=unixware ;;
4570 *-sysv5OpenUNIX* ) opsys=unixware ;;
4571 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4572 esac
4573 ;;
4574
4575 * )
4576 unported=yes
4577 ;;
4578 esac
4579
4580 ### If the code above didn't choose an operating system, just choose
4581 ### an operating system based on the configuration name. You really
4582 ### only want to use this when you have no idea what the right
4583 ### operating system is; if you know what operating systems a machine
4584 ### runs, it's cleaner to make it explicit in the case statement
4585 ### above.
4586 if test x"${opsys}" = x; then
4587 case "${canonical}" in
4588 *-gnu* ) opsys=gnu ;;
4589 * )
4590 unported=yes
4591 ;;
4592 esac
4593 fi
4594
4595
4596
4597 if test $unported = yes; then
4598 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4599 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4600 fi
4601
4602 if test -n "$machine"; then
4603 machfile="m/${machine}.h"
4604 else
4605 machfile=
4606 fi
4607 opsysfile="s/${opsys}.h"
4608
4609
4610 #### Choose a compiler.
4611
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_CC"; then
4657 ac_ct_CC=$CC
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4704 fi
4705 else
4706 CC="$ac_cv_prog_CC"
4707 fi
4708
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}cc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 fi
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760 else
4761 ac_prog_rejected=no
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected=yes
4771 continue
4772 fi
4773 ac_cv_prog_CC="cc"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_CC
4784 shift
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4789 shift
4790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4791 fi
4792 fi
4793 fi
4794 fi
4795 CC=$ac_cv_prog_CC
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805 fi
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in cl.exe
4809 do
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 test -n "$CC" && break
4848 done
4849 fi
4850 if test -z "$CC"; then
4851 ac_ct_CC=$CC
4852 for ac_prog in cl.exe
4853 do
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 test -n "$ac_ct_CC" && break
4892 done
4893
4894 if test "x$ac_ct_CC" = x; then
4895 CC=""
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CC=$ac_ct_CC
4904 fi
4905 fi
4906
4907 fi
4908
4909
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error "no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4914
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4917 set X $ac_compile
4918 ac_compiler=$2
4919 for ac_option in --version -v -V -qversion; do
4920 { { ac_try="$ac_compiler $ac_option >&5"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 ac_status=$?
4929 if test -s conftest.err; then
4930 sed '10a\
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4934 fi
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4938 done
4939
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942
4943 int
4944 main ()
4945 {
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4955 # of exeext.
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4959
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4962
4963 ac_rmfiles=
4964 for ac_file in $ac_files
4965 do
4966 case $ac_file in
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4969 esac
4970 done
4971 rm -f $ac_rmfiles
4972
4973 if { { ac_try="$ac_link_default"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4988 # Autoconf.
4989 for ac_file in $ac_files ''
4990 do
4991 test -f "$ac_file" || continue
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4994 ;;
4995 [ab].out )
4996 # We found the default executable, but exeext='' is most
4997 # certainly right.
4998 break;;
4999 *.* )
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5001 then :; else
5002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003 fi
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5008 # actually working.
5009 break;;
5010 * )
5011 break;;
5012 esac
5013 done
5014 test "$ac_cv_exeext" = no && ac_cv_exeext=
5015
5016 else
5017 ac_file=''
5018 fi
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status 77
5028 as_fn_error "C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext=$ac_cv_exeext
5039
5040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5058 # `rm'.
5059 for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067 done
5068 else
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error "cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5073 fi
5074 rm -f conftest conftest$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5077
5078 rm -f conftest.$ac_ext
5079 EXEEXT=$ac_cv_exeext
5080 ac_exeext=$EXEEXT
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <stdio.h>
5084 int
5085 main ()
5086 {
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 ac_clean_files="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error "cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5132 fi
5133 fi
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5137
5138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139 ac_clean_files=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try="$ac_compile"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175 done
5176 else
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files: cannot compile
5183 See \`config.log' for more details." "$LINENO" 5; }
5184 fi
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5190 ac_objext=$OBJEXT
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203 choke me
5204 #endif
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212 else
5213 ac_compiler_gnu=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223 else
5224 GCC=
5225 fi
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_prog_cc_g=yes
5250 else
5251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254
5255 int
5256 main ()
5257 {
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264
5265 else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5267 CFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270
5271 int
5272 main ()
5273 {
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_g=yes
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5298 fi
5299 else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5304 fi
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_cv_prog_cc_c89=no
5312 ac_save_CC=$CC
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdarg.h>
5316 #include <stdio.h>
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5323 char **p;
5324 int i;
5325 {
5326 return p[i];
5327 }
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5329 {
5330 char *s;
5331 va_list v;
5332 va_start (v,p);
5333 s = g (p, va_arg (v,int));
5334 va_end (v);
5335 return s;
5336 }
5337
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5346
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5349 #define FOO(x) 'x'
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5351
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356 int argc;
5357 char **argv;
5358 int
5359 main ()
5360 {
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5368 do
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5375 done
5376 rm -f conftest.$ac_ext
5377 CC=$ac_save_CC
5378
5379 fi
5380 # AC_CACHE_VAL
5381 case "x$ac_cv_prog_cc_c89" in
5382 x)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5385 xno)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5388 *)
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392 esac
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5394
5395 fi
5396
5397 ac_ext=c
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5403
5404 ac_config_commands="$ac_config_commands depfiles"
5405
5406
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5409 am__doit:
5410 @echo this is the am__doit target
5411 .PHONY: am__doit
5412 END
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5416 am__include="#"
5417 am__quote=
5418 _am_result=none
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5424 am__include=include
5425 am__quote=
5426 _am_result=GNU
5427 ;;
5428 esac
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include "confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5435 am__quote="\""
5436 _am_result=BSD
5437 ;;
5438 esac
5439 fi
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5445
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5449 fi
5450
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5453 AMDEPBACKSLASH='\'
5454 fi
5455 if test "x$enable_dependency_tracking" != xno; then
5456 AMDEP_TRUE=
5457 AMDEP_FALSE='#'
5458 else
5459 AMDEP_TRUE='#'
5460 AMDEP_FALSE=
5461 fi
5462
5463
5464
5465 depcc="$CC" am_compiler_list=
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5477 # in D'.
5478 mkdir conftest.dir
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5482 cd conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5488 # directory.
5489 mkdir sub
5490
5491 am_cv_CC_dependencies_compiler_type=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494 fi
5495 am__universal=false
5496 case " $depcc " in #(
5497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5498 esac
5499
5500 for depmode in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5504 #
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5508 : > sub/conftest.c
5509 for i in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub/conftst$i.h
5514 done
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5516
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj=sub/conftest.${OBJEXT-o}
5522 am__minus_obj="-o $am__obj"
5523 case $depmode in
5524 gcc)
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false || continue
5527 ;;
5528 nosideeffect)
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes; then
5532 continue
5533 else
5534 break
5535 fi
5536 ;;
5537 msvisualcpp | msvcmsys)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj=conftest.${OBJEXT-o}
5542 am__minus_obj=
5543 ;;
5544 none) break ;;
5545 esac
5546 if depmode=$depmode \
5547 source=sub/conftest.c object=$am__obj \
5548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5550 >/dev/null 2>conftest.err &&
5551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type=$depmode
5565 break
5566 fi
5567 fi
5568 done
5569
5570 cd ..
5571 rm -rf conftest.dir
5572 else
5573 am_cv_CC_dependencies_compiler_type=none
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5580
5581 if
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584 am__fastdepCC_TRUE=
5585 am__fastdepCC_FALSE='#'
5586 else
5587 am__fastdepCC_TRUE='#'
5588 am__fastdepCC_FALSE=
5589 fi
5590
5591
5592 if test "x$CC" != xcc; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5598 fi
5599 set dummy $CC; ac_cc=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5619 rm -f conftest2.*
5620 if { { case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5640 then
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5642 if test "x$CC" != xcc; then
5643 # Test first that cc exists at all.
5644 if { ac_try='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5656 rm -f conftest2.*
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5677 then
5678 # cc works too.
5679 :
5680 else
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5683 fi
5684 fi
5685 fi
5686 else
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 fi
5689 rm -f core conftest*
5690
5691 fi
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5700
5701 fi
5702
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5705 set dummy $CC
5706 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5715 fi
5716
5717
5718
5719 if test x$GCC = xyes; then
5720 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5721 else
5722 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5723 fi
5724
5725 # Initialize gnulib right after choosing the compiler.
5726
5727 ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5736 CPP=
5737 fi
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5744 do
5745 ac_preproc_ok=false
5746 for ac_c_preproc_warn_flag in '' yes
5747 do
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #ifdef __STDC__
5757 # include <limits.h>
5758 #else
5759 # include <assert.h>
5760 #endif
5761 Syntax error
5762 _ACEOF
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5764
5765 else
5766 # Broken: fails on valid input.
5767 continue
5768 fi
5769 rm -f conftest.err conftest.$ac_ext
5770
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5779 continue
5780 else
5781 # Passes both tests.
5782 ac_preproc_ok=:
5783 break
5784 fi
5785 rm -f conftest.err conftest.$ac_ext
5786
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then :
5791 break
5792 fi
5793
5794 done
5795 ac_cv_prog_CPP=$CPP
5796
5797 fi
5798 CPP=$ac_cv_prog_CPP
5799 else
5800 ac_cv_prog_CPP=$CPP
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5804 ac_preproc_ok=false
5805 for ac_c_preproc_warn_flag in '' yes
5806 do
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #ifdef __STDC__
5816 # include <limits.h>
5817 #else
5818 # include <assert.h>
5819 #endif
5820 Syntax error
5821 _ACEOF
5822 if ac_fn_c_try_cpp "$LINENO"; then :
5823
5824 else
5825 # Broken: fails on valid input.
5826 continue
5827 fi
5828 rm -f conftest.err conftest.$ac_ext
5829
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5835 _ACEOF
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5837 # Broken: success on invalid input.
5838 continue
5839 else
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5843 fi
5844 rm -f conftest.err conftest.$ac_ext
5845
5846 done
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.$ac_ext
5849 if $ac_preproc_ok; then :
5850
5851 else
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5856 fi
5857
5858 ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875 do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in grep ggrep; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5885 *GNU*)
5886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5887 *)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP="$ac_path_GREP"
5902 ac_path_GREP_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 esac
5909
5910 $ac_path_GREP_found && break 3
5911 done
5912 done
5913 done
5914 IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 fi
5918 else
5919 ac_cv_path_GREP=$GREP
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP="$ac_cv_path_GREP"
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5934 then ac_cv_path_EGREP="$GREP -E"
5935 else
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_prog in egrep; do
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5951 *GNU*)
5952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5953 *)
5954 ac_count=0
5955 $as_echo_n 0123456789 >"conftest.in"
5956 while :
5957 do
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP="$ac_path_EGREP"
5968 ac_path_EGREP_max=$ac_count
5969 fi
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5972 done
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5974 esac
5975
5976 $ac_path_EGREP_found && break 3
5977 done
5978 done
5979 done
5980 IFS=$as_save_IFS
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 fi
5984 else
5985 ac_cv_path_EGREP=$EGREP
5986 fi
5987
5988 fi
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP="$ac_cv_path_EGREP"
5993
5994
5995
5996
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005
6006 #ifdef __ACK__
6007 Amsterdam
6008 #endif
6009
6010 _ACEOF
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6013 gl_cv_c_amsterdam_compiler=yes
6014 else
6015 gl_cv_c_amsterdam_compiler=no
6016 fi
6017 rm -f conftest*
6018
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6025 AR='cc -c.a'
6026 if test -z "$ARFLAGS"; then
6027 ARFLAGS='-o'
6028 fi
6029 else
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ar; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy ar; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107 if test "x$ac_ct_AR" = x; then
6108 AR="ar"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 AR=$ac_ct_AR
6117 fi
6118 else
6119 AR="$ac_cv_prog_AR"
6120 fi
6121
6122 if test -z "$ARFLAGS"; then
6123 ARFLAGS='cru'
6124 fi
6125 fi
6126 else
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='cru'
6129 fi
6130 fi
6131
6132
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6135 RANLIB=':'
6136 else
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 RANLIB=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214 if test "x$ac_ct_RANLIB" = x; then
6215 RANLIB=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 RANLIB=$ac_ct_RANLIB
6224 fi
6225 else
6226 RANLIB="$ac_cv_prog_RANLIB"
6227 fi
6228
6229 fi
6230 fi
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6244
6245 int
6246 main ()
6247 {
6248
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_header_stdc=yes
6255 else
6256 ac_cv_header_stdc=no
6257 fi
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <string.h>
6265
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev/null 2>&1; then :
6269
6270 else
6271 ac_cv_header_stdc=no
6272 fi
6273 rm -f conftest*
6274
6275 fi
6276
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then :
6286
6287 else
6288 ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6291
6292 fi
6293
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6297 :
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <ctype.h>
6302 #include <stdlib.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6313
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 int
6316 main ()
6317 {
6318 int i;
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6322 return 2;
6323 return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_run "$LINENO"; then :
6327
6328 else
6329 ac_cv_header_stdc=no
6330 fi
6331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6332 conftest.$ac_objext conftest.beam conftest.$ac_ext
6333 fi
6334
6335 fi
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6340
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6342
6343 fi
6344
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6347 inttypes.h stdint.h unistd.h
6348 do :
6349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6351 "
6352 eval as_val=\$$as_ac_Header
6353 if test "x$as_val" = x""yes; then :
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6357
6358 fi
6359
6360 done
6361
6362
6363
6364
6365
6366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6368 MINIX=yes
6369 else
6370 MINIX=
6371 fi
6372
6373
6374 if test "$MINIX" = yes; then
6375
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6377
6378
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6380
6381
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6383
6384 fi
6385
6386 case "$host_os" in
6387 hpux*)
6388
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6390
6391 ;;
6392 esac
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6405 int
6406 main ()
6407 {
6408
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__=yes
6415 else
6416 ac_cv_safe_to_define___extensions__=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6424
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6426
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6428
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6430
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6432
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6434
6435
6436
6437
6438
6439
6440
6441
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval=$enable_largefile;
6445 fi
6446
6447 if test "$enable_largefile" != no; then
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 ac_cv_sys_largefile_CC=no
6455 if test "$GCC" != yes; then
6456 ac_save_CC=$CC
6457 while :; do
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6470 ? 1 : -1];
6471 int
6472 main ()
6473 {
6474
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 break
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext
6483 CC="$CC -n32"
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 ac_cv_sys_largefile_CC=' -n32'; break
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext
6488 break
6489 done
6490 CC=$ac_save_CC
6491 rm -f conftest.$ac_ext
6492 fi
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no; then
6497 CC=$CC$ac_cv_sys_largefile_CC
6498 fi
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 while :; do
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6516 ? 1 : -1];
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_sys_file_offset_bits=no; break
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6540 ? 1 : -1];
6541 int
6542 main ()
6543 {
6544
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 ac_cv_sys_file_offset_bits=64; break
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_cv_sys_file_offset_bits=unknown
6554 break
6555 done
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6560 no | unknown) ;;
6561 *)
6562 cat >>confdefs.h <<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6564 _ACEOF
6565 ;;
6566 esac
6567 rm -rf conftest*
6568 if test $ac_cv_sys_file_offset_bits = unknown; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 while :; do
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6585 ? 1 : -1];
6586 int
6587 main ()
6588 {
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 ac_cv_sys_large_files=no; break
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6609 ? 1 : -1];
6610 int
6611 main ()
6612 {
6613
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 ac_cv_sys_large_files=1; break
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cv_sys_large_files=unknown
6623 break
6624 done
6625 fi
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6629 no | unknown) ;;
6630 *)
6631 cat >>confdefs.h <<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6633 _ACEOF
6634 ;;
6635 esac
6636 rm -rf conftest*
6637 fi
6638
6639
6640 fi
6641
6642 case $ac_cv_prog_cc_stdc in #(
6643 no) :
6644 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6645 *) :
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 ac_cv_prog_cc_c99=no
6652 ac_save_CC=$CC
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 #include <stdarg.h>
6656 #include <stdbool.h>
6657 #include <stdlib.h>
6658 #include <wchar.h>
6659 #include <stdio.h>
6660
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6665 static void
6666 test_varargs_macros (void)
6667 {
6668 int x = 1234;
6669 int y = 5678;
6670 debug ("Flag");
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6674 }
6675
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6680 #if !BIG_OK
6681 your preprocessor is broken;
6682 #endif
6683 #if BIG_OK
6684 #else
6685 your preprocessor is broken;
6686 #endif
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6689
6690 struct incomplete_array
6691 {
6692 int datasize;
6693 double data[];
6694 };
6695
6696 struct named_init {
6697 int number;
6698 const wchar_t *name;
6699 double average;
6700 };
6701
6702 typedef const char *ccp;
6703
6704 static inline int
6705 test_restrict (ccp restrict text)
6706 {
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6711 continue;
6712 return 0;
6713 }
6714
6715 // Check varargs and va_copy.
6716 static void
6717 test_varargs (const char *format, ...)
6718 {
6719 va_list args;
6720 va_start (args, format);
6721 va_list args_copy;
6722 va_copy (args_copy, args);
6723
6724 const char *str;
6725 int number;
6726 float fnumber;
6727
6728 while (*format)
6729 {
6730 switch (*format++)
6731 {
6732 case 's': // string
6733 str = va_arg (args_copy, const char *);
6734 break;
6735 case 'd': // int
6736 number = va_arg (args_copy, int);
6737 break;
6738 case 'f': // float
6739 fnumber = va_arg (args_copy, double);
6740 break;
6741 default:
6742 break;
6743 }
6744 }
6745 va_end (args_copy);
6746 va_end (args);
6747 }
6748
6749 int
6750 main ()
6751 {
6752
6753 // Check bool.
6754 _Bool success = false;
6755
6756 // Check restrict.
6757 if (test_restrict ("String literal") == 0)
6758 success = true;
6759 char *restrict newvar = "Another string";
6760
6761 // Check varargs.
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6764
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6768 ia->datasize = 10;
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6771
6772 // Check named initializers.
6773 struct named_init ni = {
6774 .number = 34,
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6777 };
6778
6779 ni.number = 58;
6780
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6783
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6787
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6793 do
6794 CC="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_prog_cc_c99=$ac_arg
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6800 done
6801 rm -f conftest.$ac_ext
6802 CC=$ac_save_CC
6803
6804 fi
6805 # AC_CACHE_VAL
6806 case "x$ac_cv_prog_cc_c99" in
6807 x)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6810 xno)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6813 *)
6814 CC="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6817 esac
6818 if test "x$ac_cv_prog_cc_c99" != xno; then :
6819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 ac_cv_prog_cc_c89=no
6827 ac_save_CC=$CC
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <stdarg.h>
6831 #include <stdio.h>
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6838 char **p;
6839 int i;
6840 {
6841 return p[i];
6842 }
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6844 {
6845 char *s;
6846 va_list v;
6847 va_start (v,p);
6848 s = g (p, va_arg (v,int));
6849 va_end (v);
6850 return s;
6851 }
6852
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6861
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6864 #define FOO(x) 'x'
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6866
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6871 int argc;
6872 char **argv;
6873 int
6874 main ()
6875 {
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6883 do
6884 CC="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile "$LINENO"; then :
6886 ac_cv_prog_cc_c89=$ac_arg
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6890 done
6891 rm -f conftest.$ac_ext
6892 CC=$ac_save_CC
6893
6894 fi
6895 # AC_CACHE_VAL
6896 case "x$ac_cv_prog_cc_c89" in
6897 x)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6900 xno)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6903 *)
6904 CC="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6907 esac
6908 if test "x$ac_cv_prog_cc_c89" != xno; then :
6909 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6910 else
6911 ac_cv_prog_cc_stdc=no
6912 fi
6913
6914 fi
6915 ;;
6916 esac
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 fi
6922
6923 case $ac_cv_prog_cc_stdc in #(
6924 no) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6927 '') :
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6930 *) :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6933 esac
6934
6935
6936
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module careadlinkat:
6940 # Code from module crypto/md5:
6941 # Code from module crypto/sha1:
6942 # Code from module crypto/sha256:
6943 # Code from module crypto/sha512:
6944 # Code from module dosname:
6945 # Code from module dtoastr:
6946 # Code from module dup2:
6947 # Code from module extensions:
6948
6949 # Code from module filemode:
6950 # Code from module getloadavg:
6951 # Code from module getopt-gnu:
6952 # Code from module getopt-posix:
6953 # Code from module gettext-h:
6954 # Code from module ignore-value:
6955 # Code from module include_next:
6956 # Code from module intprops:
6957 # Code from module inttypes-incomplete:
6958 # Code from module largefile:
6959
6960 # Code from module lstat:
6961 # Code from module manywarnings:
6962 # Code from module mktime:
6963 # Code from module multiarch:
6964 # Code from module nocrash:
6965 # Code from module pathmax:
6966 # Code from module pthread_sigmask:
6967 # Code from module readlink:
6968 # Code from module signal-h:
6969 # Code from module sigprocmask:
6970 # Code from module snippet/_Noreturn:
6971 # Code from module snippet/arg-nonnull:
6972 # Code from module snippet/c++defs:
6973 # Code from module snippet/warn-on-use:
6974 # Code from module socklen:
6975 # Code from module ssize_t:
6976 # Code from module stat:
6977 # Code from module stdarg:
6978
6979
6980
6981 # Code from module stdbool:
6982 # Code from module stddef:
6983 # Code from module stdint:
6984 # Code from module stdio:
6985 # Code from module stdlib:
6986 # Code from module strftime:
6987 # Code from module strtoimax:
6988 # Code from module strtoll:
6989 # Code from module strtoull:
6990 # Code from module strtoumax:
6991 # Code from module symlink:
6992 # Code from module sys_stat:
6993 # Code from module time:
6994 # Code from module time_r:
6995 # Code from module u64:
6996 # Code from module unistd:
6997 # Code from module verify:
6998 # Code from module warnings:
6999
7000
7001 # Check whether --enable-gcc-warnings was given.
7002 if test "${enable_gcc_warnings+set}" = set; then :
7003 enableval=$enable_gcc_warnings; case $enableval in
7004 yes|no) ;;
7005 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7006 esac
7007 gl_gcc_warnings=$enableval
7008 else
7009 gl_gcc_warnings=no
7010
7011 fi
7012
7013
7014 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7015 # ------------------------------------------------
7016 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7017 # Otherwise, run RUN-IF-NOT-FOUND.
7018
7019
7020 # When compiling with GCC, prefer -isystem to -I when including system
7021 # include files, to avoid generating useless diagnostics for the files.
7022 if test "$gl_gcc_warnings" != yes; then
7023 isystem='-I'
7024 else
7025 isystem='-isystem '
7026
7027 # This, $nw, is the list of warnings we disable.
7028 nw=
7029
7030 case $with_x_toolkit in
7031 lucid | athena | motif)
7032 # Old toolkits mishandle 'const'.
7033 nw="$nw -Wwrite-strings"
7034 ;;
7035 *)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7037 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7038 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041
7042 gl_save_compiler_FLAGS="$CFLAGS"
7043 CFLAGS="$CFLAGS -Werror"
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046
7047 int
7048 main ()
7049 {
7050
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_compile "$LINENO"; then :
7056 gl_cv_warn_c__Werror=yes
7057 else
7058 gl_cv_warn_c__Werror=no
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 CFLAGS="$gl_save_compiler_FLAGS"
7062
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7065 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7066 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7067 as_fn_append WERROR_CFLAGS " -Werror"
7068 fi
7069
7070 ;;
7071 esac
7072
7073
7074 nw="$nw -Waggregate-return" # anachronistic
7075 nw="$nw -Wlong-long" # C90 is anachronistic
7076 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7077 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7078 nw="$nw -Wtraditional" # Warns on #elif which we use often
7079 nw="$nw -Wcast-qual" # Too many warnings for now
7080 nw="$nw -Wconversion" # Too many warnings for now
7081 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7082 nw="$nw -Wsign-conversion" # Too many warnings for now
7083 nw="$nw -Woverlength-strings" # Not a problem these days
7084 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7085 nw="$nw -Wpadded" # Our structs are not padded
7086 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7087 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7088 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7089 nw="$nw -Wvla" # warnings in gettext.h
7090 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7091 nw="$nw -Wswitch-enum" # Too many warnings for now
7092 nw="$nw -Wswitch-default" # Too many warnings for now
7093 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7094 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7095
7096 # Emacs doesn't care about shadowing; see
7097 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7098 nw="$nw -Wshadow"
7099
7100 # The following lines should be removable at some point.
7101 nw="$nw -Wstack-protector"
7102 nw="$nw -Wstrict-overflow"
7103 nw="$nw -Wsuggest-attribute=const"
7104 nw="$nw -Wsuggest-attribute=pure"
7105
7106
7107
7108 if test -n "$GCC"; then
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7111 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7112 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115
7116 gl_save_CFLAGS="$CFLAGS"
7117 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120
7121 int
7122 main ()
7123 {
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 gl_cv_cc_nomfi_supported=yes
7131 else
7132 gl_cv_cc_nomfi_supported=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 CFLAGS="$gl_save_CFLAGS"
7136 fi
7137
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7139 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7140
7141 if test "$gl_cv_cc_nomfi_supported" = yes; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7143 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7144 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147
7148 gl_save_CFLAGS="$CFLAGS"
7149 CFLAGS="$CFLAGS -W -Werror"
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 void f (void)
7153 {
7154 typedef struct { int a; int b; } s_t;
7155 s_t s1 = { 0, };
7156 }
7157
7158 int
7159 main ()
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_compile "$LINENO"; then :
7167 gl_cv_cc_nomfi_needed=no
7168 else
7169 gl_cv_cc_nomfi_needed=yes
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 CFLAGS="$gl_save_CFLAGS"
7173
7174 fi
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7177 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7178 fi
7179 fi
7180
7181 gl_manywarn_set=
7182 for gl_manywarn_item in \
7183 -Wall \
7184 -W \
7185 -Wformat-y2k \
7186 -Wformat-nonliteral \
7187 -Wformat-security \
7188 -Winit-self \
7189 -Wmissing-include-dirs \
7190 -Wswitch-default \
7191 -Wswitch-enum \
7192 -Wunused \
7193 -Wunknown-pragmas \
7194 -Wstrict-aliasing \
7195 -Wstrict-overflow \
7196 -Wsystem-headers \
7197 -Wfloat-equal \
7198 -Wtraditional \
7199 -Wtraditional-conversion \
7200 -Wdeclaration-after-statement \
7201 -Wundef \
7202 -Wshadow \
7203 -Wunsafe-loop-optimizations \
7204 -Wpointer-arith \
7205 -Wbad-function-cast \
7206 -Wc++-compat \
7207 -Wcast-qual \
7208 -Wcast-align \
7209 -Wwrite-strings \
7210 -Wconversion \
7211 -Wsign-conversion \
7212 -Wlogical-op \
7213 -Waggregate-return \
7214 -Wstrict-prototypes \
7215 -Wold-style-definition \
7216 -Wmissing-prototypes \
7217 -Wmissing-declarations \
7218 -Wmissing-noreturn \
7219 -Wmissing-format-attribute \
7220 -Wpacked \
7221 -Wpadded \
7222 -Wredundant-decls \
7223 -Wnested-externs \
7224 -Wunreachable-code \
7225 -Winline \
7226 -Winvalid-pch \
7227 -Wlong-long \
7228 -Wvla \
7229 -Wvolatile-register-var \
7230 -Wdisabled-optimization \
7231 -Wstack-protector \
7232 -Woverlength-strings \
7233 -Wbuiltin-macro-redefined \
7234 -Wmudflap \
7235 -Wpacked-bitfield-compat \
7236 -Wsync-nand \
7237 ; do
7238 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7239 done
7240 # The following are not documented in the manual but are included in
7241 # output from gcc --help=warnings.
7242 for gl_manywarn_item in \
7243 -Wattributes \
7244 -Wcoverage-mismatch \
7245 -Wmultichar \
7246 -Wunused-macros \
7247 ; do
7248 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7249 done
7250 # More warnings from gcc 4.6.2 --help=warnings.
7251 for gl_manywarn_item in \
7252 -Wabi \
7253 -Wcpp \
7254 -Wdeprecated \
7255 -Wdeprecated-declarations \
7256 -Wdiv-by-zero \
7257 -Wdouble-promotion \
7258 -Wendif-labels \
7259 -Wextra \
7260 -Wformat-contains-nul \
7261 -Wformat-extra-args \
7262 -Wformat-zero-length \
7263 -Wformat=2 \
7264 -Wmultichar \
7265 -Wnormalized=nfc \
7266 -Woverflow \
7267 -Wpointer-to-int-cast \
7268 -Wpragmas \
7269 -Wsuggest-attribute=const \
7270 -Wsuggest-attribute=noreturn \
7271 -Wsuggest-attribute=pure \
7272 -Wtrampolines \
7273 ; do
7274 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7275 done
7276
7277 # Disable the missing-field-initializers warning if needed
7278 if test "$gl_cv_cc_nomfi_needed" = yes; then
7279 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7280 fi
7281
7282 ws=$gl_manywarn_set
7283
7284
7285 gl_warn_set=
7286 set x $ws; shift
7287 for gl_warn_item
7288 do
7289 case " $nw " in
7290 *" $gl_warn_item "*)
7291 ;;
7292 *)
7293 gl_warn_set="$gl_warn_set $gl_warn_item"
7294 ;;
7295 esac
7296 done
7297 ws=$gl_warn_set
7298
7299 for w in $ws; do
7300 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7302 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7303 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306
7307 gl_save_compiler_FLAGS="$CFLAGS"
7308 CFLAGS="$CFLAGS $w"
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311
7312 int
7313 main ()
7314 {
7315
7316 ;
7317 return 0;
7318 }
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"; then :
7321 eval "$as_gl_Warn=yes"
7322 else
7323 eval "$as_gl_Warn=no"
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 CFLAGS="$gl_save_compiler_FLAGS"
7327
7328 fi
7329 eval ac_res=\$$as_gl_Warn
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7331 $as_echo "$ac_res" >&6; }
7332 eval as_val=\$$as_gl_Warn
7333 if test "x$as_val" = x""yes; then :
7334 as_fn_append WARN_CFLAGS " $w"
7335 fi
7336
7337 done
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7339 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7340 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343
7344 gl_save_compiler_FLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348
7349 int
7350 main ()
7351 {
7352
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 gl_cv_warn_c__Wno_missing_field_initializers=yes
7359 else
7360 gl_cv_warn_c__Wno_missing_field_initializers=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 CFLAGS="$gl_save_compiler_FLAGS"
7364
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7367 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7368 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7369 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7370 fi
7371 # We need this one
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7373 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7374 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377
7378 gl_save_compiler_FLAGS="$CFLAGS"
7379 CFLAGS="$CFLAGS -Wno-sign-compare"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382
7383 int
7384 main ()
7385 {
7386
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 gl_cv_warn_c__Wno_sign_compare=yes
7393 else
7394 gl_cv_warn_c__Wno_sign_compare=no
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 CFLAGS="$gl_save_compiler_FLAGS"
7398
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7401 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7402 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7403 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7404 fi
7405 # Too many warnings for now
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7407 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7408 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411
7412 gl_save_compiler_FLAGS="$CFLAGS"
7413 CFLAGS="$CFLAGS -Wno-type-limits"
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416
7417 int
7418 main ()
7419 {
7420
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_compile "$LINENO"; then :
7426 gl_cv_warn_c__Wno_type_limits=yes
7427 else
7428 gl_cv_warn_c__Wno_type_limits=no
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 CFLAGS="$gl_save_compiler_FLAGS"
7432
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7435 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7436 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7437 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7438 fi
7439 # Too many warnings for now
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7441 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7442 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445
7446 gl_save_compiler_FLAGS="$CFLAGS"
7447 CFLAGS="$CFLAGS -Wno-switch"
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450
7451 int
7452 main ()
7453 {
7454
7455 ;
7456 return 0;
7457 }
7458 _ACEOF
7459 if ac_fn_c_try_compile "$LINENO"; then :
7460 gl_cv_warn_c__Wno_switch=yes
7461 else
7462 gl_cv_warn_c__Wno_switch=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 CFLAGS="$gl_save_compiler_FLAGS"
7466
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7469 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7470 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7471 as_fn_append WARN_CFLAGS " -Wno-switch"
7472 fi
7473 # Too many warnings for now
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7475 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7476 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479
7480 gl_save_compiler_FLAGS="$CFLAGS"
7481 CFLAGS="$CFLAGS -Wno-unused-parameter"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484
7485 int
7486 main ()
7487 {
7488
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 if ac_fn_c_try_compile "$LINENO"; then :
7494 gl_cv_warn_c__Wno_unused_parameter=yes
7495 else
7496 gl_cv_warn_c__Wno_unused_parameter=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499 CFLAGS="$gl_save_compiler_FLAGS"
7500
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7503 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7504 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7505 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7506 fi
7507 # Too many warnings for now
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7509 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7510 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513
7514 gl_save_compiler_FLAGS="$CFLAGS"
7515 CFLAGS="$CFLAGS -Wno-format-nonliteral"
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518
7519 int
7520 main ()
7521 {
7522
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7528 gl_cv_warn_c__Wno_format_nonliteral=yes
7529 else
7530 gl_cv_warn_c__Wno_format_nonliteral=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 CFLAGS="$gl_save_compiler_FLAGS"
7534
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7537 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7538 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7539 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7540 fi
7541
7542
7543 # In spite of excluding -Wlogical-op above, it is enabled, as of
7544 # gcc 4.5.0 20090517.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550
7551 gl_save_compiler_FLAGS="$CFLAGS"
7552 CFLAGS="$CFLAGS -Wno-logical-op"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555
7556 int
7557 main ()
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 gl_cv_warn_c__Wno_logical_op=yes
7566 else
7567 gl_cv_warn_c__Wno_logical_op=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 CFLAGS="$gl_save_compiler_FLAGS"
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7576 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7577 fi
7578
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7581 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7582 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585
7586 gl_save_compiler_FLAGS="$CFLAGS"
7587 CFLAGS="$CFLAGS -fdiagnostics-show-option"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590
7591 int
7592 main ()
7593 {
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 gl_cv_warn_c__fdiagnostics_show_option=yes
7601 else
7602 gl_cv_warn_c__fdiagnostics_show_option=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 CFLAGS="$gl_save_compiler_FLAGS"
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7609 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7610 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7611 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7612 fi
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7615 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7616 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619
7620 gl_save_compiler_FLAGS="$CFLAGS"
7621 CFLAGS="$CFLAGS -funit-at-a-time"
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624
7625 int
7626 main ()
7627 {
7628
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 gl_cv_warn_c__funit_at_a_time=yes
7635 else
7636 gl_cv_warn_c__funit_at_a_time=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 CFLAGS="$gl_save_compiler_FLAGS"
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7643 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7644 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7645 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7646 fi
7647
7648
7649
7650 $as_echo "#define lint 1" >>confdefs.h
7651
7652
7653 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7654
7655
7656 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7657
7658
7659 # We use a slightly smaller set of warning options for lib/.
7660 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7661 nw=
7662 nw="$nw -Wunused-macros"
7663
7664
7665 gl_warn_set=
7666 set x $WARN_CFLAGS; shift
7667 for gl_warn_item
7668 do
7669 case " $nw " in
7670 *" $gl_warn_item "*)
7671 ;;
7672 *)
7673 gl_warn_set="$gl_warn_set $gl_warn_item"
7674 ;;
7675 esac
7676 done
7677 GNULIB_WARN_CFLAGS=$gl_warn_set
7678
7679
7680 fi
7681
7682
7683
7684
7685 ## Although we're running on an amd64 kernel, we're actually compiling for
7686 ## the x86 architecture. The user should probably have provided an
7687 ## explicit --build to `configure', but if everything else than the kernel
7688 ## is running in i386 mode, we can help them out.
7689 if test "$machine" = "amdx86-64"; then
7690 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7691 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7692
7693 fi
7694
7695 if test "$ac_cv_have_decl_i386" = "yes"; then
7696 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7697 machine=intel386
7698 machfile="m/${machine}.h"
7699 fi
7700 fi
7701
7702 # Extract the first word of "install-info", so it can be a program name with args.
7703 set dummy install-info; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 case $INSTALL_INFO in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 ;;
7730 esac
7731 fi
7732 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7733 if test -n "$INSTALL_INFO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7735 $as_echo "$INSTALL_INFO" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 # Extract the first word of "install-info", so it can be a program name with args.
7743 set dummy install-info; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $INSTALL_INFO in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7752 ;;
7753 *)
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in /usr/sbin
7756 do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 ;;
7770 esac
7771 fi
7772 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7773 if test -n "$INSTALL_INFO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7775 $as_echo "$INSTALL_INFO" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781
7782 # Extract the first word of "install-info", so it can be a program name with args.
7783 set dummy install-info; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 case $INSTALL_INFO in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in /sbin
7796 do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7810 ;;
7811 esac
7812 fi
7813 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7814 if test -n "$INSTALL_INFO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7816 $as_echo "$INSTALL_INFO" >&6; }
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823 # Extract the first word of "gzip", so it can be a program name with args.
7824 set dummy gzip; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 case $GZIP_PROG in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 ;;
7851 esac
7852 fi
7853 GZIP_PROG=$ac_cv_path_GZIP_PROG
7854 if test -n "$GZIP_PROG"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7856 $as_echo "$GZIP_PROG" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 fi
7861
7862
7863
7864
7865 ## Need makeinfo >= 4.7 (?) to build the manuals.
7866 # Extract the first word of "makeinfo", so it can be a program name with args.
7867 set dummy makeinfo; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 case $MAKEINFO in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7876 ;;
7877 *)
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889 done
7890 done
7891 IFS=$as_save_IFS
7892
7893 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7894 ;;
7895 esac
7896 fi
7897 MAKEINFO=$ac_cv_path_MAKEINFO
7898 if test -n "$MAKEINFO"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7900 $as_echo "$MAKEINFO" >&6; }
7901 else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7904 fi
7905
7906
7907 if test "$MAKEINFO" != "no" && \
7908 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
7909 MAKEINFO=no
7910 fi
7911
7912 ## Makeinfo is unusual. For a released Emacs, the manuals are
7913 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7914 ## therefore in the category of "special tools" not normally required, which
7915 ## configure does not have to check for (eg autoconf itself).
7916 ## In a Bazaar checkout on the other hand, the manuals are not included.
7917 ## So makeinfo is a requirement to build from Bazaar, and configure
7918 ## should test for it as it does for any other build requirement.
7919 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7920 ## with pre-built manuals, from a Bazaar checkout.
7921 HAVE_MAKEINFO=yes
7922
7923 if test "$MAKEINFO" = "no"; then
7924 MAKEINFO=makeinfo
7925 if test "x${with_makeinfo}" = "xno"; then
7926 HAVE_MAKEINFO=no
7927 elif test ! -e $srcdir/info/emacs; then
7928 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7929 source tree does not seem to have pre-built manuals in the \`info' directory.
7930 Either install a suitable version of makeinfo, or re-run configure
7931 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7932 fi
7933 fi
7934
7935
7936 INFO_EXT=.info
7937 INFO_OPTS=--no-split
7938
7939
7940
7941
7942 if test x$GCC = xyes; then
7943 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7944 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7945 else
7946 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7947 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7948 fi
7949
7950
7951 late_LDFLAGS=$LDFLAGS
7952 if test x$GCC = xyes; then
7953 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7954 else
7955 LDFLAGS="$LDFLAGS -znocombreloc"
7956 fi
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7959 $as_echo_n "checking for -znocombreloc... " >&6; }
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962
7963 int
7964 main ()
7965 {
7966
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7973 $as_echo "yes" >&6; }
7974 else
7975 LDFLAGS=$late_LDFLAGS
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981
7982
7983 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7984 case "$opsys" in
7985 your-opsys-here) CANNOT_DUMP=yes ;;
7986 esac
7987
7988 test "$CANNOT_DUMP" = "yes" && \
7989
7990 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7991
7992
7993
7994
7995
7996 UNEXEC_OBJ=unexelf.o
7997 case "$opsys" in
7998 # MSDOS uses unexcoff.o
7999 # MSWindows uses unexw32.o
8000 aix4-2)
8001 UNEXEC_OBJ=unexaix.o
8002 ;;
8003 cygwin)
8004 UNEXEC_OBJ=unexcw.o
8005 ;;
8006 darwin)
8007 UNEXEC_OBJ=unexmacosx.o
8008 ;;
8009 hpux10-20 | hpux11)
8010 UNEXEC_OBJ=unexhp9k800.o
8011 ;;
8012 sol2-10)
8013 # Use the Solaris dldump() function, called from unexsol.c, to dump
8014 # emacs, instead of the generic ELF dump code found in unexelf.c.
8015 # The resulting binary has a complete symbol table, and is better
8016 # for debugging and other observability tools (debuggers, pstack, etc).
8017 #
8018 # If you encounter a problem using dldump(), please consider sending
8019 # a message to the OpenSolaris tools-linking mailing list:
8020 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8021 #
8022 # It is likely that dldump() works with older Solaris too, but this has
8023 # not been tested, so for now this change is for Solaris 10 or newer.
8024 UNEXEC_OBJ=unexsol.o
8025 ;;
8026 esac
8027
8028 LD_SWITCH_SYSTEM=
8029 case "$opsys" in
8030 freebsd)
8031 ## Let `ld' find image libs and similar things in /usr/local/lib.
8032 ## The system compiler, GCC, has apparently been modified to not
8033 ## look there, contrary to what a stock GCC would do.
8034 ### It's not our place to do this. See bug#10313#17.
8035 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8036 :
8037 ;;
8038
8039 gnu-linux)
8040 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8041 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8042 ;;
8043
8044 netbsd)
8045 ### It's not our place to do this. See bug#10313#17.
8046 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8047 :
8048 ;;
8049
8050 openbsd)
8051 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8052 ## otherwise Emacs dumps core on elf systems.
8053 LD_SWITCH_SYSTEM="-Z"
8054 ;;
8055 esac
8056
8057
8058 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8059
8060 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8061 ## which has not been defined yet. When this was handled with cpp,
8062 ## it was expanded to null when configure sourced the s/*.h file.
8063 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8064 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8065 ## (or somesuch), but because it is supposed to go at the _front_
8066 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8067 ## Compare with the gnu-linux case below, which added to the end
8068 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8069 ## LD_SWITCH_SYSTEM_TEMACS.
8070 case "$opsys" in
8071 netbsd|openbsd)
8072 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8073 esac
8074
8075
8076 C_SWITCH_MACHINE=
8077 if test "$machine" = "alpha"; then
8078 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8079 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8080
8081 fi
8082
8083 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8084 ## With ELF, make sure that all common symbols get allocated to in the
8085 ## data section. Otherwise, the dump of temacs may miss variables in
8086 ## the shared library that have been initialized. For example, with
8087 ## GNU libc, __malloc_initialized would normally be resolved to the
8088 ## shared library's .bss section, which is fatal.
8089 if test "x$GCC" = "xyes"; then
8090 C_SWITCH_MACHINE="-fno-common"
8091 else
8092 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8093 fi
8094 else
8095 UNEXEC_OBJ=unexalpha.o
8096 fi
8097 fi
8098
8099
8100
8101
8102 C_SWITCH_SYSTEM=
8103 ## Some programs in src produce warnings saying certain subprograms
8104 ## are too complex and need a MAXMEM value greater than 2000 for
8105 ## additional optimization. --nils@exp-math.uni-essen.de
8106 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8107 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8108 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8109 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8110
8111
8112
8113 LIBS_SYSTEM=
8114 case "$opsys" in
8115 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8116 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8117
8118 freebsd) LIBS_SYSTEM="-lutil" ;;
8119
8120 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8121
8122 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8123
8124 ## Motif needs -lgen.
8125 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8126 esac
8127
8128
8129
8130 ### Make sure subsequent tests use flags consistent with the build flags.
8131
8132 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8133 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8134 else
8135 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8136 fi
8137
8138 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8139
8140 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8141
8142
8143 # Check whether --enable-largefile was given.
8144 if test "${enable_largefile+set}" = set; then :
8145 enableval=$enable_largefile;
8146 fi
8147
8148 if test "$enable_largefile" != no; then
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8151 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8152 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 ac_cv_sys_largefile_CC=no
8156 if test "$GCC" != yes; then
8157 ac_save_CC=$CC
8158 while :; do
8159 # IRIX 6.2 and later do not support large files by default,
8160 # so use the C compiler's -n32 option if that helps.
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <sys/types.h>
8164 /* Check that off_t can represent 2**63 - 1 correctly.
8165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8166 since some C++ compilers masquerading as C compilers
8167 incorrectly reject 9223372036854775807. */
8168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8170 && LARGE_OFF_T % 2147483647 == 1)
8171 ? 1 : -1];
8172 int
8173 main ()
8174 {
8175
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 break
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext
8184 CC="$CC -n32"
8185 if ac_fn_c_try_compile "$LINENO"; then :
8186 ac_cv_sys_largefile_CC=' -n32'; break
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext
8189 break
8190 done
8191 CC=$ac_save_CC
8192 rm -f conftest.$ac_ext
8193 fi
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8196 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8197 if test "$ac_cv_sys_largefile_CC" != no; then
8198 CC=$CC$ac_cv_sys_largefile_CC
8199 fi
8200
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8202 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8203 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 while :; do
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8210 /* Check that off_t can represent 2**63 - 1 correctly.
8211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8212 since some C++ compilers masquerading as C compilers
8213 incorrectly reject 9223372036854775807. */
8214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8216 && LARGE_OFF_T % 2147483647 == 1)
8217 ? 1 : -1];
8218 int
8219 main ()
8220 {
8221
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 ac_cv_sys_file_offset_bits=no; break
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #define _FILE_OFFSET_BITS 64
8233 #include <sys/types.h>
8234 /* Check that off_t can represent 2**63 - 1 correctly.
8235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8236 since some C++ compilers masquerading as C compilers
8237 incorrectly reject 9223372036854775807. */
8238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8240 && LARGE_OFF_T % 2147483647 == 1)
8241 ? 1 : -1];
8242 int
8243 main ()
8244 {
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 ac_cv_sys_file_offset_bits=64; break
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 ac_cv_sys_file_offset_bits=unknown
8255 break
8256 done
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8259 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8260 case $ac_cv_sys_file_offset_bits in #(
8261 no | unknown) ;;
8262 *)
8263 cat >>confdefs.h <<_ACEOF
8264 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8265 _ACEOF
8266 ;;
8267 esac
8268 rm -rf conftest*
8269 if test $ac_cv_sys_file_offset_bits = unknown; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8271 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8272 if test "${ac_cv_sys_large_files+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 while :; do
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8279 /* Check that off_t can represent 2**63 - 1 correctly.
8280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8281 since some C++ compilers masquerading as C compilers
8282 incorrectly reject 9223372036854775807. */
8283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8285 && LARGE_OFF_T % 2147483647 == 1)
8286 ? 1 : -1];
8287 int
8288 main ()
8289 {
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 ac_cv_sys_large_files=no; break
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 #define _LARGE_FILES 1
8302 #include <sys/types.h>
8303 /* Check that off_t can represent 2**63 - 1 correctly.
8304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8305 since some C++ compilers masquerading as C compilers
8306 incorrectly reject 9223372036854775807. */
8307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8309 && LARGE_OFF_T % 2147483647 == 1)
8310 ? 1 : -1];
8311 int
8312 main ()
8313 {
8314
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320 ac_cv_sys_large_files=1; break
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 ac_cv_sys_large_files=unknown
8324 break
8325 done
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8328 $as_echo "$ac_cv_sys_large_files" >&6; }
8329 case $ac_cv_sys_large_files in #(
8330 no | unknown) ;;
8331 *)
8332 cat >>confdefs.h <<_ACEOF
8333 #define _LARGE_FILES $ac_cv_sys_large_files
8334 _ACEOF
8335 ;;
8336 esac
8337 rm -rf conftest*
8338 fi
8339
8340
8341 fi
8342
8343
8344
8345 LIB_MATH=-lm
8346 LIB_STANDARD=
8347 START_FILES=
8348
8349 case $opsys in
8350 cygwin )
8351 LIB_MATH=
8352 START_FILES='pre-crt0.o'
8353 ;;
8354 darwin )
8355 ## Adding -lm confuses the dynamic linker, so omit it.
8356 LIB_MATH=
8357 START_FILES='pre-crt0.o'
8358 ;;
8359 freebsd )
8360 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8361 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8362 ;;
8363 gnu-linux | gnu-kfreebsd )
8364 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8365 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8366 ;;
8367 hpux10-20 | hpux11 )
8368 LIB_STANDARD=-lc
8369 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8370 ;;
8371 netbsd | openbsd )
8372 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8373 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8374 ;;
8375 esac
8376
8377
8378
8379
8380 crt_files=
8381
8382 for file in x $LIB_STANDARD $START_FILES; do
8383 case "$file" in
8384 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8385 esac
8386 done
8387
8388 if test "x$crt_files" != x; then
8389
8390 ## If user specified a crt-dir, use that unconditionally.
8391 crt_gcc=no
8392
8393 if test "X$CRT_DIR" = "X"; then
8394
8395 CRT_DIR=/usr/lib # default
8396
8397 case "$canonical" in
8398 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8399 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8400 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8401 ## For anything else (eg /usr/lib32), it is up the user to specify
8402 ## the location (bug#5655).
8403 ## Test for crtn.o, not just the directory, because sometimes the
8404 ## directory exists but does not have the relevant files (bug#1287).
8405 ## FIXME better to test for binary compatibility somehow.
8406 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8407 ;;
8408
8409 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8410 esac
8411
8412 case "$opsys" in
8413 hpux10-20) CRT_DIR=/lib ;;
8414 esac
8415
8416 test "x${GCC}" = xyes && crt_gcc=yes
8417
8418 fi # CRT_DIR = ""
8419
8420 crt_missing=
8421
8422 for file in $crt_files; do
8423
8424 ## If we're using gcc, try to determine it automatically by asking
8425 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8426 ## system-dependent default from above.]
8427 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8428
8429 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8430 case "$crt_file" in
8431 */*)
8432 CRT_DIR=`$as_dirname -- "$crt_file" ||
8433 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8434 X"$crt_file" : 'X\(//\)[^/]' \| \
8435 X"$crt_file" : 'X\(//\)$' \| \
8436 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8437 $as_echo X"$crt_file" |
8438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8439 s//\1/
8440 q
8441 }
8442 /^X\(\/\/\)[^/].*/{
8443 s//\1/
8444 q
8445 }
8446 /^X\(\/\/\)$/{
8447 s//\1/
8448 q
8449 }
8450 /^X\(\/\).*/{
8451 s//\1/
8452 q
8453 }
8454 s/.*/./; q'`
8455 ;;
8456 esac
8457 fi
8458
8459 crt_gcc=no
8460
8461 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8462 done # $crt_files
8463
8464 test "x$crt_missing" = x || \
8465 as_fn_error "Required file(s) not found:$crt_missing
8466 Try using the --with-crt-dir option." "$LINENO" 5
8467
8468 fi # crt_files != ""
8469
8470
8471
8472 case $opsys in
8473 netbsd | openbsd )
8474 if test -f $CRT_DIR/crti.o; then
8475
8476 test -f $CRT_DIR/crtn.o || \
8477 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8478
8479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8480 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8481 fi
8482 ;;
8483 esac
8484
8485
8486
8487
8488
8489 if test "${with_sound}" != "no"; then
8490 # Sound support for GNU/Linux and the free BSDs.
8491 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8492 do :
8493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8495 eval as_val=\$$as_ac_Header
8496 if test "x$as_val" = x""yes; then :
8497 cat >>confdefs.h <<_ACEOF
8498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8499 _ACEOF
8500 have_sound_header=yes
8501 fi
8502
8503 done
8504
8505 # Emulation library used on NetBSD.
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8507 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8508 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 ac_check_lib_save_LIBS=$LIBS
8512 LIBS="-lossaudio $LIBS"
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515
8516 /* Override any GCC internal prototype to avoid an error.
8517 Use char because int might match the return type of a GCC
8518 builtin and then its argument prototype would still apply. */
8519 #ifdef __cplusplus
8520 extern "C"
8521 #endif
8522 char _oss_ioctl ();
8523 int
8524 main ()
8525 {
8526 return _oss_ioctl ();
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"; then :
8532 ac_cv_lib_ossaudio__oss_ioctl=yes
8533 else
8534 ac_cv_lib_ossaudio__oss_ioctl=no
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8539 fi
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8541 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8542 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8543 LIBSOUND=-lossaudio
8544 else
8545 LIBSOUND=
8546 fi
8547
8548
8549
8550 ALSA_REQUIRED=1.0.0
8551 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8552
8553 succeeded=no
8554
8555 # Extract the first word of "pkg-config", so it can be a program name with args.
8556 set dummy pkg-config; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $PKG_CONFIG in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8583 ;;
8584 esac
8585 fi
8586 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8587 if test -n "$PKG_CONFIG"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8589 $as_echo "$PKG_CONFIG" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595
8596
8597 if test "$PKG_CONFIG" = "no" ; then
8598 HAVE_ALSA=no
8599 else
8600 PKG_CONFIG_MIN_VERSION=0.9.0
8601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8603 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8604
8605 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8606 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8607 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8608 edit_cflags="
8609 s,///*,/,g
8610 s/^/ /
8611 s/ -I/ $isystem/g
8612 s/^ //
8613 "
8614 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8615 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8617 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8618 succeeded=yes
8619 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 ALSA_CFLAGS=""
8623 ALSA_LIBS=""
8624 ## If we have a custom action on failure, don't print errors, but
8625 ## do set a variable so people can do so.
8626 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8627
8628 fi
8629
8630
8631
8632 else
8633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8635 fi
8636 fi
8637
8638 if test $succeeded = yes; then
8639 HAVE_ALSA=yes
8640 else
8641 HAVE_ALSA=no
8642 fi
8643
8644 if test $HAVE_ALSA = yes; then
8645 SAVE_CFLAGS="$CFLAGS"
8646 SAVE_LIBS="$LIBS"
8647 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8648 LIBS="$ALSA_LIBS $LIBS"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <asoundlib.h>
8652 int
8653 main ()
8654 {
8655 snd_lib_error_set_handler (0);
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 emacs_alsa_normal=yes
8662 else
8663 emacs_alsa_normal=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 if test "$emacs_alsa_normal" != yes; then
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <alsa/asoundlib.h>
8670 int
8671 main ()
8672 {
8673 snd_lib_error_set_handler (0);
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 if ac_fn_c_try_compile "$LINENO"; then :
8679 emacs_alsa_subdir=yes
8680 else
8681 emacs_alsa_subdir=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 if test "$emacs_alsa_subdir" != yes; then
8685 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8686 fi
8687 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8688 fi
8689
8690 CFLAGS="$SAVE_CFLAGS"
8691 LIBS="$SAVE_LIBS"
8692 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8693 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8694
8695 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8696
8697 fi
8698
8699 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8700 case "$opsys" in
8701 gnu-linux|freebsd|netbsd)
8702
8703 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8704
8705 ;;
8706 esac
8707 fi
8708
8709
8710 fi
8711
8712 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8713 linux/version.h sys/systeminfo.h \
8714 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8715 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8716 sys/utsname.h pwd.h utmp.h dirent.h util.h
8717 do :
8718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8720 eval as_val=\$$as_ac_Header
8721 if test "x$as_val" = x""yes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8724 _ACEOF
8725
8726 fi
8727
8728 done
8729
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8732 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/personality.h>
8736 int
8737 main ()
8738 {
8739 personality (PER_LINUX32)
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 emacs_cv_personality_linux32=yes
8746 else
8747 emacs_cv_personality_linux32=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8751 $as_echo "$emacs_cv_personality_linux32" >&6; }
8752
8753 if test $emacs_cv_personality_linux32 = yes; then
8754
8755 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8756
8757 fi
8758
8759 for ac_header in term.h
8760 do :
8761 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8762 if test "x$ac_cv_header_term_h" = x""yes; then :
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_TERM_H 1
8765 _ACEOF
8766
8767 fi
8768
8769 done
8770
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8772 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8773 if test "${ac_cv_header_time+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <sys/types.h>
8779 #include <sys/time.h>
8780 #include <time.h>
8781
8782 int
8783 main ()
8784 {
8785 if ((struct tm *) 0)
8786 return 0;
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 ac_cv_header_time=yes
8793 else
8794 ac_cv_header_time=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8799 $as_echo "$ac_cv_header_time" >&6; }
8800 if test $ac_cv_header_time = yes; then
8801
8802 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8803
8804 fi
8805
8806 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8807 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8808 ac_have_decl=1
8809 else
8810 ac_have_decl=0
8811 fi
8812
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8815 _ACEOF
8816
8817 if test $ac_cv_have_decl_sys_siglist != yes; then
8818 # For Tru64, at least:
8819 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8820 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8821 ac_have_decl=1
8822 else
8823 ac_have_decl=0
8824 fi
8825
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8828 _ACEOF
8829
8830 if test $ac_cv_have_decl___sys_siglist = yes; then
8831
8832 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8833
8834 fi
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8837 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8838 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/types.h>
8844 #include <sys/wait.h>
8845 #ifndef WEXITSTATUS
8846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8847 #endif
8848 #ifndef WIFEXITED
8849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 int s;
8856 wait (&s);
8857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"; then :
8863 ac_cv_header_sys_wait_h=yes
8864 else
8865 ac_cv_header_sys_wait_h=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8870 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8871 if test $ac_cv_header_sys_wait_h = yes; then
8872
8873 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8874
8875 fi
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8879 $as_echo_n "checking for struct utimbuf... " >&6; }
8880 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #ifdef TIME_WITH_SYS_TIME
8886 #include <sys/time.h>
8887 #include <time.h>
8888 #else
8889 #ifdef HAVE_SYS_TIME_H
8890 #include <sys/time.h>
8891 #else
8892 #include <time.h>
8893 #endif
8894 #endif
8895 #ifdef HAVE_UTIME_H
8896 #include <utime.h>
8897 #endif
8898 int
8899 main ()
8900 {
8901 static struct utimbuf x; x.actime = x.modtime;
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_compile "$LINENO"; then :
8907 emacs_cv_struct_utimbuf=yes
8908 else
8909 emacs_cv_struct_utimbuf=no
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8914 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8915 if test $emacs_cv_struct_utimbuf = yes; then
8916
8917 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8918
8919 fi
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8922 $as_echo_n "checking for speed_t... " >&6; }
8923 if test "${emacs_cv_speed_t+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #include <termios.h>
8929 int
8930 main ()
8931 {
8932 speed_t x = 1;
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 if ac_fn_c_try_compile "$LINENO"; then :
8938 emacs_cv_speed_t=yes
8939 else
8940 emacs_cv_speed_t=no
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8945 $as_echo "$emacs_cv_speed_t" >&6; }
8946 if test $emacs_cv_speed_t = yes; then
8947
8948 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8949
8950 fi
8951
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8953 $as_echo_n "checking for struct timeval... " >&6; }
8954 if test "${emacs_cv_struct_timeval+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 #ifdef TIME_WITH_SYS_TIME
8960 #include <sys/time.h>
8961 #include <time.h>
8962 #else
8963 #ifdef HAVE_SYS_TIME_H
8964 #include <sys/time.h>
8965 #else
8966 #include <time.h>
8967 #endif
8968 #endif
8969 int
8970 main ()
8971 {
8972 static struct timeval x; x.tv_sec = x.tv_usec;
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 emacs_cv_struct_timeval=yes
8979 else
8980 emacs_cv_struct_timeval=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8985 $as_echo "$emacs_cv_struct_timeval" >&6; }
8986 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8987 if test $emacs_cv_struct_timeval = yes; then
8988
8989 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8990
8991 fi
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8994 $as_echo_n "checking for struct exception... " >&6; }
8995 if test "${emacs_cv_struct_exception+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 #include <math.h>
9001 int
9002 main ()
9003 {
9004 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 emacs_cv_struct_exception=yes
9011 else
9012 emacs_cv_struct_exception=no
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9017 $as_echo "$emacs_cv_struct_exception" >&6; }
9018 HAVE_EXCEPTION=$emacs_cv_struct_exception
9019 if test $emacs_cv_struct_exception != yes; then
9020
9021 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9022
9023 fi
9024
9025 for ac_header in sys/socket.h
9026 do :
9027 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9028 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_SYS_SOCKET_H 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037 for ac_header in net/if.h
9038 do :
9039 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9040 #if HAVE_SYS_SOCKET_H
9041 #include <sys/socket.h>
9042 #endif
9043 "
9044 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9045 cat >>confdefs.h <<_ACEOF
9046 #define HAVE_NET_IF_H 1
9047 _ACEOF
9048
9049 fi
9050
9051 done
9052
9053 for ac_header in ifaddrs.h
9054 do :
9055 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9056 #if HAVE_SYS_SOCKET_H
9057 #include <sys/socket.h>
9058 #endif
9059 "
9060 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9061 cat >>confdefs.h <<_ACEOF
9062 #define HAVE_IFADDRS_H 1
9063 _ACEOF
9064
9065 fi
9066
9067 done
9068
9069 for ac_header in net/if_dl.h
9070 do :
9071 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9072 #if HAVE_SYS_SOCKET_H
9073 #include <sys/socket.h>
9074 #endif
9075 "
9076 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9077 cat >>confdefs.h <<_ACEOF
9078 #define HAVE_NET_IF_DL_H 1
9079 _ACEOF
9080
9081 fi
9082
9083 done
9084
9085 for ac_func in getifaddrs freeifaddrs
9086 do :
9087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9089 eval as_val=\$$as_ac_var
9090 if test "x$as_val" = x""yes; then :
9091 cat >>confdefs.h <<_ACEOF
9092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9093 _ACEOF
9094
9095 fi
9096 done
9097
9098
9099 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9102 #endif
9103 #if HAVE_NET_IF_H
9104 #include <net/if.h>
9105 #endif
9106 "
9107 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9108
9109 cat >>confdefs.h <<_ACEOF
9110 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9111 _ACEOF
9112
9113
9114 fi
9115 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9116 #if HAVE_SYS_SOCKET_H
9117 #include <sys/socket.h>
9118 #endif
9119 #if HAVE_NET_IF_H
9120 #include <net/if.h>
9121 #endif
9122 "
9123 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9124
9125 cat >>confdefs.h <<_ACEOF
9126 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9127 _ACEOF
9128
9129
9130 fi
9131 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9132 #if HAVE_SYS_SOCKET_H
9133 #include <sys/socket.h>
9134 #endif
9135 #if HAVE_NET_IF_H
9136 #include <net/if.h>
9137 #endif
9138 "
9139 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9140
9141 cat >>confdefs.h <<_ACEOF
9142 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9143 _ACEOF
9144
9145
9146 fi
9147 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9148 #if HAVE_SYS_SOCKET_H
9149 #include <sys/socket.h>
9150 #endif
9151 #if HAVE_NET_IF_H
9152 #include <net/if.h>
9153 #endif
9154 "
9155 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9156
9157 cat >>confdefs.h <<_ACEOF
9158 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9159 _ACEOF
9160
9161
9162 fi
9163 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9164 #if HAVE_SYS_SOCKET_H
9165 #include <sys/socket.h>
9166 #endif
9167 #if HAVE_NET_IF_H
9168 #include <net/if.h>
9169 #endif
9170 "
9171 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9175 _ACEOF
9176
9177
9178 fi
9179 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9180 #if HAVE_SYS_SOCKET_H
9181 #include <sys/socket.h>
9182 #endif
9183 #if HAVE_NET_IF_H
9184 #include <net/if.h>
9185 #endif
9186 "
9187 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9188
9189 cat >>confdefs.h <<_ACEOF
9190 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9191 _ACEOF
9192
9193
9194 fi
9195
9196
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9199 $as_echo_n "checking for function prototypes... " >&6; }
9200 if test "$ac_cv_prog_cc_c89" != no; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9202 $as_echo "yes" >&6; }
9203
9204 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9205
9206
9207 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9208
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9215 $as_echo_n "checking for working volatile... " >&6; }
9216 if test "${ac_cv_c_volatile+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 int
9223 main ()
9224 {
9225
9226 volatile int x;
9227 int * volatile y = (int *) 0;
9228 return !x && !y;
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 ac_cv_c_volatile=yes
9235 else
9236 ac_cv_c_volatile=no
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9241 $as_echo "$ac_cv_c_volatile" >&6; }
9242 if test $ac_cv_c_volatile = no; then
9243
9244 $as_echo "#define volatile /**/" >>confdefs.h
9245
9246 fi
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9249 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9250 if test "${ac_cv_c_const+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255
9256 int
9257 main ()
9258 {
9259 /* FIXME: Include the comments suggested by Paul. */
9260 #ifndef __cplusplus
9261 /* Ultrix mips cc rejects this. */
9262 typedef int charset[2];
9263 const charset cs;
9264 /* SunOS 4.1.1 cc rejects this. */
9265 char const *const *pcpcc;
9266 char **ppc;
9267 /* NEC SVR4.0.2 mips cc rejects this. */
9268 struct point {int x, y;};
9269 static struct point const zero = {0,0};
9270 /* AIX XL C 1.02.0.0 rejects this.
9271 It does not let you subtract one const X* pointer from another in
9272 an arm of an if-expression whose if-part is not a constant
9273 expression */
9274 const char *g = "string";
9275 pcpcc = &g + (g ? g-g : 0);
9276 /* HPUX 7.0 cc rejects these. */
9277 ++pcpcc;
9278 ppc = (char**) pcpcc;
9279 pcpcc = (char const *const *) ppc;
9280 { /* SCO 3.2v4 cc rejects this. */
9281 char *t;
9282 char const *s = 0 ? (char *) 0 : (char const *) 0;
9283
9284 *t++ = 0;
9285 if (s) return 0;
9286 }
9287 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9288 int x[] = {25, 17};
9289 const int *foo = &x[0];
9290 ++foo;
9291 }
9292 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9293 typedef const int *iptr;
9294 iptr p = 0;
9295 ++p;
9296 }
9297 { /* AIX XL C 1.02.0.0 rejects this saying
9298 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9299 struct s { int j; const int *ap[3]; };
9300 struct s *b; b->j = 5;
9301 }
9302 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9303 const int foo = 10;
9304 if (!foo) return 0;
9305 }
9306 return !cs[0] && !zero.x;
9307 #endif
9308
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_compile "$LINENO"; then :
9314 ac_cv_c_const=yes
9315 else
9316 ac_cv_c_const=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9321 $as_echo "$ac_cv_c_const" >&6; }
9322 if test $ac_cv_c_const = no; then
9323
9324 $as_echo "#define const /**/" >>confdefs.h
9325
9326 fi
9327
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9329 $as_echo_n "checking for void * support... " >&6; }
9330 if test "${emacs_cv_void_star+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335
9336 int
9337 main ()
9338 {
9339 void * foo;
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_compile "$LINENO"; then :
9345 emacs_cv_void_star=yes
9346 else
9347 emacs_cv_void_star=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9352 $as_echo "$emacs_cv_void_star" >&6; }
9353 if test $emacs_cv_void_star = yes; then
9354 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9355
9356 else
9357 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9358
9359 fi
9360
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9362 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9363 if test "${ac_cv_c_bigendian+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 ac_cv_c_bigendian=unknown
9367 # See if we're dealing with a universal compiler.
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 #ifndef __APPLE_CC__
9371 not a universal capable compiler
9372 #endif
9373 typedef int dummy;
9374
9375 _ACEOF
9376 if ac_fn_c_try_compile "$LINENO"; then :
9377
9378 # Check for potential -arch flags. It is not universal unless
9379 # there are at least two -arch flags with different values.
9380 ac_arch=
9381 ac_prev=
9382 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9383 if test -n "$ac_prev"; then
9384 case $ac_word in
9385 i?86 | x86_64 | ppc | ppc64)
9386 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9387 ac_arch=$ac_word
9388 else
9389 ac_cv_c_bigendian=universal
9390 break
9391 fi
9392 ;;
9393 esac
9394 ac_prev=
9395 elif test "x$ac_word" = "x-arch"; then
9396 ac_prev=arch
9397 fi
9398 done
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 if test $ac_cv_c_bigendian = unknown; then
9402 # See if sys/param.h defines the BYTE_ORDER macro.
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <sys/types.h>
9406 #include <sys/param.h>
9407
9408 int
9409 main ()
9410 {
9411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9412 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9413 && LITTLE_ENDIAN)
9414 bogus endian macros
9415 #endif
9416
9417 ;
9418 return 0;
9419 }
9420 _ACEOF
9421 if ac_fn_c_try_compile "$LINENO"; then :
9422 # It does; now see whether it defined to BIG_ENDIAN or not.
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <sys/types.h>
9426 #include <sys/param.h>
9427
9428 int
9429 main ()
9430 {
9431 #if BYTE_ORDER != BIG_ENDIAN
9432 not big endian
9433 #endif
9434
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 ac_cv_c_bigendian=yes
9441 else
9442 ac_cv_c_bigendian=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 fi
9448 if test $ac_cv_c_bigendian = unknown; then
9449 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <limits.h>
9453
9454 int
9455 main ()
9456 {
9457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9458 bogus endian macros
9459 #endif
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 # It does; now see whether it defined to _BIG_ENDIAN or not.
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 #include <limits.h>
9470
9471 int
9472 main ()
9473 {
9474 #ifndef _BIG_ENDIAN
9475 not big endian
9476 #endif
9477
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_compile "$LINENO"; then :
9483 ac_cv_c_bigendian=yes
9484 else
9485 ac_cv_c_bigendian=no
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 if test $ac_cv_c_bigendian = unknown; then
9492 # Compile a test program.
9493 if test "$cross_compiling" = yes; then :
9494 # Try to guess by grepping values from an object file.
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 short int ascii_mm[] =
9498 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9499 short int ascii_ii[] =
9500 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9501 int use_ascii (int i) {
9502 return ascii_mm[i] + ascii_ii[i];
9503 }
9504 short int ebcdic_ii[] =
9505 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9506 short int ebcdic_mm[] =
9507 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9508 int use_ebcdic (int i) {
9509 return ebcdic_mm[i] + ebcdic_ii[i];
9510 }
9511 extern int foo;
9512
9513 int
9514 main ()
9515 {
9516 return use_ascii (foo) == use_ebcdic (foo);
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9523 ac_cv_c_bigendian=yes
9524 fi
9525 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9526 if test "$ac_cv_c_bigendian" = unknown; then
9527 ac_cv_c_bigendian=no
9528 else
9529 # finding both strings is unlikely to happen, but who knows?
9530 ac_cv_c_bigendian=unknown
9531 fi
9532 fi
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9535 else
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 $ac_includes_default
9539 int
9540 main ()
9541 {
9542
9543 /* Are we little or big endian? From Harbison&Steele. */
9544 union
9545 {
9546 long int l;
9547 char c[sizeof (long int)];
9548 } u;
9549 u.l = 1;
9550 return u.c[sizeof (long int) - 1] == 1;
9551
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_run "$LINENO"; then :
9557 ac_cv_c_bigendian=no
9558 else
9559 ac_cv_c_bigendian=yes
9560 fi
9561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9562 conftest.$ac_objext conftest.beam conftest.$ac_ext
9563 fi
9564
9565 fi
9566 fi
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9568 $as_echo "$ac_cv_c_bigendian" >&6; }
9569 case $ac_cv_c_bigendian in #(
9570 yes)
9571 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9572 ;; #(
9573 no)
9574 ;; #(
9575 universal)
9576
9577 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9578
9579 ;; #(
9580 *)
9581 as_fn_error "unknown endianness
9582 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9583 esac
9584
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9587 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9588 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 char __attribute__ ((__aligned__ (1 << 3))) c;
9594 int
9595 main ()
9596 {
9597
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_compile "$LINENO"; then :
9603 emacs_cv_attribute_aligned=yes
9604 else
9605 emacs_cv_attribute_aligned=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9610 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9611 if test $emacs_cv_attribute_aligned = yes; then
9612
9613 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9614
9615 fi
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9619 set x ${MAKE-make}
9620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9621 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 cat >conftest.make <<\_ACEOF
9625 SHELL = /bin/sh
9626 all:
9627 @echo '@@@%%%=$(MAKE)=@@@%%%'
9628 _ACEOF
9629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9631 *@@@%%%=?*=@@@%%%*)
9632 eval ac_cv_prog_make_${ac_make}_set=yes;;
9633 *)
9634 eval ac_cv_prog_make_${ac_make}_set=no;;
9635 esac
9636 rm -f conftest.make
9637 fi
9638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9640 $as_echo "yes" >&6; }
9641 SET_MAKE=
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 SET_MAKE="MAKE=${MAKE-make}"
9646 fi
9647
9648
9649 DEPFLAGS=
9650 MKDEPDIR=":"
9651 deps_frag=deps.mk
9652 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9654 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9655 HAVE_GNU_MAKE=no
9656 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9657 if test "x$testval" != x; then
9658 HAVE_GNU_MAKE=yes
9659 else
9660 ac_enable_autodepend=no
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9663 $as_echo "$HAVE_GNU_MAKE" >&6; }
9664 if test $HAVE_GNU_MAKE = yes; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9666 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9667 SAVE_CFLAGS="$CFLAGS"
9668 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671
9672 int
9673 main ()
9674 {
9675
9676 ;
9677 return 0;
9678 }
9679 _ACEOF
9680 if ac_fn_c_try_compile "$LINENO"; then :
9681
9682 else
9683 ac_enable_autodepend=no
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 CFLAGS="$SAVE_CFLAGS"
9687 test -f deps.d || ac_enable_autodepend=no
9688 rm -rf deps.d
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9690 $as_echo "$ac_enable_autodepend" >&6; }
9691 fi
9692 if test $ac_enable_autodepend = yes; then
9693 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9694 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9695 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9696 deps_frag=autodeps.mk
9697 fi
9698 fi
9699 deps_frag=$srcdir/src/$deps_frag
9700
9701
9702
9703
9704
9705 lisp_frag=$srcdir/src/lisp.mk
9706
9707
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9710 $as_echo_n "checking for long file names... " >&6; }
9711 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 ac_cv_sys_long_file_names=yes
9715 # Test for long file names in all the places we know might matter:
9716 # . the current directory, where building will happen
9717 # $prefix/lib where we will be installing things
9718 # $exec_prefix/lib likewise
9719 # $TMPDIR if set, where it might want to write temporary files
9720 # /tmp where it might want to write temporary files
9721 # /var/tmp likewise
9722 # /usr/tmp likewise
9723 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9724 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9725 # in the usual case where exec_prefix is '${prefix}'.
9726 case $ac_dir in #(
9727 . | /* | ?:[\\/]*) ;; #(
9728 *) continue;;
9729 esac
9730 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9731 ac_xdir=$ac_dir/cf$$
9732 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9733 ac_tf1=$ac_xdir/conftest9012345
9734 ac_tf2=$ac_xdir/conftest9012346
9735 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9736 ac_cv_sys_long_file_names=no
9737 rm -f -r "$ac_xdir" 2>/dev/null
9738 test $ac_cv_sys_long_file_names = no && break
9739 done
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9742 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9743 if test $ac_cv_sys_long_file_names = yes; then
9744
9745 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9746
9747 fi
9748
9749
9750 #### Choose a window system.
9751
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9753 $as_echo_n "checking for X... " >&6; }
9754
9755
9756 # Check whether --with-x was given.
9757 if test "${with_x+set}" = set; then :
9758 withval=$with_x;
9759 fi
9760
9761 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9762 if test "x$with_x" = xno; then
9763 # The user explicitly disabled X.
9764 have_x=disabled
9765 else
9766 case $x_includes,$x_libraries in #(
9767 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9768 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 # One or both of the vars are not set, and there is no cached value.
9772 ac_x_includes=no ac_x_libraries=no
9773 rm -f -r conftest.dir
9774 if mkdir conftest.dir; then
9775 cd conftest.dir
9776 cat >Imakefile <<'_ACEOF'
9777 incroot:
9778 @echo incroot='${INCROOT}'
9779 usrlibdir:
9780 @echo usrlibdir='${USRLIBDIR}'
9781 libdir:
9782 @echo libdir='${LIBDIR}'
9783 _ACEOF
9784 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9786 for ac_var in incroot usrlibdir libdir; do
9787 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9788 done
9789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9790 for ac_extension in a so sl dylib la dll; do
9791 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9792 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9793 ac_im_usrlibdir=$ac_im_libdir; break
9794 fi
9795 done
9796 # Screen out bogus values from the imake configuration. They are
9797 # bogus both because they are the default anyway, and because
9798 # using them would break gcc on systems where it needs fixed includes.
9799 case $ac_im_incroot in
9800 /usr/include) ac_x_includes= ;;
9801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9802 esac
9803 case $ac_im_usrlibdir in
9804 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9806 esac
9807 fi
9808 cd ..
9809 rm -f -r conftest.dir
9810 fi
9811
9812 # Standard set of common directories for X headers.
9813 # Check X11 before X11Rn because it is often a symlink to the current release.
9814 ac_x_header_dirs='
9815 /usr/X11/include
9816 /usr/X11R7/include
9817 /usr/X11R6/include
9818 /usr/X11R5/include
9819 /usr/X11R4/include
9820
9821 /usr/include/X11
9822 /usr/include/X11R7
9823 /usr/include/X11R6
9824 /usr/include/X11R5
9825 /usr/include/X11R4
9826
9827 /usr/local/X11/include
9828 /usr/local/X11R7/include
9829 /usr/local/X11R6/include
9830 /usr/local/X11R5/include
9831 /usr/local/X11R4/include
9832
9833 /usr/local/include/X11
9834 /usr/local/include/X11R7
9835 /usr/local/include/X11R6
9836 /usr/local/include/X11R5
9837 /usr/local/include/X11R4
9838
9839 /usr/X386/include
9840 /usr/x386/include
9841 /usr/XFree86/include/X11
9842
9843 /usr/include
9844 /usr/local/include
9845 /usr/unsupported/include
9846 /usr/athena/include
9847 /usr/local/x11r5/include
9848 /usr/lpp/Xamples/include
9849
9850 /usr/openwin/include
9851 /usr/openwin/share/include'
9852
9853 if test "$ac_x_includes" = no; then
9854 # Guess where to find include files, by looking for Xlib.h.
9855 # First, try using that file with no special directory specified.
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include <X11/Xlib.h>
9859 _ACEOF
9860 if ac_fn_c_try_cpp "$LINENO"; then :
9861 # We can compile using X headers with no special include directory.
9862 ac_x_includes=
9863 else
9864 for ac_dir in $ac_x_header_dirs; do
9865 if test -r "$ac_dir/X11/Xlib.h"; then
9866 ac_x_includes=$ac_dir
9867 break
9868 fi
9869 done
9870 fi
9871 rm -f conftest.err conftest.$ac_ext
9872 fi # $ac_x_includes = no
9873
9874 if test "$ac_x_libraries" = no; then
9875 # Check for the libraries.
9876 # See if we find them without any special options.
9877 # Don't add to $LIBS permanently.
9878 ac_save_LIBS=$LIBS
9879 LIBS="-lX11 $LIBS"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 #include <X11/Xlib.h>
9883 int
9884 main ()
9885 {
9886 XrmInitialize ()
9887 ;
9888 return 0;
9889 }
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9892 LIBS=$ac_save_LIBS
9893 # We can link X programs with no special library path.
9894 ac_x_libraries=
9895 else
9896 LIBS=$ac_save_LIBS
9897 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9898 do
9899 # Don't even attempt the hair of trying to link an X program!
9900 for ac_extension in a so sl dylib la dll; do
9901 if test -r "$ac_dir/libX11.$ac_extension"; then
9902 ac_x_libraries=$ac_dir
9903 break 2
9904 fi
9905 done
9906 done
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 fi # $ac_x_libraries = no
9911
9912 case $ac_x_includes,$ac_x_libraries in #(
9913 no,* | *,no | *\'*)
9914 # Didn't find X, or a directory has "'" in its name.
9915 ac_cv_have_x="have_x=no";; #(
9916 *)
9917 # Record where we found X for the cache.
9918 ac_cv_have_x="have_x=yes\
9919 ac_x_includes='$ac_x_includes'\
9920 ac_x_libraries='$ac_x_libraries'"
9921 esac
9922 fi
9923 ;; #(
9924 *) have_x=yes;;
9925 esac
9926 eval "$ac_cv_have_x"
9927 fi # $with_x != no
9928
9929 if test "$have_x" != yes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9931 $as_echo "$have_x" >&6; }
9932 no_x=yes
9933 else
9934 # If each of the values was on the command line, it overrides each guess.
9935 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9936 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9937 # Update the cache value to reflect the command line values.
9938 ac_cv_have_x="have_x=yes\
9939 ac_x_includes='$x_includes'\
9940 ac_x_libraries='$x_libraries'"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9942 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9943 fi
9944
9945 if test "$no_x" = yes; then
9946 window_system=none
9947 else
9948 window_system=x11
9949 fi
9950
9951 LD_SWITCH_X_SITE_RPATH=
9952 if test "${x_libraries}" != NONE; then
9953 if test -n "${x_libraries}"; then
9954 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9955 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9956 fi
9957 x_default_search_path=""
9958 x_search_path=${x_libraries}
9959 if test -z "${x_search_path}"; then
9960 x_search_path=/usr/lib
9961 fi
9962 for x_library in `echo ${x_search_path}: | \
9963 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9964 x_search_path="\
9965 ${x_library}/X11/%L/%T/%N%C%S:\
9966 ${x_library}/X11/%l/%T/%N%C%S:\
9967 ${x_library}/X11/%T/%N%C%S:\
9968 ${x_library}/X11/%L/%T/%N%S:\
9969 ${x_library}/X11/%l/%T/%N%S:\
9970 ${x_library}/X11/%T/%N%S"
9971 if test x"${x_default_search_path}" = x; then
9972 x_default_search_path=${x_search_path}
9973 else
9974 x_default_search_path="${x_search_path}:${x_default_search_path}"
9975 fi
9976 done
9977 fi
9978
9979
9980 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9981 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9982 fi
9983
9984 if test x"${x_includes}" = x; then
9985 bitmapdir=/usr/include/X11/bitmaps
9986 else
9987 # accumulate include directories that have X11 bitmap subdirectories
9988 bmd_acc="dummyval"
9989 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9990 if test -d "${bmd}/X11/bitmaps"; then
9991 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9992 fi
9993 if test -d "${bmd}/bitmaps"; then
9994 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9995 fi
9996 done
9997 if test ${bmd_acc} != "dummyval"; then
9998 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9999 fi
10000 fi
10001
10002 HAVE_NS=no
10003 NS_IMPL_COCOA=no
10004 NS_IMPL_GNUSTEP=no
10005 tmp_CPPFLAGS="$CPPFLAGS"
10006 tmp_CFLAGS="$CFLAGS"
10007 CPPFLAGS="$CPPFLAGS -x objective-c"
10008 CFLAGS="$CFLAGS -x objective-c"
10009 TEMACS_LDFLAGS2="\${LDFLAGS}"
10010 GNU_OBJC_CFLAGS=
10011 if test "${with_ns}" != no; then
10012 if test "${opsys}" = darwin; then
10013 NS_IMPL_COCOA=yes
10014 ns_appdir=`pwd`/nextstep/Emacs.app
10015 ns_appbindir=${ns_appdir}/Contents/MacOS
10016 ns_appresdir=${ns_appdir}/Contents/Resources
10017 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
10018 elif test -f $GNUSTEP_CONFIG_FILE; then
10019 NS_IMPL_GNUSTEP=yes
10020 ns_appdir=`pwd`/nextstep/Emacs.app
10021 ns_appbindir=${ns_appdir}
10022 ns_appresdir=${ns_appdir}/Resources
10023 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
10024 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10025 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10026 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10027 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10028 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10029 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10030 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10031 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10032 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10033 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10034 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10035 LIB_STANDARD=
10036 START_FILES=
10037 TEMACS_LDFLAGS2=
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10039 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10040 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 #include <GNUstepBase/GSConfig.h>
10046 int
10047 main ()
10048 {
10049 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10050 1;
10051 #else
10052 fail;
10053 #endif
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 emacs_cv_objc_exceptions=yes
10060 else
10061 emacs_cv_objc_exceptions=no
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10066 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10067 if test $emacs_cv_objc_exceptions = yes; then
10068
10069 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10070
10071 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10072 fi
10073 fi
10074
10075 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10076
10077 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10078 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10079 HAVE_NS=yes
10080 else
10081 as_fn_error "\`--with-ns' was specified, but the include
10082 files are missing or cannot be compiled." "$LINENO" 5
10083 fi
10084
10085
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #include <Foundation/NSObjCRuntime.h>
10089 int
10090 main ()
10091 {
10092 NSInteger i;
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_compile "$LINENO"; then :
10098 ns_have_nsinteger=yes
10099 else
10100 ns_have_nsinteger=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 if test $ns_have_nsinteger = yes; then
10104
10105 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10106
10107 fi
10108 fi
10109
10110
10111 LEIM_INSTALLDIR="\${install_prefix}/leim"
10112 ns_frag=/dev/null
10113 NS_OBJ=
10114 NS_OBJC_OBJ=
10115 if test "${HAVE_NS}" = yes; then
10116 if test "$with_toolkit_scroll_bars" = "no"; then
10117 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10118 fi
10119
10120 window_system=nextstep
10121 with_xft=no
10122 # set up packaging dirs
10123 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10124 prefix=${ns_appresdir}
10125 exec_prefix=${ns_appbindir}
10126 libexecdir=${ns_appbindir}/libexec
10127 LEIM_INSTALLDIR="\${ns_appresdir}/leim"
10128 fi
10129 ns_frag=$srcdir/src/ns.mk
10130 NS_OBJ="fontset.o fringe.o image.o"
10131 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10132 fi
10133 CFLAGS="$tmp_CFLAGS"
10134 CPPFLAGS="$tmp_CPPFLAGS"
10135
10136
10137
10138
10139
10140
10141 case "${window_system}" in
10142 x11 )
10143 HAVE_X_WINDOWS=yes
10144 HAVE_X11=yes
10145 case "${with_x_toolkit}" in
10146 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10147 motif ) USE_X_TOOLKIT=MOTIF ;;
10148 gtk ) with_gtk=yes
10149 USE_X_TOOLKIT=none ;;
10150 gtk3 ) with_gtk3=yes
10151 USE_X_TOOLKIT=none ;;
10152 no ) USE_X_TOOLKIT=none ;;
10153 * ) USE_X_TOOLKIT=maybe ;;
10154 esac
10155 ;;
10156 nextstep | none )
10157 HAVE_X_WINDOWS=no
10158 HAVE_X11=no
10159 USE_X_TOOLKIT=none
10160 ;;
10161 esac
10162
10163 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10164 # Extract the first word of "X", so it can be a program name with args.
10165 set dummy X; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 if test -n "$HAVE_XSERVER"; then
10172 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10173 else
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181 ac_cv_prog_HAVE_XSERVER="true"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185 done
10186 done
10187 IFS=$as_save_IFS
10188
10189 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10190 fi
10191 fi
10192 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10193 if test -n "$HAVE_XSERVER"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10195 $as_echo "$HAVE_XSERVER" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200
10201
10202 if test "$HAVE_XSERVER" = true ||
10203 test -n "$DISPLAY" ||
10204 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10205 as_fn_error "You seem to be running X, but no X development libraries
10206 were found. You should install the relevant development files for X
10207 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10208 sure you have development files for image handling, i.e.
10209 tiff, gif, jpeg, png and xpm.
10210 If you are sure you want Emacs compiled without X window support, pass
10211 --without-x
10212 to configure." "$LINENO" 5
10213 fi
10214 fi
10215
10216 ### If we're using X11, we should use the X menu package.
10217 HAVE_MENUS=no
10218 case ${HAVE_X11} in
10219 yes ) HAVE_MENUS=yes ;;
10220 esac
10221
10222 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10223 # Assume not, until told otherwise.
10224 GNU_MALLOC=yes
10225
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10227 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10228 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 #include <malloc.h>
10234 static void hook (void) {}
10235 int
10236 main ()
10237 {
10238 malloc_set_state (malloc_get_state ());
10239 __after_morecore_hook = hook;
10240 __malloc_initialize_hook = hook;
10241 ;
10242 return 0;
10243 }
10244 _ACEOF
10245 if ac_fn_c_try_link "$LINENO"; then :
10246 emacs_cv_var_doug_lea_malloc=yes
10247 else
10248 emacs_cv_var_doug_lea_malloc=no
10249 fi
10250 rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
10252 fi
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10254 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10255 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10256
10257
10258 system_malloc=no
10259 case "$opsys" in
10260 ## darwin ld insists on the use of malloc routines in the System framework.
10261 darwin|sol2-10) system_malloc=yes ;;
10262 esac
10263
10264 if test "${system_malloc}" = "yes"; then
10265
10266 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10267
10268 GNU_MALLOC=no
10269 GNU_MALLOC_reason="
10270 (The GNU allocators don't work with this system configuration.)"
10271 GMALLOC_OBJ=
10272 VMLIMIT_OBJ=
10273 else
10274 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10275 VMLIMIT_OBJ=vm-limit.o
10276 fi
10277
10278
10279
10280 if test "$doug_lea_malloc" = "yes" ; then
10281 if test "$GNU_MALLOC" = yes ; then
10282 GNU_MALLOC_reason="
10283 (Using Doug Lea's new malloc from the GNU C Library.)"
10284 fi
10285
10286 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10287
10288
10289 ## Use mmap directly for allocating larger buffers.
10290 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10291 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10292 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10293 case "$opsys" in
10294 gnu*) REL_ALLOC=no ;;
10295 esac
10296 fi
10297
10298 if test x"${REL_ALLOC}" = x; then
10299 REL_ALLOC=${GNU_MALLOC}
10300 fi
10301
10302 use_mmap_for_buffers=no
10303 case "$opsys" in
10304 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10305 esac
10306
10307
10308
10309
10310 for ac_header in $ac_header_list
10311 do :
10312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10314 "
10315 eval as_val=\$$as_ac_Header
10316 if test "x$as_val" = x""yes; then :
10317 cat >>confdefs.h <<_ACEOF
10318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10319 _ACEOF
10320
10321 fi
10322
10323 done
10324
10325
10326
10327
10328
10329
10330
10331
10332 for ac_func in getpagesize
10333 do :
10334 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10335 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_GETPAGESIZE 1
10338 _ACEOF
10339
10340 fi
10341 done
10342
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10344 $as_echo_n "checking for working mmap... " >&6; }
10345 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 if test "$cross_compiling" = yes; then :
10349 ac_cv_func_mmap_fixed_mapped=no
10350 else
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 $ac_includes_default
10354 /* malloc might have been renamed as rpl_malloc. */
10355 #undef malloc
10356
10357 /* Thanks to Mike Haertel and Jim Avera for this test.
10358 Here is a matrix of mmap possibilities:
10359 mmap private not fixed
10360 mmap private fixed at somewhere currently unmapped
10361 mmap private fixed at somewhere already mapped
10362 mmap shared not fixed
10363 mmap shared fixed at somewhere currently unmapped
10364 mmap shared fixed at somewhere already mapped
10365 For private mappings, we should verify that changes cannot be read()
10366 back from the file, nor mmap's back from the file at a different
10367 address. (There have been systems where private was not correctly
10368 implemented like the infamous i386 svr4.0, and systems where the
10369 VM page cache was not coherent with the file system buffer cache
10370 like early versions of FreeBSD and possibly contemporary NetBSD.)
10371 For shared mappings, we should conversely verify that changes get
10372 propagated back to all the places they're supposed to be.
10373
10374 Grep wants private fixed already mapped.
10375 The main things grep needs to know about mmap are:
10376 * does it exist and is it safe to write into the mmap'd area
10377 * how to use it (BSD variants) */
10378
10379 #include <fcntl.h>
10380 #include <sys/mman.h>
10381
10382 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10383 char *malloc ();
10384 #endif
10385
10386 /* This mess was copied from the GNU getpagesize.h. */
10387 #ifndef HAVE_GETPAGESIZE
10388 # ifdef _SC_PAGESIZE
10389 # define getpagesize() sysconf(_SC_PAGESIZE)
10390 # else /* no _SC_PAGESIZE */
10391 # ifdef HAVE_SYS_PARAM_H
10392 # include <sys/param.h>
10393 # ifdef EXEC_PAGESIZE
10394 # define getpagesize() EXEC_PAGESIZE
10395 # else /* no EXEC_PAGESIZE */
10396 # ifdef NBPG
10397 # define getpagesize() NBPG * CLSIZE
10398 # ifndef CLSIZE
10399 # define CLSIZE 1
10400 # endif /* no CLSIZE */
10401 # else /* no NBPG */
10402 # ifdef NBPC
10403 # define getpagesize() NBPC
10404 # else /* no NBPC */
10405 # ifdef PAGESIZE
10406 # define getpagesize() PAGESIZE
10407 # endif /* PAGESIZE */
10408 # endif /* no NBPC */
10409 # endif /* no NBPG */
10410 # endif /* no EXEC_PAGESIZE */
10411 # else /* no HAVE_SYS_PARAM_H */
10412 # define getpagesize() 8192 /* punt totally */
10413 # endif /* no HAVE_SYS_PARAM_H */
10414 # endif /* no _SC_PAGESIZE */
10415
10416 #endif /* no HAVE_GETPAGESIZE */
10417
10418 int
10419 main ()
10420 {
10421 char *data, *data2, *data3;
10422 const char *cdata2;
10423 int i, pagesize;
10424 int fd, fd2;
10425
10426 pagesize = getpagesize ();
10427
10428 /* First, make a file with some known garbage in it. */
10429 data = (char *) malloc (pagesize);
10430 if (!data)
10431 return 1;
10432 for (i = 0; i < pagesize; ++i)
10433 *(data + i) = rand ();
10434 umask (0);
10435 fd = creat ("conftest.mmap", 0600);
10436 if (fd < 0)
10437 return 2;
10438 if (write (fd, data, pagesize) != pagesize)
10439 return 3;
10440 close (fd);
10441
10442 /* Next, check that the tail of a page is zero-filled. File must have
10443 non-zero length, otherwise we risk SIGBUS for entire page. */
10444 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10445 if (fd2 < 0)
10446 return 4;
10447 cdata2 = "";
10448 if (write (fd2, cdata2, 1) != 1)
10449 return 5;
10450 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10451 if (data2 == MAP_FAILED)
10452 return 6;
10453 for (i = 0; i < pagesize; ++i)
10454 if (*(data2 + i))
10455 return 7;
10456 close (fd2);
10457 if (munmap (data2, pagesize))
10458 return 8;
10459
10460 /* Next, try to mmap the file at a fixed address which already has
10461 something else allocated at it. If we can, also make sure that
10462 we see the same garbage. */
10463 fd = open ("conftest.mmap", O_RDWR);
10464 if (fd < 0)
10465 return 9;
10466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10468 return 10;
10469 for (i = 0; i < pagesize; ++i)
10470 if (*(data + i) != *(data2 + i))
10471 return 11;
10472
10473 /* Finally, make sure that changes to the mapped area do not
10474 percolate back to the file as seen by read(). (This is a bug on
10475 some variants of i386 svr4.0.) */
10476 for (i = 0; i < pagesize; ++i)
10477 *(data2 + i) = *(data2 + i) + 1;
10478 data3 = (char *) malloc (pagesize);
10479 if (!data3)
10480 return 12;
10481 if (read (fd, data3, pagesize) != pagesize)
10482 return 13;
10483 for (i = 0; i < pagesize; ++i)
10484 if (*(data + i) != *(data3 + i))
10485 return 14;
10486 close (fd);
10487 return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_run "$LINENO"; then :
10491 ac_cv_func_mmap_fixed_mapped=yes
10492 else
10493 ac_cv_func_mmap_fixed_mapped=no
10494 fi
10495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10496 conftest.$ac_objext conftest.beam conftest.$ac_ext
10497 fi
10498
10499 fi
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10501 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10503
10504 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10505
10506 fi
10507 rm -f conftest.mmap conftest.txt
10508
10509 if test $use_mmap_for_buffers = yes; then
10510
10511 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10512
10513 REL_ALLOC=no
10514 fi
10515
10516 LIBS="$LIBS_SYSTEM $LIBS"
10517
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10519 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-ldnet $LIBS"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char dnet_ntoa ();
10535 int
10536 main ()
10537 {
10538 return dnet_ntoa ();
10539 ;
10540 return 0;
10541 }
10542 _ACEOF
10543 if ac_fn_c_try_link "$LINENO"; then :
10544 ac_cv_lib_dnet_dnet_ntoa=yes
10545 else
10546 ac_cv_lib_dnet_dnet_ntoa=no
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10551 fi
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10553 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10554 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_LIBDNET 1
10557 _ACEOF
10558
10559 LIBS="-ldnet $LIBS"
10560
10561 fi
10562
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10565 $as_echo_n "checking for main in -lXbsd... " >&6; }
10566 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-lXbsd $LIBS"
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573
10574
10575 int
10576 main ()
10577 {
10578 return main ();
10579 ;
10580 return 0;
10581 }
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"; then :
10584 ac_cv_lib_Xbsd_main=yes
10585 else
10586 ac_cv_lib_Xbsd_main=no
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10591 fi
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10593 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10594 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10595 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10596 fi
10597
10598
10599 LIB_PTHREAD=
10600 for ac_header in pthread.h
10601 do :
10602 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10603 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_PTHREAD_H 1
10606 _ACEOF
10607
10608 fi
10609
10610 done
10611
10612 if test "$ac_cv_header_pthread_h"; then
10613 if test "$GMALLOC_OBJ" = gmalloc.o; then
10614 emacs_pthread_function=pthread_atfork
10615 else
10616 emacs_pthread_function=pthread_self
10617 fi
10618 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10620 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-lpthread $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char $emacs_pthread_function ();
10636 int
10637 main ()
10638 {
10639 return $emacs_pthread_function ();
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 eval "$as_ac_Lib=yes"
10646 else
10647 eval "$as_ac_Lib=no"
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 eval ac_res=\$$as_ac_Lib
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10655 $as_echo "$ac_res" >&6; }
10656 eval as_val=\$$as_ac_Lib
10657 if test "x$as_val" = x""yes; then :
10658 HAVE_PTHREAD=yes
10659 fi
10660
10661 fi
10662 if test "$HAVE_PTHREAD" = yes; then
10663 case "${canonical}" in
10664 *-hpux*) ;;
10665 *) LIB_PTHREAD="-lpthread"
10666 LIBS="$LIB_PTHREAD $LIBS" ;;
10667 esac
10668
10669 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10670
10671 fi
10672
10673
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10675 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10676 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-lpthreads $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char cma_open ();
10691 int
10692 main ()
10693 {
10694 return cma_open ();
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_pthreads_cma_open=yes
10701 else
10702 ac_cv_lib_pthreads_cma_open=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10709 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10710 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_LIBPTHREADS 1
10713 _ACEOF
10714
10715 LIBS="-lpthreads $LIBS"
10716
10717 fi
10718
10719
10720 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10721 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10722 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10723 ## added to LIBS in configure would never contain the pthreads part,
10724 ## but the value used in Makefiles might. FIXME?
10725 ##
10726 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10727 ## be harmless on older versions of X where it happens to exist.
10728 test "$opsys" = "aix4-2" && \
10729 test $ac_cv_lib_pthreads_cma_open = yes && \
10730 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10731
10732
10733 case ${host_os} in
10734 aix*)
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10736 $as_echo_n "checking for -bbigtoc option... " >&6; }
10737 if test "${gdb_cv_bigtoc+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740
10741 case $GCC in
10742 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10743 *) gdb_cv_bigtoc=-bbigtoc ;;
10744 esac
10745
10746 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10749
10750 int
10751 main ()
10752 {
10753 int i;
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759
10760 else
10761 gdb_cv_bigtoc=
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10768 $as_echo "$gdb_cv_bigtoc" >&6; }
10769 ;;
10770 esac
10771
10772 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10773 # used for the tests that follow. We set them back to REAL_CFLAGS and
10774 # REAL_CPPFLAGS later on.
10775
10776 REAL_CFLAGS="$CFLAGS"
10777 REAL_CPPFLAGS="$CPPFLAGS"
10778
10779 if test "${HAVE_X11}" = "yes"; then
10780 DEFS="$C_SWITCH_X_SITE $DEFS"
10781 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10782 LIBS="-lX11 $LIBS"
10783 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10784 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10785
10786 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10787 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10788 # but it's more convenient here to set LD_RUN_PATH since this
10789 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10790 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10791 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10792 export LD_RUN_PATH
10793 fi
10794
10795 if test "${opsys}" = "gnu-linux"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10797 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800
10801 int
10802 main ()
10803 {
10804 XOpenDisplay ("foo");
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 xgnu_linux_first_failure=no
10811 else
10812 xgnu_linux_first_failure=yes
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 if test "${xgnu_linux_first_failure}" = "yes"; then
10817 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10818 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10819 OLD_CPPFLAGS="$CPPFLAGS"
10820 OLD_LIBS="$LIBS"
10821 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10822 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10823 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10824 LIBS="$LIBS -b i486-linuxaout"
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827
10828 int
10829 main ()
10830 {
10831 XOpenDisplay ("foo");
10832 ;
10833 return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10837 xgnu_linux_second_failure=no
10838 else
10839 xgnu_linux_second_failure=yes
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 if test "${xgnu_linux_second_failure}" = "yes"; then
10844 # If we get the same failure with -b, there is no use adding -b.
10845 # So take it out. This plays safe.
10846 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10847 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10848 CPPFLAGS="$OLD_CPPFLAGS"
10849 LIBS="$OLD_LIBS"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 $as_echo "yes" >&6; }
10855 fi
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10860 fi
10861
10862 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10863 # header files included from there.
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10865 $as_echo_n "checking for Xkb... " >&6; }
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <X11/Xlib.h>
10869 #include <X11/XKBlib.h>
10870 int
10871 main ()
10872 {
10873 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10874 ;
10875 return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_c_try_link "$LINENO"; then :
10879 emacs_xkb=yes
10880 else
10881 emacs_xkb=no
10882 fi
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10886 $as_echo "$emacs_xkb" >&6; }
10887 if test $emacs_xkb = yes; then
10888
10889 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10890
10891 fi
10892
10893 for ac_func in XrmSetDatabase XScreenResourceString \
10894 XScreenNumberOfScreen XSetWMProtocols
10895 do :
10896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10898 eval as_val=\$$as_ac_var
10899 if test "x$as_val" = x""yes; then :
10900 cat >>confdefs.h <<_ACEOF
10901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10902 _ACEOF
10903
10904 fi
10905 done
10906
10907 fi
10908
10909 if test "${window_system}" = "x11"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10911 $as_echo_n "checking X11 version 6... " >&6; }
10912 if test "${emacs_cv_x11_version_6+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 #include <X11/Xlib.h>
10918 int
10919 main ()
10920 {
10921 #if XlibSpecificationRelease < 6
10922 fail;
10923 #endif
10924
10925 ;
10926 return 0;
10927 }
10928 _ACEOF
10929 if ac_fn_c_try_link "$LINENO"; then :
10930 emacs_cv_x11_version_6=yes
10931 else
10932 emacs_cv_x11_version_6=no
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936 fi
10937
10938 if test $emacs_cv_x11_version_6 = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10940 $as_echo "6 or newer" >&6; }
10941
10942 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10943
10944
10945 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10946
10947 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10948 ## XIM support.
10949 case "$opsys" in
10950 sol2-*) : ;;
10951 *)
10952 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10953
10954 ;;
10955 esac
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10958 $as_echo "before 6" >&6; }
10959 fi
10960 fi
10961
10962
10963 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10964 HAVE_RSVG=no
10965 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10966 if test "${with_rsvg}" != "no"; then
10967 RSVG_REQUIRED=2.11.0
10968 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10969
10970
10971 succeeded=no
10972
10973 # Extract the first word of "pkg-config", so it can be a program name with args.
10974 set dummy pkg-config; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 case $PKG_CONFIG in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10983 ;;
10984 *)
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10987 do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996 done
10997 done
10998 IFS=$as_save_IFS
10999
11000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11001 ;;
11002 esac
11003 fi
11004 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11005 if test -n "$PKG_CONFIG"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11007 $as_echo "$PKG_CONFIG" >&6; }
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 fi
11012
11013
11014
11015 if test "$PKG_CONFIG" = "no" ; then
11016 :
11017 else
11018 PKG_CONFIG_MIN_VERSION=0.9.0
11019 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11021 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11022
11023 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11024 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11025 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11026 edit_cflags="
11027 s,///*,/,g
11028 s/^/ /
11029 s/ -I/ $isystem/g
11030 s/^ //
11031 "
11032 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11033 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11035 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11036 succeeded=yes
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 RSVG_CFLAGS=""
11041 RSVG_LIBS=""
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11045
11046 fi
11047
11048
11049
11050 else
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11053 fi
11054 fi
11055
11056 if test $succeeded = yes; then
11057 HAVE_RSVG=yes
11058 else
11059 :
11060 fi
11061
11062
11063
11064
11065 if test $HAVE_RSVG = yes; then
11066
11067 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11068
11069 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11070 LIBS="$RSVG_LIBS $LIBS"
11071 fi
11072 fi
11073 fi
11074
11075 HAVE_IMAGEMAGICK=no
11076 if test "${HAVE_X11}" = "yes"; then
11077 if test "${with_imagemagick}" != "no"; then
11078 ## 6.2.8 is the earliest version known to work, but earlier versions
11079 ## might work - let us know if you find one.
11080 ## 6.0.7 does not work. See bug#7955.
11081 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11082
11083 succeeded=no
11084
11085 # Extract the first word of "pkg-config", so it can be a program name with args.
11086 set dummy pkg-config; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 case $PKG_CONFIG in
11093 [\\/]* | ?:[\\/]*)
11094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11095 ;;
11096 *)
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11099 do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108 done
11109 done
11110 IFS=$as_save_IFS
11111
11112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11113 ;;
11114 esac
11115 fi
11116 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11117 if test -n "$PKG_CONFIG"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11119 $as_echo "$PKG_CONFIG" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125
11126
11127 if test "$PKG_CONFIG" = "no" ; then
11128 :
11129 else
11130 PKG_CONFIG_MIN_VERSION=0.9.0
11131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11133 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11134
11135 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11136 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11137 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11138 edit_cflags="
11139 s,///*,/,g
11140 s/^/ /
11141 s/ -I/ $isystem/g
11142 s/^ //
11143 "
11144 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11145 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11147 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11148 succeeded=yes
11149 else
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 IMAGEMAGICK_CFLAGS=""
11153 IMAGEMAGICK_LIBS=""
11154 ## If we have a custom action on failure, don't print errors, but
11155 ## do set a variable so people can do so.
11156 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11157
11158 fi
11159
11160
11161
11162 else
11163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11165 fi
11166 fi
11167
11168 if test $succeeded = yes; then
11169 HAVE_IMAGEMAGICK=yes
11170 else
11171 :
11172 fi
11173
11174
11175
11176
11177 if test $HAVE_IMAGEMAGICK = yes; then
11178
11179 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11180
11181 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11182 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11183 for ac_func in MagickExportImagePixels
11184 do :
11185 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11186 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11189 _ACEOF
11190
11191 fi
11192 done
11193
11194 fi
11195 fi
11196 fi
11197
11198
11199 HAVE_GTK=no
11200 GTK_OBJ=
11201 if test "${with_gtk3}" = "yes"; then
11202 GLIB_REQUIRED=2.28
11203 GTK_REQUIRED=3.0
11204 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11205
11206
11207 succeeded=no
11208
11209 # Extract the first word of "pkg-config", so it can be a program name with args.
11210 set dummy pkg-config; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 case $PKG_CONFIG in
11217 [\\/]* | ?:[\\/]*)
11218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11219 ;;
11220 *)
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232 done
11233 done
11234 IFS=$as_save_IFS
11235
11236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11237 ;;
11238 esac
11239 fi
11240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11241 if test -n "$PKG_CONFIG"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11243 $as_echo "$PKG_CONFIG" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248
11249
11250
11251 if test "$PKG_CONFIG" = "no" ; then
11252 pkg_check_gtk=no
11253 else
11254 PKG_CONFIG_MIN_VERSION=0.9.0
11255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11257 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11258
11259 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11260 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11261 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11262 edit_cflags="
11263 s,///*,/,g
11264 s/^/ /
11265 s/ -I/ $isystem/g
11266 s/^ //
11267 "
11268 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11269 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11271 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11272 succeeded=yes
11273 else
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11276 GTK_CFLAGS=""
11277 GTK_LIBS=""
11278 ## If we have a custom action on failure, don't print errors, but
11279 ## do set a variable so people can do so.
11280 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11281
11282 fi
11283
11284
11285
11286 else
11287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11289 fi
11290 fi
11291
11292 if test $succeeded = yes; then
11293 pkg_check_gtk=yes
11294 else
11295 pkg_check_gtk=no
11296 fi
11297
11298 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11299 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11300 fi
11301
11302 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11303
11304 GTK_OBJ=emacsgtkfixed.o
11305 fi
11306
11307 if test "$pkg_check_gtk" != "yes"; then
11308 HAVE_GTK=no
11309 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11310 GLIB_REQUIRED=2.10
11311 GTK_REQUIRED=2.10
11312 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11313
11314
11315 succeeded=no
11316
11317 # Extract the first word of "pkg-config", so it can be a program name with args.
11318 set dummy pkg-config; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 case $PKG_CONFIG in
11325 [\\/]* | ?:[\\/]*)
11326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11327 ;;
11328 *)
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11331 do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340 done
11341 done
11342 IFS=$as_save_IFS
11343
11344 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11345 ;;
11346 esac
11347 fi
11348 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11349 if test -n "$PKG_CONFIG"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11351 $as_echo "$PKG_CONFIG" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11355 fi
11356
11357
11358
11359 if test "$PKG_CONFIG" = "no" ; then
11360 pkg_check_gtk=no
11361 else
11362 PKG_CONFIG_MIN_VERSION=0.9.0
11363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11365 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11366
11367 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11368 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11369 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11370 edit_cflags="
11371 s,///*,/,g
11372 s/^/ /
11373 s/ -I/ $isystem/g
11374 s/^ //
11375 "
11376 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11377 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11379 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11380 succeeded=yes
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11384 GTK_CFLAGS=""
11385 GTK_LIBS=""
11386 ## If we have a custom action on failure, don't print errors, but
11387 ## do set a variable so people can do so.
11388 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11389
11390 fi
11391
11392
11393
11394 else
11395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11397 fi
11398 fi
11399
11400 if test $succeeded = yes; then
11401 pkg_check_gtk=yes
11402 else
11403 pkg_check_gtk=no
11404 fi
11405
11406 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11407 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11408 fi
11409 fi
11410 fi
11411
11412 if test x"$pkg_check_gtk" = xyes; then
11413
11414
11415
11416 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11417 CFLAGS="$CFLAGS $GTK_CFLAGS"
11418 LIBS="$GTK_LIBS $LIBS"
11419 GTK_COMPILES=no
11420 for ac_func in gtk_main
11421 do :
11422 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11423 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11424 cat >>confdefs.h <<_ACEOF
11425 #define HAVE_GTK_MAIN 1
11426 _ACEOF
11427 GTK_COMPILES=yes
11428 fi
11429 done
11430
11431 if test "${GTK_COMPILES}" != "yes"; then
11432 if test "$USE_X_TOOLKIT" != "maybe"; then
11433 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11434 fi
11435 else
11436 HAVE_GTK=yes
11437
11438 $as_echo "#define USE_GTK 1" >>confdefs.h
11439
11440 GTK_OBJ="gtkutil.o $GTK_OBJ"
11441 USE_X_TOOLKIT=none
11442 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11443 :
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11446 closing open displays. This is no problem if you just use
11447 one display, but if you use more than one and close one of them
11448 Emacs may crash." >&5
11449 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11450 closing open displays. This is no problem if you just use
11451 one display, but if you use more than one and close one of them
11452 Emacs may crash." >&2;}
11453 sleep 3
11454 fi
11455 fi
11456
11457 fi
11458
11459
11460
11461 if test "${HAVE_GTK}" = "yes"; then
11462
11463 if test "$with_toolkit_scroll_bars" != no; then
11464 with_toolkit_scroll_bars=yes
11465 fi
11466
11467 HAVE_GTK_FILE_SELECTION=no
11468 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11469 #include <gtk/gtk.h>
11470 "
11471 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11472 HAVE_GTK_FILE_SELECTION=yes
11473 else
11474 HAVE_GTK_FILE_SELECTION=no
11475 fi
11476
11477 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11478 for ac_func in gtk_file_selection_new
11479 do :
11480 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11481 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11482 cat >>confdefs.h <<_ACEOF
11483 #define HAVE_GTK_FILE_SELECTION_NEW 1
11484 _ACEOF
11485
11486 fi
11487 done
11488
11489 fi
11490
11491
11492 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11493 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11494 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11495 gtk_orientable_set_orientation \
11496 gtk_window_set_has_resize_grip
11497 do :
11498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11500 eval as_val=\$$as_ac_var
11501 if test "x$as_val" = x""yes; then :
11502 cat >>confdefs.h <<_ACEOF
11503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11504 _ACEOF
11505
11506 fi
11507 done
11508
11509 fi
11510
11511 HAVE_DBUS=no
11512 DBUS_OBJ=
11513 if test "${with_dbus}" = "yes"; then
11514
11515 succeeded=no
11516
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 case $PKG_CONFIG in
11525 [\\/]* | ?:[\\/]*)
11526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11527 ;;
11528 *)
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540 done
11541 done
11542 IFS=$as_save_IFS
11543
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11545 ;;
11546 esac
11547 fi
11548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11551 $as_echo "$PKG_CONFIG" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557
11558
11559 if test "$PKG_CONFIG" = "no" ; then
11560 HAVE_DBUS=no
11561 else
11562 PKG_CONFIG_MIN_VERSION=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11565 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11566
11567 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11568 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11569 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11570 edit_cflags="
11571 s,///*,/,g
11572 s/^/ /
11573 s/ -I/ $isystem/g
11574 s/^ //
11575 "
11576 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11577 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11579 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11580 succeeded=yes
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11584 DBUS_CFLAGS=""
11585 DBUS_LIBS=""
11586 ## If we have a custom action on failure, don't print errors, but
11587 ## do set a variable so people can do so.
11588 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11589
11590 fi
11591
11592
11593
11594 else
11595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11597 fi
11598 fi
11599
11600 if test $succeeded = yes; then
11601 HAVE_DBUS=yes
11602 else
11603 HAVE_DBUS=no
11604 fi
11605
11606 if test "$HAVE_DBUS" = yes; then
11607 LIBS="$LIBS $DBUS_LIBS"
11608
11609 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11610
11611 for ac_func in dbus_watch_get_unix_fd \
11612 dbus_validate_bus_name \
11613 dbus_validate_path \
11614 dbus_validate_interface \
11615 dbus_validate_member
11616 do :
11617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11619 eval as_val=\$$as_ac_var
11620 if test "x$as_val" = x""yes; then :
11621 cat >>confdefs.h <<_ACEOF
11622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 _ACEOF
11624
11625 fi
11626 done
11627
11628 DBUS_OBJ=dbusbind.o
11629 fi
11630 fi
11631
11632
11633 HAVE_GSETTINGS=no
11634 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11635
11636 succeeded=no
11637
11638 # Extract the first word of "pkg-config", so it can be a program name with args.
11639 set dummy pkg-config; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 case $PKG_CONFIG in
11646 [\\/]* | ?:[\\/]*)
11647 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11648 ;;
11649 *)
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11660 fi
11661 done
11662 done
11663 IFS=$as_save_IFS
11664
11665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11666 ;;
11667 esac
11668 fi
11669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11670 if test -n "$PKG_CONFIG"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11672 $as_echo "$PKG_CONFIG" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679
11680 if test "$PKG_CONFIG" = "no" ; then
11681 HAVE_GSETTINGS=no
11682 else
11683 PKG_CONFIG_MIN_VERSION=0.9.0
11684 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11686 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11687
11688 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11689 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11690 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11691 edit_cflags="
11692 s,///*,/,g
11693 s/^/ /
11694 s/ -I/ $isystem/g
11695 s/^ //
11696 "
11697 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11698 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11700 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11701 succeeded=yes
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 GSETTINGS_CFLAGS=""
11706 GSETTINGS_LIBS=""
11707 ## If we have a custom action on failure, don't print errors, but
11708 ## do set a variable so people can do so.
11709 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11710
11711 fi
11712
11713
11714
11715 else
11716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11718 fi
11719 fi
11720
11721 if test $succeeded = yes; then
11722 HAVE_GSETTINGS=yes
11723 else
11724 HAVE_GSETTINGS=no
11725 fi
11726
11727 if test "$HAVE_GSETTINGS" = "yes"; then
11728
11729 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11730
11731 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11732 SETTINGS_LIBS="$GSETTINGS_LIBS"
11733 fi
11734 fi
11735
11736 HAVE_GCONF=no
11737 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11738
11739 succeeded=no
11740
11741 # Extract the first word of "pkg-config", so it can be a program name with args.
11742 set dummy pkg-config; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 case $PKG_CONFIG in
11749 [\\/]* | ?:[\\/]*)
11750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11751 ;;
11752 *)
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764 done
11765 done
11766 IFS=$as_save_IFS
11767
11768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11769 ;;
11770 esac
11771 fi
11772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11773 if test -n "$PKG_CONFIG"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11775 $as_echo "$PKG_CONFIG" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11779 fi
11780
11781
11782
11783 if test "$PKG_CONFIG" = "no" ; then
11784 HAVE_GCONF=no
11785 else
11786 PKG_CONFIG_MIN_VERSION=0.9.0
11787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11789 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11790
11791 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11792 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11793 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11794 edit_cflags="
11795 s,///*,/,g
11796 s/^/ /
11797 s/ -I/ $isystem/g
11798 s/^ //
11799 "
11800 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11801 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11803 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11804 succeeded=yes
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 GCONF_CFLAGS=""
11809 GCONF_LIBS=""
11810 ## If we have a custom action on failure, don't print errors, but
11811 ## do set a variable so people can do so.
11812 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11813
11814 fi
11815
11816
11817
11818 else
11819 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11820 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11821 fi
11822 fi
11823
11824 if test $succeeded = yes; then
11825 HAVE_GCONF=yes
11826 else
11827 HAVE_GCONF=no
11828 fi
11829
11830 if test "$HAVE_GCONF" = yes; then
11831
11832 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11833
11834 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11835 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11836 fi
11837 fi
11838
11839 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11840 SAVE_CFLAGS="$CFLAGS"
11841 SAVE_LIBS="$LIBS"
11842 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11843 LIBS="$SETTINGS_LIBS $LIBS"
11844 for ac_func in g_type_init
11845 do :
11846 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11847 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11848 cat >>confdefs.h <<_ACEOF
11849 #define HAVE_G_TYPE_INIT 1
11850 _ACEOF
11851
11852 fi
11853 done
11854
11855 CFLAGS="$SAVE_CFLAGS"
11856 LIBS="$SAVE_LIBS"
11857 fi
11858
11859
11860
11861
11862 HAVE_LIBSELINUX=no
11863 LIBSELINUX_LIBS=
11864 if test "${with_selinux}" = "yes"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11866 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11867 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-lselinux $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char lgetfilecon ();
11882 int
11883 main ()
11884 {
11885 return lgetfilecon ();
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_selinux_lgetfilecon=yes
11892 else
11893 ac_cv_lib_selinux_lgetfilecon=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11900 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11901 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11902 HAVE_LIBSELINUX=yes
11903 else
11904 HAVE_LIBSELINUX=no
11905 fi
11906
11907 if test "$HAVE_LIBSELINUX" = yes; then
11908
11909 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11910
11911 LIBSELINUX_LIBS=-lselinux
11912 fi
11913 fi
11914
11915
11916 HAVE_GNUTLS=no
11917 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11918 if test "${with_gnutls}" = "yes" ; then
11919
11920 succeeded=no
11921
11922 # Extract the first word of "pkg-config", so it can be a program name with args.
11923 set dummy pkg-config; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 case $PKG_CONFIG in
11930 [\\/]* | ?:[\\/]*)
11931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11932 ;;
11933 *)
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11936 do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11944 fi
11945 done
11946 done
11947 IFS=$as_save_IFS
11948
11949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11950 ;;
11951 esac
11952 fi
11953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11954 if test -n "$PKG_CONFIG"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11956 $as_echo "$PKG_CONFIG" >&6; }
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 fi
11961
11962
11963
11964 if test "$PKG_CONFIG" = "no" ; then
11965 HAVE_GNUTLS=no
11966 else
11967 PKG_CONFIG_MIN_VERSION=0.9.0
11968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11970 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11971
11972 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11973 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11974 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11975 edit_cflags="
11976 s,///*,/,g
11977 s/^/ /
11978 s/ -I/ $isystem/g
11979 s/^ //
11980 "
11981 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11982 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11984 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11985 succeeded=yes
11986 else
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 LIBGNUTLS_CFLAGS=""
11990 LIBGNUTLS_LIBS=""
11991 ## If we have a custom action on failure, don't print errors, but
11992 ## do set a variable so people can do so.
11993 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11994
11995 fi
11996
11997
11998
11999 else
12000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12002 fi
12003 fi
12004
12005 if test $succeeded = yes; then
12006 HAVE_GNUTLS=yes
12007 else
12008 HAVE_GNUTLS=no
12009 fi
12010
12011 if test "${HAVE_GNUTLS}" = "yes"; then
12012
12013 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12014
12015 fi
12016
12017 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12018 LIBS="$LIBGNUTLS_LIBS $LIBS"
12019 for ac_func in gnutls_certificate_set_verify_function
12020 do :
12021 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12022 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12025 _ACEOF
12026 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
12027 fi
12028 done
12029
12030
12031 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12032
12033 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12034
12035 fi
12036 fi
12037
12038
12039
12040
12041 HAVE_XAW3D=no
12042 LUCID_LIBW=
12043 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12044 if test "$with_xaw3d" != no; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12046 $as_echo_n "checking for xaw3d... " >&6; }
12047 if test "${emacs_cv_xaw3d+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052
12053 #include <X11/Intrinsic.h>
12054 #include <X11/Xaw3d/Simple.h>
12055 int
12056 main ()
12057 {
12058
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12065 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12066 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-lXaw3d $LIBS"
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char XawScrollbarSetThumb ();
12081 int
12082 main ()
12083 {
12084 return XawScrollbarSetThumb ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12091 else
12092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12099 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12100 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12101 emacs_cv_xaw3d=yes
12102 else
12103 emacs_cv_xaw3d=no
12104 fi
12105
12106 else
12107 emacs_cv_xaw3d=no
12108 fi
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 fi
12112
12113 else
12114 emacs_cv_xaw3d=no
12115 fi
12116 if test $emacs_cv_xaw3d = yes; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12118 $as_echo "yes; using Lucid toolkit" >&6; }
12119 USE_X_TOOLKIT=LUCID
12120 HAVE_XAW3D=yes
12121 LUCID_LIBW=-lXaw3d
12122
12123 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12124
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12129 $as_echo_n "checking for libXaw... " >&6; }
12130 if test "${emacs_cv_xaw+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135
12136 #include <X11/Intrinsic.h>
12137 #include <X11/Xaw/Simple.h>
12138 int
12139 main ()
12140 {
12141
12142 ;
12143 return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 emacs_cv_xaw=yes
12148 else
12149 emacs_cv_xaw=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 fi
12154
12155 if test $emacs_cv_xaw = yes; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12157 $as_echo "yes; using Lucid toolkit" >&6; }
12158 USE_X_TOOLKIT=LUCID
12159 LUCID_LIBW=-lXaw
12160 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12161 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12162 else
12163 as_fn_error "No X toolkit could be found.
12164 If you are sure you want Emacs compiled without an X toolkit, pass
12165 --with-x-toolkit=no
12166 to configure. Otherwise, install the development libraries for the toolkit
12167 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12168 fi
12169 fi
12170 fi
12171
12172 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12173
12174 LIBXTR6=
12175 if test "${USE_X_TOOLKIT}" != "none"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12177 $as_echo_n "checking X11 toolkit version... " >&6; }
12178 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <X11/Intrinsic.h>
12184 int
12185 main ()
12186 {
12187 #if XtSpecificationRelease < 6
12188 fail;
12189 #endif
12190
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 emacs_cv_x11_toolkit_version_6=yes
12197 else
12198 emacs_cv_x11_toolkit_version_6=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 fi
12203
12204 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12205 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12207 $as_echo "6 or newer" >&6; }
12208
12209 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12210
12211 LIBXTR6="-lSM -lICE"
12212 case "$opsys" in
12213 ## Use libw.a along with X11R6 Xt.
12214 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12215 esac
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12218 $as_echo "before 6" >&6; }
12219 fi
12220
12221 OLDLIBS="$LIBS"
12222 if test x$HAVE_X11XTR6 = xyes; then
12223 LIBS="-lXt -lSM -lICE $LIBS"
12224 else
12225 LIBS="-lXt $LIBS"
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12228 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12229 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lXmu $LIBS"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char XmuConvertStandardSelection ();
12244 int
12245 main ()
12246 {
12247 return XmuConvertStandardSelection ();
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12254 else
12255 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 LIBS=$ac_check_lib_save_LIBS
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12262 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12263 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_LIBXMU 1
12266 _ACEOF
12267
12268 LIBS="-lXmu $LIBS"
12269
12270 fi
12271
12272 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12273 fi
12274
12275
12276 LIBXMU=-lXmu
12277 case $opsys in
12278 ## These systems don't supply Xmu.
12279 hpux* | aix4-2 )
12280 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12281 ;;
12282 esac
12283
12284
12285 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12286 if test "${HAVE_X11}" = "yes"; then
12287 if test "${USE_X_TOOLKIT}" != "none"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12289 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12290 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-lXext $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char XShapeQueryExtension ();
12305 int
12306 main ()
12307 {
12308 return XShapeQueryExtension ();
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_lib_Xext_XShapeQueryExtension=yes
12315 else
12316 ac_cv_lib_Xext_XShapeQueryExtension=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12323 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12324 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_LIBXEXT 1
12327 _ACEOF
12328
12329 LIBS="-lXext $LIBS"
12330
12331 fi
12332
12333 fi
12334 fi
12335
12336 LIBXP=
12337 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12339 $as_echo_n "checking for Motif version 2.1... " >&6; }
12340 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 #include <Xm/Xm.h>
12346 int
12347 main ()
12348 {
12349 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12350 int x = 5;
12351 #else
12352 Motif version prior to 2.1.
12353 #endif
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 emacs_cv_motif_version_2_1=yes
12360 else
12361 emacs_cv_motif_version_2_1=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12366 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12367 if test $emacs_cv_motif_version_2_1 = yes; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12369 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12370 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-lXp $LIBS"
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 char XpCreateContext ();
12385 int
12386 main ()
12387 {
12388 return XpCreateContext ();
12389 ;
12390 return 0;
12391 }
12392 _ACEOF
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_lib_Xp_XpCreateContext=yes
12395 else
12396 ac_cv_lib_Xp_XpCreateContext=no
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12401 fi
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12403 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12404 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12405 LIBXP=-lXp
12406 fi
12407
12408 else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12410 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12411 if test "${emacs_cv_lesstif+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 # We put this in CFLAGS temporarily to precede other -I options
12415 # that might be in CFLAGS temporarily.
12416 # We put this in CPPFLAGS where it precedes the other -I options.
12417 OLD_CPPFLAGS=$CPPFLAGS
12418 OLD_CFLAGS=$CFLAGS
12419 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12420 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12424 int
12425 main ()
12426 {
12427 int x = 5;
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 if ac_fn_c_try_compile "$LINENO"; then :
12433 emacs_cv_lesstif=yes
12434 else
12435 emacs_cv_lesstif=no
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12440 $as_echo "$emacs_cv_lesstif" >&6; }
12441 if test $emacs_cv_lesstif = yes; then
12442 # Make sure this -I option remains in CPPFLAGS after it is set
12443 # back to REAL_CPPFLAGS.
12444 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12445 # have those other -I options anyway. Ultimately, having this
12446 # directory ultimately in CPPFLAGS will be enough.
12447 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12448 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12449 else
12450 CFLAGS=$OLD_CFLAGS
12451 CPPFLAGS=$OLD_CPPFLAGS
12452 fi
12453 fi
12454 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12455 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12456
12457 else
12458 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12459 fi
12460
12461
12462 fi
12463
12464
12465 USE_TOOLKIT_SCROLL_BARS=no
12466 if test "${with_toolkit_scroll_bars}" != "no"; then
12467 if test "${USE_X_TOOLKIT}" != "none"; then
12468 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12469 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12470
12471 HAVE_XAW3D=no
12472 USE_TOOLKIT_SCROLL_BARS=yes
12473 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12474 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12475
12476 USE_TOOLKIT_SCROLL_BARS=yes
12477 fi
12478 elif test "${HAVE_GTK}" = "yes"; then
12479 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12480
12481 USE_TOOLKIT_SCROLL_BARS=yes
12482 elif test "${HAVE_NS}" = "yes"; then
12483 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12484
12485 USE_TOOLKIT_SCROLL_BARS=yes
12486 fi
12487 fi
12488
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491
12492 #include <X11/Xlib.h>
12493 #include <X11/Xresource.h>
12494 int
12495 main ()
12496 {
12497 XIMProc callback;
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_compile "$LINENO"; then :
12503 HAVE_XIM=yes
12504
12505 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12506
12507 else
12508 HAVE_XIM=no
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12511
12512
12513 if test "${with_xim}" != "no"; then
12514
12515 $as_echo "#define USE_XIM 1" >>confdefs.h
12516
12517 fi
12518
12519
12520 if test "${HAVE_XIM}" != "no"; then
12521 late_CFLAGS=$CFLAGS
12522 if test "$GCC" = yes; then
12523 CFLAGS="$CFLAGS --pedantic-errors"
12524 fi
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527
12528 #include <X11/Xlib.h>
12529 #include <X11/Xresource.h>
12530 int
12531 main ()
12532 {
12533 Display *display;
12534 XrmDatabase db;
12535 char *res_name;
12536 char *res_class;
12537 XIMProc callback;
12538 XPointer *client_data;
12539 #ifndef __GNUC__
12540 /* If we're not using GCC, it's probably not XFree86, and this is
12541 probably right, but we can't use something like --pedantic-errors. */
12542 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12543 char*, XIMProc, XPointer*);
12544 #endif
12545 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12546 client_data);
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_compile "$LINENO"; then :
12552 emacs_cv_arg6_star=yes
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 if test "$emacs_cv_arg6_star" = yes; then
12556 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12557
12558 else
12559 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12560
12561 fi
12562 CFLAGS=$late_CFLAGS
12563 fi
12564
12565 ### Start of font-backend (under any platform) section.
12566 # (nothing here yet -- this is a placeholder)
12567 ### End of font-backend (under any platform) section.
12568
12569 ### Start of font-backend (under X11) section.
12570 if test "${HAVE_X11}" = "yes"; then
12571
12572 succeeded=no
12573
12574 # Extract the first word of "pkg-config", so it can be a program name with args.
12575 set dummy pkg-config; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 case $PKG_CONFIG in
12582 [\\/]* | ?:[\\/]*)
12583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12584 ;;
12585 *)
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12596 fi
12597 done
12598 done
12599 IFS=$as_save_IFS
12600
12601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12602 ;;
12603 esac
12604 fi
12605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12606 if test -n "$PKG_CONFIG"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12608 $as_echo "$PKG_CONFIG" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612 fi
12613
12614
12615
12616 if test "$PKG_CONFIG" = "no" ; then
12617 HAVE_FC=no
12618 else
12619 PKG_CONFIG_MIN_VERSION=0.9.0
12620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12622 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12623
12624 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12625 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12626 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12627 edit_cflags="
12628 s,///*,/,g
12629 s/^/ /
12630 s/ -I/ $isystem/g
12631 s/^ //
12632 "
12633 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12634 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12636 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12637 succeeded=yes
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641 FONTCONFIG_CFLAGS=""
12642 FONTCONFIG_LIBS=""
12643 ## If we have a custom action on failure, don't print errors, but
12644 ## do set a variable so people can do so.
12645 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12646
12647 fi
12648
12649
12650
12651 else
12652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12654 fi
12655 fi
12656
12657 if test $succeeded = yes; then
12658 HAVE_FC=yes
12659 else
12660 HAVE_FC=no
12661 fi
12662
12663
12664 ## Use -lXft if available, unless `--with-xft=no'.
12665 HAVE_XFT=maybe
12666 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12667 with_xft="no";
12668 fi
12669 if test "x${with_xft}" != "xno"; then
12670
12671
12672 succeeded=no
12673
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 case $PKG_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12684 ;;
12685 *)
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697 done
12698 done
12699 IFS=$as_save_IFS
12700
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12702 ;;
12703 esac
12704 fi
12705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12708 $as_echo "$PKG_CONFIG" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12712 fi
12713
12714
12715
12716 if test "$PKG_CONFIG" = "no" ; then
12717 HAVE_XFT=no
12718 else
12719 PKG_CONFIG_MIN_VERSION=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12722 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12723
12724 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
12725 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
12726 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
12727 edit_cflags="
12728 s,///*,/,g
12729 s/^/ /
12730 s/ -I/ $isystem/g
12731 s/^ //
12732 "
12733 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12734 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12736 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12737 succeeded=yes
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12741 XFT_CFLAGS=""
12742 XFT_LIBS=""
12743 ## If we have a custom action on failure, don't print errors, but
12744 ## do set a variable so people can do so.
12745 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12746
12747 fi
12748
12749
12750
12751 else
12752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12754 fi
12755 fi
12756
12757 if test $succeeded = yes; then
12758 :
12759 else
12760 HAVE_XFT=no
12761 fi
12762
12763 ## Because xftfont.c uses XRenderQueryExtension, we also
12764 ## need to link to -lXrender.
12765 HAVE_XRENDER=no
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12767 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12768 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 ac_check_lib_save_LIBS=$LIBS
12772 LIBS="-lXrender $LIBS"
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char XRenderQueryExtension ();
12783 int
12784 main ()
12785 {
12786 return XRenderQueryExtension ();
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"; then :
12792 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12793 else
12794 ac_cv_lib_Xrender_XRenderQueryExtension=no
12795 fi
12796 rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 LIBS=$ac_check_lib_save_LIBS
12799 fi
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12801 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12802 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12803 HAVE_XRENDER=yes
12804 fi
12805
12806 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12807 OLD_CPPFLAGS="$CPPFLAGS"
12808 OLD_CFLAGS="$CFLAGS"
12809 OLD_LIBS="$LIBS"
12810 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12811 CFLAGS="$CFLAGS $XFT_CFLAGS"
12812 XFT_LIBS="-lXrender $XFT_LIBS"
12813 LIBS="$XFT_LIBS $LIBS"
12814 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12815 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12817 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12818 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-lXft $XFT_LIBS $LIBS"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char XftFontOpen ();
12833 int
12834 main ()
12835 {
12836 return XftFontOpen ();
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842 ac_cv_lib_Xft_XftFontOpen=yes
12843 else
12844 ac_cv_lib_Xft_XftFontOpen=no
12845 fi
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12851 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12852 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12853 HAVE_XFT=yes
12854 fi
12855
12856 fi
12857
12858
12859
12860 if test "${HAVE_XFT}" = "yes"; then
12861
12862 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12863
12864
12865 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12866 else
12867 CPPFLAGS="$OLD_CPPFLAGS"
12868 CFLAGS="$OLD_CFLAGS"
12869 LIBS="$OLD_LIBS"
12870 fi # "${HAVE_XFT}" = "yes"
12871 fi # "$HAVE_XFT" != no
12872 fi # "x${with_xft}" != "xno"
12873
12874 ## We used to allow building with FreeType and without Xft.
12875 ## However, the ftx font backend driver is not in good shape.
12876 if test "$HAVE_XFT" != "yes"; then
12877 HAVE_XFT=no
12878 HAVE_FREETYPE=no
12879 else
12880
12881 succeeded=no
12882
12883 # Extract the first word of "pkg-config", so it can be a program name with args.
12884 set dummy pkg-config; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 case $PKG_CONFIG in
12891 [\\/]* | ?:[\\/]*)
12892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12893 ;;
12894 *)
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12897 do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906 done
12907 done
12908 IFS=$as_save_IFS
12909
12910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12911 ;;
12912 esac
12913 fi
12914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12915 if test -n "$PKG_CONFIG"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12917 $as_echo "$PKG_CONFIG" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 fi
12922
12923
12924
12925 if test "$PKG_CONFIG" = "no" ; then
12926 HAVE_FREETYPE=no
12927 else
12928 PKG_CONFIG_MIN_VERSION=0.9.0
12929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12931 $as_echo_n "checking for freetype2... " >&6; }
12932
12933 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12934 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12935 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12936 edit_cflags="
12937 s,///*,/,g
12938 s/^/ /
12939 s/ -I/ $isystem/g
12940 s/^ //
12941 "
12942 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12943 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12945 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12946 succeeded=yes
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950 FREETYPE_CFLAGS=""
12951 FREETYPE_LIBS=""
12952 ## If we have a custom action on failure, don't print errors, but
12953 ## do set a variable so people can do so.
12954 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12955
12956 fi
12957
12958
12959
12960 else
12961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12963 fi
12964 fi
12965
12966 if test $succeeded = yes; then
12967 HAVE_FREETYPE=yes
12968 else
12969 HAVE_FREETYPE=no
12970 fi
12971
12972
12973 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12974 fi
12975
12976 HAVE_LIBOTF=no
12977 if test "${HAVE_FREETYPE}" = "yes"; then
12978
12979 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12980
12981 if test "${with_libotf}" != "no"; then
12982
12983 succeeded=no
12984
12985 # Extract the first word of "pkg-config", so it can be a program name with args.
12986 set dummy pkg-config; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 case $PKG_CONFIG in
12993 [\\/]* | ?:[\\/]*)
12994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12995 ;;
12996 *)
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
12999 do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008 done
13009 done
13010 IFS=$as_save_IFS
13011
13012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13013 ;;
13014 esac
13015 fi
13016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13017 if test -n "$PKG_CONFIG"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13019 $as_echo "$PKG_CONFIG" >&6; }
13020 else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13023 fi
13024
13025
13026
13027 if test "$PKG_CONFIG" = "no" ; then
13028 HAVE_LIBOTF=no
13029 else
13030 PKG_CONFIG_MIN_VERSION=0.9.0
13031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13033 $as_echo_n "checking for libotf... " >&6; }
13034
13035 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13036 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13037 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13038 edit_cflags="
13039 s,///*,/,g
13040 s/^/ /
13041 s/ -I/ $isystem/g
13042 s/^ //
13043 "
13044 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13045 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13047 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13048 succeeded=yes
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 $as_echo "no" >&6; }
13052 LIBOTF_CFLAGS=""
13053 LIBOTF_LIBS=""
13054 ## If we have a custom action on failure, don't print errors, but
13055 ## do set a variable so people can do so.
13056 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13057
13058 fi
13059
13060
13061
13062 else
13063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 fi
13066 fi
13067
13068 if test $succeeded = yes; then
13069 HAVE_LIBOTF=yes
13070 else
13071 HAVE_LIBOTF=no
13072 fi
13073
13074 if test "$HAVE_LIBOTF" = "yes"; then
13075
13076 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13079 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13080 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lotf $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char OTF_get_variation_glyphs ();
13095 int
13096 main ()
13097 {
13098 return OTF_get_variation_glyphs ();
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13105 else
13106 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13107 fi
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13113 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13114 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13115 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13116 else
13117 HAVE_OTF_GET_VARIATION_GLYPHS=no
13118 fi
13119
13120 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13121
13122 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13123
13124 fi
13125 fi
13126 fi
13127 fi
13128
13129 HAVE_M17N_FLT=no
13130 if test "${HAVE_LIBOTF}" = yes; then
13131 if test "${with_m17n_flt}" != "no"; then
13132
13133 succeeded=no
13134
13135 # Extract the first word of "pkg-config", so it can be a program name with args.
13136 set dummy pkg-config; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 case $PKG_CONFIG in
13143 [\\/]* | ?:[\\/]*)
13144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13145 ;;
13146 *)
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13163 ;;
13164 esac
13165 fi
13166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13167 if test -n "$PKG_CONFIG"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13169 $as_echo "$PKG_CONFIG" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176
13177 if test "$PKG_CONFIG" = "no" ; then
13178 HAVE_M17N_FLT=no
13179 else
13180 PKG_CONFIG_MIN_VERSION=0.9.0
13181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13183 $as_echo_n "checking for m17n-flt... " >&6; }
13184
13185 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13186 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13187 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13188 edit_cflags="
13189 s,///*,/,g
13190 s/^/ /
13191 s/ -I/ $isystem/g
13192 s/^ //
13193 "
13194 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13195 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13197 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13198 succeeded=yes
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 M17N_FLT_CFLAGS=""
13203 M17N_FLT_LIBS=""
13204 ## If we have a custom action on failure, don't print errors, but
13205 ## do set a variable so people can do so.
13206 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13207
13208 fi
13209
13210
13211
13212 else
13213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13215 fi
13216 fi
13217
13218 if test $succeeded = yes; then
13219 HAVE_M17N_FLT=yes
13220 else
13221 HAVE_M17N_FLT=no
13222 fi
13223
13224 if test "$HAVE_M17N_FLT" = "yes"; then
13225
13226 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13227
13228 fi
13229 fi
13230 fi
13231 else
13232 HAVE_XFT=no
13233 HAVE_FREETYPE=no
13234 HAVE_LIBOTF=no
13235 HAVE_M17N_FLT=no
13236 fi
13237
13238 ### End of font-backend (under X11) section.
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249 ### Use -lXpm if available, unless `--with-xpm=no'.
13250 HAVE_XPM=no
13251 LIBXPM=
13252 if test "${HAVE_X11}" = "yes"; then
13253 if test "${with_xpm}" != "no"; then
13254 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13255 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13257 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13258 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-lXpm -lX11 $LIBS"
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 char XpmReadFileToPixmap ();
13273 int
13274 main ()
13275 {
13276 return XpmReadFileToPixmap ();
13277 ;
13278 return 0;
13279 }
13280 _ACEOF
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13283 else
13284 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_lib_save_LIBS
13289 fi
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13291 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13292 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13293 HAVE_XPM=yes
13294 fi
13295
13296 fi
13297
13298
13299 if test "${HAVE_XPM}" = "yes"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13301 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #include "X11/xpm.h"
13305 #ifndef XpmReturnAllocPixels
13306 no_return_alloc_pixels
13307 #endif
13308
13309 _ACEOF
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13312 HAVE_XPM=no
13313 else
13314 HAVE_XPM=yes
13315 fi
13316 rm -f conftest*
13317
13318
13319 if test "${HAVE_XPM}" = "yes"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13321 $as_echo "yes" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326 fi
13327 fi
13328
13329 if test "${HAVE_XPM}" = "yes"; then
13330
13331 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13332
13333 LIBXPM=-lXpm
13334 fi
13335 fi
13336
13337
13338 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13339 HAVE_JPEG=no
13340 LIBJPEG=
13341 if test "${HAVE_X11}" = "yes"; then
13342 if test "${with_jpeg}" != "no"; then
13343 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13344 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13346 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13347 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 ac_check_lib_save_LIBS=$LIBS
13351 LIBS="-ljpeg $LIBS"
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354
13355 /* Override any GCC internal prototype to avoid an error.
13356 Use char because int might match the return type of a GCC
13357 builtin and then its argument prototype would still apply. */
13358 #ifdef __cplusplus
13359 extern "C"
13360 #endif
13361 char jpeg_destroy_compress ();
13362 int
13363 main ()
13364 {
13365 return jpeg_destroy_compress ();
13366 ;
13367 return 0;
13368 }
13369 _ACEOF
13370 if ac_fn_c_try_link "$LINENO"; then :
13371 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13372 else
13373 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_lib_save_LIBS
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13380 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13381 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13382 HAVE_JPEG=yes
13383 fi
13384
13385 fi
13386
13387
13388 fi
13389
13390 if test "${HAVE_JPEG}" = "yes"; then
13391 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13392
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 #include <jpeglib.h>
13396 version=JPEG_LIB_VERSION
13397
13398 _ACEOF
13399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13400 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13401 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13402
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13405 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13406 HAVE_JPEG=no
13407 fi
13408 rm -f conftest*
13409
13410 fi
13411 if test "${HAVE_JPEG}" = "yes"; then
13412 LIBJPEG=-ljpeg
13413 fi
13414 fi
13415
13416
13417 ### Use -lpng if available, unless `--with-png=no'.
13418 HAVE_PNG=no
13419 LIBPNG=
13420 if test "${HAVE_X11}" = "yes"; then
13421 if test "${with_png}" != "no"; then
13422 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13423 # in /usr/include/libpng.
13424 for ac_header in png.h libpng/png.h
13425 do :
13426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13428 eval as_val=\$$as_ac_Header
13429 if test "x$as_val" = x""yes; then :
13430 cat >>confdefs.h <<_ACEOF
13431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13432 _ACEOF
13433
13434 fi
13435
13436 done
13437
13438 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13440 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13441 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 ac_check_lib_save_LIBS=$LIBS
13445 LIBS="-lpng -lz -lm $LIBS"
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448
13449 /* Override any GCC internal prototype to avoid an error.
13450 Use char because int might match the return type of a GCC
13451 builtin and then its argument prototype would still apply. */
13452 #ifdef __cplusplus
13453 extern "C"
13454 #endif
13455 char png_get_channels ();
13456 int
13457 main ()
13458 {
13459 return png_get_channels ();
13460 ;
13461 return 0;
13462 }
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_lib_png_png_get_channels=yes
13466 else
13467 ac_cv_lib_png_png_get_channels=no
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13472 fi
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13474 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13475 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13476 HAVE_PNG=yes
13477 fi
13478
13479 fi
13480 fi
13481
13482 if test "${HAVE_PNG}" = "yes"; then
13483
13484 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13485
13486 LIBPNG="-lpng -lz -lm"
13487 fi
13488 fi
13489
13490
13491 ### Use -ltiff if available, unless `--with-tiff=no'.
13492 HAVE_TIFF=no
13493 LIBTIFF=
13494 if test "${HAVE_X11}" = "yes"; then
13495 if test "${with_tiff}" != "no"; then
13496 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13497 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13498 tifflibs="-lz -lm"
13499 # At least one tiff package requires the jpeg library.
13500 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13502 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13503 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-ltiff $tifflibs $LIBS"
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char TIFFGetVersion ();
13518 int
13519 main ()
13520 {
13521 return TIFFGetVersion ();
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_lib_tiff_TIFFGetVersion=yes
13528 else
13529 ac_cv_lib_tiff_TIFFGetVersion=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13534 fi
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13536 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13537 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13538 HAVE_TIFF=yes
13539 fi
13540
13541 fi
13542
13543
13544 fi
13545
13546 if test "${HAVE_TIFF}" = "yes"; then
13547
13548 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13549
13550 LIBTIFF=-ltiff
13551 fi
13552 fi
13553
13554
13555 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13556 HAVE_GIF=no
13557 LIBGIF=
13558 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13559 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13561 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13562 # Earlier versions can crash Emacs.
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13564 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13565 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-lgif $LIBS"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 char EGifPutExtensionLast ();
13580 int
13581 main ()
13582 {
13583 return EGifPutExtensionLast ();
13584 ;
13585 return 0;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_lib_gif_EGifPutExtensionLast=yes
13590 else
13591 ac_cv_lib_gif_EGifPutExtensionLast=no
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13598 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13599 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13600 HAVE_GIF=yes
13601 else
13602 HAVE_GIF=maybe
13603 fi
13604
13605 fi
13606
13607
13608
13609 if test "$HAVE_GIF" = yes; then
13610 LIBGIF=-lgif
13611 elif test "$HAVE_GIF" = maybe; then
13612 # If gif_lib.h but no libgif, try libungif.
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13614 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13615 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-lungif $LIBS"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char EGifPutExtensionLast ();
13630 int
13631 main ()
13632 {
13633 return EGifPutExtensionLast ();
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13640 else
13641 ac_cv_lib_ungif_EGifPutExtensionLast=no
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13648 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13649 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13650 HAVE_GIF=yes
13651 else
13652 HAVE_GIF=no
13653 fi
13654
13655 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13656 fi
13657
13658 if test "${HAVE_GIF}" = "yes"; then
13659
13660 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13661
13662 fi
13663 fi
13664
13665
13666 if test "${HAVE_X11}" = "yes"; then
13667 MISSING=""
13668 WITH_NO=""
13669 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13670 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13671 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13672 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13673 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13674 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13675 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13676 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13677 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13678 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13679
13680 if test "X${MISSING}" != X; then
13681 as_fn_error "The following required libraries were not found:
13682 $MISSING
13683 Maybe some development libraries/packages are missing?
13684 If you don't want to link with them give
13685 $WITH_NO
13686 as options to configure" "$LINENO" 5
13687 fi
13688 fi
13689
13690 ### Use -lgpm if available, unless `--with-gpm=no'.
13691 HAVE_GPM=no
13692 LIBGPM=
13693 if test "${with_gpm}" != "no"; then
13694 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13695 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13697 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13698 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lgpm $LIBS"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char Gpm_Open ();
13713 int
13714 main ()
13715 {
13716 return Gpm_Open ();
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_link "$LINENO"; then :
13722 ac_cv_lib_gpm_Gpm_Open=yes
13723 else
13724 ac_cv_lib_gpm_Gpm_Open=no
13725 fi
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13731 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13732 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13733 HAVE_GPM=yes
13734 fi
13735
13736 fi
13737
13738
13739
13740 if test "${HAVE_GPM}" = "yes"; then
13741
13742 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13743
13744 LIBGPM=-lgpm
13745 fi
13746 fi
13747
13748
13749 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13750 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13751
13752 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13753
13754 fi
13755
13756
13757
13758 GNUSTEP_CFLAGS=
13759 ### Use NeXTstep API to implement GUI.
13760 if test "${HAVE_NS}" = "yes"; then
13761
13762 $as_echo "#define HAVE_NS 1" >>confdefs.h
13763
13764 if test "${NS_IMPL_COCOA}" = "yes"; then
13765
13766 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13767
13768 fi
13769 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13770
13771 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13772
13773 # See also .m.o rule in Makefile.in */
13774 # FIXME: are all these flags really needed? Document here why. */
13775 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13776 ## Extra CFLAGS applied to src/*.m files.
13777 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13778 fi
13779 # We also have mouse menus.
13780 HAVE_MENUS=yes
13781 OTHER_FILES=ns-app
13782 fi
13783
13784
13785 ### Use session management (-lSM -lICE) if available
13786 HAVE_X_SM=no
13787 LIBXSM=
13788 if test "${HAVE_X11}" = "yes"; then
13789 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13790 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13792 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13793 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 ac_check_lib_save_LIBS=$LIBS
13797 LIBS="-lSM -lICE $LIBS"
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800
13801 /* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13804 #ifdef __cplusplus
13805 extern "C"
13806 #endif
13807 char SmcOpenConnection ();
13808 int
13809 main ()
13810 {
13811 return SmcOpenConnection ();
13812 ;
13813 return 0;
13814 }
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 ac_cv_lib_SM_SmcOpenConnection=yes
13818 else
13819 ac_cv_lib_SM_SmcOpenConnection=no
13820 fi
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 LIBS=$ac_check_lib_save_LIBS
13824 fi
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13826 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13827 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13828 HAVE_X_SM=yes
13829 fi
13830
13831 fi
13832
13833
13834
13835 if test "${HAVE_X_SM}" = "yes"; then
13836
13837 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13838
13839 LIBXSM="-lSM -lICE"
13840 case "$LIBS" in
13841 *-lSM*) ;;
13842 *) LIBS="$LIBXSM $LIBS" ;;
13843 esac
13844 fi
13845 fi
13846
13847
13848 ### Use libxml (-lxml2) if available
13849 HAVE_LIBXML2=no
13850 if test "${with_xml2}" != "no"; then
13851 ### I'm not sure what the version number should be, so I just guessed.
13852
13853 succeeded=no
13854
13855 # Extract the first word of "pkg-config", so it can be a program name with args.
13856 set dummy pkg-config; ac_word=$2
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858 $as_echo_n "checking for $ac_word... " >&6; }
13859 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13861 else
13862 case $PKG_CONFIG in
13863 [\\/]* | ?:[\\/]*)
13864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13865 ;;
13866 *)
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13869 do
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 break 2
13877 fi
13878 done
13879 done
13880 IFS=$as_save_IFS
13881
13882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13883 ;;
13884 esac
13885 fi
13886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13887 if test -n "$PKG_CONFIG"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13889 $as_echo "$PKG_CONFIG" >&6; }
13890 else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13893 fi
13894
13895
13896
13897 if test "$PKG_CONFIG" = "no" ; then
13898 HAVE_LIBXML2=no
13899 else
13900 PKG_CONFIG_MIN_VERSION=0.9.0
13901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13903 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13904
13905 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13906 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13907 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13908 edit_cflags="
13909 s,///*,/,g
13910 s/^/ /
13911 s/ -I/ $isystem/g
13912 s/^ //
13913 "
13914 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13915 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13917 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13918 succeeded=yes
13919 else
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13922 LIBXML2_CFLAGS=""
13923 LIBXML2_LIBS=""
13924 ## If we have a custom action on failure, don't print errors, but
13925 ## do set a variable so people can do so.
13926 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13927
13928 fi
13929
13930
13931
13932 else
13933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13935 fi
13936 fi
13937
13938 if test $succeeded = yes; then
13939 HAVE_LIBXML2=yes
13940 else
13941 HAVE_LIBXML2=no
13942 fi
13943
13944 if test "${HAVE_LIBXML2}" = "yes"; then
13945 LIBS="$LIBXML2_LIBS $LIBS"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13947 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13948 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lxml2 $LIBS"
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13959 #ifdef __cplusplus
13960 extern "C"
13961 #endif
13962 char htmlReadMemory ();
13963 int
13964 main ()
13965 {
13966 return htmlReadMemory ();
13967 ;
13968 return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_link "$LINENO"; then :
13972 ac_cv_lib_xml2_htmlReadMemory=yes
13973 else
13974 ac_cv_lib_xml2_htmlReadMemory=no
13975 fi
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13978 LIBS=$ac_check_lib_save_LIBS
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13981 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13982 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13983 HAVE_LIBXML2=yes
13984 else
13985 HAVE_LIBXML2=no
13986 fi
13987
13988 if test "${HAVE_LIBXML2}" = "yes"; then
13989
13990 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13991
13992 else
13993 LIBXML2_LIBS=""
13994 LIBXML2_CFLAGS=""
13995 fi
13996 fi
13997 fi
13998
13999
14000
14001 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14003 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14004 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 #include <netdb.h>
14010 int
14011 main ()
14012 {
14013 return h_errno;
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 emacs_cv_netdb_declares_h_errno=yes
14020 else
14021 emacs_cv_netdb_declares_h_errno=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14027 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14028 if test $emacs_cv_netdb_declares_h_errno = yes; then
14029
14030 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14031
14032 fi
14033
14034 # fmod, logb, and frexp are found in -lm on most systems.
14035 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14037 $as_echo_n "checking for sqrt in -lm... " >&6; }
14038 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lm $LIBS"
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045
14046 /* Override any GCC internal prototype to avoid an error.
14047 Use char because int might match the return type of a GCC
14048 builtin and then its argument prototype would still apply. */
14049 #ifdef __cplusplus
14050 extern "C"
14051 #endif
14052 char sqrt ();
14053 int
14054 main ()
14055 {
14056 return sqrt ();
14057 ;
14058 return 0;
14059 }
14060 _ACEOF
14061 if ac_fn_c_try_link "$LINENO"; then :
14062 ac_cv_lib_m_sqrt=yes
14063 else
14064 ac_cv_lib_m_sqrt=no
14065 fi
14066 rm -f core conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14071 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14072 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_LIBM 1
14075 _ACEOF
14076
14077 LIBS="-lm $LIBS"
14078
14079 fi
14080
14081
14082 # Check for mail-locking functions in a "mail" library. Probably this should
14083 # have the same check as for liblockfile below.
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14085 $as_echo_n "checking for maillock in -lmail... " >&6; }
14086 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-lmail $LIBS"
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14097 #ifdef __cplusplus
14098 extern "C"
14099 #endif
14100 char maillock ();
14101 int
14102 main ()
14103 {
14104 return maillock ();
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"; then :
14110 ac_cv_lib_mail_maillock=yes
14111 else
14112 ac_cv_lib_mail_maillock=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 LIBS=$ac_check_lib_save_LIBS
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14119 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14120 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14121 have_mail=yes
14122 else
14123 have_mail=no
14124 fi
14125
14126 if test $have_mail = yes; then
14127 LIBS_MAIL=-lmail
14128 LIBS="$LIBS_MAIL $LIBS"
14129
14130 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14131
14132 else
14133 LIBS_MAIL=
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14136 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14137 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-llockfile $LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char maillock ();
14152 int
14153 main ()
14154 {
14155 return maillock ();
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_lib_lockfile_maillock=yes
14162 else
14163 ac_cv_lib_lockfile_maillock=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14170 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14171 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14172 have_lockfile=yes
14173 else
14174 have_lockfile=no
14175 fi
14176
14177 if test $have_lockfile = yes; then
14178 LIBS_MAIL=-llockfile
14179 LIBS="$LIBS_MAIL $LIBS"
14180
14181 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14182
14183 else
14184 # If we have the shared liblockfile, assume we must use it for mail
14185 # locking (e.g. Debian). If we couldn't link against liblockfile
14186 # (no liblockfile.a installed), ensure that we don't need to.
14187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14188 set dummy liblockfile.so; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$liblockfile"; then
14195 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14199 for as_dir in $as_dummy
14200 do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
14204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14205 ac_cv_prog_liblockfile="yes"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14208 fi
14209 done
14210 done
14211 IFS=$as_save_IFS
14212
14213 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14214 fi
14215 fi
14216 liblockfile=$ac_cv_prog_liblockfile
14217 if test -n "$liblockfile"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14219 $as_echo "$liblockfile" >&6; }
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14224
14225
14226 if test $ac_cv_prog_liblockfile = yes; then
14227 as_fn_error "Shared liblockfile found but can't link against it.
14228 This probably means that movemail could lose mail.
14229 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14230 fi
14231 fi
14232 for ac_func in touchlock
14233 do :
14234 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14235 if test "x$ac_cv_func_touchlock" = x""yes; then :
14236 cat >>confdefs.h <<_ACEOF
14237 #define HAVE_TOUCHLOCK 1
14238 _ACEOF
14239
14240 fi
14241 done
14242
14243 for ac_header in maillock.h
14244 do :
14245 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14246 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_MAILLOCK_H 1
14249 _ACEOF
14250
14251 fi
14252
14253 done
14254
14255
14256
14257 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14258 ## interlock access to the mail spool. The alternative is a lock file named
14259 ## /usr/spool/mail/$USER.lock.
14260 mail_lock=no
14261 case "$opsys" in
14262 aix4-2) mail_lock="lockf" ;;
14263
14264 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14265
14266 ## On GNU/Linux systems, both methods are used by various mail programs.
14267 ## I assume most people are using newer mailers that have heard of flock.
14268 ## Change this if you need to.
14269 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14270 ## configure gets the right answers, and that means *NOT* using flock.
14271 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14272 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14273 ## Debian maintainer hasn't provided a clean fix for Emacs.
14274 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14275 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14276 ## correct logic. -- fx
14277 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14278 ## liblockfile is a Free Software replacement for libmail, used on
14279 ## Debian systems and elsewhere. -rfr.
14280 gnu-*)
14281 mail_lock="flock"
14282 if test $have_mail = yes || test $have_lockfile = yes; then
14283 test $ac_cv_header_maillock_h = yes && mail_lock=no
14284 fi
14285 ;;
14286 esac
14287
14288 BLESSMAIL_TARGET=
14289 case "$mail_lock" in
14290 flock)
14291 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14292 ;;
14293
14294 lockf)
14295 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14296 ;;
14297
14298 *) BLESSMAIL_TARGET="need-blessmail" ;;
14299 esac
14300
14301
14302
14303 for ac_func in gethostname getdomainname \
14304 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14305 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14306 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14307 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14308 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14309 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14310 gai_strerror mkstemp getline getdelim mremap fsync sync \
14311 difftime mempcpy mblen mbrlen posix_memalign \
14312 getpwent endpwent getgrent endgrent \
14313 cfmakeraw cfsetspeed copysign __executable_start
14314 do :
14315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14317 eval as_val=\$$as_ac_var
14318 if test "x$as_val" = x""yes; then :
14319 cat >>confdefs.h <<_ACEOF
14320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14321 _ACEOF
14322
14323 fi
14324 done
14325
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14328 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14329 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334
14335 int
14336 main ()
14337 {
14338 __builtin_unwind_init ();
14339 ;
14340 return 0;
14341 }
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 emacs_cv_func___builtin_unwind_init=yes
14345 else
14346 emacs_cv_func___builtin_unwind_init=no
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14352 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14353 if test $emacs_cv_func___builtin_unwind_init = yes; then
14354
14355 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14356
14357 fi
14358
14359 for ac_header in sys/un.h
14360 do :
14361 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14362 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14363 cat >>confdefs.h <<_ACEOF
14364 #define HAVE_SYS_UN_H 1
14365 _ACEOF
14366
14367 fi
14368
14369 done
14370
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14373 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14374 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 while :; do
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <sys/types.h> /* for off_t */
14381 #include <stdio.h>
14382 int
14383 main ()
14384 {
14385 int (*fp) (FILE *, off_t, int) = fseeko;
14386 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14387 ;
14388 return 0;
14389 }
14390 _ACEOF
14391 if ac_fn_c_try_link "$LINENO"; then :
14392 ac_cv_sys_largefile_source=no; break
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 #define _LARGEFILE_SOURCE 1
14399 #include <sys/types.h> /* for off_t */
14400 #include <stdio.h>
14401 int
14402 main ()
14403 {
14404 int (*fp) (FILE *, off_t, int) = fseeko;
14405 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 ac_cv_sys_largefile_source=1; break
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 ac_cv_sys_largefile_source=unknown
14416 break
14417 done
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14420 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14421 case $ac_cv_sys_largefile_source in #(
14422 no | unknown) ;;
14423 *)
14424 cat >>confdefs.h <<_ACEOF
14425 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14426 _ACEOF
14427 ;;
14428 esac
14429 rm -rf conftest*
14430
14431 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14432 # in glibc 2.1.3, but that breaks too many other things.
14433 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14434 if test $ac_cv_sys_largefile_source != unknown; then
14435
14436 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14437
14438 fi
14439
14440
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14442 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14443 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 # Use it with a single arg.
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 $ac_includes_default
14450 int
14451 main ()
14452 {
14453 getpgrp (0);
14454 ;
14455 return 0;
14456 }
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"; then :
14459 ac_cv_func_getpgrp_void=no
14460 else
14461 ac_cv_func_getpgrp_void=yes
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14467 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14468 if test $ac_cv_func_getpgrp_void = yes; then
14469
14470 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14471
14472 fi
14473
14474
14475 # UNIX98 PTYs.
14476 for ac_func in grantpt
14477 do :
14478 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14479 if test "x$ac_cv_func_grantpt" = x""yes; then :
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_GRANTPT 1
14482 _ACEOF
14483
14484 fi
14485 done
14486
14487
14488 # PTY-related GNU extensions.
14489 for ac_func in getpt
14490 do :
14491 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14492 if test "x$ac_cv_func_getpt" = x""yes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_GETPT 1
14495 _ACEOF
14496
14497 fi
14498 done
14499
14500
14501 # Check this now, so that we will NOT find the above functions in ncurses.
14502 # That is because we have not set up to link ncurses in lib-src.
14503 # It's better to believe a function is not available
14504 # than to expect to find it in ncurses.
14505 # Also we need tputs and friends to be able to build at all.
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14507 $as_echo_n "checking for library containing tputs... " >&6; }
14508 # Run a test program that contains a call to tputs, a call that is
14509 # never executed. This tests whether a pre-'main' dynamic linker
14510 # works with the library. It's too much trouble to actually call
14511 # tputs in the test program, due to portability hassles. When
14512 # cross-compiling, assume the test program will run if it links.
14513
14514 # Maybe curses should be tried earlier?
14515 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14516 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14517 OLIBS=$LIBS
14518 if test -z "$tputs_library"; then
14519 LIBS_TERMCAP=
14520 msg='none required'
14521 else
14522 LIBS_TERMCAP=-l$tputs_library
14523 msg=$LIBS_TERMCAP
14524 LIBS="$LIBS_TERMCAP $LIBS"
14525 fi
14526 if test "$cross_compiling" = yes; then :
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529
14530 extern void tputs (const char *, int, int (*)(int));
14531 int main (int argc, char **argv)
14532 {
14533 if (argc == 10000)
14534 tputs (argv[0], 0, 0);
14535 return 0;
14536 }
14537
14538 _ACEOF
14539 if ac_fn_c_try_link "$LINENO"; then :
14540
14541 else
14542 msg=no
14543 fi
14544 rm -f core conftest.err conftest.$ac_objext \
14545 conftest$ac_exeext conftest.$ac_ext
14546 else
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14549
14550 extern void tputs (const char *, int, int (*)(int));
14551 int main (int argc, char **argv)
14552 {
14553 if (argc == 10000)
14554 tputs (argv[0], 0, 0);
14555 return 0;
14556 }
14557
14558 _ACEOF
14559 if ac_fn_c_try_run "$LINENO"; then :
14560
14561 else
14562 msg=no
14563 fi
14564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14565 conftest.$ac_objext conftest.beam conftest.$ac_ext
14566 fi
14567
14568 LIBS=$OLIBS
14569 if test "X$msg" != Xno; then
14570 break
14571 fi
14572 done
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14574 $as_echo "$msg" >&6; }
14575 if test "X$msg" = Xno; then
14576 as_fn_error "The required function \`tputs' was not found in any library.
14577 The following libraries were tried (in order):
14578 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14579 Please try installing whichever of these libraries is most appropriate
14580 for your system, together with its header files.
14581 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14582 fi
14583
14584 ## Use termcap instead of terminfo?
14585 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14586 TERMINFO=yes
14587 ## FIXME? In the cases below where we unconditionally set
14588 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14589 ## if that was found above to have tputs.
14590 ## Should we use the gnu* logic everywhere?
14591 case "$opsys" in
14592 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14593 ## The ncurses library has been moved out of the System framework in
14594 ## Mac OS X 10.2. So if configure detects it, set the command-line
14595 ## option to use it.
14596 darwin) LIBS_TERMCAP="-lncurses" ;;
14597
14598 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14599
14600 freebsd)
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14602 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14603 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 #include <osreldate.h>
14609 int
14610 main ()
14611 {
14612 #if __FreeBSD_version < 400000
14613 fail;
14614 #endif
14615
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 emacs_cv_freebsd_terminfo=yes
14622 else
14623 emacs_cv_freebsd_terminfo=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 fi
14628
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14631 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14632
14633 if test $emacs_cv_freebsd_terminfo = yes; then
14634 LIBS_TERMCAP="-lncurses"
14635 else
14636 TERMINFO=no
14637 LIBS_TERMCAP="-ltermcap"
14638 fi
14639 ;;
14640
14641 netbsd)
14642 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14643 TERMINFO=no
14644 LIBS_TERMCAP="-ltermcap"
14645 fi
14646 ;;
14647
14648 openbsd) LIBS_TERMCAP="-lncurses" ;;
14649
14650 ## hpux: Make sure we get select from libc rather than from libcurses
14651 ## because libcurses on HPUX 10.10 has a broken version of select.
14652 ## We used to use -lc -lcurses, but this may be cleaner.
14653 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14654 # set that way, now it uses the default). Isn't this a contradiction?
14655 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14656
14657 esac
14658
14659 TERMCAP_OBJ=tparam.o
14660 if test $TERMINFO = yes; then
14661
14662 $as_echo "#define TERMINFO 1" >>confdefs.h
14663
14664 TERMCAP_OBJ=terminfo.o
14665 fi
14666
14667
14668
14669
14670 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14671 resolv=no
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 #include <netinet/in.h>
14675 #include <arpa/nameser.h>
14676 #include <resolv.h>
14677 int
14678 main ()
14679 {
14680 return res_init();
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 if ac_fn_c_try_link "$LINENO"; then :
14686 have_res_init=yes
14687 else
14688 have_res_init=no
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692 if test "$have_res_init" = no; then
14693 OLIBS="$LIBS"
14694 LIBS="$LIBS -lresolv"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14696 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699 #include <netinet/in.h>
14700 #include <arpa/nameser.h>
14701 #include <resolv.h>
14702 int
14703 main ()
14704 {
14705 return res_init();
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"; then :
14711 have_res_init=yes
14712 else
14713 have_res_init=no
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14718 $as_echo "$have_res_init" >&6; }
14719 if test "$have_res_init" = yes ; then
14720 resolv=yes
14721 fi
14722 LIBS="$OLIBS"
14723 fi
14724
14725 if test "$have_res_init" = yes; then
14726
14727 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14728
14729 fi
14730
14731 # Do we need the Hesiod library to provide the support routines?
14732 LIBHESIOD=
14733 if test "$with_hesiod" != no ; then
14734 # Don't set $LIBS here -- see comments above. FIXME which comments?
14735 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14736 if test "x$ac_cv_func_res_send" = x""yes; then :
14737
14738 else
14739 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14740 if test "x$ac_cv_func___res_send" = x""yes; then :
14741
14742 else
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14744 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14745 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lresolv $LIBS"
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 char res_send ();
14760 int
14761 main ()
14762 {
14763 return res_send ();
14764 ;
14765 return 0;
14766 }
14767 _ACEOF
14768 if ac_fn_c_try_link "$LINENO"; then :
14769 ac_cv_lib_resolv_res_send=yes
14770 else
14771 ac_cv_lib_resolv_res_send=no
14772 fi
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14775 LIBS=$ac_check_lib_save_LIBS
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14778 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14779 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14780 resolv=yes
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14783 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14784 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lresolv $LIBS"
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14791
14792 /* Override any GCC internal prototype to avoid an error.
14793 Use char because int might match the return type of a GCC
14794 builtin and then its argument prototype would still apply. */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 char __res_send ();
14799 int
14800 main ()
14801 {
14802 return __res_send ();
14803 ;
14804 return 0;
14805 }
14806 _ACEOF
14807 if ac_fn_c_try_link "$LINENO"; then :
14808 ac_cv_lib_resolv___res_send=yes
14809 else
14810 ac_cv_lib_resolv___res_send=no
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14814 LIBS=$ac_check_lib_save_LIBS
14815 fi
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14817 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14818 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14819 resolv=yes
14820 fi
14821
14822 fi
14823
14824 fi
14825
14826 fi
14827
14828 if test "$resolv" = yes ; then
14829 RESOLVLIB=-lresolv
14830 else
14831 RESOLVLIB=
14832 fi
14833 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14834 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14835
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14838 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14839 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lhesiod $RESOLVLIB $LIBS"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14846
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 char hes_getmailhost ();
14854 int
14855 main ()
14856 {
14857 return hes_getmailhost ();
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863 ac_cv_lib_hesiod_hes_getmailhost=yes
14864 else
14865 ac_cv_lib_hesiod_hes_getmailhost=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14872 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14873 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14874 hesiod=yes
14875 else
14876 :
14877 fi
14878
14879 fi
14880
14881
14882 if test x"$hesiod" = xyes; then
14883
14884 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14885
14886 LIBHESIOD=-lhesiod
14887 fi
14888 fi
14889
14890
14891 # Do we need libresolv (due to res_init or Hesiod)?
14892 if test "$resolv" = yes ; then
14893
14894 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14895
14896 LIBRESOLV=-lresolv
14897 else
14898 LIBRESOLV=
14899 fi
14900
14901
14902 # These tell us which Kerberos-related libraries to use.
14903 COM_ERRLIB=
14904 CRYPTOLIB=
14905 KRB5LIB=
14906 DESLIB=
14907 KRB4LIB=
14908
14909 if test "${with_kerberos}" != no; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14911 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14912 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 ac_check_lib_save_LIBS=$LIBS
14916 LIBS="-lcom_err $LIBS"
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char com_err ();
14927 int
14928 main ()
14929 {
14930 return com_err ();
14931 ;
14932 return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 ac_cv_lib_com_err_com_err=yes
14937 else
14938 ac_cv_lib_com_err_com_err=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_check_lib_save_LIBS
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14945 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14946 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14947 have_com_err=yes
14948 else
14949 have_com_err=no
14950 fi
14951
14952 if test $have_com_err = yes; then
14953 COM_ERRLIB=-lcom_err
14954 LIBS="$COM_ERRLIB $LIBS"
14955
14956 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14957
14958 fi
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14960 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14961 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 ac_check_lib_save_LIBS=$LIBS
14965 LIBS="-lcrypto $LIBS"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char mit_des_cbc_encrypt ();
14976 int
14977 main ()
14978 {
14979 return mit_des_cbc_encrypt ();
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14986 else
14987 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14994 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14995 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14996 have_crypto=yes
14997 else
14998 have_crypto=no
14999 fi
15000
15001 if test $have_crypto = yes; then
15002 CRYPTOLIB=-lcrypto
15003 LIBS="$CRYPTOLIB $LIBS"
15004
15005 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15006
15007 fi
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15009 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15010 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15013 ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-lk5crypto $LIBS"
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017
15018 /* Override any GCC internal prototype to avoid an error.
15019 Use char because int might match the return type of a GCC
15020 builtin and then its argument prototype would still apply. */
15021 #ifdef __cplusplus
15022 extern "C"
15023 #endif
15024 char mit_des_cbc_encrypt ();
15025 int
15026 main ()
15027 {
15028 return mit_des_cbc_encrypt ();
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15035 else
15036 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15040 LIBS=$ac_check_lib_save_LIBS
15041 fi
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15043 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15044 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15045 have_k5crypto=yes
15046 else
15047 have_k5crypto=no
15048 fi
15049
15050 if test $have_k5crypto = yes; then
15051 CRYPTOLIB=-lk5crypto
15052 LIBS="$CRYPTOLIB $LIBS"
15053
15054 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15055
15056 fi
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15058 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15059 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 ac_check_lib_save_LIBS=$LIBS
15063 LIBS="-lkrb5 $LIBS"
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15066
15067 /* Override any GCC internal prototype to avoid an error.
15068 Use char because int might match the return type of a GCC
15069 builtin and then its argument prototype would still apply. */
15070 #ifdef __cplusplus
15071 extern "C"
15072 #endif
15073 char krb5_init_context ();
15074 int
15075 main ()
15076 {
15077 return krb5_init_context ();
15078 ;
15079 return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 ac_cv_lib_krb5_krb5_init_context=yes
15084 else
15085 ac_cv_lib_krb5_krb5_init_context=no
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15090 fi
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15092 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15093 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15094 have_krb5=yes
15095 else
15096 have_krb5=no
15097 fi
15098
15099 if test $have_krb5=yes; then
15100 KRB5LIB=-lkrb5
15101 LIBS="$KRB5LIB $LIBS"
15102
15103 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15104
15105 fi
15106 if test "${with_kerberos5}" = no; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15108 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15109 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15110 $as_echo_n "(cached) " >&6
15111 else
15112 ac_check_lib_save_LIBS=$LIBS
15113 LIBS="-ldes425 $LIBS"
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15120 #ifdef __cplusplus
15121 extern "C"
15122 #endif
15123 char des_cbc_encrypt ();
15124 int
15125 main ()
15126 {
15127 return des_cbc_encrypt ();
15128 ;
15129 return 0;
15130 }
15131 _ACEOF
15132 if ac_fn_c_try_link "$LINENO"; then :
15133 ac_cv_lib_des425_des_cbc_encrypt=yes
15134 else
15135 ac_cv_lib_des425_des_cbc_encrypt=no
15136 fi
15137 rm -f core conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext conftest.$ac_ext
15139 LIBS=$ac_check_lib_save_LIBS
15140 fi
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15142 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15143 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15144 have_des425=yes
15145 else
15146 have_des425=no
15147 fi
15148
15149 if test $have_des425 = yes; then
15150 DESLIB=-ldes425
15151 LIBS="$DESLIB $LIBS"
15152
15153 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15154
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15157 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15158 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15159 $as_echo_n "(cached) " >&6
15160 else
15161 ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-ldes $LIBS"
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15169 #ifdef __cplusplus
15170 extern "C"
15171 #endif
15172 char des_cbc_encrypt ();
15173 int
15174 main ()
15175 {
15176 return des_cbc_encrypt ();
15177 ;
15178 return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 ac_cv_lib_des_des_cbc_encrypt=yes
15183 else
15184 ac_cv_lib_des_des_cbc_encrypt=no
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LIBS=$ac_check_lib_save_LIBS
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15191 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15192 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15193 have_des=yes
15194 else
15195 have_des=no
15196 fi
15197
15198 if test $have_des = yes; then
15199 DESLIB=-ldes
15200 LIBS="$DESLIB $LIBS"
15201
15202 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15203
15204 fi
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15207 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15208 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 ac_check_lib_save_LIBS=$LIBS
15212 LIBS="-lkrb4 $LIBS"
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char krb_get_cred ();
15223 int
15224 main ()
15225 {
15226 return krb_get_cred ();
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"; then :
15232 ac_cv_lib_krb4_krb_get_cred=yes
15233 else
15234 ac_cv_lib_krb4_krb_get_cred=no
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15238 LIBS=$ac_check_lib_save_LIBS
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15241 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15242 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15243 have_krb4=yes
15244 else
15245 have_krb4=no
15246 fi
15247
15248 if test $have_krb4 = yes; then
15249 KRB4LIB=-lkrb4
15250 LIBS="$KRB4LIB $LIBS"
15251
15252 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15253
15254 else
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15256 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15257 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260 ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lkrb $LIBS"
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char krb_get_cred ();
15272 int
15273 main ()
15274 {
15275 return krb_get_cred ();
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"; then :
15281 ac_cv_lib_krb_krb_get_cred=yes
15282 else
15283 ac_cv_lib_krb_krb_get_cred=no
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext \
15286 conftest$ac_exeext conftest.$ac_ext
15287 LIBS=$ac_check_lib_save_LIBS
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15290 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15291 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15292 have_krb=yes
15293 else
15294 have_krb=no
15295 fi
15296
15297 if test $have_krb = yes; then
15298 KRB4LIB=-lkrb
15299 LIBS="$KRB4LIB $LIBS"
15300
15301 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15302
15303 fi
15304 fi
15305 fi
15306
15307 if test "${with_kerberos5}" != no; then
15308 for ac_header in krb5.h
15309 do :
15310 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15311 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15312 cat >>confdefs.h <<_ACEOF
15313 #define HAVE_KRB5_H 1
15314 _ACEOF
15315 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15316 "
15317 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15318
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_KRB5_ERROR_TEXT 1
15321 _ACEOF
15322
15323
15324 fi
15325 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15326 "
15327 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15328
15329 cat >>confdefs.h <<_ACEOF
15330 #define HAVE_KRB5_ERROR_E_TEXT 1
15331 _ACEOF
15332
15333
15334 fi
15335
15336 fi
15337
15338 done
15339
15340 else
15341 for ac_header in des.h
15342 do :
15343 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15344 if test "x$ac_cv_header_des_h" = x""yes; then :
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_DES_H 1
15347 _ACEOF
15348
15349 else
15350 for ac_header in kerberosIV/des.h
15351 do :
15352 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15353 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_KERBEROSIV_DES_H 1
15356 _ACEOF
15357
15358 else
15359 for ac_header in kerberos/des.h
15360 do :
15361 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15362 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15363 cat >>confdefs.h <<_ACEOF
15364 #define HAVE_KERBEROS_DES_H 1
15365 _ACEOF
15366
15367 fi
15368
15369 done
15370
15371 fi
15372
15373 done
15374
15375 fi
15376
15377 done
15378
15379 for ac_header in krb.h
15380 do :
15381 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_krb_h" = x""yes; then :
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_KRB_H 1
15385 _ACEOF
15386
15387 else
15388 for ac_header in kerberosIV/krb.h
15389 do :
15390 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15391 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15392 cat >>confdefs.h <<_ACEOF
15393 #define HAVE_KERBEROSIV_KRB_H 1
15394 _ACEOF
15395
15396 else
15397 for ac_header in kerberos/krb.h
15398 do :
15399 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15400 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15401 cat >>confdefs.h <<_ACEOF
15402 #define HAVE_KERBEROS_KRB_H 1
15403 _ACEOF
15404
15405 fi
15406
15407 done
15408
15409 fi
15410
15411 done
15412
15413 fi
15414
15415 done
15416
15417 fi
15418 for ac_header in com_err.h
15419 do :
15420 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15421 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15422 cat >>confdefs.h <<_ACEOF
15423 #define HAVE_COM_ERR_H 1
15424 _ACEOF
15425
15426 fi
15427
15428 done
15429
15430 fi
15431
15432
15433
15434
15435
15436
15437
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15439 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15440 if test "${emacs_cv_localtime_cache+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15442 else
15443 if test x$ac_cv_func_tzset = xyes; then
15444 if test "$cross_compiling" = yes; then :
15445 # If we have tzset, assume the worst when cross-compiling.
15446 emacs_cv_localtime_cache=yes
15447 else
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 #include <time.h>
15451 char TZ_GMT0[] = "TZ=GMT0";
15452 char TZ_PST8[] = "TZ=PST8";
15453 main()
15454 {
15455 time_t now = time ((time_t *) 0);
15456 int hour_GMT0, hour_unset;
15457 if (putenv (TZ_GMT0) != 0)
15458 exit (1);
15459 hour_GMT0 = localtime (&now)->tm_hour;
15460 unsetenv("TZ");
15461 hour_unset = localtime (&now)->tm_hour;
15462 if (putenv (TZ_PST8) != 0)
15463 exit (1);
15464 if (localtime (&now)->tm_hour == hour_GMT0)
15465 exit (1);
15466 unsetenv("TZ");
15467 if (localtime (&now)->tm_hour != hour_unset)
15468 exit (1);
15469 exit (0);
15470 }
15471 _ACEOF
15472 if ac_fn_c_try_run "$LINENO"; then :
15473 emacs_cv_localtime_cache=no
15474 else
15475 emacs_cv_localtime_cache=yes
15476 fi
15477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15478 conftest.$ac_objext conftest.beam conftest.$ac_ext
15479 fi
15480
15481 else
15482 # If we lack tzset, report that localtime does not cache TZ,
15483 # since we can't invalidate the cache if we don't have tzset.
15484 emacs_cv_localtime_cache=no
15485 fi
15486 fi
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15488 $as_echo "$emacs_cv_localtime_cache" >&6; }
15489 if test $emacs_cv_localtime_cache = yes; then
15490
15491 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15492
15493 fi
15494
15495 if test "x$HAVE_TIMEVAL" = xyes; then
15496 for ac_func in gettimeofday
15497 do :
15498 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15499 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_GETTIMEOFDAY 1
15502 _ACEOF
15503
15504 fi
15505 done
15506
15507 if test $ac_cv_func_gettimeofday = yes; then
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15509 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15510 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15511 $as_echo_n "(cached) " >&6
15512 else
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515
15516 #ifdef TIME_WITH_SYS_TIME
15517 #include <sys/time.h>
15518 #include <time.h>
15519 #else
15520 #ifdef HAVE_SYS_TIME_H
15521 #include <sys/time.h>
15522 #else
15523 #include <time.h>
15524 #endif
15525 #endif
15526 int
15527 main ()
15528 {
15529 struct timeval time;
15530 gettimeofday (&time, 0);
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 if ac_fn_c_try_compile "$LINENO"; then :
15536 emacs_cv_gettimeofday_two_arguments=yes
15537 else
15538 emacs_cv_gettimeofday_two_arguments=no
15539 fi
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15543 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15544 if test $emacs_cv_gettimeofday_two_arguments = no; then
15545
15546 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15547
15548 fi
15549 fi
15550 fi
15551
15552 ok_so_far=yes
15553 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15554 if test "x$ac_cv_func_socket" = x""yes; then :
15555
15556 else
15557 ok_so_far=no
15558 fi
15559
15560 if test $ok_so_far = yes; then
15561 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15562 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15563
15564 else
15565 ok_so_far=no
15566 fi
15567
15568
15569 fi
15570 if test $ok_so_far = yes; then
15571 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15572 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15573
15574 else
15575 ok_so_far=no
15576 fi
15577
15578
15579 fi
15580 if test $ok_so_far = yes; then
15581
15582 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15583
15584 fi
15585
15586 if test -f /usr/lpp/X11/bin/smt.exp; then
15587
15588 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15589
15590 fi
15591
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15593 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15594 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15596 $as_echo "yes" >&6; }
15597
15598 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15599
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15603 fi
15604
15605 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15606 if test "x$ac_cv_type_pid_t" = x""yes; then :
15607
15608 else
15609
15610 cat >>confdefs.h <<_ACEOF
15611 #define pid_t int
15612 _ACEOF
15613
15614 fi
15615
15616 for ac_header in vfork.h
15617 do :
15618 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15619 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15620 cat >>confdefs.h <<_ACEOF
15621 #define HAVE_VFORK_H 1
15622 _ACEOF
15623
15624 fi
15625
15626 done
15627
15628 for ac_func in fork vfork
15629 do :
15630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15632 eval as_val=\$$as_ac_var
15633 if test "x$as_val" = x""yes; then :
15634 cat >>confdefs.h <<_ACEOF
15635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15636 _ACEOF
15637
15638 fi
15639 done
15640
15641 if test "x$ac_cv_func_fork" = xyes; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15643 $as_echo_n "checking for working fork... " >&6; }
15644 if test "${ac_cv_func_fork_works+set}" = set; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 if test "$cross_compiling" = yes; then :
15648 ac_cv_func_fork_works=cross
15649 else
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 $ac_includes_default
15653 int
15654 main ()
15655 {
15656
15657 /* By Ruediger Kuhlmann. */
15658 return fork () < 0;
15659
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 if ac_fn_c_try_run "$LINENO"; then :
15665 ac_cv_func_fork_works=yes
15666 else
15667 ac_cv_func_fork_works=no
15668 fi
15669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15670 conftest.$ac_objext conftest.beam conftest.$ac_ext
15671 fi
15672
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15675 $as_echo "$ac_cv_func_fork_works" >&6; }
15676
15677 else
15678 ac_cv_func_fork_works=$ac_cv_func_fork
15679 fi
15680 if test "x$ac_cv_func_fork_works" = xcross; then
15681 case $host in
15682 *-*-amigaos* | *-*-msdosdjgpp*)
15683 # Override, as these systems have only a dummy fork() stub
15684 ac_cv_func_fork_works=no
15685 ;;
15686 *)
15687 ac_cv_func_fork_works=yes
15688 ;;
15689 esac
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15691 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15692 fi
15693 ac_cv_func_vfork_works=$ac_cv_func_vfork
15694 if test "x$ac_cv_func_vfork" = xyes; then
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15696 $as_echo_n "checking for working vfork... " >&6; }
15697 if test "${ac_cv_func_vfork_works+set}" = set; then :
15698 $as_echo_n "(cached) " >&6
15699 else
15700 if test "$cross_compiling" = yes; then :
15701 ac_cv_func_vfork_works=cross
15702 else
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 /* Thanks to Paul Eggert for this test. */
15706 $ac_includes_default
15707 #include <sys/wait.h>
15708 #ifdef HAVE_VFORK_H
15709 # include <vfork.h>
15710 #endif
15711 /* On some sparc systems, changes by the child to local and incoming
15712 argument registers are propagated back to the parent. The compiler
15713 is told about this with #include <vfork.h>, but some compilers
15714 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15715 static variable whose address is put into a register that is
15716 clobbered by the vfork. */
15717 static void
15718 #ifdef __cplusplus
15719 sparc_address_test (int arg)
15720 # else
15721 sparc_address_test (arg) int arg;
15722 #endif
15723 {
15724 static pid_t child;
15725 if (!child) {
15726 child = vfork ();
15727 if (child < 0) {
15728 perror ("vfork");
15729 _exit(2);
15730 }
15731 if (!child) {
15732 arg = getpid();
15733 write(-1, "", 0);
15734 _exit (arg);
15735 }
15736 }
15737 }
15738
15739 int
15740 main ()
15741 {
15742 pid_t parent = getpid ();
15743 pid_t child;
15744
15745 sparc_address_test (0);
15746
15747 child = vfork ();
15748
15749 if (child == 0) {
15750 /* Here is another test for sparc vfork register problems. This
15751 test uses lots of local variables, at least as many local
15752 variables as main has allocated so far including compiler
15753 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15754 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15755 reuse the register of parent for one of the local variables,
15756 since it will think that parent can't possibly be used any more
15757 in this routine. Assigning to the local variable will thus
15758 munge parent in the parent process. */
15759 pid_t
15760 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15761 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15762 /* Convince the compiler that p..p7 are live; otherwise, it might
15763 use the same hardware register for all 8 local variables. */
15764 if (p != p1 || p != p2 || p != p3 || p != p4
15765 || p != p5 || p != p6 || p != p7)
15766 _exit(1);
15767
15768 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15769 from child file descriptors. If the child closes a descriptor
15770 before it execs or exits, this munges the parent's descriptor
15771 as well. Test for this by closing stdout in the child. */
15772 _exit(close(fileno(stdout)) != 0);
15773 } else {
15774 int status;
15775 struct stat st;
15776
15777 while (wait(&status) != child)
15778 ;
15779 return (
15780 /* Was there some problem with vforking? */
15781 child < 0
15782
15783 /* Did the child fail? (This shouldn't happen.) */
15784 || status
15785
15786 /* Did the vfork/compiler bug occur? */
15787 || parent != getpid()
15788
15789 /* Did the file descriptor bug occur? */
15790 || fstat(fileno(stdout), &st) != 0
15791 );
15792 }
15793 }
15794 _ACEOF
15795 if ac_fn_c_try_run "$LINENO"; then :
15796 ac_cv_func_vfork_works=yes
15797 else
15798 ac_cv_func_vfork_works=no
15799 fi
15800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15801 conftest.$ac_objext conftest.beam conftest.$ac_ext
15802 fi
15803
15804 fi
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15806 $as_echo "$ac_cv_func_vfork_works" >&6; }
15807
15808 fi;
15809 if test "x$ac_cv_func_fork_works" = xcross; then
15810 ac_cv_func_vfork_works=$ac_cv_func_vfork
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15812 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15813 fi
15814
15815 if test "x$ac_cv_func_vfork_works" = xyes; then
15816
15817 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15818
15819 else
15820
15821 $as_echo "#define vfork fork" >>confdefs.h
15822
15823 fi
15824 if test "x$ac_cv_func_fork_works" = xyes; then
15825
15826 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15827
15828 fi
15829
15830
15831 for ac_func in snprintf
15832 do :
15833 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15834 if test "x$ac_cv_func_snprintf" = x""yes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_SNPRINTF 1
15837 _ACEOF
15838
15839 fi
15840 done
15841
15842
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15844 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15845 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #include <langinfo.h>
15851 int
15852 main ()
15853 {
15854 char* cs = nl_langinfo(CODESET);
15855 ;
15856 return 0;
15857 }
15858 _ACEOF
15859 if ac_fn_c_try_link "$LINENO"; then :
15860 emacs_cv_langinfo_codeset=yes
15861 else
15862 emacs_cv_langinfo_codeset=no
15863 fi
15864 rm -f core conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15866
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15869 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15870 if test $emacs_cv_langinfo_codeset = yes; then
15871
15872 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15873
15874 fi
15875
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15877 $as_echo_n "checking for mbstate_t... " >&6; }
15878 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 # include <wchar.h>
15885 int
15886 main ()
15887 {
15888 mbstate_t x; return sizeof x;
15889 ;
15890 return 0;
15891 }
15892 _ACEOF
15893 if ac_fn_c_try_compile "$LINENO"; then :
15894 ac_cv_type_mbstate_t=yes
15895 else
15896 ac_cv_type_mbstate_t=no
15897 fi
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 fi
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15901 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15902 if test $ac_cv_type_mbstate_t = yes; then
15903
15904 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15905
15906 else
15907
15908 $as_echo "#define mbstate_t int" >>confdefs.h
15909
15910 fi
15911
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15913 $as_echo_n "checking for C restricted array declarations... " >&6; }
15914 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 void fred (int x[__restrict]);
15920 int
15921 main ()
15922 {
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 emacs_cv_c_restrict_arr=yes
15930 else
15931 emacs_cv_c_restrict_arr=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15936 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15937 if test "$emacs_cv_c_restrict_arr" = yes; then
15938
15939 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15940
15941 fi
15942
15943
15944 # Set up the CFLAGS for real compilation, so we can substitute it.
15945 CFLAGS="$REAL_CFLAGS"
15946 CPPFLAGS="$REAL_CPPFLAGS"
15947
15948 ## Hack to detect a buggy GCC version.
15949 if test "x$GCC" = xyes \
15950 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15951 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15952 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15953 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15954 fi
15955
15956 version=$PACKAGE_VERSION
15957
15958 ### Specify what sort of things we'll be editing into Makefile and config.h.
15959 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15960
15961
15962 ## Unused?
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15984 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15985 ## end of LIBX_BASE, but nothing ever set it.
15986
15987
15988
15989
15990 ## Used in lwlib/Makefile.in.
15991
15992 if test -n "${machfile}"; then
15993 M_FILE="\$(srcdir)/${machfile}"
15994 else
15995 M_FILE=
15996 fi
15997 S_FILE="\$(srcdir)/${opsysfile}"
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008 cat >>confdefs.h <<_ACEOF
16009 #define EMACS_CONFIGURATION "${canonical}"
16010 _ACEOF
16011
16012
16013 cat >>confdefs.h <<_ACEOF
16014 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16015 _ACEOF
16016
16017 if test -n "$machfile"; then
16018
16019 cat >>confdefs.h <<_ACEOF
16020 #define config_machfile "${machfile}"
16021 _ACEOF
16022
16023 fi
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define config_opsysfile "${opsysfile}"
16027 _ACEOF
16028
16029
16030 XMENU_OBJ=
16031 XOBJ=
16032 FONT_OBJ=
16033 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16034
16035 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16036
16037 XMENU_OBJ=xmenu.o
16038 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16039 FONT_OBJ=xfont.o
16040 if test "$HAVE_XFT" = "yes"; then
16041 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16042 elif test "$HAVE_FREETYPE" = "yes"; then
16043 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16044 fi
16045
16046 fi
16047
16048
16049
16050
16051 WIDGET_OBJ=
16052 MOTIF_LIBW=
16053 if test "${USE_X_TOOLKIT}" != "none" ; then
16054 WIDGET_OBJ=widget.o
16055
16056 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16057
16058 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16059
16060 $as_echo "#define USE_LUCID 1" >>confdefs.h
16061
16062 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16063
16064 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16065
16066 MOTIF_LIBW=-lXm
16067 case "$opsys" in
16068 gnu-linux)
16069 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16070 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16071 ;;
16072
16073 unixware)
16074 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16075 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16076 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16077 ;;
16078
16079 aix4-2)
16080 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16081 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16082 ;;
16083 esac
16084 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16085 fi
16086 fi
16087
16088
16089 TOOLKIT_LIBW=
16090 case "$USE_X_TOOLKIT" in
16091 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16092 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16093 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16094 esac
16095
16096
16097 if test "$USE_X_TOOLKIT" = "none"; then
16098 LIBXT_OTHER="\$(LIBXSM)"
16099 OLDXMENU_TARGET="really-oldXMenu"
16100 else
16101 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16102 OLDXMENU_TARGET="really-lwlib"
16103 fi
16104
16105
16106 ## The X Menu stuff is present in the X10 distribution, but missing
16107 ## from X11. If we have X10, just use the installed library;
16108 ## otherwise, use our own copy.
16109 if test "${HAVE_X11}" = "yes" ; then
16110
16111 $as_echo "#define HAVE_X11 1" >>confdefs.h
16112
16113
16114 if test "$USE_X_TOOLKIT" = "none"; then
16115 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16116 else
16117 OLDXMENU="\${lwlibdir}/liblw.a"
16118 fi
16119 LIBXMENU="\$(OLDXMENU)"
16120 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16121 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16122 else
16123 ## For a syntactically valid Makefile; not actually used for anything.
16124 ## See comments in src/Makefile.in.
16125 OLDXMENU=nothing
16126 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16127 if test "${HAVE_X_WINDOWS}" = "yes"; then
16128 LIBXMENU="-lXMenu"
16129 else
16130 LIBXMENU=
16131 fi
16132 LIBX_OTHER=
16133 OLDXMENU_DEPS=
16134 fi
16135
16136 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16137 OLDXMENU_TARGET=
16138 OLDXMENU=nothing
16139 LIBXMENU=
16140 OLDXMENU_DEPS=
16141 fi
16142
16143
16144
16145
16146
16147
16148
16149 if test "${HAVE_MENUS}" = "yes" ; then
16150
16151 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16152
16153 fi
16154
16155 if test "${GNU_MALLOC}" = "yes" ; then
16156
16157 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16158
16159 fi
16160
16161 RALLOC_OBJ=
16162 if test "${REL_ALLOC}" = "yes" ; then
16163
16164 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16165
16166
16167 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16168 fi
16169
16170
16171 if test "$opsys" = "cygwin"; then
16172 CYGWIN_OBJ="sheap.o"
16173 ## Cygwin differs because of its unexec().
16174 PRE_ALLOC_OBJ=
16175 POST_ALLOC_OBJ=lastfile.o
16176 else
16177 CYGWIN_OBJ=
16178 PRE_ALLOC_OBJ=lastfile.o
16179 POST_ALLOC_OBJ=
16180 fi
16181
16182
16183
16184
16185 # Configure gnulib here, now that we know LIBS.
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197 LIBC_FATAL_STDERR_=1
16198 export LIBC_FATAL_STDERR_
16199
16200 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16201 # for constant arguments. Useless!
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16203 $as_echo_n "checking for working alloca.h... " >&6; }
16204 if test "${ac_cv_working_alloca_h+set}" = set; then :
16205 $as_echo_n "(cached) " >&6
16206 else
16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16209 #include <alloca.h>
16210 int
16211 main ()
16212 {
16213 char *p = (char *) alloca (2 * sizeof (int));
16214 if (p) return 0;
16215 ;
16216 return 0;
16217 }
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 ac_cv_working_alloca_h=yes
16221 else
16222 ac_cv_working_alloca_h=no
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226 fi
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16228 $as_echo "$ac_cv_working_alloca_h" >&6; }
16229 if test $ac_cv_working_alloca_h = yes; then
16230
16231 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16232
16233 fi
16234
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16236 $as_echo_n "checking for alloca... " >&6; }
16237 if test "${ac_cv_func_alloca_works+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 #ifdef __GNUC__
16243 # define alloca __builtin_alloca
16244 #else
16245 # ifdef _MSC_VER
16246 # include <malloc.h>
16247 # define alloca _alloca
16248 # else
16249 # ifdef HAVE_ALLOCA_H
16250 # include <alloca.h>
16251 # else
16252 # ifdef _AIX
16253 #pragma alloca
16254 # else
16255 # ifndef alloca /* predefined by HP cc +Olibcalls */
16256 char *alloca ();
16257 # endif
16258 # endif
16259 # endif
16260 # endif
16261 #endif
16262
16263 int
16264 main ()
16265 {
16266 char *p = (char *) alloca (1);
16267 if (p) return 0;
16268 ;
16269 return 0;
16270 }
16271 _ACEOF
16272 if ac_fn_c_try_link "$LINENO"; then :
16273 ac_cv_func_alloca_works=yes
16274 else
16275 ac_cv_func_alloca_works=no
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext \
16278 conftest$ac_exeext conftest.$ac_ext
16279 fi
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16281 $as_echo "$ac_cv_func_alloca_works" >&6; }
16282
16283 if test $ac_cv_func_alloca_works = yes; then
16284
16285 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16286
16287 else
16288 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16289 # that cause trouble. Some versions do not even contain alloca or
16290 # contain a buggy version. If you still want to use their alloca,
16291 # use ar to extract alloca.o from them instead of compiling alloca.c.
16292
16293
16294
16295
16296
16297 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16298
16299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16300
16301
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16304 if test "${ac_cv_os_cray+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 #if defined CRAY && ! defined CRAY2
16310 webecray
16311 #else
16312 wenotbecray
16313 #endif
16314
16315 _ACEOF
16316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16317 $EGREP "webecray" >/dev/null 2>&1; then :
16318 ac_cv_os_cray=yes
16319 else
16320 ac_cv_os_cray=no
16321 fi
16322 rm -f conftest*
16323
16324 fi
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16326 $as_echo "$ac_cv_os_cray" >&6; }
16327 if test $ac_cv_os_cray = yes; then
16328 for ac_func in _getb67 GETB67 getb67; do
16329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16331 eval as_val=\$$as_ac_var
16332 if test "x$as_val" = x""yes; then :
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define CRAY_STACKSEG_END $ac_func
16336 _ACEOF
16337
16338 break
16339 fi
16340
16341 done
16342 fi
16343
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16345 $as_echo_n "checking stack direction for C alloca... " >&6; }
16346 if test "${ac_cv_c_stack_direction+set}" = set; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349 if test "$cross_compiling" = yes; then :
16350 ac_cv_c_stack_direction=0
16351 else
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 $ac_includes_default
16355 int
16356 find_stack_direction (int *addr, int depth)
16357 {
16358 int dir, dummy = 0;
16359 if (! addr)
16360 addr = &dummy;
16361 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16362 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16363 return dir + dummy;
16364 }
16365
16366 int
16367 main (int argc, char **argv)
16368 {
16369 return find_stack_direction (0, argc + !argv + 20) < 0;
16370 }
16371 _ACEOF
16372 if ac_fn_c_try_run "$LINENO"; then :
16373 ac_cv_c_stack_direction=1
16374 else
16375 ac_cv_c_stack_direction=-1
16376 fi
16377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16378 conftest.$ac_objext conftest.beam conftest.$ac_ext
16379 fi
16380
16381 fi
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16383 $as_echo "$ac_cv_c_stack_direction" >&6; }
16384 cat >>confdefs.h <<_ACEOF
16385 #define STACK_DIRECTION $ac_cv_c_stack_direction
16386 _ACEOF
16387
16388
16389 fi
16390
16391
16392
16393
16394 for ac_func in $ac_func_list
16395 do :
16396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16398 eval as_val=\$$as_ac_var
16399 if test "x$as_val" = x""yes; then :
16400 cat >>confdefs.h <<_ACEOF
16401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16402 _ACEOF
16403
16404 fi
16405 done
16406
16407
16408
16409
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16411 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16412 if test "${ac_cv_c_bigendian+set}" = set; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 ac_cv_c_bigendian=unknown
16416 # See if we're dealing with a universal compiler.
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #ifndef __APPLE_CC__
16420 not a universal capable compiler
16421 #endif
16422 typedef int dummy;
16423
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426
16427 # Check for potential -arch flags. It is not universal unless
16428 # there are at least two -arch flags with different values.
16429 ac_arch=
16430 ac_prev=
16431 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16432 if test -n "$ac_prev"; then
16433 case $ac_word in
16434 i?86 | x86_64 | ppc | ppc64)
16435 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16436 ac_arch=$ac_word
16437 else
16438 ac_cv_c_bigendian=universal
16439 break
16440 fi
16441 ;;
16442 esac
16443 ac_prev=
16444 elif test "x$ac_word" = "x-arch"; then
16445 ac_prev=arch
16446 fi
16447 done
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 if test $ac_cv_c_bigendian = unknown; then
16451 # See if sys/param.h defines the BYTE_ORDER macro.
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 #include <sys/types.h>
16455 #include <sys/param.h>
16456
16457 int
16458 main ()
16459 {
16460 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16461 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16462 && LITTLE_ENDIAN)
16463 bogus endian macros
16464 #endif
16465
16466 ;
16467 return 0;
16468 }
16469 _ACEOF
16470 if ac_fn_c_try_compile "$LINENO"; then :
16471 # It does; now see whether it defined to BIG_ENDIAN or not.
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 #include <sys/types.h>
16475 #include <sys/param.h>
16476
16477 int
16478 main ()
16479 {
16480 #if BYTE_ORDER != BIG_ENDIAN
16481 not big endian
16482 #endif
16483
16484 ;
16485 return 0;
16486 }
16487 _ACEOF
16488 if ac_fn_c_try_compile "$LINENO"; then :
16489 ac_cv_c_bigendian=yes
16490 else
16491 ac_cv_c_bigendian=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 fi
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 if test $ac_cv_c_bigendian = unknown; then
16498 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 #include <limits.h>
16502
16503 int
16504 main ()
16505 {
16506 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16507 bogus endian macros
16508 #endif
16509
16510 ;
16511 return 0;
16512 }
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515 # It does; now see whether it defined to _BIG_ENDIAN or not.
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 #include <limits.h>
16519
16520 int
16521 main ()
16522 {
16523 #ifndef _BIG_ENDIAN
16524 not big endian
16525 #endif
16526
16527 ;
16528 return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_compile "$LINENO"; then :
16532 ac_cv_c_bigendian=yes
16533 else
16534 ac_cv_c_bigendian=no
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 fi
16540 if test $ac_cv_c_bigendian = unknown; then
16541 # Compile a test program.
16542 if test "$cross_compiling" = yes; then :
16543 # Try to guess by grepping values from an object file.
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 short int ascii_mm[] =
16547 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16548 short int ascii_ii[] =
16549 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16550 int use_ascii (int i) {
16551 return ascii_mm[i] + ascii_ii[i];
16552 }
16553 short int ebcdic_ii[] =
16554 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16555 short int ebcdic_mm[] =
16556 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16557 int use_ebcdic (int i) {
16558 return ebcdic_mm[i] + ebcdic_ii[i];
16559 }
16560 extern int foo;
16561
16562 int
16563 main ()
16564 {
16565 return use_ascii (foo) == use_ebcdic (foo);
16566 ;
16567 return 0;
16568 }
16569 _ACEOF
16570 if ac_fn_c_try_compile "$LINENO"; then :
16571 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16572 ac_cv_c_bigendian=yes
16573 fi
16574 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16575 if test "$ac_cv_c_bigendian" = unknown; then
16576 ac_cv_c_bigendian=no
16577 else
16578 # finding both strings is unlikely to happen, but who knows?
16579 ac_cv_c_bigendian=unknown
16580 fi
16581 fi
16582 fi
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 else
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 $ac_includes_default
16588 int
16589 main ()
16590 {
16591
16592 /* Are we little or big endian? From Harbison&Steele. */
16593 union
16594 {
16595 long int l;
16596 char c[sizeof (long int)];
16597 } u;
16598 u.l = 1;
16599 return u.c[sizeof (long int) - 1] == 1;
16600
16601 ;
16602 return 0;
16603 }
16604 _ACEOF
16605 if ac_fn_c_try_run "$LINENO"; then :
16606 ac_cv_c_bigendian=no
16607 else
16608 ac_cv_c_bigendian=yes
16609 fi
16610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16611 conftest.$ac_objext conftest.beam conftest.$ac_ext
16612 fi
16613
16614 fi
16615 fi
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16617 $as_echo "$ac_cv_c_bigendian" >&6; }
16618 case $ac_cv_c_bigendian in #(
16619 yes)
16620 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16621 ;; #(
16622 no)
16623 ;; #(
16624 universal)
16625
16626 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16627
16628 ;; #(
16629 *)
16630 as_fn_error "unknown endianness
16631 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16632 esac
16633
16634
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16636 $as_echo_n "checking for inline... " >&6; }
16637 if test "${ac_cv_c_inline+set}" = set; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 ac_cv_c_inline=no
16641 for ac_kw in inline __inline__ __inline; do
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644 #ifndef __cplusplus
16645 typedef int foo_t;
16646 static $ac_kw foo_t static_foo () {return 0; }
16647 $ac_kw foo_t foo () {return 0; }
16648 #endif
16649
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16652 ac_cv_c_inline=$ac_kw
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16655 test "$ac_cv_c_inline" != no && break
16656 done
16657
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16660 $as_echo "$ac_cv_c_inline" >&6; }
16661
16662 case $ac_cv_c_inline in
16663 inline | yes) ;;
16664 *)
16665 case $ac_cv_c_inline in
16666 no) ac_val=;;
16667 *) ac_val=$ac_cv_c_inline;;
16668 esac
16669 cat >>confdefs.h <<_ACEOF
16670 #ifndef __cplusplus
16671 #define inline $ac_val
16672 #endif
16673 _ACEOF
16674 ;;
16675 esac
16676
16677
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16679 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16680 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 /* On HP-UX before 11.23, strtold returns a struct instead of
16686 long double. Reject implementations like that, by requiring
16687 compatibility with the C99 prototype. */
16688 #include <stdlib.h>
16689 static long double (*p) (char const *, char **) = strtold;
16690 static long double
16691 test (char const *nptr, char **endptr)
16692 {
16693 long double r;
16694 r = strtold (nptr, endptr);
16695 return r;
16696 }
16697 int
16698 main ()
16699 {
16700 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16701 ;
16702 return 0;
16703 }
16704 _ACEOF
16705 if ac_fn_c_try_link "$LINENO"; then :
16706 gl_cv_func_c99_strtold=yes
16707 else
16708 gl_cv_func_c99_strtold=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext \
16711 conftest$ac_exeext conftest.$ac_ext
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16714 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16715 if test $gl_cv_func_c99_strtold = yes; then
16716
16717 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16718
16719 fi
16720
16721
16722 GNULIB_CHDIR=0;
16723 GNULIB_CHOWN=0;
16724 GNULIB_CLOSE=0;
16725 GNULIB_DUP=0;
16726 GNULIB_DUP2=0;
16727 GNULIB_DUP3=0;
16728 GNULIB_ENVIRON=0;
16729 GNULIB_EUIDACCESS=0;
16730 GNULIB_FACCESSAT=0;
16731 GNULIB_FCHDIR=0;
16732 GNULIB_FCHOWNAT=0;
16733 GNULIB_FDATASYNC=0;
16734 GNULIB_FSYNC=0;
16735 GNULIB_FTRUNCATE=0;
16736 GNULIB_GETCWD=0;
16737 GNULIB_GETDOMAINNAME=0;
16738 GNULIB_GETDTABLESIZE=0;
16739 GNULIB_GETGROUPS=0;
16740 GNULIB_GETHOSTNAME=0;
16741 GNULIB_GETLOGIN=0;
16742 GNULIB_GETLOGIN_R=0;
16743 GNULIB_GETPAGESIZE=0;
16744 GNULIB_GETUSERSHELL=0;
16745 GNULIB_GROUP_MEMBER=0;
16746 GNULIB_LCHOWN=0;
16747 GNULIB_LINK=0;
16748 GNULIB_LINKAT=0;
16749 GNULIB_LSEEK=0;
16750 GNULIB_PIPE=0;
16751 GNULIB_PIPE2=0;
16752 GNULIB_PREAD=0;
16753 GNULIB_PWRITE=0;
16754 GNULIB_READ=0;
16755 GNULIB_READLINK=0;
16756 GNULIB_READLINKAT=0;
16757 GNULIB_RMDIR=0;
16758 GNULIB_SLEEP=0;
16759 GNULIB_SYMLINK=0;
16760 GNULIB_SYMLINKAT=0;
16761 GNULIB_TTYNAME_R=0;
16762 GNULIB_UNISTD_H_GETOPT=0;
16763 GNULIB_UNISTD_H_NONBLOCKING=0;
16764 GNULIB_UNISTD_H_SIGPIPE=0;
16765 GNULIB_UNLINK=0;
16766 GNULIB_UNLINKAT=0;
16767 GNULIB_USLEEP=0;
16768 GNULIB_WRITE=0;
16769 HAVE_CHOWN=1;
16770 HAVE_DUP2=1;
16771 HAVE_DUP3=1;
16772 HAVE_EUIDACCESS=1;
16773 HAVE_FACCESSAT=1;
16774 HAVE_FCHDIR=1;
16775 HAVE_FCHOWNAT=1;
16776 HAVE_FDATASYNC=1;
16777 HAVE_FSYNC=1;
16778 HAVE_FTRUNCATE=1;
16779 HAVE_GETDTABLESIZE=1;
16780 HAVE_GETGROUPS=1;
16781 HAVE_GETHOSTNAME=1;
16782 HAVE_GETLOGIN=1;
16783 HAVE_GETPAGESIZE=1;
16784 HAVE_GROUP_MEMBER=1;
16785 HAVE_LCHOWN=1;
16786 HAVE_LINK=1;
16787 HAVE_LINKAT=1;
16788 HAVE_PIPE=1;
16789 HAVE_PIPE2=1;
16790 HAVE_PREAD=1;
16791 HAVE_PWRITE=1;
16792 HAVE_READLINK=1;
16793 HAVE_READLINKAT=1;
16794 HAVE_SLEEP=1;
16795 HAVE_SYMLINK=1;
16796 HAVE_SYMLINKAT=1;
16797 HAVE_UNLINKAT=1;
16798 HAVE_USLEEP=1;
16799 HAVE_DECL_ENVIRON=1;
16800 HAVE_DECL_FCHDIR=1;
16801 HAVE_DECL_FDATASYNC=1;
16802 HAVE_DECL_GETDOMAINNAME=1;
16803 HAVE_DECL_GETLOGIN_R=1;
16804 HAVE_DECL_GETPAGESIZE=1;
16805 HAVE_DECL_GETUSERSHELL=1;
16806 HAVE_DECL_TTYNAME_R=1;
16807 HAVE_OS_H=0;
16808 HAVE_SYS_PARAM_H=0;
16809 REPLACE_CHOWN=0;
16810 REPLACE_CLOSE=0;
16811 REPLACE_DUP=0;
16812 REPLACE_DUP2=0;
16813 REPLACE_FCHOWNAT=0;
16814 REPLACE_GETCWD=0;
16815 REPLACE_GETDOMAINNAME=0;
16816 REPLACE_GETLOGIN_R=0;
16817 REPLACE_GETGROUPS=0;
16818 REPLACE_GETPAGESIZE=0;
16819 REPLACE_LCHOWN=0;
16820 REPLACE_LINK=0;
16821 REPLACE_LINKAT=0;
16822 REPLACE_LSEEK=0;
16823 REPLACE_PREAD=0;
16824 REPLACE_PWRITE=0;
16825 REPLACE_READ=0;
16826 REPLACE_READLINK=0;
16827 REPLACE_RMDIR=0;
16828 REPLACE_SLEEP=0;
16829 REPLACE_SYMLINK=0;
16830 REPLACE_TTYNAME_R=0;
16831 REPLACE_UNLINK=0;
16832 REPLACE_UNLINKAT=0;
16833 REPLACE_USLEEP=0;
16834 REPLACE_WRITE=0;
16835 UNISTD_H_HAVE_WINSOCK2_H=0;
16836 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16837
16838
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16840 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16841 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846
16847 #include <sys/types.h>
16848 #include <sys/stat.h>
16849 int
16850 main ()
16851 {
16852 struct stat s; s.st_dm_mode;
16853 ;
16854 return 0;
16855 }
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858 ac_cv_struct_st_dm_mode=yes
16859 else
16860 ac_cv_struct_st_dm_mode=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16865 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16866
16867 if test $ac_cv_struct_st_dm_mode = yes; then
16868
16869 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16870
16871 fi
16872
16873
16874 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16875 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16876 ac_have_decl=1
16877 else
16878 ac_have_decl=0
16879 fi
16880
16881 cat >>confdefs.h <<_ACEOF
16882 #define HAVE_DECL_STRMODE $ac_have_decl
16883 _ACEOF
16884
16885
16886 GNULIB__EXIT=0;
16887 GNULIB_ATOLL=0;
16888 GNULIB_CALLOC_POSIX=0;
16889 GNULIB_CANONICALIZE_FILE_NAME=0;
16890 GNULIB_GETLOADAVG=0;
16891 GNULIB_GETSUBOPT=0;
16892 GNULIB_GRANTPT=0;
16893 GNULIB_MALLOC_POSIX=0;
16894 GNULIB_MBTOWC=0;
16895 GNULIB_MKDTEMP=0;
16896 GNULIB_MKOSTEMP=0;
16897 GNULIB_MKOSTEMPS=0;
16898 GNULIB_MKSTEMP=0;
16899 GNULIB_MKSTEMPS=0;
16900 GNULIB_PTSNAME=0;
16901 GNULIB_PUTENV=0;
16902 GNULIB_RANDOM_R=0;
16903 GNULIB_REALLOC_POSIX=0;
16904 GNULIB_REALPATH=0;
16905 GNULIB_RPMATCH=0;
16906 GNULIB_SETENV=0;
16907 GNULIB_STRTOD=0;
16908 GNULIB_STRTOLL=0;
16909 GNULIB_STRTOULL=0;
16910 GNULIB_SYSTEM_POSIX=0;
16911 GNULIB_UNLOCKPT=0;
16912 GNULIB_UNSETENV=0;
16913 GNULIB_WCTOMB=0;
16914 HAVE__EXIT=1;
16915 HAVE_ATOLL=1;
16916 HAVE_CANONICALIZE_FILE_NAME=1;
16917 HAVE_DECL_GETLOADAVG=1;
16918 HAVE_GETSUBOPT=1;
16919 HAVE_GRANTPT=1;
16920 HAVE_MKDTEMP=1;
16921 HAVE_MKOSTEMP=1;
16922 HAVE_MKOSTEMPS=1;
16923 HAVE_MKSTEMP=1;
16924 HAVE_MKSTEMPS=1;
16925 HAVE_PTSNAME=1;
16926 HAVE_RANDOM_H=1;
16927 HAVE_RANDOM_R=1;
16928 HAVE_REALPATH=1;
16929 HAVE_RPMATCH=1;
16930 HAVE_SETENV=1;
16931 HAVE_DECL_SETENV=1;
16932 HAVE_STRTOD=1;
16933 HAVE_STRTOLL=1;
16934 HAVE_STRTOULL=1;
16935 HAVE_STRUCT_RANDOM_DATA=1;
16936 HAVE_SYS_LOADAVG_H=0;
16937 HAVE_UNLOCKPT=1;
16938 HAVE_DECL_UNSETENV=1;
16939 REPLACE_CALLOC=0;
16940 REPLACE_CANONICALIZE_FILE_NAME=0;
16941 REPLACE_MALLOC=0;
16942 REPLACE_MBTOWC=0;
16943 REPLACE_MKSTEMP=0;
16944 REPLACE_PUTENV=0;
16945 REPLACE_REALLOC=0;
16946 REPLACE_REALPATH=0;
16947 REPLACE_SETENV=0;
16948 REPLACE_STRTOD=0;
16949 REPLACE_UNSETENV=0;
16950 REPLACE_WCTOMB=0;
16951
16952
16953
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16955 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16956 if test "${gl_cv_have_include_next+set}" = set; then :
16957 $as_echo_n "(cached) " >&6
16958 else
16959 rm -rf conftestd1a conftestd1b conftestd2
16960 mkdir conftestd1a conftestd1b conftestd2
16961 cat <<EOF > conftestd1a/conftest.h
16962 #define DEFINED_IN_CONFTESTD1
16963 #include_next <conftest.h>
16964 #ifdef DEFINED_IN_CONFTESTD2
16965 int foo;
16966 #else
16967 #error "include_next doesn't work"
16968 #endif
16969 EOF
16970 cat <<EOF > conftestd1b/conftest.h
16971 #define DEFINED_IN_CONFTESTD1
16972 #include <stdio.h>
16973 #include_next <conftest.h>
16974 #ifdef DEFINED_IN_CONFTESTD2
16975 int foo;
16976 #else
16977 #error "include_next doesn't work"
16978 #endif
16979 EOF
16980 cat <<EOF > conftestd2/conftest.h
16981 #ifndef DEFINED_IN_CONFTESTD1
16982 #error "include_next test doesn't work"
16983 #endif
16984 #define DEFINED_IN_CONFTESTD2
16985 EOF
16986 gl_save_CPPFLAGS="$CPPFLAGS"
16987 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <conftest.h>
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 gl_cv_have_include_next=yes
16994 else
16995 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 #include <conftest.h>
16999 _ACEOF
17000 if ac_fn_c_try_compile "$LINENO"; then :
17001 gl_cv_have_include_next=buggy
17002 else
17003 gl_cv_have_include_next=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006
17007 fi
17008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17009 CPPFLAGS="$gl_save_CPPFLAGS"
17010 rm -rf conftestd1a conftestd1b conftestd2
17011
17012 fi
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17014 $as_echo "$gl_cv_have_include_next" >&6; }
17015 PRAGMA_SYSTEM_HEADER=
17016 if test $gl_cv_have_include_next = yes; then
17017 INCLUDE_NEXT=include_next
17018 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17019 if test -n "$GCC"; then
17020 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17021 fi
17022 else
17023 if test $gl_cv_have_include_next = buggy; then
17024 INCLUDE_NEXT=include
17025 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17026 else
17027 INCLUDE_NEXT=include
17028 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17029 fi
17030 fi
17031
17032
17033
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17035 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17036 if test "${gl_cv_pragma_columns+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041
17042 #ifdef __TANDEM
17043 choke me
17044 #endif
17045
17046 _ACEOF
17047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17048 $EGREP "choke me" >/dev/null 2>&1; then :
17049 gl_cv_pragma_columns=yes
17050 else
17051 gl_cv_pragma_columns=no
17052 fi
17053 rm -f conftest*
17054
17055
17056 fi
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17058 $as_echo "$gl_cv_pragma_columns" >&6; }
17059 if test $gl_cv_pragma_columns = yes; then
17060 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17061 else
17062 PRAGMA_COLUMNS=
17063 fi
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081 if test $gl_cv_have_include_next = yes; then
17082 gl_cv_next_getopt_h='<'getopt.h'>'
17083 else
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17085 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17086 if test "${gl_cv_next_getopt_h+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17088 else
17089
17090 if test $ac_cv_header_getopt_h = yes; then
17091
17092
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 #include <getopt.h>
17096
17097 _ACEOF
17098 case "$host_os" in
17099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17100 *) gl_absname_cpp="$ac_cpp" ;;
17101 esac
17102
17103 case "$host_os" in
17104 mingw*)
17105 gl_dirsep_regex='[/\\]'
17106 ;;
17107 *)
17108 gl_dirsep_regex='/'
17109 ;;
17110 esac
17111
17112 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
17113 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17114 s|^/[^/]|//&|
17115 p
17116 q
17117 }'
17118 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17119 sed -n "$gl_absolute_header_sed"`'"'
17120 else
17121 gl_cv_next_getopt_h='<'getopt.h'>'
17122 fi
17123
17124
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17127 $as_echo "$gl_cv_next_getopt_h" >&6; }
17128 fi
17129 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17130
17131 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17133 gl_next_as_first_directive='<'getopt.h'>'
17134 else
17135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17136 gl_next_as_first_directive=$gl_cv_next_getopt_h
17137 fi
17138 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17139
17140
17141
17142
17143 if test $ac_cv_header_getopt_h = yes; then
17144 HAVE_GETOPT_H=1
17145 else
17146 HAVE_GETOPT_H=0
17147 fi
17148
17149
17150 gl_replace_getopt=
17151
17152 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17153 for ac_header in getopt.h
17154 do :
17155 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17156 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_GETOPT_H 1
17159 _ACEOF
17160
17161 else
17162 gl_replace_getopt=yes
17163 fi
17164
17165 done
17166
17167 fi
17168
17169 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17170 for ac_func in getopt_long_only
17171 do :
17172 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17173 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17174 cat >>confdefs.h <<_ACEOF
17175 #define HAVE_GETOPT_LONG_ONLY 1
17176 _ACEOF
17177
17178 else
17179 gl_replace_getopt=yes
17180 fi
17181 done
17182
17183 fi
17184
17185 if test -z "$gl_replace_getopt"; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17187 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17188 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 #include <unistd.h>
17195 int
17196 main ()
17197 {
17198 int *p = &optreset; return optreset;
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 gl_optind_min=1
17205 else
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208 #include <getopt.h>
17209 int
17210 main ()
17211 {
17212 return !getopt_clip;
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_compile "$LINENO"; then :
17218 gl_optind_min=1
17219 else
17220 gl_optind_min=0
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226
17227 gl_save_CPPFLAGS=$CPPFLAGS
17228 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17229 if test "$cross_compiling" = yes; then :
17230 case "$host_os" in
17231 mingw*) gl_cv_func_getopt_posix="guessing no";;
17232 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17233 *) gl_cv_func_getopt_posix="guessing yes";;
17234 esac
17235
17236 else
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239
17240 #include <unistd.h>
17241 #include <stdlib.h>
17242 #include <string.h>
17243
17244 int
17245 main ()
17246 {
17247 {
17248 static char program[] = "program";
17249 static char a[] = "-a";
17250 static char foo[] = "foo";
17251 static char bar[] = "bar";
17252 char *argv[] = { program, a, foo, bar, NULL };
17253 int c;
17254
17255 optind = OPTIND_MIN;
17256 opterr = 0;
17257
17258 c = getopt (4, argv, "ab");
17259 if (!(c == 'a'))
17260 return 1;
17261 c = getopt (4, argv, "ab");
17262 if (!(c == -1))
17263 return 2;
17264 if (!(optind == 2))
17265 return 3;
17266 }
17267 /* Some internal state exists at this point. */
17268 {
17269 static char program[] = "program";
17270 static char donald[] = "donald";
17271 static char p[] = "-p";
17272 static char billy[] = "billy";
17273 static char duck[] = "duck";
17274 static char a[] = "-a";
17275 static char bar[] = "bar";
17276 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17277 int c;
17278
17279 optind = OPTIND_MIN;
17280 opterr = 0;
17281
17282 c = getopt (7, argv, "+abp:q:");
17283 if (!(c == -1))
17284 return 4;
17285 if (!(strcmp (argv[0], "program") == 0))
17286 return 5;
17287 if (!(strcmp (argv[1], "donald") == 0))
17288 return 6;
17289 if (!(strcmp (argv[2], "-p") == 0))
17290 return 7;
17291 if (!(strcmp (argv[3], "billy") == 0))
17292 return 8;
17293 if (!(strcmp (argv[4], "duck") == 0))
17294 return 9;
17295 if (!(strcmp (argv[5], "-a") == 0))
17296 return 10;
17297 if (!(strcmp (argv[6], "bar") == 0))
17298 return 11;
17299 if (!(optind == 1))
17300 return 12;
17301 }
17302 /* Detect MacOS 10.5, AIX 7.1 bug. */
17303 {
17304 static char program[] = "program";
17305 static char ab[] = "-ab";
17306 char *argv[3] = { program, ab, NULL };
17307 optind = OPTIND_MIN;
17308 opterr = 0;
17309 if (getopt (2, argv, "ab:") != 'a')
17310 return 13;
17311 if (getopt (2, argv, "ab:") != '?')
17312 return 14;
17313 if (optopt != 'b')
17314 return 15;
17315 if (optind != 2)
17316 return 16;
17317 }
17318
17319 return 0;
17320 }
17321
17322 _ACEOF
17323 if ac_fn_c_try_run "$LINENO"; then :
17324 gl_cv_func_getopt_posix=yes
17325 else
17326 gl_cv_func_getopt_posix=no
17327 fi
17328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17329 conftest.$ac_objext conftest.beam conftest.$ac_ext
17330 fi
17331
17332 CPPFLAGS=$gl_save_CPPFLAGS
17333
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17336 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17337 case "$gl_cv_func_getopt_posix" in
17338 *no) gl_replace_getopt=yes ;;
17339 esac
17340 fi
17341
17342 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17344 $as_echo_n "checking for working GNU getopt function... " >&6; }
17345 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17349 # optstring is necessary for programs like m4 that have POSIX-mandated
17350 # semantics for supporting options interspersed with files.
17351 # Also, since getopt_long is a GNU extension, we require optind=0.
17352 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17353 # so take care to revert to the correct (non-)export state.
17354 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17355 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17356 xx) gl_had_POSIXLY_CORRECT=exported ;;
17357 x) gl_had_POSIXLY_CORRECT=yes ;;
17358 *) gl_had_POSIXLY_CORRECT= ;;
17359 esac
17360 POSIXLY_CORRECT=1
17361 export POSIXLY_CORRECT
17362 if test "$cross_compiling" = yes; then :
17363 case $host_os:$ac_cv_have_decl_optreset in
17364 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17365 *:yes) gl_cv_func_getopt_gnu=no;;
17366 *) gl_cv_func_getopt_gnu=yes;;
17367 esac
17368
17369 else
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 #include <getopt.h>
17373 #include <stddef.h>
17374 #include <string.h>
17375
17376 #include <stdlib.h>
17377 #if defined __MACH__ && defined __APPLE__
17378 /* Avoid a crash on MacOS X. */
17379 #include <mach/mach.h>
17380 #include <mach/mach_error.h>
17381 #include <mach/thread_status.h>
17382 #include <mach/exception.h>
17383 #include <mach/task.h>
17384 #include <pthread.h>
17385 /* The exception port on which our thread listens. */
17386 static mach_port_t our_exception_port;
17387 /* The main function of the thread listening for exceptions of type
17388 EXC_BAD_ACCESS. */
17389 static void *
17390 mach_exception_thread (void *arg)
17391 {
17392 /* Buffer for a message to be received. */
17393 struct {
17394 mach_msg_header_t head;
17395 mach_msg_body_t msgh_body;
17396 char data[1024];
17397 } msg;
17398 mach_msg_return_t retval;
17399 /* Wait for a message on the exception port. */
17400 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17401 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17402 if (retval != MACH_MSG_SUCCESS)
17403 abort ();
17404 exit (1);
17405 }
17406 static void
17407 nocrash_init (void)
17408 {
17409 mach_port_t self = mach_task_self ();
17410 /* Allocate a port on which the thread shall listen for exceptions. */
17411 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17412 == KERN_SUCCESS) {
17413 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17414 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17415 MACH_MSG_TYPE_MAKE_SEND)
17416 == KERN_SUCCESS) {
17417 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17418 for us. */
17419 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17420 /* Create the thread listening on the exception port. */
17421 pthread_attr_t attr;
17422 pthread_t thread;
17423 if (pthread_attr_init (&attr) == 0
17424 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17425 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17426 pthread_attr_destroy (&attr);
17427 /* Replace the exception port info for these exceptions with our own.
17428 Note that we replace the exception port for the entire task, not only
17429 for a particular thread. This has the effect that when our exception
17430 port gets the message, the thread specific exception port has already
17431 been asked, and we don't need to bother about it.
17432 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17433 task_set_exception_ports (self, mask, our_exception_port,
17434 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17435 }
17436 }
17437 }
17438 }
17439 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17440 /* Avoid a crash on native Windows. */
17441 #define WIN32_LEAN_AND_MEAN
17442 #include <windows.h>
17443 #include <winerror.h>
17444 static LONG WINAPI
17445 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17446 {
17447 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17448 {
17449 case EXCEPTION_ACCESS_VIOLATION:
17450 case EXCEPTION_IN_PAGE_ERROR:
17451 case EXCEPTION_STACK_OVERFLOW:
17452 case EXCEPTION_GUARD_PAGE:
17453 case EXCEPTION_PRIV_INSTRUCTION:
17454 case EXCEPTION_ILLEGAL_INSTRUCTION:
17455 case EXCEPTION_DATATYPE_MISALIGNMENT:
17456 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17457 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17458 exit (1);
17459 }
17460 return EXCEPTION_CONTINUE_SEARCH;
17461 }
17462 static void
17463 nocrash_init (void)
17464 {
17465 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17466 }
17467 #else
17468 /* Avoid a crash on POSIX systems. */
17469 #include <signal.h>
17470 /* A POSIX signal handler. */
17471 static void
17472 exception_handler (int sig)
17473 {
17474 exit (1);
17475 }
17476 static void
17477 nocrash_init (void)
17478 {
17479 #ifdef SIGSEGV
17480 signal (SIGSEGV, exception_handler);
17481 #endif
17482 #ifdef SIGBUS
17483 signal (SIGBUS, exception_handler);
17484 #endif
17485 }
17486 #endif
17487
17488
17489 int
17490 main ()
17491 {
17492
17493 int result = 0;
17494
17495 nocrash_init();
17496
17497 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17498 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17499 OSF/1 5.1, Solaris 10. */
17500 {
17501 static char conftest[] = "conftest";
17502 static char plus[] = "-+";
17503 char *argv[3] = { conftest, plus, NULL };
17504 opterr = 0;
17505 if (getopt (2, argv, "+a") != '?')
17506 result |= 1;
17507 }
17508 /* This code succeeds on glibc 2.8, mingw,
17509 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17510 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17511 {
17512 static char program[] = "program";
17513 static char p[] = "-p";
17514 static char foo[] = "foo";
17515 static char bar[] = "bar";
17516 char *argv[] = { program, p, foo, bar, NULL };
17517
17518 optind = 1;
17519 if (getopt (4, argv, "p::") != 'p')
17520 result |= 2;
17521 else if (optarg != NULL)
17522 result |= 4;
17523 else if (getopt (4, argv, "p::") != -1)
17524 result |= 6;
17525 else if (optind != 2)
17526 result |= 8;
17527 }
17528 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17529 {
17530 static char program[] = "program";
17531 static char foo[] = "foo";
17532 static char p[] = "-p";
17533 char *argv[] = { program, foo, p, NULL };
17534 optind = 0;
17535 if (getopt (3, argv, "-p") != 1)
17536 result |= 16;
17537 else if (getopt (3, argv, "-p") != 'p')
17538 result |= 32;
17539 }
17540 /* This code fails on glibc 2.11. */
17541 {
17542 static char program[] = "program";
17543 static char b[] = "-b";
17544 static char a[] = "-a";
17545 char *argv[] = { program, b, a, NULL };
17546 optind = opterr = 0;
17547 if (getopt (3, argv, "+:a:b") != 'b')
17548 result |= 64;
17549 else if (getopt (3, argv, "+:a:b") != ':')
17550 result |= 64;
17551 }
17552 /* This code dumps core on glibc 2.14. */
17553 {
17554 static char program[] = "program";
17555 static char w[] = "-W";
17556 static char dummy[] = "dummy";
17557 char *argv[] = { program, w, dummy, NULL };
17558 optind = opterr = 1;
17559 if (getopt (3, argv, "W;") != 'W')
17560 result |= 128;
17561 }
17562 return result;
17563
17564 ;
17565 return 0;
17566 }
17567 _ACEOF
17568 if ac_fn_c_try_run "$LINENO"; then :
17569 gl_cv_func_getopt_gnu=yes
17570 else
17571 gl_cv_func_getopt_gnu=no
17572 fi
17573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17574 conftest.$ac_objext conftest.beam conftest.$ac_ext
17575 fi
17576
17577 case $gl_had_POSIXLY_CORRECT in
17578 exported) ;;
17579 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17580 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17581 esac
17582
17583 fi
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17585 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17586 if test "$gl_cv_func_getopt_gnu" = "no"; then
17587 gl_replace_getopt=yes
17588 fi
17589 fi
17590
17591
17592
17593
17594
17595 REPLACE_GETOPT=0
17596
17597
17598 if test -n "$gl_replace_getopt"; then :
17599
17600 REPLACE_GETOPT=1
17601
17602 fi
17603
17604
17605 if test $REPLACE_GETOPT = 1; then
17606
17607 GETOPT_H=getopt.h
17608
17609 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17610
17611
17612
17613 GNULIB_UNISTD_H_GETOPT=1
17614 fi
17615
17616 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17617 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17618 ac_have_decl=1
17619 else
17620 ac_have_decl=0
17621 fi
17622
17623 cat >>confdefs.h <<_ACEOF
17624 #define HAVE_DECL_GETENV $ac_have_decl
17625 _ACEOF
17626
17627
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17629 $as_echo_n "checking for unsigned long long int... " >&6; }
17630 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 ac_cv_type_unsigned_long_long_int=yes
17634 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637
17638 /* For now, do not test the preprocessor; as of 2007 there are too many
17639 implementations with broken preprocessors. Perhaps this can
17640 be revisited in 2012. In the meantime, code should not expect
17641 #if to work with literals wider than 32 bits. */
17642 /* Test literals. */
17643 long long int ll = 9223372036854775807ll;
17644 long long int nll = -9223372036854775807LL;
17645 unsigned long long int ull = 18446744073709551615ULL;
17646 /* Test constant expressions. */
17647 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17648 ? 1 : -1)];
17649 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17650 ? 1 : -1)];
17651 int i = 63;
17652 int
17653 main ()
17654 {
17655 /* Test availability of runtime routines for shift and division. */
17656 long long int llmax = 9223372036854775807ll;
17657 unsigned long long int ullmax = 18446744073709551615ull;
17658 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17659 | (llmax / ll) | (llmax % ll)
17660 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17661 | (ullmax / ull) | (ullmax % ull));
17662 ;
17663 return 0;
17664 }
17665
17666 _ACEOF
17667 if ac_fn_c_try_link "$LINENO"; then :
17668
17669 else
17670 ac_cv_type_unsigned_long_long_int=no
17671 fi
17672 rm -f core conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17674 fi
17675 fi
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17677 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17678 if test $ac_cv_type_unsigned_long_long_int = yes; then
17679
17680 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17681
17682 fi
17683
17684
17685
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17687 $as_echo_n "checking for long long int... " >&6; }
17688 if test "${ac_cv_type_long_long_int+set}" = set; then :
17689 $as_echo_n "(cached) " >&6
17690 else
17691 ac_cv_type_long_long_int=yes
17692 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17693 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17694 if test $ac_cv_type_long_long_int = yes; then
17695 if test "$cross_compiling" = yes; then :
17696 :
17697 else
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 #include <limits.h>
17701 #ifndef LLONG_MAX
17702 # define HALF \
17703 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17704 # define LLONG_MAX (HALF - 1 + HALF)
17705 #endif
17706 int
17707 main ()
17708 {
17709 long long int n = 1;
17710 int i;
17711 for (i = 0; ; i++)
17712 {
17713 long long int m = n << i;
17714 if (m >> i != n)
17715 return 1;
17716 if (LLONG_MAX / 2 < m)
17717 break;
17718 }
17719 return 0;
17720 ;
17721 return 0;
17722 }
17723 _ACEOF
17724 if ac_fn_c_try_run "$LINENO"; then :
17725
17726 else
17727 ac_cv_type_long_long_int=no
17728 fi
17729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17730 conftest.$ac_objext conftest.beam conftest.$ac_ext
17731 fi
17732
17733 fi
17734 fi
17735 fi
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17737 $as_echo "$ac_cv_type_long_long_int" >&6; }
17738 if test $ac_cv_type_long_long_int = yes; then
17739
17740 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17741
17742 fi
17743
17744
17745
17746
17747
17748
17749 gl_cv_c_multiarch=no
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752 #ifndef __APPLE_CC__
17753 not a universal capable compiler
17754 #endif
17755 typedef int dummy;
17756
17757 _ACEOF
17758 if ac_fn_c_try_compile "$LINENO"; then :
17759
17760 arch=
17761 prev=
17762 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17763 if test -n "$prev"; then
17764 case $word in
17765 i?86 | x86_64 | ppc | ppc64)
17766 if test -z "$arch" || test "$arch" = "$word"; then
17767 arch="$word"
17768 else
17769 gl_cv_c_multiarch=yes
17770 fi
17771 ;;
17772 esac
17773 prev=
17774 else
17775 if test "x$word" = "x-arch"; then
17776 prev=arch
17777 fi
17778 fi
17779 done
17780
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 if test $gl_cv_c_multiarch = yes; then
17784 APPLE_UNIVERSAL_BUILD=1
17785 else
17786 APPLE_UNIVERSAL_BUILD=0
17787 fi
17788
17789
17790
17791
17792
17793 if test $ac_cv_type_long_long_int = yes; then
17794 HAVE_LONG_LONG_INT=1
17795 else
17796 HAVE_LONG_LONG_INT=0
17797 fi
17798
17799
17800 if test $ac_cv_type_unsigned_long_long_int = yes; then
17801 HAVE_UNSIGNED_LONG_LONG_INT=1
17802 else
17803 HAVE_UNSIGNED_LONG_LONG_INT=0
17804 fi
17805
17806
17807
17808 if test $ac_cv_header_wchar_h = yes; then
17809 HAVE_WCHAR_H=1
17810 else
17811 HAVE_WCHAR_H=0
17812 fi
17813
17814
17815 if test $ac_cv_header_inttypes_h = yes; then
17816 HAVE_INTTYPES_H=1
17817 else
17818 HAVE_INTTYPES_H=0
17819 fi
17820
17821
17822 if test $ac_cv_header_sys_types_h = yes; then
17823 HAVE_SYS_TYPES_H=1
17824 else
17825 HAVE_SYS_TYPES_H=0
17826 fi
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838 if test $gl_cv_have_include_next = yes; then
17839 gl_cv_next_stdint_h='<'stdint.h'>'
17840 else
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17842 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17843 if test "${gl_cv_next_stdint_h+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17846
17847 if test $ac_cv_header_stdint_h = yes; then
17848
17849
17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 #include <stdint.h>
17853
17854 _ACEOF
17855 case "$host_os" in
17856 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17857 *) gl_absname_cpp="$ac_cpp" ;;
17858 esac
17859
17860 case "$host_os" in
17861 mingw*)
17862 gl_dirsep_regex='[/\\]'
17863 ;;
17864 *)
17865 gl_dirsep_regex='/'
17866 ;;
17867 esac
17868
17869 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
17870 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17871 s|^/[^/]|//&|
17872 p
17873 q
17874 }'
17875 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17876 sed -n "$gl_absolute_header_sed"`'"'
17877 else
17878 gl_cv_next_stdint_h='<'stdint.h'>'
17879 fi
17880
17881
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17884 $as_echo "$gl_cv_next_stdint_h" >&6; }
17885 fi
17886 NEXT_STDINT_H=$gl_cv_next_stdint_h
17887
17888 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17890 gl_next_as_first_directive='<'stdint.h'>'
17891 else
17892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17893 gl_next_as_first_directive=$gl_cv_next_stdint_h
17894 fi
17895 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17896
17897
17898
17899
17900 if test $ac_cv_header_stdint_h = yes; then
17901 HAVE_STDINT_H=1
17902 else
17903 HAVE_STDINT_H=0
17904 fi
17905
17906
17907 if test $ac_cv_header_stdint_h = yes; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17909 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17910 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 gl_cv_header_working_stdint_h=no
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916
17917
17918 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17919 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17920 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17921 #include <stdint.h>
17922 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17923 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17924 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17925 #endif
17926
17927
17928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17929 included before <wchar.h>. */
17930 #include <stddef.h>
17931 #include <signal.h>
17932 #if HAVE_WCHAR_H
17933 # include <stdio.h>
17934 # include <time.h>
17935 # include <wchar.h>
17936 #endif
17937
17938
17939 #ifdef INT8_MAX
17940 int8_t a1 = INT8_MAX;
17941 int8_t a1min = INT8_MIN;
17942 #endif
17943 #ifdef INT16_MAX
17944 int16_t a2 = INT16_MAX;
17945 int16_t a2min = INT16_MIN;
17946 #endif
17947 #ifdef INT32_MAX
17948 int32_t a3 = INT32_MAX;
17949 int32_t a3min = INT32_MIN;
17950 #endif
17951 #ifdef INT64_MAX
17952 int64_t a4 = INT64_MAX;
17953 int64_t a4min = INT64_MIN;
17954 #endif
17955 #ifdef UINT8_MAX
17956 uint8_t b1 = UINT8_MAX;
17957 #else
17958 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17959 #endif
17960 #ifdef UINT16_MAX
17961 uint16_t b2 = UINT16_MAX;
17962 #endif
17963 #ifdef UINT32_MAX
17964 uint32_t b3 = UINT32_MAX;
17965 #endif
17966 #ifdef UINT64_MAX
17967 uint64_t b4 = UINT64_MAX;
17968 #endif
17969 int_least8_t c1 = INT8_C (0x7f);
17970 int_least8_t c1max = INT_LEAST8_MAX;
17971 int_least8_t c1min = INT_LEAST8_MIN;
17972 int_least16_t c2 = INT16_C (0x7fff);
17973 int_least16_t c2max = INT_LEAST16_MAX;
17974 int_least16_t c2min = INT_LEAST16_MIN;
17975 int_least32_t c3 = INT32_C (0x7fffffff);
17976 int_least32_t c3max = INT_LEAST32_MAX;
17977 int_least32_t c3min = INT_LEAST32_MIN;
17978 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17979 int_least64_t c4max = INT_LEAST64_MAX;
17980 int_least64_t c4min = INT_LEAST64_MIN;
17981 uint_least8_t d1 = UINT8_C (0xff);
17982 uint_least8_t d1max = UINT_LEAST8_MAX;
17983 uint_least16_t d2 = UINT16_C (0xffff);
17984 uint_least16_t d2max = UINT_LEAST16_MAX;
17985 uint_least32_t d3 = UINT32_C (0xffffffff);
17986 uint_least32_t d3max = UINT_LEAST32_MAX;
17987 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17988 uint_least64_t d4max = UINT_LEAST64_MAX;
17989 int_fast8_t e1 = INT_FAST8_MAX;
17990 int_fast8_t e1min = INT_FAST8_MIN;
17991 int_fast16_t e2 = INT_FAST16_MAX;
17992 int_fast16_t e2min = INT_FAST16_MIN;
17993 int_fast32_t e3 = INT_FAST32_MAX;
17994 int_fast32_t e3min = INT_FAST32_MIN;
17995 int_fast64_t e4 = INT_FAST64_MAX;
17996 int_fast64_t e4min = INT_FAST64_MIN;
17997 uint_fast8_t f1 = UINT_FAST8_MAX;
17998 uint_fast16_t f2 = UINT_FAST16_MAX;
17999 uint_fast32_t f3 = UINT_FAST32_MAX;
18000 uint_fast64_t f4 = UINT_FAST64_MAX;
18001 #ifdef INTPTR_MAX
18002 intptr_t g = INTPTR_MAX;
18003 intptr_t gmin = INTPTR_MIN;
18004 #endif
18005 #ifdef UINTPTR_MAX
18006 uintptr_t h = UINTPTR_MAX;
18007 #endif
18008 intmax_t i = INTMAX_MAX;
18009 uintmax_t j = UINTMAX_MAX;
18010
18011 #include <limits.h> /* for CHAR_BIT */
18012 #define TYPE_MINIMUM(t) \
18013 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18014 #define TYPE_MAXIMUM(t) \
18015 ((t) ((t) 0 < (t) -1 \
18016 ? (t) -1 \
18017 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18018 struct s {
18019 int check_PTRDIFF:
18020 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18021 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18022 ? 1 : -1;
18023 /* Detect bug in FreeBSD 6.0 / ia64. */
18024 int check_SIG_ATOMIC:
18025 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18026 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18027 ? 1 : -1;
18028 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18029 int check_WCHAR:
18030 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18031 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18032 ? 1 : -1;
18033 /* Detect bug in mingw. */
18034 int check_WINT:
18035 WINT_MIN == TYPE_MINIMUM (wint_t)
18036 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18037 ? 1 : -1;
18038
18039 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18040 int check_UINT8_C:
18041 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18042 int check_UINT16_C:
18043 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18044
18045 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18046 #ifdef UINT8_MAX
18047 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18048 #endif
18049 #ifdef UINT16_MAX
18050 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18051 #endif
18052 #ifdef UINT32_MAX
18053 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18054 #endif
18055 #ifdef UINT64_MAX
18056 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18057 #endif
18058 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18059 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18060 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18061 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18062 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18063 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18064 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18065 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18066 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18067 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18068 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18069 };
18070
18071 int
18072 main ()
18073 {
18074
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 if ac_fn_c_try_compile "$LINENO"; then :
18080 if test "$cross_compiling" = yes; then :
18081 gl_cv_header_working_stdint_h=yes
18082
18083 else
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086
18087
18088 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18089 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18090 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18091 #include <stdint.h>
18092
18093
18094 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18095 included before <wchar.h>. */
18096 #include <stddef.h>
18097 #include <signal.h>
18098 #if HAVE_WCHAR_H
18099 # include <stdio.h>
18100 # include <time.h>
18101 # include <wchar.h>
18102 #endif
18103
18104
18105 #include <stdio.h>
18106 #include <string.h>
18107 #define MVAL(macro) MVAL1(macro)
18108 #define MVAL1(expression) #expression
18109 static const char *macro_values[] =
18110 {
18111 #ifdef INT8_MAX
18112 MVAL (INT8_MAX),
18113 #endif
18114 #ifdef INT16_MAX
18115 MVAL (INT16_MAX),
18116 #endif
18117 #ifdef INT32_MAX
18118 MVAL (INT32_MAX),
18119 #endif
18120 #ifdef INT64_MAX
18121 MVAL (INT64_MAX),
18122 #endif
18123 #ifdef UINT8_MAX
18124 MVAL (UINT8_MAX),
18125 #endif
18126 #ifdef UINT16_MAX
18127 MVAL (UINT16_MAX),
18128 #endif
18129 #ifdef UINT32_MAX
18130 MVAL (UINT32_MAX),
18131 #endif
18132 #ifdef UINT64_MAX
18133 MVAL (UINT64_MAX),
18134 #endif
18135 NULL
18136 };
18137
18138 int
18139 main ()
18140 {
18141
18142 const char **mv;
18143 for (mv = macro_values; *mv != NULL; mv++)
18144 {
18145 const char *value = *mv;
18146 /* Test whether it looks like a cast expression. */
18147 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18148 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18149 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18150 || strncmp (value, "((int)"/*)*/, 6) == 0
18151 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18152 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18153 return mv - macro_values + 1;
18154 }
18155 return 0;
18156
18157 ;
18158 return 0;
18159 }
18160 _ACEOF
18161 if ac_fn_c_try_run "$LINENO"; then :
18162 gl_cv_header_working_stdint_h=yes
18163 fi
18164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18165 conftest.$ac_objext conftest.beam conftest.$ac_ext
18166 fi
18167
18168
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171
18172 fi
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18174 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18175 fi
18176 if test "$gl_cv_header_working_stdint_h" = yes; then
18177 STDINT_H=
18178 else
18179 for ac_header in sys/inttypes.h sys/bitypes.h
18180 do :
18181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18182 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18183 eval as_val=\$$as_ac_Header
18184 if test "x$as_val" = x""yes; then :
18185 cat >>confdefs.h <<_ACEOF
18186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18187 _ACEOF
18188
18189 fi
18190
18191 done
18192
18193 if test $ac_cv_header_sys_inttypes_h = yes; then
18194 HAVE_SYS_INTTYPES_H=1
18195 else
18196 HAVE_SYS_INTTYPES_H=0
18197 fi
18198
18199 if test $ac_cv_header_sys_bitypes_h = yes; then
18200 HAVE_SYS_BITYPES_H=1
18201 else
18202 HAVE_SYS_BITYPES_H=0
18203 fi
18204
18205
18206
18207
18208 if test $APPLE_UNIVERSAL_BUILD = 0; then
18209
18210
18211 for gltype in ptrdiff_t size_t ; do
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18213 $as_echo_n "checking for bit size of $gltype... " >&6; }
18214 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18215 $as_echo_n "(cached) " >&6
18216 else
18217 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18219 included before <wchar.h>. */
18220 #include <stddef.h>
18221 #include <signal.h>
18222 #if HAVE_WCHAR_H
18223 # include <stdio.h>
18224 # include <time.h>
18225 # include <wchar.h>
18226 #endif
18227
18228 #include <limits.h>"; then :
18229
18230 else
18231 result=unknown
18232 fi
18233
18234 eval gl_cv_bitsizeof_${gltype}=\$result
18235
18236 fi
18237 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 eval result=\$gl_cv_bitsizeof_${gltype}
18241 if test $result = unknown; then
18242 result=0
18243 fi
18244 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18245 cat >>confdefs.h <<_ACEOF
18246 #define BITSIZEOF_${GLTYPE} $result
18247 _ACEOF
18248
18249 eval BITSIZEOF_${GLTYPE}=\$result
18250 done
18251
18252
18253 fi
18254
18255
18256 for gltype in sig_atomic_t wchar_t wint_t ; do
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18258 $as_echo_n "checking for bit size of $gltype... " >&6; }
18259 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18260 $as_echo_n "(cached) " >&6
18261 else
18262 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18263 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18264 included before <wchar.h>. */
18265 #include <stddef.h>
18266 #include <signal.h>
18267 #if HAVE_WCHAR_H
18268 # include <stdio.h>
18269 # include <time.h>
18270 # include <wchar.h>
18271 #endif
18272
18273 #include <limits.h>"; then :
18274
18275 else
18276 result=unknown
18277 fi
18278
18279 eval gl_cv_bitsizeof_${gltype}=\$result
18280
18281 fi
18282 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 eval result=\$gl_cv_bitsizeof_${gltype}
18286 if test $result = unknown; then
18287 result=0
18288 fi
18289 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18290 cat >>confdefs.h <<_ACEOF
18291 #define BITSIZEOF_${GLTYPE} $result
18292 _ACEOF
18293
18294 eval BITSIZEOF_${GLTYPE}=\$result
18295 done
18296
18297
18298
18299
18300 for gltype in sig_atomic_t wchar_t wint_t ; do
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18302 $as_echo_n "checking whether $gltype is signed... " >&6; }
18303 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308
18309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18310 included before <wchar.h>. */
18311 #include <stddef.h>
18312 #include <signal.h>
18313 #if HAVE_WCHAR_H
18314 # include <stdio.h>
18315 # include <time.h>
18316 # include <wchar.h>
18317 #endif
18318
18319 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18320 int
18321 main ()
18322 {
18323
18324 ;
18325 return 0;
18326 }
18327 _ACEOF
18328 if ac_fn_c_try_compile "$LINENO"; then :
18329 result=yes
18330 else
18331 result=no
18332 fi
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 eval gl_cv_type_${gltype}_signed=\$result
18335
18336 fi
18337 eval ac_res=\$gl_cv_type_${gltype}_signed
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18339 $as_echo "$ac_res" >&6; }
18340 eval result=\$gl_cv_type_${gltype}_signed
18341 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18342 if test "$result" = yes; then
18343 cat >>confdefs.h <<_ACEOF
18344 #define HAVE_SIGNED_${GLTYPE} 1
18345 _ACEOF
18346
18347 eval HAVE_SIGNED_${GLTYPE}=1
18348 else
18349 eval HAVE_SIGNED_${GLTYPE}=0
18350 fi
18351 done
18352
18353
18354 gl_cv_type_ptrdiff_t_signed=yes
18355 gl_cv_type_size_t_signed=no
18356 if test $APPLE_UNIVERSAL_BUILD = 0; then
18357
18358
18359 for gltype in ptrdiff_t size_t ; do
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18361 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18362 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18363 $as_echo_n "(cached) " >&6
18364 else
18365 eval gl_cv_type_${gltype}_suffix=no
18366 eval result=\$gl_cv_type_${gltype}_signed
18367 if test "$result" = yes; then
18368 glsufu=
18369 else
18370 glsufu=u
18371 fi
18372 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18373 case $glsuf in
18374 '') gltype1='int';;
18375 l) gltype1='long int';;
18376 ll) gltype1='long long int';;
18377 i64) gltype1='__int64';;
18378 u) gltype1='unsigned int';;
18379 ul) gltype1='unsigned long int';;
18380 ull) gltype1='unsigned long long int';;
18381 ui64)gltype1='unsigned __int64';;
18382 esac
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18385
18386 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18387 included before <wchar.h>. */
18388 #include <stddef.h>
18389 #include <signal.h>
18390 #if HAVE_WCHAR_H
18391 # include <stdio.h>
18392 # include <time.h>
18393 # include <wchar.h>
18394 #endif
18395
18396 extern $gltype foo;
18397 extern $gltype1 foo;
18398 int
18399 main ()
18400 {
18401
18402 ;
18403 return 0;
18404 }
18405 _ACEOF
18406 if ac_fn_c_try_compile "$LINENO"; then :
18407 eval gl_cv_type_${gltype}_suffix=\$glsuf
18408 fi
18409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18410 eval result=\$gl_cv_type_${gltype}_suffix
18411 test "$result" != no && break
18412 done
18413 fi
18414 eval ac_res=\$gl_cv_type_${gltype}_suffix
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18418 eval result=\$gl_cv_type_${gltype}_suffix
18419 test "$result" = no && result=
18420 eval ${GLTYPE}_SUFFIX=\$result
18421 cat >>confdefs.h <<_ACEOF
18422 #define ${GLTYPE}_SUFFIX $result
18423 _ACEOF
18424
18425 done
18426
18427
18428 fi
18429
18430
18431 for gltype in sig_atomic_t wchar_t wint_t ; do
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18433 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18434 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 eval gl_cv_type_${gltype}_suffix=no
18438 eval result=\$gl_cv_type_${gltype}_signed
18439 if test "$result" = yes; then
18440 glsufu=
18441 else
18442 glsufu=u
18443 fi
18444 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18445 case $glsuf in
18446 '') gltype1='int';;
18447 l) gltype1='long int';;
18448 ll) gltype1='long long int';;
18449 i64) gltype1='__int64';;
18450 u) gltype1='unsigned int';;
18451 ul) gltype1='unsigned long int';;
18452 ull) gltype1='unsigned long long int';;
18453 ui64)gltype1='unsigned __int64';;
18454 esac
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457
18458 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18459 included before <wchar.h>. */
18460 #include <stddef.h>
18461 #include <signal.h>
18462 #if HAVE_WCHAR_H
18463 # include <stdio.h>
18464 # include <time.h>
18465 # include <wchar.h>
18466 #endif
18467
18468 extern $gltype foo;
18469 extern $gltype1 foo;
18470 int
18471 main ()
18472 {
18473
18474 ;
18475 return 0;
18476 }
18477 _ACEOF
18478 if ac_fn_c_try_compile "$LINENO"; then :
18479 eval gl_cv_type_${gltype}_suffix=\$glsuf
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 eval result=\$gl_cv_type_${gltype}_suffix
18483 test "$result" != no && break
18484 done
18485 fi
18486 eval ac_res=\$gl_cv_type_${gltype}_suffix
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18488 $as_echo "$ac_res" >&6; }
18489 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18490 eval result=\$gl_cv_type_${gltype}_suffix
18491 test "$result" = no && result=
18492 eval ${GLTYPE}_SUFFIX=\$result
18493 cat >>confdefs.h <<_ACEOF
18494 #define ${GLTYPE}_SUFFIX $result
18495 _ACEOF
18496
18497 done
18498
18499
18500
18501 if test $BITSIZEOF_WINT_T -lt 32; then
18502 BITSIZEOF_WINT_T=32
18503 fi
18504
18505 STDINT_H=stdint.h
18506 fi
18507
18508 if test -n "$STDINT_H"; then
18509 GL_GENERATE_STDINT_H_TRUE=
18510 GL_GENERATE_STDINT_H_FALSE='#'
18511 else
18512 GL_GENERATE_STDINT_H_TRUE='#'
18513 GL_GENERATE_STDINT_H_FALSE=
18514 fi
18515
18516
18517
18518
18519
18520 GNULIB_IMAXABS=0;
18521 GNULIB_IMAXDIV=0;
18522 GNULIB_STRTOIMAX=0;
18523 GNULIB_STRTOUMAX=0;
18524 HAVE_DECL_IMAXABS=1;
18525 HAVE_DECL_IMAXDIV=1;
18526 HAVE_DECL_STRTOIMAX=1;
18527 HAVE_DECL_STRTOUMAX=1;
18528 INT32_MAX_LT_INTMAX_MAX=1;
18529 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18530 PRI_MACROS_BROKEN=0;
18531 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18532 UINT32_MAX_LT_UINTMAX_MAX=1;
18533 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549 if test $gl_cv_have_include_next = yes; then
18550 gl_cv_next_inttypes_h='<'inttypes.h'>'
18551 else
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18553 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18554 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18556 else
18557
18558 if test $ac_cv_header_inttypes_h = yes; then
18559
18560
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 #include <inttypes.h>
18564
18565 _ACEOF
18566 case "$host_os" in
18567 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18568 *) gl_absname_cpp="$ac_cpp" ;;
18569 esac
18570
18571 case "$host_os" in
18572 mingw*)
18573 gl_dirsep_regex='[/\\]'
18574 ;;
18575 *)
18576 gl_dirsep_regex='/'
18577 ;;
18578 esac
18579
18580 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18581 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18582 s|^/[^/]|//&|
18583 p
18584 q
18585 }'
18586 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18587 sed -n "$gl_absolute_header_sed"`'"'
18588 else
18589 gl_cv_next_inttypes_h='<'inttypes.h'>'
18590 fi
18591
18592
18593 fi
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18595 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18596 fi
18597 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18598
18599 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18601 gl_next_as_first_directive='<'inttypes.h'>'
18602 else
18603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18604 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18605 fi
18606 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18607
18608
18609
18610
18611
18612
18613
18614
18615 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18616
18617
18618
18619
18620
18621
18622 GNULIB_FCHMODAT=0;
18623 GNULIB_FSTAT=0;
18624 GNULIB_FSTATAT=0;
18625 GNULIB_FUTIMENS=0;
18626 GNULIB_LCHMOD=0;
18627 GNULIB_LSTAT=0;
18628 GNULIB_MKDIRAT=0;
18629 GNULIB_MKFIFO=0;
18630 GNULIB_MKFIFOAT=0;
18631 GNULIB_MKNOD=0;
18632 GNULIB_MKNODAT=0;
18633 GNULIB_STAT=0;
18634 GNULIB_UTIMENSAT=0;
18635 HAVE_FCHMODAT=1;
18636 HAVE_FSTATAT=1;
18637 HAVE_FUTIMENS=1;
18638 HAVE_LCHMOD=1;
18639 HAVE_LSTAT=1;
18640 HAVE_MKDIRAT=1;
18641 HAVE_MKFIFO=1;
18642 HAVE_MKFIFOAT=1;
18643 HAVE_MKNOD=1;
18644 HAVE_MKNODAT=1;
18645 HAVE_UTIMENSAT=1;
18646 REPLACE_FSTAT=0;
18647 REPLACE_FSTATAT=0;
18648 REPLACE_FUTIMENS=0;
18649 REPLACE_LSTAT=0;
18650 REPLACE_MKDIR=0;
18651 REPLACE_MKFIFO=0;
18652 REPLACE_MKNOD=0;
18653 REPLACE_STAT=0;
18654 REPLACE_UTIMENSAT=0;
18655
18656
18657
18658
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18660 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18661 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 rm -f conftest.sym conftest.file
18665 echo >conftest.file
18666 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18667 if test "$cross_compiling" = yes; then :
18668 # When cross-compiling, be pessimistic so we will end up using the
18669 # replacement version of lstat that checks for trailing slashes and
18670 # calls lstat a second time when necessary.
18671 gl_cv_func_lstat_dereferences_slashed_symlink=no
18672
18673 else
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 $ac_includes_default
18677 int
18678 main ()
18679 {
18680 struct stat sbuf;
18681 /* Linux will dereference the symlink and fail, as required by
18682 POSIX. That is better in the sense that it means we will not
18683 have to compile and use the lstat wrapper. */
18684 return lstat ("conftest.sym/", &sbuf) == 0;
18685
18686 ;
18687 return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_run "$LINENO"; then :
18691 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18692 else
18693 gl_cv_func_lstat_dereferences_slashed_symlink=no
18694 fi
18695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18696 conftest.$ac_objext conftest.beam conftest.$ac_ext
18697 fi
18698
18699 else
18700 # If the 'ln -s' command failed, then we probably don't even
18701 # have an lstat function.
18702 gl_cv_func_lstat_dereferences_slashed_symlink=no
18703 fi
18704 rm -f conftest.sym conftest.file
18705
18706 fi
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18708 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18709 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18710
18711 cat >>confdefs.h <<_ACEOF
18712 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18713 _ACEOF
18714
18715
18716
18717 GNULIB_MKTIME=0;
18718 GNULIB_NANOSLEEP=0;
18719 GNULIB_STRPTIME=0;
18720 GNULIB_TIMEGM=0;
18721 GNULIB_TIME_R=0;
18722 HAVE_DECL_LOCALTIME_R=1;
18723 HAVE_NANOSLEEP=1;
18724 HAVE_STRPTIME=1;
18725 HAVE_TIMEGM=1;
18726 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18727 REPLACE_MKTIME=GNULIB_PORTCHECK;
18728 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18729 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18730
18731
18732
18733
18734
18735
18736 GNULIB_PTHREAD_SIGMASK=0;
18737 GNULIB_RAISE=0;
18738 GNULIB_SIGNAL_H_SIGPIPE=0;
18739 GNULIB_SIGPROCMASK=0;
18740 GNULIB_SIGACTION=0;
18741 HAVE_POSIX_SIGNALBLOCKING=1;
18742 HAVE_PTHREAD_SIGMASK=1;
18743 HAVE_RAISE=1;
18744 HAVE_SIGSET_T=1;
18745 HAVE_SIGINFO_T=1;
18746 HAVE_SIGACTION=1;
18747 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18748
18749 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18750
18751 HAVE_SIGHANDLER_T=1;
18752 REPLACE_PTHREAD_SIGMASK=0;
18753 REPLACE_RAISE=0;
18754
18755
18756
18757
18758 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18759 #include <signal.h>
18760 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18761 #include <sys/types.h>
18762
18763 "
18764 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18765
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_SIGSET_T 1
18768 _ACEOF
18769
18770 gl_cv_type_sigset_t=yes
18771 else
18772 gl_cv_type_sigset_t=no
18773 fi
18774
18775 if test $gl_cv_type_sigset_t != yes; then
18776 HAVE_SIGSET_T=0
18777 fi
18778
18779
18780
18781
18782
18783 if test $ac_cv_header_sys_socket_h = no; then
18784 for ac_header in ws2tcpip.h
18785 do :
18786 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18787 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_WS2TCPIP_H 1
18790 _ACEOF
18791
18792 fi
18793
18794 done
18795
18796 fi
18797
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18799 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18800 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805
18806 #include <stdbool.h>
18807 #ifndef bool
18808 "error: bool is not defined"
18809 #endif
18810 #ifndef false
18811 "error: false is not defined"
18812 #endif
18813 #if false
18814 "error: false is not 0"
18815 #endif
18816 #ifndef true
18817 "error: true is not defined"
18818 #endif
18819 #if true != 1
18820 "error: true is not 1"
18821 #endif
18822 #ifndef __bool_true_false_are_defined
18823 "error: __bool_true_false_are_defined is not defined"
18824 #endif
18825
18826 struct s { _Bool s: 1; _Bool t; } s;
18827
18828 char a[true == 1 ? 1 : -1];
18829 char b[false == 0 ? 1 : -1];
18830 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18831 char d[(bool) 0.5 == true ? 1 : -1];
18832 /* See body of main program for 'e'. */
18833 char f[(_Bool) 0.0 == false ? 1 : -1];
18834 char g[true];
18835 char h[sizeof (_Bool)];
18836 char i[sizeof s.t];
18837 enum { j = false, k = true, l = false * true, m = true * 256 };
18838 /* The following fails for
18839 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18840 _Bool n[m];
18841 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18842 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18843 /* Catch a bug in an HP-UX C compiler. See
18844 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18845 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18846 */
18847 _Bool q = true;
18848 _Bool *pq = &q;
18849
18850 int
18851 main ()
18852 {
18853
18854 bool e = &s;
18855 *pq |= q;
18856 *pq |= ! q;
18857 /* Refer to every declared value, to avoid compiler optimizations. */
18858 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18859 + !m + !n + !o + !p + !q + !pq);
18860
18861 ;
18862 return 0;
18863 }
18864 _ACEOF
18865 if ac_fn_c_try_compile "$LINENO"; then :
18866 ac_cv_header_stdbool_h=yes
18867 else
18868 ac_cv_header_stdbool_h=no
18869 fi
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18873 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18874 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18875 if test "x$ac_cv_type__Bool" = x""yes; then :
18876
18877 cat >>confdefs.h <<_ACEOF
18878 #define HAVE__BOOL 1
18879 _ACEOF
18880
18881
18882 fi
18883
18884
18885
18886 REPLACE_NULL=0;
18887 HAVE_WCHAR_T=1;
18888
18889
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18891 $as_echo_n "checking for wchar_t... " >&6; }
18892 if test "${gt_cv_c_wchar_t+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897 #include <stddef.h>
18898 wchar_t foo = (wchar_t)'\0';
18899 int
18900 main ()
18901 {
18902
18903 ;
18904 return 0;
18905 }
18906 _ACEOF
18907 if ac_fn_c_try_compile "$LINENO"; then :
18908 gt_cv_c_wchar_t=yes
18909 else
18910 gt_cv_c_wchar_t=no
18911 fi
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913 fi
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18915 $as_echo "$gt_cv_c_wchar_t" >&6; }
18916 if test $gt_cv_c_wchar_t = yes; then
18917
18918 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18919
18920 fi
18921
18922
18923 GNULIB_DPRINTF=0;
18924 GNULIB_FCLOSE=0;
18925 GNULIB_FDOPEN=0;
18926 GNULIB_FFLUSH=0;
18927 GNULIB_FGETC=0;
18928 GNULIB_FGETS=0;
18929 GNULIB_FOPEN=0;
18930 GNULIB_FPRINTF=0;
18931 GNULIB_FPRINTF_POSIX=0;
18932 GNULIB_FPURGE=0;
18933 GNULIB_FPUTC=0;
18934 GNULIB_FPUTS=0;
18935 GNULIB_FREAD=0;
18936 GNULIB_FREOPEN=0;
18937 GNULIB_FSCANF=0;
18938 GNULIB_FSEEK=0;
18939 GNULIB_FSEEKO=0;
18940 GNULIB_FTELL=0;
18941 GNULIB_FTELLO=0;
18942 GNULIB_FWRITE=0;
18943 GNULIB_GETC=0;
18944 GNULIB_GETCHAR=0;
18945 GNULIB_GETDELIM=0;
18946 GNULIB_GETLINE=0;
18947 GNULIB_GETS=0;
18948 GNULIB_OBSTACK_PRINTF=0;
18949 GNULIB_OBSTACK_PRINTF_POSIX=0;
18950 GNULIB_PCLOSE=0;
18951 GNULIB_PERROR=0;
18952 GNULIB_POPEN=0;
18953 GNULIB_PRINTF=0;
18954 GNULIB_PRINTF_POSIX=0;
18955 GNULIB_PUTC=0;
18956 GNULIB_PUTCHAR=0;
18957 GNULIB_PUTS=0;
18958 GNULIB_REMOVE=0;
18959 GNULIB_RENAME=0;
18960 GNULIB_RENAMEAT=0;
18961 GNULIB_SCANF=0;
18962 GNULIB_SNPRINTF=0;
18963 GNULIB_SPRINTF_POSIX=0;
18964 GNULIB_STDIO_H_NONBLOCKING=0;
18965 GNULIB_STDIO_H_SIGPIPE=0;
18966 GNULIB_TMPFILE=0;
18967 GNULIB_VASPRINTF=0;
18968 GNULIB_VFSCANF=0;
18969 GNULIB_VSCANF=0;
18970 GNULIB_VDPRINTF=0;
18971 GNULIB_VFPRINTF=0;
18972 GNULIB_VFPRINTF_POSIX=0;
18973 GNULIB_VPRINTF=0;
18974 GNULIB_VPRINTF_POSIX=0;
18975 GNULIB_VSNPRINTF=0;
18976 GNULIB_VSPRINTF_POSIX=0;
18977 HAVE_DECL_FPURGE=1;
18978 HAVE_DECL_FSEEKO=1;
18979 HAVE_DECL_FTELLO=1;
18980 HAVE_DECL_GETDELIM=1;
18981 HAVE_DECL_GETLINE=1;
18982 HAVE_DECL_OBSTACK_PRINTF=1;
18983 HAVE_DECL_SNPRINTF=1;
18984 HAVE_DECL_VSNPRINTF=1;
18985 HAVE_DPRINTF=1;
18986 HAVE_FSEEKO=1;
18987 HAVE_FTELLO=1;
18988 HAVE_PCLOSE=1;
18989 HAVE_POPEN=1;
18990 HAVE_RENAMEAT=1;
18991 HAVE_VASPRINTF=1;
18992 HAVE_VDPRINTF=1;
18993 REPLACE_DPRINTF=0;
18994 REPLACE_FCLOSE=0;
18995 REPLACE_FDOPEN=0;
18996 REPLACE_FFLUSH=0;
18997 REPLACE_FOPEN=0;
18998 REPLACE_FPRINTF=0;
18999 REPLACE_FPURGE=0;
19000 REPLACE_FREOPEN=0;
19001 REPLACE_FSEEK=0;
19002 REPLACE_FSEEKO=0;
19003 REPLACE_FTELL=0;
19004 REPLACE_FTELLO=0;
19005 REPLACE_GETDELIM=0;
19006 REPLACE_GETLINE=0;
19007 REPLACE_OBSTACK_PRINTF=0;
19008 REPLACE_PERROR=0;
19009 REPLACE_POPEN=0;
19010 REPLACE_PRINTF=0;
19011 REPLACE_REMOVE=0;
19012 REPLACE_RENAME=0;
19013 REPLACE_RENAMEAT=0;
19014 REPLACE_SNPRINTF=0;
19015 REPLACE_SPRINTF=0;
19016 REPLACE_STDIO_READ_FUNCS=0;
19017 REPLACE_STDIO_WRITE_FUNCS=0;
19018 REPLACE_TMPFILE=0;
19019 REPLACE_VASPRINTF=0;
19020 REPLACE_VDPRINTF=0;
19021 REPLACE_VFPRINTF=0;
19022 REPLACE_VPRINTF=0;
19023 REPLACE_VSNPRINTF=0;
19024 REPLACE_VSPRINTF=0;
19025
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19027 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19028 if test "${ac_cv_struct_tm+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19030 else
19031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032 /* end confdefs.h. */
19033 #include <sys/types.h>
19034 #include <time.h>
19035
19036 int
19037 main ()
19038 {
19039 struct tm tm;
19040 int *p = &tm.tm_sec;
19041 return !p;
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 if ac_fn_c_try_compile "$LINENO"; then :
19047 ac_cv_struct_tm=time.h
19048 else
19049 ac_cv_struct_tm=sys/time.h
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 fi
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19054 $as_echo "$ac_cv_struct_tm" >&6; }
19055 if test $ac_cv_struct_tm = sys/time.h; then
19056
19057 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19058
19059 fi
19060
19061 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19062 #include <$ac_cv_struct_tm>
19063
19064 "
19065 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19066
19067 cat >>confdefs.h <<_ACEOF
19068 #define HAVE_STRUCT_TM_TM_ZONE 1
19069 _ACEOF
19070
19071
19072 fi
19073
19074 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19075
19076 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19077
19078 else
19079 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19080 "
19081 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19082 ac_have_decl=1
19083 else
19084 ac_have_decl=0
19085 fi
19086
19087 cat >>confdefs.h <<_ACEOF
19088 #define HAVE_DECL_TZNAME $ac_have_decl
19089 _ACEOF
19090
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19092 $as_echo_n "checking for tzname... " >&6; }
19093 if test "${ac_cv_var_tzname+set}" = set; then :
19094 $as_echo_n "(cached) " >&6
19095 else
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098 #include <time.h>
19099 #if !HAVE_DECL_TZNAME
19100 extern char *tzname[];
19101 #endif
19102
19103 int
19104 main ()
19105 {
19106 return tzname[0][0];
19107 ;
19108 return 0;
19109 }
19110 _ACEOF
19111 if ac_fn_c_try_link "$LINENO"; then :
19112 ac_cv_var_tzname=yes
19113 else
19114 ac_cv_var_tzname=no
19115 fi
19116 rm -f core conftest.err conftest.$ac_objext \
19117 conftest$ac_exeext conftest.$ac_ext
19118 fi
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19120 $as_echo "$ac_cv_var_tzname" >&6; }
19121 if test $ac_cv_var_tzname = yes; then
19122
19123 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19124
19125 fi
19126 fi
19127
19128
19129 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19130 "
19131 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19132
19133 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19134
19135 fi
19136
19137
19138
19139
19140
19141
19142 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19143 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19144 ac_have_decl=1
19145 else
19146 ac_have_decl=0
19147 fi
19148
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19151 _ACEOF
19152
19153
19154
19155 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19156 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19157 ac_have_decl=1
19158 else
19159 ac_have_decl=0
19160 fi
19161
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19164 _ACEOF
19165
19166
19167
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19169 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19170 if test "${ac_cv_header_stat_broken+set}" = set; then :
19171 $as_echo_n "(cached) " >&6
19172 else
19173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19175 #include <sys/types.h>
19176 #include <sys/stat.h>
19177
19178 #if defined S_ISBLK && defined S_IFDIR
19179 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19180 #endif
19181
19182 #if defined S_ISBLK && defined S_IFCHR
19183 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19184 #endif
19185
19186 #if defined S_ISLNK && defined S_IFREG
19187 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19188 #endif
19189
19190 #if defined S_ISSOCK && defined S_IFREG
19191 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19192 #endif
19193
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196 ac_cv_header_stat_broken=no
19197 else
19198 ac_cv_header_stat_broken=yes
19199 fi
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19203 $as_echo "$ac_cv_header_stat_broken" >&6; }
19204 if test $ac_cv_header_stat_broken = yes; then
19205
19206 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19207
19208 fi
19209
19210
19211
19212 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19213 if test "x$ac_cv_type_mode_t" = x""yes; then :
19214
19215 else
19216
19217 cat >>confdefs.h <<_ACEOF
19218 #define mode_t int
19219 _ACEOF
19220
19221 fi
19222
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19224 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19225 if test "${ac_cv_c_restrict+set}" = set; then :
19226 $as_echo_n "(cached) " >&6
19227 else
19228 ac_cv_c_restrict=no
19229 # The order here caters to the fact that C++ does not require restrict.
19230 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 typedef int * int_ptr;
19234 int foo (int_ptr $ac_kw ip) {
19235 return ip[0];
19236 }
19237 int
19238 main ()
19239 {
19240 int s[1];
19241 int * $ac_kw t = s;
19242 t[0] = 0;
19243 return foo(t)
19244 ;
19245 return 0;
19246 }
19247 _ACEOF
19248 if ac_fn_c_try_compile "$LINENO"; then :
19249 ac_cv_c_restrict=$ac_kw
19250 fi
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 test "$ac_cv_c_restrict" != no && break
19253 done
19254
19255 fi
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19257 $as_echo "$ac_cv_c_restrict" >&6; }
19258
19259 case $ac_cv_c_restrict in
19260 restrict) ;;
19261 no) $as_echo "#define restrict /**/" >>confdefs.h
19262 ;;
19263 *) cat >>confdefs.h <<_ACEOF
19264 #define restrict $ac_cv_c_restrict
19265 _ACEOF
19266 ;;
19267 esac
19268
19269
19270
19271
19272
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19274 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19275 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19276 $as_echo_n "(cached) " >&6
19277 else
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 #include <time.h>
19281
19282 int
19283 main ()
19284 {
19285 static struct timespec x; x.tv_sec = x.tv_nsec;
19286 ;
19287 return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_compile "$LINENO"; then :
19291 gl_cv_sys_struct_timespec_in_time_h=yes
19292 else
19293 gl_cv_sys_struct_timespec_in_time_h=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19298 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19299
19300 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19301 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19302 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19303 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19304 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19305 else
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19307 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19308 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19309 $as_echo_n "(cached) " >&6
19310 else
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19313 #include <sys/time.h>
19314
19315 int
19316 main ()
19317 {
19318 static struct timespec x; x.tv_sec = x.tv_nsec;
19319 ;
19320 return 0;
19321 }
19322 _ACEOF
19323 if ac_fn_c_try_compile "$LINENO"; then :
19324 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19325 else
19326 gl_cv_sys_struct_timespec_in_sys_time_h=no
19327 fi
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 fi
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19331 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19332 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19333 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19334 else
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19336 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19337 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19338 $as_echo_n "(cached) " >&6
19339 else
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 #include <pthread.h>
19343
19344 int
19345 main ()
19346 {
19347 static struct timespec x; x.tv_sec = x.tv_nsec;
19348 ;
19349 return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_compile "$LINENO"; then :
19353 gl_cv_sys_struct_timespec_in_pthread_h=yes
19354 else
19355 gl_cv_sys_struct_timespec_in_pthread_h=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 fi
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19360 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19361 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19362 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19363 fi
19364 fi
19365 fi
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381 if test $gl_cv_have_include_next = yes; then
19382 gl_cv_next_time_h='<'time.h'>'
19383 else
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19385 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19386 if test "${gl_cv_next_time_h+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19388 else
19389
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19392 #include <time.h>
19393
19394 _ACEOF
19395 case "$host_os" in
19396 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19397 *) gl_absname_cpp="$ac_cpp" ;;
19398 esac
19399
19400 case "$host_os" in
19401 mingw*)
19402 gl_dirsep_regex='[/\\]'
19403 ;;
19404 *)
19405 gl_dirsep_regex='/'
19406 ;;
19407 esac
19408
19409 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19410 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19411 s|^/[^/]|//&|
19412 p
19413 q
19414 }'
19415 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19416 sed -n "$gl_absolute_header_sed"`'"'
19417
19418
19419 fi
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19421 $as_echo "$gl_cv_next_time_h" >&6; }
19422 fi
19423 NEXT_TIME_H=$gl_cv_next_time_h
19424
19425 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19427 gl_next_as_first_directive='<'time.h'>'
19428 else
19429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19430 gl_next_as_first_directive=$gl_cv_next_time_h
19431 fi
19432 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19433
19434
19435
19436
19437
19438
19439 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19440 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19441 ac_have_decl=1
19442 else
19443 ac_have_decl=0
19444 fi
19445
19446 cat >>confdefs.h <<_ACEOF
19447 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19448 _ACEOF
19449
19450
19451
19452
19453 if false; then
19454 GL_COND_LIBTOOL_TRUE=
19455 GL_COND_LIBTOOL_FALSE='#'
19456 else
19457 GL_COND_LIBTOOL_TRUE='#'
19458 GL_COND_LIBTOOL_FALSE=
19459 fi
19460
19461 gl_cond_libtool=false
19462 gl_libdeps=
19463 gl_ltlibdeps=
19464 gl_m4_base='m4'
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474 gl_source_base='lib'
19475
19476
19477 if test $ac_cv_func_alloca_works = no; then
19478 :
19479 fi
19480
19481 # Define an additional variable used in the Makefile substitution.
19482 if test $ac_cv_working_alloca_h = yes; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19484 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19485 if test "${gl_cv_rpl_alloca+set}" = set; then :
19486 $as_echo_n "(cached) " >&6
19487 else
19488
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19491
19492 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19493 Need own alloca
19494 #endif
19495
19496 _ACEOF
19497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19498 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19499 gl_cv_rpl_alloca=yes
19500 else
19501 gl_cv_rpl_alloca=no
19502 fi
19503 rm -f conftest*
19504
19505
19506 fi
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19508 $as_echo "$gl_cv_rpl_alloca" >&6; }
19509 if test $gl_cv_rpl_alloca = yes; then
19510
19511 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19512
19513 ALLOCA_H=alloca.h
19514 else
19515 ALLOCA_H=
19516 fi
19517 else
19518 ALLOCA_H=alloca.h
19519 fi
19520
19521 if test -n "$ALLOCA_H"; then
19522 GL_GENERATE_ALLOCA_H_TRUE=
19523 GL_GENERATE_ALLOCA_H_FALSE='#'
19524 else
19525 GL_GENERATE_ALLOCA_H_TRUE='#'
19526 GL_GENERATE_ALLOCA_H_FALSE=
19527 fi
19528
19529
19530
19531
19532
19533
19534 :
19535
19536
19537
19538
19539 :
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19556
19557
19558 if test $HAVE_DUP2 = 1; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19560 $as_echo_n "checking whether dup2 works... " >&6; }
19561 if test "${gl_cv_func_dup2_works+set}" = set; then :
19562 $as_echo_n "(cached) " >&6
19563 else
19564 if test "$cross_compiling" = yes; then :
19565 case "$host_os" in
19566 mingw*) # on this platform, dup2 always returns 0 for success
19567 gl_cv_func_dup2_works=no;;
19568 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19569 gl_cv_func_dup2_works=no;;
19570 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19571 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19572 gl_cv_func_dup2_works=no;;
19573 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19574 gl_cv_func_dup2_works=no;;
19575 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19576 gl_cv_func_dup2_works=no;;
19577 *) gl_cv_func_dup2_works=yes;;
19578 esac
19579 else
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582
19583 #include <unistd.h>
19584 #include <fcntl.h>
19585 #include <errno.h>
19586 int
19587 main ()
19588 {
19589 int result = 0;
19590 #ifdef FD_CLOEXEC
19591 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19592 result |= 1;
19593 #endif
19594 if (dup2 (1, 1) == 0)
19595 result |= 2;
19596 #ifdef FD_CLOEXEC
19597 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19598 result |= 4;
19599 #endif
19600 close (0);
19601 if (dup2 (0, 0) != -1)
19602 result |= 8;
19603 /* Many gnulib modules require POSIX conformance of EBADF. */
19604 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19605 result |= 16;
19606 return result;
19607
19608 ;
19609 return 0;
19610 }
19611
19612 _ACEOF
19613 if ac_fn_c_try_run "$LINENO"; then :
19614 gl_cv_func_dup2_works=yes
19615 else
19616 gl_cv_func_dup2_works=no
19617 fi
19618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19619 conftest.$ac_objext conftest.beam conftest.$ac_ext
19620 fi
19621
19622
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19625 $as_echo "$gl_cv_func_dup2_works" >&6; }
19626 if test "$gl_cv_func_dup2_works" = no; then
19627 REPLACE_DUP2=1
19628 fi
19629 fi
19630
19631
19632 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19633
19634
19635
19636
19637
19638
19639
19640
19641 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19642
19643
19644 fi
19645
19646
19647
19648
19649
19650 GNULIB_DUP2=1
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662 # Persuade glibc <stdlib.h> to declare getloadavg().
19663
19664
19665 gl_save_LIBS=$LIBS
19666
19667 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19668 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19669 HAVE_GETLOADAVG=1
19670 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19671 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19672
19673 else
19674 gl_func_getloadavg_done=no
19675
19676 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19677 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19678 # to get the right answer into the cache.
19679 # For kstat on solaris, we need to test for libelf and libkvm to force the
19680 # definition of SVR4 below.
19681 if test $gl_func_getloadavg_done = no; then
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19683 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19684 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19687 ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-lelf $LIBS"
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19691
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 char elf_begin ();
19699 int
19700 main ()
19701 {
19702 return elf_begin ();
19703 ;
19704 return 0;
19705 }
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_lib_elf_elf_begin=yes
19709 else
19710 ac_cv_lib_elf_elf_begin=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19717 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19718 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19719 LIBS="-lelf $LIBS"
19720 fi
19721
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19723 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19724 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 ac_check_lib_save_LIBS=$LIBS
19728 LIBS="-lkvm $LIBS"
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19731
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19735 #ifdef __cplusplus
19736 extern "C"
19737 #endif
19738 char kvm_open ();
19739 int
19740 main ()
19741 {
19742 return kvm_open ();
19743 ;
19744 return 0;
19745 }
19746 _ACEOF
19747 if ac_fn_c_try_link "$LINENO"; then :
19748 ac_cv_lib_kvm_kvm_open=yes
19749 else
19750 ac_cv_lib_kvm_kvm_open=no
19751 fi
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19755 fi
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19757 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19758 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19759 LIBS="-lkvm $LIBS"
19760 fi
19761
19762 # Check for the 4.4BSD definition of getloadavg.
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19764 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19765 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19766 $as_echo_n "(cached) " >&6
19767 else
19768 ac_check_lib_save_LIBS=$LIBS
19769 LIBS="-lutil $LIBS"
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19772
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19776 #ifdef __cplusplus
19777 extern "C"
19778 #endif
19779 char getloadavg ();
19780 int
19781 main ()
19782 {
19783 return getloadavg ();
19784 ;
19785 return 0;
19786 }
19787 _ACEOF
19788 if ac_fn_c_try_link "$LINENO"; then :
19789 ac_cv_lib_util_getloadavg=yes
19790 else
19791 ac_cv_lib_util_getloadavg=no
19792 fi
19793 rm -f core conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19795 LIBS=$ac_check_lib_save_LIBS
19796 fi
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19798 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19799 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19800 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19801 fi
19802
19803 fi
19804
19805 if test $gl_func_getloadavg_done = no; then
19806 # There is a commonly available library for RS/6000 AIX.
19807 # Since it is not a standard part of AIX, it might be installed locally.
19808 gl_getloadavg_LIBS=$LIBS
19809 LIBS="-L/usr/local/lib $LIBS"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19811 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19812 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19813 $as_echo_n "(cached) " >&6
19814 else
19815 ac_check_lib_save_LIBS=$LIBS
19816 LIBS="-lgetloadavg $LIBS"
19817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19819
19820 /* Override any GCC internal prototype to avoid an error.
19821 Use char because int might match the return type of a GCC
19822 builtin and then its argument prototype would still apply. */
19823 #ifdef __cplusplus
19824 extern "C"
19825 #endif
19826 char getloadavg ();
19827 int
19828 main ()
19829 {
19830 return getloadavg ();
19831 ;
19832 return 0;
19833 }
19834 _ACEOF
19835 if ac_fn_c_try_link "$LINENO"; then :
19836 ac_cv_lib_getloadavg_getloadavg=yes
19837 else
19838 ac_cv_lib_getloadavg_getloadavg=no
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19843 fi
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19845 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19846 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19847 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19848 else
19849 LIBS=$gl_getloadavg_LIBS
19850 fi
19851
19852 fi
19853
19854 # Set up the replacement function if necessary.
19855 if test $gl_func_getloadavg_done = no; then
19856 HAVE_GETLOADAVG=0
19857
19858 # Solaris has libkstat which does not require root.
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19860 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19861 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19862 $as_echo_n "(cached) " >&6
19863 else
19864 ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-lkstat $LIBS"
19866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19868
19869 /* Override any GCC internal prototype to avoid an error.
19870 Use char because int might match the return type of a GCC
19871 builtin and then its argument prototype would still apply. */
19872 #ifdef __cplusplus
19873 extern "C"
19874 #endif
19875 char kstat_open ();
19876 int
19877 main ()
19878 {
19879 return kstat_open ();
19880 ;
19881 return 0;
19882 }
19883 _ACEOF
19884 if ac_fn_c_try_link "$LINENO"; then :
19885 ac_cv_lib_kstat_kstat_open=yes
19886 else
19887 ac_cv_lib_kstat_kstat_open=no
19888 fi
19889 rm -f core conftest.err conftest.$ac_objext \
19890 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19892 fi
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19894 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19895 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19896 cat >>confdefs.h <<_ACEOF
19897 #define HAVE_LIBKSTAT 1
19898 _ACEOF
19899
19900 LIBS="-lkstat $LIBS"
19901
19902 fi
19903
19904 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19905
19906 # AIX has libperfstat which does not require root
19907 if test $gl_func_getloadavg_done = no; then
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19909 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19910 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19912 else
19913 ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lperfstat $LIBS"
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19917
19918 /* Override any GCC internal prototype to avoid an error.
19919 Use char because int might match the return type of a GCC
19920 builtin and then its argument prototype would still apply. */
19921 #ifdef __cplusplus
19922 extern "C"
19923 #endif
19924 char perfstat_cpu_total ();
19925 int
19926 main ()
19927 {
19928 return perfstat_cpu_total ();
19929 ;
19930 return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_link "$LINENO"; then :
19934 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19935 else
19936 ac_cv_lib_perfstat_perfstat_cpu_total=no
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19941 fi
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19943 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19944 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_LIBPERFSTAT 1
19947 _ACEOF
19948
19949 LIBS="-lperfstat $LIBS"
19950
19951 fi
19952
19953 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19954 fi
19955
19956 if test $gl_func_getloadavg_done = no; then
19957 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19958 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19959 gl_func_getloadavg_done=yes
19960
19961 $as_echo "#define DGUX 1" >>confdefs.h
19962
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19964 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19965 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19966 $as_echo_n "(cached) " >&6
19967 else
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-ldgc $LIBS"
19970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971 /* end confdefs.h. */
19972
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply. */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 char dg_sys_info ();
19980 int
19981 main ()
19982 {
19983 return dg_sys_info ();
19984 ;
19985 return 0;
19986 }
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989 ac_cv_lib_dgc_dg_sys_info=yes
19990 else
19991 ac_cv_lib_dgc_dg_sys_info=no
19992 fi
19993 rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19995 LIBS=$ac_check_lib_save_LIBS
19996 fi
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19998 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19999 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_LIBDGC 1
20002 _ACEOF
20003
20004 LIBS="-ldgc $LIBS"
20005
20006 fi
20007
20008 fi
20009
20010
20011 fi
20012 fi
20013 fi
20014
20015
20016 if test "x$gl_save_LIBS" = x; then
20017 GETLOADAVG_LIBS=$LIBS
20018 else
20019 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20020 fi
20021 LIBS=$gl_save_LIBS
20022
20023
20024 # Test whether the system declares getloadavg. Solaris has the function
20025 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20026 for ac_header in sys/loadavg.h
20027 do :
20028 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20029 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20030 cat >>confdefs.h <<_ACEOF
20031 #define HAVE_SYS_LOADAVG_H 1
20032 _ACEOF
20033
20034 fi
20035
20036 done
20037
20038 if test $ac_cv_header_sys_loadavg_h = yes; then
20039 HAVE_SYS_LOADAVG_H=1
20040 else
20041 HAVE_SYS_LOADAVG_H=0
20042 fi
20043 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20044 # include <sys/loadavg.h>
20045 #endif
20046 #include <stdlib.h>
20047 "
20048 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20049
20050 else
20051 HAVE_DECL_GETLOADAVG=0
20052 fi
20053
20054
20055 if test $HAVE_GETLOADAVG = 0; then
20056
20057
20058
20059
20060
20061
20062
20063
20064 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20065
20066
20067 # Figure out what our getloadavg.c needs.
20068
20069 # On HPUX9, an unprivileged user can get load averages this way.
20070 if test $gl_func_getloadavg_done = no; then
20071 for ac_func in pstat_getdynamic
20072 do :
20073 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20074 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20075 cat >>confdefs.h <<_ACEOF
20076 #define HAVE_PSTAT_GETDYNAMIC 1
20077 _ACEOF
20078 gl_func_getloadavg_done=yes
20079 fi
20080 done
20081
20082 fi
20083
20084 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20085 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20086 # Irix 4.0.5F has the header but not the library.
20087 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20088 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20089 gl_func_getloadavg_done=yes
20090
20091 $as_echo "#define SVR4 1" >>confdefs.h
20092
20093 fi
20094
20095 if test $gl_func_getloadavg_done = no; then
20096 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20097 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20098 gl_func_getloadavg_done=yes
20099
20100 $as_echo "#define UMAX 1" >>confdefs.h
20101
20102
20103 $as_echo "#define UMAX4_3 1" >>confdefs.h
20104
20105 fi
20106
20107
20108 fi
20109
20110 if test $gl_func_getloadavg_done = no; then
20111 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20112 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20113 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20114
20115 fi
20116
20117
20118 fi
20119
20120 if test $gl_func_getloadavg_done = no; then
20121 for ac_header in mach/mach.h
20122 do :
20123 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20124 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_MACH_MACH_H 1
20127 _ACEOF
20128
20129 fi
20130
20131 done
20132
20133 fi
20134
20135 for ac_header in nlist.h
20136 do :
20137 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20138 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20139 cat >>confdefs.h <<_ACEOF
20140 #define HAVE_NLIST_H 1
20141 _ACEOF
20142 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20143 "
20144 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20145
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20148 _ACEOF
20149
20150
20151 fi
20152
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h. */
20155 #include <nlist.h>
20156 int
20157 main ()
20158 {
20159 struct nlist x;
20160 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20161 x.n_un.n_name = "";
20162 #else
20163 x.n_name = "";
20164 #endif
20165 ;
20166 return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170
20171 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20172
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176
20177 fi
20178
20179 done
20180
20181 fi
20182
20183
20184
20185
20186
20187 GNULIB_GETLOADAVG=1
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198 if test $REPLACE_GETOPT = 1; then
20199
20200
20201
20202
20203
20204
20205
20206
20207 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20218
20219
20220
20221
20222 fi
20223
20224
20225
20226
20227
20228 REPLACE_GETOPT=0
20229
20230
20231 if test -n "$gl_replace_getopt"; then :
20232
20233 REPLACE_GETOPT=1
20234
20235 fi
20236
20237
20238 if test $REPLACE_GETOPT = 1; then
20239
20240 GETOPT_H=getopt.h
20241
20242 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20243
20244
20245
20246 GNULIB_UNISTD_H_GETOPT=1
20247 fi
20248
20249 if test $REPLACE_GETOPT = 1; then
20250
20251
20252
20253
20254
20255
20256
20257
20258 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20269
20270
20271
20272
20273 fi
20274
20275
20276
20277
20278
20279 if test $ac_cv_func_lstat = yes; then
20280
20281 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20282 REPLACE_LSTAT=1
20283 fi
20284 else
20285 HAVE_LSTAT=0
20286 fi
20287
20288 if test $REPLACE_LSTAT = 1; then
20289
20290
20291
20292
20293
20294
20295
20296
20297 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20298
20299
20300
20301 :
20302
20303 fi
20304
20305
20306
20307
20308
20309 GNULIB_LSTAT=1
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321 if test $APPLE_UNIVERSAL_BUILD = 1; then
20322 # A universal build on Apple MacOS X platforms.
20323 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20324 # But we need a configuration result that is valid in both modes.
20325 gl_cv_func_working_mktime=no
20326 fi
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20328 $as_echo_n "checking for working mktime... " >&6; }
20329 if test "${gl_cv_func_working_mktime+set}" = set; then :
20330 $as_echo_n "(cached) " >&6
20331 else
20332 if test "$cross_compiling" = yes; then :
20333 gl_cv_func_working_mktime=no
20334 else
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 /* Test program from Paul Eggert and Tony Leneis. */
20338 #include <limits.h>
20339 #include <stdlib.h>
20340 #include <time.h>
20341
20342 #ifdef HAVE_UNISTD_H
20343 # include <unistd.h>
20344 #endif
20345
20346 #ifndef HAVE_ALARM
20347 # define alarm(X) /* empty */
20348 #endif
20349
20350 /* Work around redefinition to rpl_putenv by other config tests. */
20351 #undef putenv
20352
20353 static time_t time_t_max;
20354 static time_t time_t_min;
20355
20356 /* Values we'll use to set the TZ environment variable. */
20357 static char *tz_strings[] = {
20358 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20359 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20360 };
20361 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20362
20363 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20364 Based on a problem report from Andreas Jaeger. */
20365 static int
20366 spring_forward_gap ()
20367 {
20368 /* glibc (up to about 1998-10-07) failed this test. */
20369 struct tm tm;
20370
20371 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20372 instead of "TZ=America/Vancouver" in order to detect the bug even
20373 on systems that don't support the Olson extension, or don't have the
20374 full zoneinfo tables installed. */
20375 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20376
20377 tm.tm_year = 98;
20378 tm.tm_mon = 3;
20379 tm.tm_mday = 5;
20380 tm.tm_hour = 2;
20381 tm.tm_min = 0;
20382 tm.tm_sec = 0;
20383 tm.tm_isdst = -1;
20384 return mktime (&tm) != (time_t) -1;
20385 }
20386
20387 static int
20388 mktime_test1 (time_t now)
20389 {
20390 struct tm *lt;
20391 return ! (lt = localtime (&now)) || mktime (lt) == now;
20392 }
20393
20394 static int
20395 mktime_test (time_t now)
20396 {
20397 return (mktime_test1 (now)
20398 && mktime_test1 ((time_t) (time_t_max - now))
20399 && mktime_test1 ((time_t) (time_t_min + now)));
20400 }
20401
20402 static int
20403 irix_6_4_bug ()
20404 {
20405 /* Based on code from Ariel Faigon. */
20406 struct tm tm;
20407 tm.tm_year = 96;
20408 tm.tm_mon = 3;
20409 tm.tm_mday = 0;
20410 tm.tm_hour = 0;
20411 tm.tm_min = 0;
20412 tm.tm_sec = 0;
20413 tm.tm_isdst = -1;
20414 mktime (&tm);
20415 return tm.tm_mon == 2 && tm.tm_mday == 31;
20416 }
20417
20418 static int
20419 bigtime_test (int j)
20420 {
20421 struct tm tm;
20422 time_t now;
20423 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20424 now = mktime (&tm);
20425 if (now != (time_t) -1)
20426 {
20427 struct tm *lt = localtime (&now);
20428 if (! (lt
20429 && lt->tm_year == tm.tm_year
20430 && lt->tm_mon == tm.tm_mon
20431 && lt->tm_mday == tm.tm_mday
20432 && lt->tm_hour == tm.tm_hour
20433 && lt->tm_min == tm.tm_min
20434 && lt->tm_sec == tm.tm_sec
20435 && lt->tm_yday == tm.tm_yday
20436 && lt->tm_wday == tm.tm_wday
20437 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20438 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20439 return 0;
20440 }
20441 return 1;
20442 }
20443
20444 static int
20445 year_2050_test ()
20446 {
20447 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20448 ignoring leap seconds. */
20449 unsigned long int answer = 2527315200UL;
20450
20451 struct tm tm;
20452 time_t t;
20453 tm.tm_year = 2050 - 1900;
20454 tm.tm_mon = 2 - 1;
20455 tm.tm_mday = 1;
20456 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20457 tm.tm_isdst = -1;
20458
20459 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20460 instead of "TZ=America/Vancouver" in order to detect the bug even
20461 on systems that don't support the Olson extension, or don't have the
20462 full zoneinfo tables installed. */
20463 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20464
20465 t = mktime (&tm);
20466
20467 /* Check that the result is either a failure, or close enough
20468 to the correct answer that we can assume the discrepancy is
20469 due to leap seconds. */
20470 return (t == (time_t) -1
20471 || (0 < t && answer - 120 <= t && t <= answer + 120));
20472 }
20473
20474 int
20475 main ()
20476 {
20477 int result = 0;
20478 time_t t, delta;
20479 int i, j;
20480 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20481 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20482
20483 /* This test makes some buggy mktime implementations loop.
20484 Give up after 60 seconds; a mktime slower than that
20485 isn't worth using anyway. */
20486 alarm (60);
20487
20488 time_t_max = (! time_t_signed
20489 ? (time_t) -1
20490 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20491 * 2 + 1));
20492 time_t_min = (! time_t_signed
20493 ? (time_t) 0
20494 : time_t_signed_magnitude
20495 ? ~ (time_t) 0
20496 : ~ time_t_max);
20497
20498 delta = time_t_max / 997; /* a suitable prime number */
20499 for (i = 0; i < N_STRINGS; i++)
20500 {
20501 if (tz_strings[i])
20502 putenv (tz_strings[i]);
20503
20504 for (t = 0; t <= time_t_max - delta; t += delta)
20505 if (! mktime_test (t))
20506 result |= 1;
20507 if (! (mktime_test ((time_t) 1)
20508 && mktime_test ((time_t) (60 * 60))
20509 && mktime_test ((time_t) (60 * 60 * 24))))
20510 result |= 2;
20511
20512 for (j = 1; ; j <<= 1)
20513 if (! bigtime_test (j))
20514 result |= 4;
20515 else if (INT_MAX / 2 < j)
20516 break;
20517 if (! bigtime_test (INT_MAX))
20518 result |= 8;
20519 }
20520 if (! irix_6_4_bug ())
20521 result |= 16;
20522 if (! spring_forward_gap ())
20523 result |= 32;
20524 if (! year_2050_test ())
20525 result |= 64;
20526 return result;
20527 }
20528 _ACEOF
20529 if ac_fn_c_try_run "$LINENO"; then :
20530 gl_cv_func_working_mktime=yes
20531 else
20532 gl_cv_func_working_mktime=no
20533 fi
20534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20535 conftest.$ac_objext conftest.beam conftest.$ac_ext
20536 fi
20537
20538
20539 fi
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20541 $as_echo "$gl_cv_func_working_mktime" >&6; }
20542
20543 if test $gl_cv_func_working_mktime = no; then
20544 REPLACE_MKTIME=1
20545 else
20546 REPLACE_MKTIME=0
20547 fi
20548
20549 if test $REPLACE_MKTIME = 1; then
20550
20551
20552
20553
20554
20555
20556
20557
20558 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20559
20560
20561
20562
20563 fi
20564
20565
20566
20567
20568
20569 GNULIB_MKTIME=1
20570
20571
20572
20573
20574
20575
20576
20577
20578 LIB_PTHREAD_SIGMASK=
20579
20580
20581 if test $ac_cv_func_pthread_sigmask = yes; then
20582 :
20583 else
20584 HAVE_PTHREAD_SIGMASK=0
20585 REPLACE_PTHREAD_SIGMASK=1
20586 fi
20587
20588
20589
20590
20591 if test $HAVE_PTHREAD_SIGMASK = 1; then
20592
20593
20594 if test -z "$LIB_PTHREAD_SIGMASK"; then
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20596 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20597 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20599 else
20600
20601 if test "$cross_compiling" = yes; then :
20602
20603 case "$host_os" in
20604 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20605 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20606 *)
20607 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20608 esac
20609
20610 else
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20613
20614 #include <pthread.h>
20615 #include <signal.h>
20616 #include <stddef.h>
20617 int main ()
20618 {
20619 sigset_t set;
20620 sigemptyset (&set);
20621 return pthread_sigmask (1729, &set, NULL) != 0;
20622 }
20623 _ACEOF
20624 if ac_fn_c_try_run "$LINENO"; then :
20625 gl_cv_func_pthread_sigmask_in_libc_works=no
20626 else
20627 gl_cv_func_pthread_sigmask_in_libc_works=yes
20628 fi
20629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20630 conftest.$ac_objext conftest.beam conftest.$ac_ext
20631 fi
20632
20633
20634 fi
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20636 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20637 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20638 *no)
20639 REPLACE_PTHREAD_SIGMASK=1
20640
20641 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20642
20643 ;;
20644 esac
20645 fi
20646
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20648 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20649 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20650 $as_echo_n "(cached) " >&6
20651 else
20652
20653 gl_save_LIBS="$LIBS"
20654 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20655 if test "$cross_compiling" = yes; then :
20656 case "$host_os" in
20657 cygwin*)
20658 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20659 *)
20660 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20661 esac
20662
20663 else
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666
20667 #include <pthread.h>
20668 #include <signal.h>
20669 #include <stddef.h>
20670 int main ()
20671 {
20672 sigset_t set;
20673 sigemptyset (&set);
20674 if (pthread_sigmask (1729, &set, NULL) == -1)
20675 return 1;
20676 return 0;
20677 }
20678 _ACEOF
20679 if ac_fn_c_try_run "$LINENO"; then :
20680 gl_cv_func_pthread_sigmask_return_works=yes
20681 else
20682 gl_cv_func_pthread_sigmask_return_works=no
20683 fi
20684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20685 conftest.$ac_objext conftest.beam conftest.$ac_ext
20686 fi
20687
20688 LIBS="$gl_save_LIBS"
20689
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20692 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20693 case "$gl_cv_func_pthread_sigmask_return_works" in
20694 *no)
20695 REPLACE_PTHREAD_SIGMASK=1
20696
20697 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20698
20699 ;;
20700 esac
20701
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20703 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20704 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20706 else
20707
20708 case "$host_os" in
20709 irix*)
20710 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20711 *)
20712 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20713 esac
20714 gl_save_LIBS="$LIBS"
20715 LIBS="$LIBS $LIBMULTITHREAD"
20716 if test "$cross_compiling" = yes; then :
20717 :
20718 else
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721
20722 #include <pthread.h>
20723 #include <signal.h>
20724 #include <stdio.h>
20725 #include <stdlib.h>
20726 #include <unistd.h>
20727 static volatile int sigint_occurred;
20728 static void
20729 sigint_handler (int sig)
20730 {
20731 sigint_occurred++;
20732 }
20733 int main ()
20734 {
20735 sigset_t set;
20736 int pid = getpid ();
20737 char command[80];
20738 signal (SIGINT, sigint_handler);
20739 sigemptyset (&set);
20740 sigaddset (&set, SIGINT);
20741 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20742 return 1;
20743 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20744 if (!(system (command) == 0))
20745 return 2;
20746 sleep (2);
20747 if (!(sigint_occurred == 0))
20748 return 3;
20749 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20750 return 4;
20751 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20752 return 5;
20753 return 0;
20754 }
20755 _ACEOF
20756 if ac_fn_c_try_run "$LINENO"; then :
20757 :
20758 else
20759 gl_cv_func_pthread_sigmask_unblock_works=no
20760 fi
20761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20762 conftest.$ac_objext conftest.beam conftest.$ac_ext
20763 fi
20764
20765 LIBS="$gl_save_LIBS"
20766
20767 fi
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20769 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20770 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20771 *no)
20772 REPLACE_PTHREAD_SIGMASK=1
20773
20774 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20775
20776 ;;
20777 esac
20778 fi
20779
20780 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20781
20782
20783
20784
20785
20786
20787
20788
20789 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20790
20791
20792 if test $HAVE_PTHREAD_SIGMASK = 1; then
20793
20794 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20795
20796 fi
20797
20798 fi
20799
20800
20801
20802
20803
20804 GNULIB_PTHREAD_SIGMASK=1
20805
20806
20807
20808
20809
20810
20811
20812
20813 if test $ac_cv_func_readlink = no; then
20814 HAVE_READLINK=0
20815 else
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20817 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20818 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20823 #include <unistd.h>
20824 /* Cause compilation failure if original declaration has wrong type. */
20825 ssize_t readlink (const char *, char *, size_t);
20826 int
20827 main ()
20828 {
20829
20830 ;
20831 return 0;
20832 }
20833 _ACEOF
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835 gl_cv_decl_readlink_works=yes
20836 else
20837 gl_cv_decl_readlink_works=no
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 fi
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20842 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20844 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20845 if test "${gl_cv_func_readlink_works+set}" = set; then :
20846 $as_echo_n "(cached) " >&6
20847 else
20848 # We have readlink, so assume ln -s works.
20849 ln -s conftest.no-such conftest.link
20850 ln -s conftest.link conftest.lnk2
20851 if test "$cross_compiling" = yes; then :
20852 gl_cv_func_readlink_works="guessing no"
20853 else
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20856 #include <unistd.h>
20857
20858 int
20859 main ()
20860 {
20861 char buf[20];
20862 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20863 ;
20864 return 0;
20865 }
20866 _ACEOF
20867 if ac_fn_c_try_run "$LINENO"; then :
20868 gl_cv_func_readlink_works=yes
20869 else
20870 gl_cv_func_readlink_works=no
20871 fi
20872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20873 conftest.$ac_objext conftest.beam conftest.$ac_ext
20874 fi
20875
20876 rm -f conftest.link conftest.lnk2
20877 fi
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20879 $as_echo "$gl_cv_func_readlink_works" >&6; }
20880 if test "$gl_cv_func_readlink_works" != yes; then
20881
20882 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20883
20884 REPLACE_READLINK=1
20885 elif test "$gl_cv_decl_readlink_works" != yes; then
20886 REPLACE_READLINK=1
20887 fi
20888 fi
20889
20890 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20891
20892
20893
20894
20895
20896
20897
20898
20899 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20900
20901
20902 :
20903
20904 fi
20905
20906
20907
20908
20909
20910 GNULIB_READLINK=1
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927 if test $gl_cv_have_include_next = yes; then
20928 gl_cv_next_signal_h='<'signal.h'>'
20929 else
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20931 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20932 if test "${gl_cv_next_signal_h+set}" = set; then :
20933 $as_echo_n "(cached) " >&6
20934 else
20935
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20938 #include <signal.h>
20939
20940 _ACEOF
20941 case "$host_os" in
20942 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20943 *) gl_absname_cpp="$ac_cpp" ;;
20944 esac
20945
20946 case "$host_os" in
20947 mingw*)
20948 gl_dirsep_regex='[/\\]'
20949 ;;
20950 *)
20951 gl_dirsep_regex='/'
20952 ;;
20953 esac
20954
20955 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
20956 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20957 s|^/[^/]|//&|
20958 p
20959 q
20960 }'
20961 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20962 sed -n "$gl_absolute_header_sed"`'"'
20963
20964
20965 fi
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20967 $as_echo "$gl_cv_next_signal_h" >&6; }
20968 fi
20969 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20970
20971 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20972 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20973 gl_next_as_first_directive='<'signal.h'>'
20974 else
20975 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20976 gl_next_as_first_directive=$gl_cv_next_signal_h
20977 fi
20978 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20979
20980
20981
20982
20983
20984 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20985 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20986 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20987 #include <signal.h>
20988
20989 "
20990 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20991
20992 else
20993 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20994 fi
20995
20996
20997
20998
20999
21000
21001
21002 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21003 #include <signal.h>
21004
21005 "
21006 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
21007
21008 else
21009 HAVE_SIGHANDLER_T=0
21010 fi
21011
21012
21013
21014
21015 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21016 /* <sys/types.h> is not needed according to POSIX, but the
21017 <sys/socket.h> in i386-unknown-freebsd4.10 and
21018 powerpc-apple-darwin5.5 required it. */
21019 #include <sys/types.h>
21020 #if HAVE_SYS_SOCKET_H
21021 # include <sys/socket.h>
21022 #elif HAVE_WS2TCPIP_H
21023 # include <ws2tcpip.h>
21024 #endif
21025
21026 "
21027 if test "x$ac_cv_type_socklen_t" = x""yes; then :
21028
21029 else
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21031 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21032 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21033 $as_echo_n "(cached) " >&6
21034 else
21035 # Systems have either "struct sockaddr *" or
21036 # "void *" as the second argument to getpeername
21037 gl_cv_socklen_t_equiv=
21038 for arg2 in "struct sockaddr" void; do
21039 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21042 #include <sys/types.h>
21043 #include <sys/socket.h>
21044
21045 int getpeername (int, $arg2 *, $t *);
21046 int
21047 main ()
21048 {
21049 $t len;
21050 getpeername (0, 0, &len);
21051 ;
21052 return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_compile "$LINENO"; then :
21056 gl_cv_socklen_t_equiv="$t"
21057 fi
21058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21059 test "$gl_cv_socklen_t_equiv" != "" && break
21060 done
21061 test "$gl_cv_socklen_t_equiv" != "" && break
21062 done
21063
21064 fi
21065
21066 if test "$gl_cv_socklen_t_equiv" = ""; then
21067 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
21068 fi
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21070 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21071
21072 cat >>confdefs.h <<_ACEOF
21073 #define socklen_t $gl_cv_socklen_t_equiv
21074 _ACEOF
21075
21076 fi
21077
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21080 $as_echo_n "checking for ssize_t... " >&6; }
21081 if test "${gt_cv_ssize_t+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21086 #include <sys/types.h>
21087 int
21088 main ()
21089 {
21090 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21091 return !x;
21092 ;
21093 return 0;
21094 }
21095 _ACEOF
21096 if ac_fn_c_try_compile "$LINENO"; then :
21097 gt_cv_ssize_t=yes
21098 else
21099 gt_cv_ssize_t=no
21100 fi
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21104 $as_echo "$gt_cv_ssize_t" >&6; }
21105 if test $gt_cv_ssize_t = no; then
21106
21107 $as_echo "#define ssize_t int" >>confdefs.h
21108
21109 fi
21110
21111
21112 STDARG_H=''
21113 NEXT_STDARG_H='<stdarg.h>'
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21115 $as_echo_n "checking for va_copy... " >&6; }
21116 if test "${gl_cv_func_va_copy+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21118 else
21119
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #include <stdarg.h>
21123 int
21124 main ()
21125 {
21126
21127 #ifndef va_copy
21128 void (*func) (va_list, va_list) = va_copy;
21129 #endif
21130
21131 ;
21132 return 0;
21133 }
21134 _ACEOF
21135 if ac_fn_c_try_compile "$LINENO"; then :
21136 gl_cv_func_va_copy=yes
21137 else
21138 gl_cv_func_va_copy=no
21139 fi
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 fi
21142
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21144 $as_echo "$gl_cv_func_va_copy" >&6; }
21145 if test $gl_cv_func_va_copy = no; then
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21148 #if defined _AIX && !defined __GNUC__
21149 AIX vaccine
21150 #endif
21151
21152 _ACEOF
21153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21154 $EGREP "vaccine" >/dev/null 2>&1; then :
21155 gl_aixcc=yes
21156 else
21157 gl_aixcc=no
21158 fi
21159 rm -f conftest*
21160
21161 if test $gl_aixcc = yes; then
21162 STDARG_H=stdarg.h
21163
21164
21165
21166
21167
21168
21169
21170
21171 if test $gl_cv_have_include_next = yes; then
21172 gl_cv_next_stdarg_h='<'stdarg.h'>'
21173 else
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21175 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21176 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
21178 else
21179
21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181 /* end confdefs.h. */
21182 #include <stdarg.h>
21183
21184 _ACEOF
21185 case "$host_os" in
21186 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21187 *) gl_absname_cpp="$ac_cpp" ;;
21188 esac
21189
21190 case "$host_os" in
21191 mingw*)
21192 gl_dirsep_regex='[/\\]'
21193 ;;
21194 *)
21195 gl_dirsep_regex='/'
21196 ;;
21197 esac
21198
21199 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
21200 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21201 s|^/[^/]|//&|
21202 p
21203 q
21204 }'
21205 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21206 sed -n "$gl_absolute_header_sed"`'"'
21207
21208
21209 fi
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21211 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21212 fi
21213 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21214
21215 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21217 gl_next_as_first_directive='<'stdarg.h'>'
21218 else
21219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21220 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21221 fi
21222 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21223
21224
21225
21226
21227 if test "$gl_cv_next_stdarg_h" = '""'; then
21228 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21229 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21230 fi
21231 else
21232
21233 saved_as_echo_n="$as_echo_n"
21234 as_echo_n=':'
21235 if test "${gl_cv_func___va_copy+set}" = set; then :
21236 $as_echo_n "(cached) " >&6
21237 else
21238
21239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21240 /* end confdefs.h. */
21241 #include <stdarg.h>
21242 int
21243 main ()
21244 {
21245
21246 #ifndef __va_copy
21247 error, bail out
21248 #endif
21249
21250 ;
21251 return 0;
21252 }
21253 _ACEOF
21254 if ac_fn_c_try_compile "$LINENO"; then :
21255 gl_cv_func___va_copy=yes
21256 else
21257 gl_cv_func___va_copy=no
21258 fi
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 fi
21261
21262 as_echo_n="$saved_as_echo_n"
21263
21264 if test $gl_cv_func___va_copy = yes; then
21265
21266 $as_echo "#define va_copy __va_copy" >>confdefs.h
21267
21268 else
21269
21270
21271 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21272
21273 fi
21274 fi
21275 fi
21276
21277 if test -n "$STDARG_H"; then
21278 GL_GENERATE_STDARG_H_TRUE=
21279 GL_GENERATE_STDARG_H_FALSE='#'
21280 else
21281 GL_GENERATE_STDARG_H_TRUE='#'
21282 GL_GENERATE_STDARG_H_FALSE=
21283 fi
21284
21285
21286
21287
21288
21289
21290 # Define two additional variables used in the Makefile substitution.
21291
21292 if test "$ac_cv_header_stdbool_h" = yes; then
21293 STDBOOL_H=''
21294 else
21295 STDBOOL_H='stdbool.h'
21296 fi
21297
21298 if test -n "$STDBOOL_H"; then
21299 GL_GENERATE_STDBOOL_H_TRUE=
21300 GL_GENERATE_STDBOOL_H_FALSE='#'
21301 else
21302 GL_GENERATE_STDBOOL_H_TRUE='#'
21303 GL_GENERATE_STDBOOL_H_FALSE=
21304 fi
21305
21306
21307 if test "$ac_cv_type__Bool" = yes; then
21308 HAVE__BOOL=1
21309 else
21310 HAVE__BOOL=0
21311 fi
21312
21313
21314
21315
21316
21317 STDDEF_H=
21318 if test $gt_cv_c_wchar_t = no; then
21319 HAVE_WCHAR_T=0
21320 STDDEF_H=stddef.h
21321 fi
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21323 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21324 if test "${gl_cv_decl_null_works+set}" = set; then :
21325 $as_echo_n "(cached) " >&6
21326 else
21327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21329 #include <stddef.h>
21330 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21331
21332 int
21333 main ()
21334 {
21335
21336 ;
21337 return 0;
21338 }
21339 _ACEOF
21340 if ac_fn_c_try_compile "$LINENO"; then :
21341 gl_cv_decl_null_works=yes
21342 else
21343 gl_cv_decl_null_works=no
21344 fi
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 fi
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21348 $as_echo "$gl_cv_decl_null_works" >&6; }
21349 if test $gl_cv_decl_null_works = no; then
21350 REPLACE_NULL=1
21351 STDDEF_H=stddef.h
21352 fi
21353
21354 if test -n "$STDDEF_H"; then
21355 GL_GENERATE_STDDEF_H_TRUE=
21356 GL_GENERATE_STDDEF_H_FALSE='#'
21357 else
21358 GL_GENERATE_STDDEF_H_TRUE='#'
21359 GL_GENERATE_STDDEF_H_FALSE=
21360 fi
21361
21362 if test -n "$STDDEF_H"; then
21363
21364
21365
21366
21367
21368
21369
21370
21371 if test $gl_cv_have_include_next = yes; then
21372 gl_cv_next_stddef_h='<'stddef.h'>'
21373 else
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21375 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21376 if test "${gl_cv_next_stddef_h+set}" = set; then :
21377 $as_echo_n "(cached) " >&6
21378 else
21379
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21382 #include <stddef.h>
21383
21384 _ACEOF
21385 case "$host_os" in
21386 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21387 *) gl_absname_cpp="$ac_cpp" ;;
21388 esac
21389
21390 case "$host_os" in
21391 mingw*)
21392 gl_dirsep_regex='[/\\]'
21393 ;;
21394 *)
21395 gl_dirsep_regex='/'
21396 ;;
21397 esac
21398
21399 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21400 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21401 s|^/[^/]|//&|
21402 p
21403 q
21404 }'
21405 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21406 sed -n "$gl_absolute_header_sed"`'"'
21407
21408
21409 fi
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21411 $as_echo "$gl_cv_next_stddef_h" >&6; }
21412 fi
21413 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21414
21415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21417 gl_next_as_first_directive='<'stddef.h'>'
21418 else
21419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21420 gl_next_as_first_directive=$gl_cv_next_stddef_h
21421 fi
21422 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21423
21424
21425
21426
21427 fi
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441 if test $gl_cv_have_include_next = yes; then
21442 gl_cv_next_stdio_h='<'stdio.h'>'
21443 else
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21445 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21446 if test "${gl_cv_next_stdio_h+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
21448 else
21449
21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21452 #include <stdio.h>
21453
21454 _ACEOF
21455 case "$host_os" in
21456 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21457 *) gl_absname_cpp="$ac_cpp" ;;
21458 esac
21459
21460 case "$host_os" in
21461 mingw*)
21462 gl_dirsep_regex='[/\\]'
21463 ;;
21464 *)
21465 gl_dirsep_regex='/'
21466 ;;
21467 esac
21468
21469 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21470 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21471 s|^/[^/]|//&|
21472 p
21473 q
21474 }'
21475 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21476 sed -n "$gl_absolute_header_sed"`'"'
21477
21478
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21481 $as_echo "$gl_cv_next_stdio_h" >&6; }
21482 fi
21483 NEXT_STDIO_H=$gl_cv_next_stdio_h
21484
21485 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21487 gl_next_as_first_directive='<'stdio.h'>'
21488 else
21489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21490 gl_next_as_first_directive=$gl_cv_next_stdio_h
21491 fi
21492 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21493
21494
21495
21496
21497
21498 GNULIB_FSCANF=1
21499 GNULIB_SCANF=1
21500 GNULIB_FGETC=1
21501 GNULIB_GETC=1
21502 GNULIB_GETCHAR=1
21503 GNULIB_FGETS=1
21504 GNULIB_GETS=1
21505 GNULIB_FREAD=1
21506
21507
21508 GNULIB_FPRINTF=1
21509 GNULIB_PRINTF=1
21510 GNULIB_VFPRINTF=1
21511 GNULIB_VPRINTF=1
21512 GNULIB_FPUTC=1
21513 GNULIB_PUTC=1
21514 GNULIB_PUTCHAR=1
21515 GNULIB_FPUTS=1
21516 GNULIB_PUTS=1
21517 GNULIB_FWRITE=1
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533 if test $gl_cv_have_include_next = yes; then
21534 gl_cv_next_stdlib_h='<'stdlib.h'>'
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21537 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21538 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21540 else
21541
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 #include <stdlib.h>
21545
21546 _ACEOF
21547 case "$host_os" in
21548 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21549 *) gl_absname_cpp="$ac_cpp" ;;
21550 esac
21551
21552 case "$host_os" in
21553 mingw*)
21554 gl_dirsep_regex='[/\\]'
21555 ;;
21556 *)
21557 gl_dirsep_regex='/'
21558 ;;
21559 esac
21560
21561 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21562 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21563 s|^/[^/]|//&|
21564 p
21565 q
21566 }'
21567 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21568 sed -n "$gl_absolute_header_sed"`'"'
21569
21570
21571 fi
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21573 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21574 fi
21575 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21576
21577 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21579 gl_next_as_first_directive='<'stdlib.h'>'
21580 else
21581 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21582 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21583 fi
21584 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21595
21596
21597
21598
21599
21600
21601
21602 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21603
21604
21605
21606
21607
21608
21609
21610
21611 if test "$ac_cv_have_decl_strtoimax" != yes; then
21612 HAVE_DECL_STRTOIMAX=0
21613 fi
21614
21615 if test $ac_cv_func_strtoimax = no; then
21616
21617
21618
21619
21620
21621
21622
21623
21624 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21625
21626
21627 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21628 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21629 ac_have_decl=1
21630 else
21631 ac_have_decl=0
21632 fi
21633
21634 cat >>confdefs.h <<_ACEOF
21635 #define HAVE_DECL_STRTOLL $ac_have_decl
21636 _ACEOF
21637
21638
21639
21640 fi
21641
21642
21643
21644
21645
21646 GNULIB_STRTOIMAX=1
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656 if test "$ac_cv_have_decl_strtoumax" != yes; then
21657 HAVE_DECL_STRTOUMAX=0
21658 fi
21659
21660 if test $ac_cv_func_strtoumax = no; then
21661
21662
21663
21664
21665
21666
21667
21668
21669 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21670
21671
21672 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21673 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21674 ac_have_decl=1
21675 else
21676 ac_have_decl=0
21677 fi
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_DECL_STRTOULL $ac_have_decl
21681 _ACEOF
21682
21683
21684
21685 fi
21686
21687
21688
21689
21690
21691 GNULIB_STRTOUMAX=1
21692
21693
21694
21695
21696
21697
21698
21699 if test $ac_cv_func_symlink = no; then
21700 HAVE_SYMLINK=0
21701 else
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21703 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21704 if test "${gl_cv_func_symlink_works+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 if test "$cross_compiling" = yes; then :
21708 gl_cv_func_symlink_works="guessing no"
21709 else
21710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21711 /* end confdefs.h. */
21712 #include <unistd.h>
21713
21714 int
21715 main ()
21716 {
21717 int result = 0;
21718 if (!symlink ("a", "conftest.link/"))
21719 result |= 1;
21720 if (symlink ("conftest.f", "conftest.lnk2"))
21721 result |= 2;
21722 else if (!symlink ("a", "conftest.lnk2/"))
21723 result |= 4;
21724 return result;
21725
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 if ac_fn_c_try_run "$LINENO"; then :
21731 gl_cv_func_symlink_works=yes
21732 else
21733 gl_cv_func_symlink_works=no
21734 fi
21735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21736 conftest.$ac_objext conftest.beam conftest.$ac_ext
21737 fi
21738
21739 rm -f conftest.f conftest.link conftest.lnk2
21740 fi
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21742 $as_echo "$gl_cv_func_symlink_works" >&6; }
21743 if test "$gl_cv_func_symlink_works" != yes; then
21744 REPLACE_SYMLINK=1
21745 fi
21746 fi
21747
21748 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21749
21750
21751
21752
21753
21754
21755
21756
21757 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21758
21759 fi
21760
21761
21762
21763
21764
21765 GNULIB_SYMLINK=1
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787 if test $gl_cv_have_include_next = yes; then
21788 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21789 else
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21791 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21792 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795
21796 if test $ac_cv_header_sys_stat_h = yes; then
21797
21798
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21801 #include <sys/stat.h>
21802
21803 _ACEOF
21804 case "$host_os" in
21805 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21806 *) gl_absname_cpp="$ac_cpp" ;;
21807 esac
21808
21809 case "$host_os" in
21810 mingw*)
21811 gl_dirsep_regex='[/\\]'
21812 ;;
21813 *)
21814 gl_dirsep_regex='/'
21815 ;;
21816 esac
21817
21818 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21819 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21820 s|^/[^/]|//&|
21821 p
21822 q
21823 }'
21824 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21825 sed -n "$gl_absolute_header_sed"`'"'
21826 else
21827 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21828 fi
21829
21830
21831 fi
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21833 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21834 fi
21835 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21836
21837 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21838 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21839 gl_next_as_first_directive='<'sys/stat.h'>'
21840 else
21841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21842 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21843 fi
21844 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21845
21846
21847
21848
21849
21850
21851
21852 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21853 #include <sys/stat.h>
21854 "
21855 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21856
21857 else
21858
21859 $as_echo "#define nlink_t int" >>confdefs.h
21860
21861 fi
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877 if test $ac_cv_have_decl_localtime_r = no; then
21878 HAVE_DECL_LOCALTIME_R=0
21879 fi
21880
21881
21882 if test $ac_cv_func_localtime_r = yes; then
21883 HAVE_LOCALTIME_R=1
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21885 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21886 if test "${gl_cv_time_r_posix+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21891 #include <time.h>
21892 int
21893 main ()
21894 {
21895 /* We don't need to append 'restrict's to the argument types,
21896 even though the POSIX signature has the 'restrict's,
21897 since C99 says they can't affect type compatibility. */
21898 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21899 if (ptr) return 0;
21900 /* Check the return type is a pointer.
21901 On HP-UX 10 it is 'int'. */
21902 *localtime_r (0, 0);
21903 ;
21904 return 0;
21905 }
21906
21907 _ACEOF
21908 if ac_fn_c_try_compile "$LINENO"; then :
21909 gl_cv_time_r_posix=yes
21910 else
21911 gl_cv_time_r_posix=no
21912 fi
21913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21914
21915 fi
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21917 $as_echo "$gl_cv_time_r_posix" >&6; }
21918 if test $gl_cv_time_r_posix = yes; then
21919 REPLACE_LOCALTIME_R=0
21920 else
21921 REPLACE_LOCALTIME_R=1
21922 fi
21923 else
21924 HAVE_LOCALTIME_R=0
21925 fi
21926
21927 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21928
21929
21930
21931
21932
21933
21934
21935
21936 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21937
21938
21939 :
21940
21941 fi
21942
21943
21944
21945
21946
21947 GNULIB_TIME_R=1
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967 if test $gl_cv_have_include_next = yes; then
21968 gl_cv_next_unistd_h='<'unistd.h'>'
21969 else
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21971 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21972 if test "${gl_cv_next_unistd_h+set}" = set; then :
21973 $as_echo_n "(cached) " >&6
21974 else
21975
21976 if test $ac_cv_header_unistd_h = yes; then
21977
21978
21979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21980 /* end confdefs.h. */
21981 #include <unistd.h>
21982
21983 _ACEOF
21984 case "$host_os" in
21985 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21986 *) gl_absname_cpp="$ac_cpp" ;;
21987 esac
21988
21989 case "$host_os" in
21990 mingw*)
21991 gl_dirsep_regex='[/\\]'
21992 ;;
21993 *)
21994 gl_dirsep_regex='/'
21995 ;;
21996 esac
21997
21998 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
21999 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22000 s|^/[^/]|//&|
22001 p
22002 q
22003 }'
22004 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22005 sed -n "$gl_absolute_header_sed"`'"'
22006 else
22007 gl_cv_next_unistd_h='<'unistd.h'>'
22008 fi
22009
22010
22011 fi
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22013 $as_echo "$gl_cv_next_unistd_h" >&6; }
22014 fi
22015 NEXT_UNISTD_H=$gl_cv_next_unistd_h
22016
22017 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22019 gl_next_as_first_directive='<'unistd.h'>'
22020 else
22021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22022 gl_next_as_first_directive=$gl_cv_next_unistd_h
22023 fi
22024 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
22025
22026
22027
22028
22029 if test $ac_cv_header_unistd_h = yes; then
22030 HAVE_UNISTD_H=1
22031 else
22032 HAVE_UNISTD_H=0
22033 fi
22034
22035
22036
22037
22038
22039
22040
22041 gl_gnulib_enabled_dosname=false
22042 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
22043 gl_gnulib_enabled_pathmax=false
22044 gl_gnulib_enabled_sigprocmask=false
22045 gl_gnulib_enabled_stat=false
22046 gl_gnulib_enabled_strtoll=false
22047 gl_gnulib_enabled_strtoull=false
22048 gl_gnulib_enabled_verify=false
22049 func_gl_gnulib_m4code_dosname ()
22050 {
22051 if ! $gl_gnulib_enabled_dosname; then
22052 gl_gnulib_enabled_dosname=true
22053 fi
22054 }
22055 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
22056 {
22057 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22058
22059
22060 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
22061 fi
22062 }
22063 func_gl_gnulib_m4code_pathmax ()
22064 {
22065 if ! $gl_gnulib_enabled_pathmax; then
22066
22067
22068
22069 gl_gnulib_enabled_pathmax=true
22070 fi
22071 }
22072 func_gl_gnulib_m4code_sigprocmask ()
22073 {
22074 if ! $gl_gnulib_enabled_sigprocmask; then
22075
22076
22077
22078 if test $gl_cv_type_sigset_t = yes; then
22079 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22080 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
22081 gl_cv_func_sigprocmask=1
22082 fi
22083
22084 fi
22085 if test -z "$gl_cv_func_sigprocmask"; then
22086 HAVE_POSIX_SIGNALBLOCKING=0
22087 fi
22088
22089 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22090
22091
22092
22093
22094
22095
22096
22097
22098 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22099
22100
22101
22102
22103 fi
22104
22105
22106
22107
22108
22109 GNULIB_SIGPROCMASK=1
22110
22111
22112
22113
22114
22115 gl_gnulib_enabled_sigprocmask=true
22116 fi
22117 }
22118 func_gl_gnulib_m4code_stat ()
22119 {
22120 if ! $gl_gnulib_enabled_stat; then
22121
22122
22123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22125 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22126 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 if test "$cross_compiling" = yes; then :
22130 case $host_os in
22131 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22132 *) gl_cv_func_stat_dir_slash="guessing yes";;
22133 esac
22134 else
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22137 #include <sys/stat.h>
22138
22139 int
22140 main ()
22141 {
22142 struct stat st; return stat (".", &st) != stat ("./", &st);
22143 ;
22144 return 0;
22145 }
22146 _ACEOF
22147 if ac_fn_c_try_run "$LINENO"; then :
22148 gl_cv_func_stat_dir_slash=yes
22149 else
22150 gl_cv_func_stat_dir_slash=no
22151 fi
22152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22153 conftest.$ac_objext conftest.beam conftest.$ac_ext
22154 fi
22155
22156 fi
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22158 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22160 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22161 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22163 else
22164 touch conftest.tmp
22165 # Assume that if we have lstat, we can also check symlinks.
22166 if test $ac_cv_func_lstat = yes; then
22167 ln -s conftest.tmp conftest.lnk
22168 fi
22169 if test "$cross_compiling" = yes; then :
22170 gl_cv_func_stat_file_slash="guessing no"
22171 else
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22174 #include <sys/stat.h>
22175
22176 int
22177 main ()
22178 {
22179 int result = 0;
22180 struct stat st;
22181 if (!stat ("conftest.tmp/", &st))
22182 result |= 1;
22183 #if HAVE_LSTAT
22184 if (!stat ("conftest.lnk/", &st))
22185 result |= 2;
22186 #endif
22187 return result;
22188
22189 ;
22190 return 0;
22191 }
22192 _ACEOF
22193 if ac_fn_c_try_run "$LINENO"; then :
22194 gl_cv_func_stat_file_slash=yes
22195 else
22196 gl_cv_func_stat_file_slash=no
22197 fi
22198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22199 conftest.$ac_objext conftest.beam conftest.$ac_ext
22200 fi
22201
22202 rm -f conftest.tmp conftest.lnk
22203 fi
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22205 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22206 case $gl_cv_func_stat_dir_slash in
22207 *no) REPLACE_STAT=1
22208
22209 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22210 ;;
22211 esac
22212 case $gl_cv_func_stat_file_slash in
22213 *no) REPLACE_STAT=1
22214
22215 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22216 ;;
22217 esac
22218
22219 if test $REPLACE_STAT = 1; then
22220
22221
22222
22223
22224
22225
22226
22227
22228 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22229
22230
22231
22232 :
22233
22234 fi
22235
22236
22237
22238
22239
22240 GNULIB_STAT=1
22241
22242
22243
22244
22245
22246 gl_gnulib_enabled_stat=true
22247 if test $REPLACE_STAT = 1; then
22248 func_gl_gnulib_m4code_dosname
22249 fi
22250 if test $REPLACE_STAT = 1; then
22251 func_gl_gnulib_m4code_pathmax
22252 fi
22253 if test $REPLACE_STAT = 1; then
22254 func_gl_gnulib_m4code_verify
22255 fi
22256 fi
22257 }
22258 func_gl_gnulib_m4code_strtoll ()
22259 {
22260 if ! $gl_gnulib_enabled_strtoll; then
22261
22262
22263
22264 if test "$ac_cv_type_long_long_int" = yes; then
22265 for ac_func in strtoll
22266 do :
22267 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22268 if test "x$ac_cv_func_strtoll" = x""yes; then :
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_STRTOLL 1
22271 _ACEOF
22272
22273 fi
22274 done
22275
22276 if test $ac_cv_func_strtoll = no; then
22277 HAVE_STRTOLL=0
22278 fi
22279 fi
22280
22281 if test $HAVE_STRTOLL = 0; then
22282
22283
22284
22285
22286
22287
22288
22289
22290 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22291
22292
22293 :
22294
22295 fi
22296
22297
22298
22299
22300
22301 GNULIB_STRTOLL=1
22302
22303
22304
22305
22306
22307 gl_gnulib_enabled_strtoll=true
22308 fi
22309 }
22310 func_gl_gnulib_m4code_strtoull ()
22311 {
22312 if ! $gl_gnulib_enabled_strtoull; then
22313
22314
22315
22316 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22317 for ac_func in strtoull
22318 do :
22319 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22320 if test "x$ac_cv_func_strtoull" = x""yes; then :
22321 cat >>confdefs.h <<_ACEOF
22322 #define HAVE_STRTOULL 1
22323 _ACEOF
22324
22325 fi
22326 done
22327
22328 if test $ac_cv_func_strtoull = no; then
22329 HAVE_STRTOULL=0
22330 fi
22331 fi
22332
22333 if test $HAVE_STRTOULL = 0; then
22334
22335
22336
22337
22338
22339
22340
22341
22342 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22343
22344
22345 :
22346
22347 fi
22348
22349
22350
22351
22352
22353 GNULIB_STRTOULL=1
22354
22355
22356
22357
22358
22359 gl_gnulib_enabled_strtoull=true
22360 fi
22361 }
22362 func_gl_gnulib_m4code_verify ()
22363 {
22364 if ! $gl_gnulib_enabled_verify; then
22365 gl_gnulib_enabled_verify=true
22366 fi
22367 }
22368 if test $REPLACE_GETOPT = 1; then
22369 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22370 fi
22371 if test $REPLACE_LSTAT = 1; then
22372 func_gl_gnulib_m4code_dosname
22373 fi
22374 if test $REPLACE_LSTAT = 1; then
22375 func_gl_gnulib_m4code_stat
22376 fi
22377 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22378 func_gl_gnulib_m4code_sigprocmask
22379 fi
22380 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22381 func_gl_gnulib_m4code_stat
22382 fi
22383 if test $ac_cv_func_strtoimax = no; then
22384 func_gl_gnulib_m4code_verify
22385 fi
22386 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22387 func_gl_gnulib_m4code_strtoll
22388 fi
22389 if test $ac_cv_func_strtoumax = no; then
22390 func_gl_gnulib_m4code_verify
22391 fi
22392 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22393 func_gl_gnulib_m4code_strtoull
22394 fi
22395
22396 if $gl_gnulib_enabled_dosname; then
22397 gl_GNULIB_ENABLED_dosname_TRUE=
22398 gl_GNULIB_ENABLED_dosname_FALSE='#'
22399 else
22400 gl_GNULIB_ENABLED_dosname_TRUE='#'
22401 gl_GNULIB_ENABLED_dosname_FALSE=
22402 fi
22403
22404 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22405 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22406 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22407 else
22408 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22409 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22410 fi
22411
22412 if $gl_gnulib_enabled_pathmax; then
22413 gl_GNULIB_ENABLED_pathmax_TRUE=
22414 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22415 else
22416 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22417 gl_GNULIB_ENABLED_pathmax_FALSE=
22418 fi
22419
22420 if $gl_gnulib_enabled_sigprocmask; then
22421 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22422 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22423 else
22424 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22425 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22426 fi
22427
22428 if $gl_gnulib_enabled_stat; then
22429 gl_GNULIB_ENABLED_stat_TRUE=
22430 gl_GNULIB_ENABLED_stat_FALSE='#'
22431 else
22432 gl_GNULIB_ENABLED_stat_TRUE='#'
22433 gl_GNULIB_ENABLED_stat_FALSE=
22434 fi
22435
22436 if $gl_gnulib_enabled_strtoll; then
22437 gl_GNULIB_ENABLED_strtoll_TRUE=
22438 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22439 else
22440 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22441 gl_GNULIB_ENABLED_strtoll_FALSE=
22442 fi
22443
22444 if $gl_gnulib_enabled_strtoull; then
22445 gl_GNULIB_ENABLED_strtoull_TRUE=
22446 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22447 else
22448 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22449 gl_GNULIB_ENABLED_strtoull_FALSE=
22450 fi
22451
22452 if $gl_gnulib_enabled_verify; then
22453 gl_GNULIB_ENABLED_verify_TRUE=
22454 gl_GNULIB_ENABLED_verify_FALSE='#'
22455 else
22456 gl_GNULIB_ENABLED_verify_TRUE='#'
22457 gl_GNULIB_ENABLED_verify_FALSE=
22458 fi
22459
22460 # End of code from modules
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470 gltests_libdeps=
22471 gltests_ltlibdeps=
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481 gl_source_base='tests'
22482 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
22483
22484 gl_module_indicator_condition=$gltests_WITNESS
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495 LIBGNU_LIBDEPS="$gl_libdeps"
22496
22497 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22498
22499
22500
22501 case "$opsys" in
22502 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22503
22504 darwin)
22505 ## The -headerpad option tells ld (see man page) to leave room at the
22506 ## end of the header for adding load commands. Needed for dumping.
22507 ## 0x690 is the total size of 30 segment load commands (at 56
22508 ## each); under Cocoa 31 commands are required.
22509 if test "$HAVE_NS" = "yes"; then
22510 libs_nsgui="-framework AppKit"
22511 headerpad_extra=6C8
22512 else
22513 libs_nsgui=
22514 headerpad_extra=690
22515 fi
22516 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22517
22518 ## This is here because src/Makefile.in did some extra fiddling around
22519 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22520 ## #ifndef LD_SWITCH_SYSTEM
22521 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22522 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22523 ## not using gcc, darwin system not on an alpha (ie darwin, since
22524 ## darwin + alpha does not occur).
22525 ## Because this was done in src/Makefile.in, the resulting part of
22526 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22527 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22528 ## rather than LD_SWITCH_SYSTEM.
22529 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22530 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22531 ;;
22532
22533 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22534 ## find X at run-time.
22535 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22536 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22537 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22538 ## had different values in configure (in ac_link) and src/Makefile.in.
22539 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22540 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22541
22542 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22543 esac
22544
22545 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22546 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22547 fi
22548
22549
22550
22551
22552 LD_FIRSTFLAG=
22553 ORDINARY_LINK=
22554 case "$opsys" in
22555 ## gnu: GNU needs its own crt0.
22556 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22557
22558 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22559 ## library search parth, i.e. it won't search /usr/lib for libc and
22560 ## friends. Using -nostartfiles instead avoids this problem, and
22561 ## will also work on earlier NetBSD releases.
22562 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22563
22564 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22565 ## MkLinux/LinuxPPC needs this.
22566 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22567 gnu-*)
22568 case "$machine" in
22569 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22570 esac
22571 ;;
22572 esac
22573
22574
22575 if test "x$ORDINARY_LINK" = "xyes"; then
22576
22577 LD_FIRSTFLAG=""
22578
22579 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22580
22581
22582 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22583 ## freebsd, gnu-* not on macppc|ibms390x.
22584 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22585
22586 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22587 ## places that are difficult to figure out at make time. Fortunately,
22588 ## these same versions allow you to pass arbitrary flags on to the
22589 ## linker, so there is no reason not to use it as a linker.
22590 ##
22591 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22592 ## searching for libraries in its internal directories, so we have to
22593 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22594 LD_FIRSTFLAG="-nostdlib"
22595 fi
22596
22597 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22598 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22599
22600
22601
22602
22603 ## FIXME? The logic here is not precisely the same as that above.
22604 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22605 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22606 LIB_GCC=
22607 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22608
22609 case "$opsys" in
22610 freebsd|netbsd|openbsd) LIB_GCC= ;;
22611
22612 gnu-*)
22613 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22614 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22615 case $host_cpu in
22616 arm*)
22617 LIB_GCC="-lgcc_s"
22618 ;;
22619 *)
22620 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22621 ## immediately undefine it again and redefine it to empty.
22622 ## Was the C_SWITCH_X_SITE part really necessary?
22623 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22624 LIB_GCC=
22625 ;;
22626 esac
22627 ;;
22628
22629 ## Ask GCC where to find libgcc.a.
22630 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22631 esac
22632 fi
22633
22634
22635 ## If we're using X11/GNUstep, define some consequences.
22636 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22637
22638 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22639
22640
22641 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22642
22643 fi
22644
22645
22646
22647
22648 #### Report on what we decided to do.
22649 #### Report GTK as a toolkit, even if it doesn't use Xt.
22650 #### It makes printing result more understandable as using GTK sets
22651 #### toolkit_scroll_bars to yes by default.
22652 if test "${HAVE_GTK}" = "yes"; then
22653 USE_X_TOOLKIT=GTK
22654 fi
22655
22656 and_machfile=
22657 if test -n "$machfile"; then
22658 and_machfile=" and \`${machfile}'"
22659 fi
22660
22661 echo "
22662 Configured for \`${canonical}'.
22663
22664 Where should the build process find the source code? ${srcdir}
22665 What operating system and machine description files should Emacs use?
22666 \`${opsysfile}'${and_machfile}
22667 What compiler should emacs be built with? ${CC} ${CFLAGS}
22668 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22669 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22670 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22671 What window system should Emacs use? ${window_system}
22672 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22673
22674 if test -n "${x_includes}"; then
22675 echo " Where do we find X Windows header files? ${x_includes}"
22676 else
22677 echo " Where do we find X Windows header files? Standard dirs"
22678 fi
22679 if test -n "${x_libraries}"; then
22680 echo " Where do we find X Windows libraries? ${x_libraries}"
22681 else
22682 echo " Where do we find X Windows libraries? Standard dirs"
22683 fi
22684
22685 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22686 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22687 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22688 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22689 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22690 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22691 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22692 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22693
22694 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22695 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22696 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22697 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22698 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22699 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22700 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22701
22702 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22703 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22704 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22705 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22706
22707 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22708 echo
22709
22710 if test -n "${EMACSDATA}"; then
22711 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22712 fi
22713 if test -n "${EMACSDOC}"; then
22714 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22715 fi
22716
22717 if test $USE_XASSERTS = yes; then
22718 echo " Compiling with asserts turned on."
22719 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22720 fi
22721
22722 echo
22723
22724 if test "$HAVE_NS" = "yes"; then
22725 echo
22726 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22727 The installed application will go to nextstep/Emacs.app and can be
22728 run or moved from there."
22729 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22730 echo "The application will be fully self-contained."
22731 else
22732 echo "The lisp resources for the application will be installed under ${prefix}.
22733 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22734 to run if these resources are not installed."
22735 fi
22736 echo
22737 fi
22738
22739 if test "${opsys}" = "cygwin"; then
22740 case `uname -r` in
22741 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
22742 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
22743 echo
22744 ;;
22745 esac
22746 fi
22747
22748 # Remove any trailing slashes in these variables.
22749 test "${prefix}" != NONE &&
22750 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22751 test "${exec_prefix}" != NONE &&
22752 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22753
22754 SUBDIR_MAKEFILES="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"
22755
22756 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"
22757
22758
22759 opt_makefile=test/automated/Makefile
22760
22761 if test -f $srcdir/${opt_makefile}.in; then
22762 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22763 ac_config_files="$ac_config_files test/automated/Makefile"
22764
22765 fi
22766
22767
22768 opt_makefile=admin/unidata/Makefile
22769
22770 if test -f $srcdir/${opt_makefile}.in; then
22771 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22772 ac_config_files="$ac_config_files admin/unidata/Makefile"
22773
22774 fi
22775
22776
22777 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22778
22779
22780
22781 ac_config_commands="$ac_config_commands mkdirs"
22782
22783
22784 ac_config_commands="$ac_config_commands epaths"
22785
22786
22787 ac_config_commands="$ac_config_commands gdbinit"
22788
22789
22790 cat >confcache <<\_ACEOF
22791 # This file is a shell script that caches the results of configure
22792 # tests run on this system so they can be shared between configure
22793 # scripts and configure runs, see configure's option --config-cache.
22794 # It is not useful on other systems. If it contains results you don't
22795 # want to keep, you may remove or edit it.
22796 #
22797 # config.status only pays attention to the cache file if you give it
22798 # the --recheck option to rerun configure.
22799 #
22800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22802 # following values.
22803
22804 _ACEOF
22805
22806 # The following way of writing the cache mishandles newlines in values,
22807 # but we know of no workaround that is simple, portable, and efficient.
22808 # So, we kill variables containing newlines.
22809 # Ultrix sh set writes to stderr and can't be redirected directly,
22810 # and sets the high bit in the cache file unless we assign to the vars.
22811 (
22812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22813 eval ac_val=\$$ac_var
22814 case $ac_val in #(
22815 *${as_nl}*)
22816 case $ac_var in #(
22817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22819 esac
22820 case $ac_var in #(
22821 _ | IFS | as_nl) ;; #(
22822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22823 *) { eval $ac_var=; unset $ac_var;} ;;
22824 esac ;;
22825 esac
22826 done
22827
22828 (set) 2>&1 |
22829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22830 *${as_nl}ac_space=\ *)
22831 # `set' does not quote correctly, so add quotes: double-quote
22832 # substitution turns \\\\ into \\, and sed turns \\ into \.
22833 sed -n \
22834 "s/'/'\\\\''/g;
22835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22836 ;; #(
22837 *)
22838 # `set' quotes correctly as required by POSIX, so do not add quotes.
22839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22840 ;;
22841 esac |
22842 sort
22843 ) |
22844 sed '
22845 /^ac_cv_env_/b end
22846 t clear
22847 :clear
22848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22849 t end
22850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22851 :end' >>confcache
22852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22853 if test -w "$cache_file"; then
22854 test "x$cache_file" != "x/dev/null" &&
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22856 $as_echo "$as_me: updating cache $cache_file" >&6;}
22857 cat confcache >$cache_file
22858 else
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22861 fi
22862 fi
22863 rm -f confcache
22864
22865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22866 # Let make expand exec_prefix.
22867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22868
22869 DEFS=-DHAVE_CONFIG_H
22870
22871 ac_libobjs=
22872 ac_ltlibobjs=
22873 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22874 # 1. Remove the extension, and $U if already installed.
22875 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22876 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22878 # will be set to the directory where LIBOBJS objects are built.
22879 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22880 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22881 done
22882 LIBOBJS=$ac_libobjs
22883
22884 LTLIBOBJS=$ac_ltlibobjs
22885
22886
22887 if test -n "$EXEEXT"; then
22888 am__EXEEXT_TRUE=
22889 am__EXEEXT_FALSE='#'
22890 else
22891 am__EXEEXT_TRUE='#'
22892 am__EXEEXT_FALSE=
22893 fi
22894
22895 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22896 as_fn_error "conditional \"AMDEP\" was never defined.
22897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22898 fi
22899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22900 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22902 fi
22903
22904 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22905 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22907 fi
22908 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22909 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22911 fi
22912
22913 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22914 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22916 fi
22917 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22918 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22920 fi
22921 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22922 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22924 fi
22925 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22926 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22928 fi
22929 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22930 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22932 fi
22933 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22934 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22936 fi
22937 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22938 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22940 fi
22941 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22942 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22944 fi
22945 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22946 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22948 fi
22949 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22950 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22952 fi
22953 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22954 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22956 fi
22957 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22958 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22960 fi
22961
22962 gl_libobjs=
22963 gl_ltlibobjs=
22964 if test -n "$gl_LIBOBJS"; then
22965 # Remove the extension.
22966 sed_drop_objext='s/\.o$//;s/\.obj$//'
22967 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22968 gl_libobjs="$gl_libobjs $i.$ac_objext"
22969 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22970 done
22971 fi
22972 gl_LIBOBJS=$gl_libobjs
22973
22974 gl_LTLIBOBJS=$gl_ltlibobjs
22975
22976
22977
22978 gltests_libobjs=
22979 gltests_ltlibobjs=
22980 if test -n "$gltests_LIBOBJS"; then
22981 # Remove the extension.
22982 sed_drop_objext='s/\.o$//;s/\.obj$//'
22983 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22984 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22985 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22986 done
22987 fi
22988 gltests_LIBOBJS=$gltests_libobjs
22989
22990 gltests_LTLIBOBJS=$gltests_ltlibobjs
22991
22992
22993
22994 : ${CONFIG_STATUS=./config.status}
22995 ac_write_fail=0
22996 ac_clean_files_save=$ac_clean_files
22997 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22999 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23000 as_write_fail=0
23001 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23002 #! $SHELL
23003 # Generated by $as_me.
23004 # Run this file to recreate the current configuration.
23005 # Compiler output produced by configure, useful for debugging
23006 # configure, is in config.log if it exists.
23007
23008 debug=false
23009 ac_cs_recheck=false
23010 ac_cs_silent=false
23011
23012 SHELL=\${CONFIG_SHELL-$SHELL}
23013 export SHELL
23014 _ASEOF
23015 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23016 ## -------------------- ##
23017 ## M4sh Initialization. ##
23018 ## -------------------- ##
23019
23020 # Be more Bourne compatible
23021 DUALCASE=1; export DUALCASE # for MKS sh
23022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23023 emulate sh
23024 NULLCMD=:
23025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23026 # is contrary to our usage. Disable this feature.
23027 alias -g '${1+"$@"}'='"$@"'
23028 setopt NO_GLOB_SUBST
23029 else
23030 case `(set -o) 2>/dev/null` in #(
23031 *posix*) :
23032 set -o posix ;; #(
23033 *) :
23034 ;;
23035 esac
23036 fi
23037
23038
23039 as_nl='
23040 '
23041 export as_nl
23042 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23043 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23046 # Prefer a ksh shell builtin over an external printf program on Solaris,
23047 # but without wasting forks for bash or zsh.
23048 if test -z "$BASH_VERSION$ZSH_VERSION" \
23049 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23050 as_echo='print -r --'
23051 as_echo_n='print -rn --'
23052 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23053 as_echo='printf %s\n'
23054 as_echo_n='printf %s'
23055 else
23056 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23057 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23058 as_echo_n='/usr/ucb/echo -n'
23059 else
23060 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23061 as_echo_n_body='eval
23062 arg=$1;
23063 case $arg in #(
23064 *"$as_nl"*)
23065 expr "X$arg" : "X\\(.*\\)$as_nl";
23066 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23067 esac;
23068 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23069 '
23070 export as_echo_n_body
23071 as_echo_n='sh -c $as_echo_n_body as_echo'
23072 fi
23073 export as_echo_body
23074 as_echo='sh -c $as_echo_body as_echo'
23075 fi
23076
23077 # The user is always right.
23078 if test "${PATH_SEPARATOR+set}" != set; then
23079 PATH_SEPARATOR=:
23080 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23081 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23082 PATH_SEPARATOR=';'
23083 }
23084 fi
23085
23086
23087 # IFS
23088 # We need space, tab and new line, in precisely that order. Quoting is
23089 # there to prevent editors from complaining about space-tab.
23090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23091 # splitting by setting IFS to empty value.)
23092 IFS=" "" $as_nl"
23093
23094 # Find who we are. Look in the path if we contain no directory separator.
23095 case $0 in #((
23096 *[\\/]* ) as_myself=$0 ;;
23097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23098 for as_dir in $PATH
23099 do
23100 IFS=$as_save_IFS
23101 test -z "$as_dir" && as_dir=.
23102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23103 done
23104 IFS=$as_save_IFS
23105
23106 ;;
23107 esac
23108 # We did not find ourselves, most probably we were run as `sh COMMAND'
23109 # in which case we are not to be found in the path.
23110 if test "x$as_myself" = x; then
23111 as_myself=$0
23112 fi
23113 if test ! -f "$as_myself"; then
23114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23115 exit 1
23116 fi
23117
23118 # Unset variables that we do not need and which cause bugs (e.g. in
23119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23120 # suppresses any "Segmentation fault" message there. '((' could
23121 # trigger a bug in pdksh 5.2.14.
23122 for as_var in BASH_ENV ENV MAIL MAILPATH
23123 do eval test x\${$as_var+set} = xset \
23124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23125 done
23126 PS1='$ '
23127 PS2='> '
23128 PS4='+ '
23129
23130 # NLS nuisances.
23131 LC_ALL=C
23132 export LC_ALL
23133 LANGUAGE=C
23134 export LANGUAGE
23135
23136 # CDPATH.
23137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23138
23139
23140 # as_fn_error ERROR [LINENO LOG_FD]
23141 # ---------------------------------
23142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23144 # script with status $?, using 1 if that was 0.
23145 as_fn_error ()
23146 {
23147 as_status=$?; test $as_status -eq 0 && as_status=1
23148 if test "$3"; then
23149 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23151 fi
23152 $as_echo "$as_me: error: $1" >&2
23153 as_fn_exit $as_status
23154 } # as_fn_error
23155
23156
23157 # as_fn_set_status STATUS
23158 # -----------------------
23159 # Set $? to STATUS, without forking.
23160 as_fn_set_status ()
23161 {
23162 return $1
23163 } # as_fn_set_status
23164
23165 # as_fn_exit STATUS
23166 # -----------------
23167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23168 as_fn_exit ()
23169 {
23170 set +e
23171 as_fn_set_status $1
23172 exit $1
23173 } # as_fn_exit
23174
23175 # as_fn_unset VAR
23176 # ---------------
23177 # Portably unset VAR.
23178 as_fn_unset ()
23179 {
23180 { eval $1=; unset $1;}
23181 }
23182 as_unset=as_fn_unset
23183 # as_fn_append VAR VALUE
23184 # ----------------------
23185 # Append the text in VALUE to the end of the definition contained in VAR. Take
23186 # advantage of any shell optimizations that allow amortized linear growth over
23187 # repeated appends, instead of the typical quadratic growth present in naive
23188 # implementations.
23189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23190 eval 'as_fn_append ()
23191 {
23192 eval $1+=\$2
23193 }'
23194 else
23195 as_fn_append ()
23196 {
23197 eval $1=\$$1\$2
23198 }
23199 fi # as_fn_append
23200
23201 # as_fn_arith ARG...
23202 # ------------------
23203 # Perform arithmetic evaluation on the ARGs, and store the result in the
23204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23205 # must be portable across $(()) and expr.
23206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23207 eval 'as_fn_arith ()
23208 {
23209 as_val=$(( $* ))
23210 }'
23211 else
23212 as_fn_arith ()
23213 {
23214 as_val=`expr "$@" || test $? -eq 1`
23215 }
23216 fi # as_fn_arith
23217
23218
23219 if expr a : '\(a\)' >/dev/null 2>&1 &&
23220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23221 as_expr=expr
23222 else
23223 as_expr=false
23224 fi
23225
23226 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23227 as_basename=basename
23228 else
23229 as_basename=false
23230 fi
23231
23232 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23233 as_dirname=dirname
23234 else
23235 as_dirname=false
23236 fi
23237
23238 as_me=`$as_basename -- "$0" ||
23239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23240 X"$0" : 'X\(//\)$' \| \
23241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23242 $as_echo X/"$0" |
23243 sed '/^.*\/\([^/][^/]*\)\/*$/{
23244 s//\1/
23245 q
23246 }
23247 /^X\/\(\/\/\)$/{
23248 s//\1/
23249 q
23250 }
23251 /^X\/\(\/\).*/{
23252 s//\1/
23253 q
23254 }
23255 s/.*/./; q'`
23256
23257 # Avoid depending upon Character Ranges.
23258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23261 as_cr_digits='0123456789'
23262 as_cr_alnum=$as_cr_Letters$as_cr_digits
23263
23264 ECHO_C= ECHO_N= ECHO_T=
23265 case `echo -n x` in #(((((
23266 -n*)
23267 case `echo 'xy\c'` in
23268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23269 xy) ECHO_C='\c';;
23270 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23271 ECHO_T=' ';;
23272 esac;;
23273 *)
23274 ECHO_N='-n';;
23275 esac
23276
23277 rm -f conf$$ conf$$.exe conf$$.file
23278 if test -d conf$$.dir; then
23279 rm -f conf$$.dir/conf$$.file
23280 else
23281 rm -f conf$$.dir
23282 mkdir conf$$.dir 2>/dev/null
23283 fi
23284 if (echo >conf$$.file) 2>/dev/null; then
23285 if ln -s conf$$.file conf$$ 2>/dev/null; then
23286 as_ln_s='ln -s'
23287 # ... but there are two gotchas:
23288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23290 # In both cases, we have to default to `cp -p'.
23291 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23292 as_ln_s='cp -p'
23293 elif ln conf$$.file conf$$ 2>/dev/null; then
23294 as_ln_s=ln
23295 else
23296 as_ln_s='cp -p'
23297 fi
23298 else
23299 as_ln_s='cp -p'
23300 fi
23301 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23302 rmdir conf$$.dir 2>/dev/null
23303
23304
23305 # as_fn_mkdir_p
23306 # -------------
23307 # Create "$as_dir" as a directory, including parents if necessary.
23308 as_fn_mkdir_p ()
23309 {
23310
23311 case $as_dir in #(
23312 -*) as_dir=./$as_dir;;
23313 esac
23314 test -d "$as_dir" || eval $as_mkdir_p || {
23315 as_dirs=
23316 while :; do
23317 case $as_dir in #(
23318 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23319 *) as_qdir=$as_dir;;
23320 esac
23321 as_dirs="'$as_qdir' $as_dirs"
23322 as_dir=`$as_dirname -- "$as_dir" ||
23323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23324 X"$as_dir" : 'X\(//\)[^/]' \| \
23325 X"$as_dir" : 'X\(//\)$' \| \
23326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23327 $as_echo X"$as_dir" |
23328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23329 s//\1/
23330 q
23331 }
23332 /^X\(\/\/\)[^/].*/{
23333 s//\1/
23334 q
23335 }
23336 /^X\(\/\/\)$/{
23337 s//\1/
23338 q
23339 }
23340 /^X\(\/\).*/{
23341 s//\1/
23342 q
23343 }
23344 s/.*/./; q'`
23345 test -d "$as_dir" && break
23346 done
23347 test -z "$as_dirs" || eval "mkdir $as_dirs"
23348 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23349
23350
23351 } # as_fn_mkdir_p
23352 if mkdir -p . 2>/dev/null; then
23353 as_mkdir_p='mkdir -p "$as_dir"'
23354 else
23355 test -d ./-p && rmdir ./-p
23356 as_mkdir_p=false
23357 fi
23358
23359 if test -x / >/dev/null 2>&1; then
23360 as_test_x='test -x'
23361 else
23362 if ls -dL / >/dev/null 2>&1; then
23363 as_ls_L_option=L
23364 else
23365 as_ls_L_option=
23366 fi
23367 as_test_x='
23368 eval sh -c '\''
23369 if test -d "$1"; then
23370 test -d "$1/.";
23371 else
23372 case $1 in #(
23373 -*)set "./$1";;
23374 esac;
23375 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23376 ???[sx]*):;;*)false;;esac;fi
23377 '\'' sh
23378 '
23379 fi
23380 as_executable_p=$as_test_x
23381
23382 # Sed expression to map a string onto a valid CPP name.
23383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23384
23385 # Sed expression to map a string onto a valid variable name.
23386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23387
23388
23389 exec 6>&1
23390 ## ----------------------------------- ##
23391 ## Main body of $CONFIG_STATUS script. ##
23392 ## ----------------------------------- ##
23393 _ASEOF
23394 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23395
23396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23397 # Save the log message, to keep $0 and so on meaningful, and to
23398 # report actual input values of CONFIG_FILES etc. instead of their
23399 # values after options handling.
23400 ac_log="
23401 This file was extended by emacs $as_me 24.1.50, which was
23402 generated by GNU Autoconf 2.65. Invocation command line was
23403
23404 CONFIG_FILES = $CONFIG_FILES
23405 CONFIG_HEADERS = $CONFIG_HEADERS
23406 CONFIG_LINKS = $CONFIG_LINKS
23407 CONFIG_COMMANDS = $CONFIG_COMMANDS
23408 $ $0 $@
23409
23410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23411 "
23412
23413 _ACEOF
23414
23415 case $ac_config_files in *"
23416 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23417 esac
23418
23419 case $ac_config_headers in *"
23420 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23421 esac
23422
23423
23424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23425 # Files that config.status was made for.
23426 config_files="$ac_config_files"
23427 config_headers="$ac_config_headers"
23428 config_commands="$ac_config_commands"
23429
23430 _ACEOF
23431
23432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23433 ac_cs_usage="\
23434 \`$as_me' instantiates files and other configuration actions
23435 from templates according to the current configuration. Unless the files
23436 and actions are specified as TAGs, all are instantiated by default.
23437
23438 Usage: $0 [OPTION]... [TAG]...
23439
23440 -h, --help print this help, then exit
23441 -V, --version print version number and configuration settings, then exit
23442 --config print configuration, then exit
23443 -q, --quiet, --silent
23444 do not print progress messages
23445 -d, --debug don't remove temporary files
23446 --recheck update $as_me by reconfiguring in the same conditions
23447 --file=FILE[:TEMPLATE]
23448 instantiate the configuration file FILE
23449 --header=FILE[:TEMPLATE]
23450 instantiate the configuration header FILE
23451
23452 Configuration files:
23453 $config_files
23454
23455 Configuration headers:
23456 $config_headers
23457
23458 Configuration commands:
23459 $config_commands
23460
23461 Report bugs to the package provider."
23462
23463 _ACEOF
23464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23466 ac_cs_version="\\
23467 emacs config.status 24.1.50
23468 configured by $0, generated by GNU Autoconf 2.65,
23469 with options \\"\$ac_cs_config\\"
23470
23471 Copyright (C) 2009 Free Software Foundation, Inc.
23472 This config.status script is free software; the Free Software Foundation
23473 gives unlimited permission to copy, distribute and modify it."
23474
23475 ac_pwd='$ac_pwd'
23476 srcdir='$srcdir'
23477 INSTALL='$INSTALL'
23478 MKDIR_P='$MKDIR_P'
23479 AWK='$AWK'
23480 test -n "\$AWK" || AWK=awk
23481 _ACEOF
23482
23483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23484 # The default lists apply if the user does not specify any file.
23485 ac_need_defaults=:
23486 while test $# != 0
23487 do
23488 case $1 in
23489 --*=*)
23490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23492 ac_shift=:
23493 ;;
23494 *)
23495 ac_option=$1
23496 ac_optarg=$2
23497 ac_shift=shift
23498 ;;
23499 esac
23500
23501 case $ac_option in
23502 # Handling of the options.
23503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23504 ac_cs_recheck=: ;;
23505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23506 $as_echo "$ac_cs_version"; exit ;;
23507 --config | --confi | --conf | --con | --co | --c )
23508 $as_echo "$ac_cs_config"; exit ;;
23509 --debug | --debu | --deb | --de | --d | -d )
23510 debug=: ;;
23511 --file | --fil | --fi | --f )
23512 $ac_shift
23513 case $ac_optarg in
23514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23515 esac
23516 as_fn_append CONFIG_FILES " '$ac_optarg'"
23517 ac_need_defaults=false;;
23518 --header | --heade | --head | --hea )
23519 $ac_shift
23520 case $ac_optarg in
23521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23522 esac
23523 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23524 ac_need_defaults=false;;
23525 --he | --h)
23526 # Conflict between --help and --header
23527 as_fn_error "ambiguous option: \`$1'
23528 Try \`$0 --help' for more information.";;
23529 --help | --hel | -h )
23530 $as_echo "$ac_cs_usage"; exit ;;
23531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23533 ac_cs_silent=: ;;
23534
23535 # This is an error.
23536 -*) as_fn_error "unrecognized option: \`$1'
23537 Try \`$0 --help' for more information." ;;
23538
23539 *) as_fn_append ac_config_targets " $1"
23540 ac_need_defaults=false ;;
23541
23542 esac
23543 shift
23544 done
23545
23546 ac_configure_extra_args=
23547
23548 if $ac_cs_silent; then
23549 exec 6>/dev/null
23550 ac_configure_extra_args="$ac_configure_extra_args --silent"
23551 fi
23552
23553 _ACEOF
23554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23555 if \$ac_cs_recheck; then
23556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23557 shift
23558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23559 CONFIG_SHELL='$SHELL'
23560 export CONFIG_SHELL
23561 exec "\$@"
23562 fi
23563
23564 _ACEOF
23565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23566 exec 5>>config.log
23567 {
23568 echo
23569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23570 ## Running $as_me. ##
23571 _ASBOX
23572 $as_echo "$ac_log"
23573 } >&5
23574
23575 _ACEOF
23576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23577 #
23578 # INIT-COMMANDS
23579 #
23580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23581 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23582
23583 _ACEOF
23584
23585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23586
23587 # Handling of arguments.
23588 for ac_config_target in $ac_config_targets
23589 do
23590 case $ac_config_target in
23591 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23594 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23595 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23596 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23597 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23598 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23599 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23600 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23601 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23602 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23603 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23604 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23605 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23606 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23607 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23608 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23609 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23610
23611 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23612 esac
23613 done
23614
23615
23616 # If the user did not use the arguments to specify the items to instantiate,
23617 # then the envvar interface is used. Set only those that are not.
23618 # We use the long form for the default assignment because of an extremely
23619 # bizarre bug on SunOS 4.1.3.
23620 if $ac_need_defaults; then
23621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23624 fi
23625
23626 # Have a temporary directory for convenience. Make it in the build tree
23627 # simply because there is no reason against having it here, and in addition,
23628 # creating and moving files from /tmp can sometimes cause problems.
23629 # Hook for its removal unless debugging.
23630 # Note that there is a small window in which the directory will not be cleaned:
23631 # after its creation but before its name has been assigned to `$tmp'.
23632 $debug ||
23633 {
23634 tmp=
23635 trap 'exit_status=$?
23636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23637 ' 0
23638 trap 'as_fn_exit 1' 1 2 13 15
23639 }
23640 # Create a (secure) tmp directory for tmp files.
23641
23642 {
23643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23644 test -n "$tmp" && test -d "$tmp"
23645 } ||
23646 {
23647 tmp=./conf$$-$RANDOM
23648 (umask 077 && mkdir "$tmp")
23649 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23650
23651 # Set up the scripts for CONFIG_FILES section.
23652 # No need to generate them if there are no CONFIG_FILES.
23653 # This happens for instance with `./config.status config.h'.
23654 if test -n "$CONFIG_FILES"; then
23655
23656 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23657 ac_cs_awk_getline=:
23658 ac_cs_awk_pipe_init=
23659 ac_cs_awk_read_file='
23660 while ((getline aline < (F[key])) > 0)
23661 print(aline)
23662 close(F[key])'
23663 ac_cs_awk_pipe_fini=
23664 else
23665 ac_cs_awk_getline=false
23666 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23667 ac_cs_awk_read_file='
23668 print "|#_!!_#|"
23669 print "cat " F[key] " &&"
23670 '$ac_cs_awk_pipe_init
23671 # The final `:' finishes the AND list.
23672 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23673 fi
23674 ac_cr=`echo X | tr X '\015'`
23675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23676 # But we know of no other shell where ac_cr would be empty at this
23677 # point, so we can use a bashism as a fallback.
23678 if test "x$ac_cr" = x; then
23679 eval ac_cr=\$\'\\r\'
23680 fi
23681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23683 ac_cs_awk_cr='\r'
23684 else
23685 ac_cs_awk_cr=$ac_cr
23686 fi
23687
23688 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23689 _ACEOF
23690
23691 # Create commands to substitute file output variables.
23692 {
23693 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23694 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23695 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23696 echo "_ACAWK" &&
23697 echo "_ACEOF"
23698 } >conf$$files.sh &&
23699 . ./conf$$files.sh ||
23700 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23701 rm -f conf$$files.sh
23702
23703 {
23704 echo "cat >conf$$subs.awk <<_ACEOF" &&
23705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23706 echo "_ACEOF"
23707 } >conf$$subs.sh ||
23708 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23709 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23710 ac_delim='%!_!# '
23711 for ac_last_try in false false false false false :; do
23712 . ./conf$$subs.sh ||
23713 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23714
23715 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23716 if test $ac_delim_n = $ac_delim_num; then
23717 break
23718 elif $ac_last_try; then
23719 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23720 else
23721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23722 fi
23723 done
23724 rm -f conf$$subs.sh
23725
23726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23727 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23728 _ACEOF
23729 sed -n '
23730 h
23731 s/^/S["/; s/!.*/"]=/
23732 p
23733 g
23734 s/^[^!]*!//
23735 :repl
23736 t repl
23737 s/'"$ac_delim"'$//
23738 t delim
23739 :nl
23740 h
23741 s/\(.\{148\}\)..*/\1/
23742 t more1
23743 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23744 p
23745 n
23746 b repl
23747 :more1
23748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23749 p
23750 g
23751 s/.\{148\}//
23752 t nl
23753 :delim
23754 h
23755 s/\(.\{148\}\)..*/\1/
23756 t more2
23757 s/["\\]/\\&/g; s/^/"/; s/$/"/
23758 p
23759 b
23760 :more2
23761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23762 p
23763 g
23764 s/.\{148\}//
23765 t delim
23766 ' <conf$$subs.awk | sed '
23767 /^[^""]/{
23768 N
23769 s/\n//
23770 }
23771 ' >>$CONFIG_STATUS || ac_write_fail=1
23772 rm -f conf$$subs.awk
23773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23774 _ACAWK
23775 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23776 for (key in S) S_is_set[key] = 1
23777 FS = "\a"
23778 \$ac_cs_awk_pipe_init
23779 }
23780 {
23781 line = $ 0
23782 nfields = split(line, field, "@")
23783 substed = 0
23784 len = length(field[1])
23785 for (i = 2; i < nfields; i++) {
23786 key = field[i]
23787 keylen = length(key)
23788 if (S_is_set[key]) {
23789 value = S[key]
23790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23791 len += length(value) + length(field[++i])
23792 substed = 1
23793 } else
23794 len += 1 + keylen
23795 }
23796 if (nfields == 3 && !substed) {
23797 key = field[2]
23798 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23799 \$ac_cs_awk_read_file
23800 next
23801 }
23802 }
23803 print line
23804 }
23805 \$ac_cs_awk_pipe_fini
23806 _ACAWK
23807 _ACEOF
23808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23811 else
23812 cat
23813 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23814 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23815 _ACEOF
23816
23817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23819 # trailing colons and then remove the whole line if VPATH becomes empty
23820 # (actually we leave an empty line to preserve line numbers).
23821 if test "x$srcdir" = x.; then
23822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23823 s/:*\$(srcdir):*/:/
23824 s/:*\${srcdir}:*/:/
23825 s/:*@srcdir@:*/:/
23826 s/^\([^=]*=[ ]*\):*/\1/
23827 s/:*$//
23828 s/^[^=]*=[ ]*$//
23829 }'
23830 fi
23831
23832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23833 fi # test -n "$CONFIG_FILES"
23834
23835 # Set up the scripts for CONFIG_HEADERS section.
23836 # No need to generate them if there are no CONFIG_HEADERS.
23837 # This happens for instance with `./config.status Makefile'.
23838 if test -n "$CONFIG_HEADERS"; then
23839 cat >"$tmp/defines.awk" <<\_ACAWK ||
23840 BEGIN {
23841 _ACEOF
23842
23843 # Transform confdefs.h into an awk script `defines.awk', embedded as
23844 # here-document in config.status, that substitutes the proper values into
23845 # config.h.in to produce config.h.
23846
23847 # Create a delimiter string that does not exist in confdefs.h, to ease
23848 # handling of long lines.
23849 ac_delim='%!_!# '
23850 for ac_last_try in false false :; do
23851 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23852 if test -z "$ac_t"; then
23853 break
23854 elif $ac_last_try; then
23855 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23856 else
23857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23858 fi
23859 done
23860
23861 # For the awk script, D is an array of macro values keyed by name,
23862 # likewise P contains macro parameters if any. Preserve backslash
23863 # newline sequences.
23864
23865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23866 sed -n '
23867 s/.\{148\}/&'"$ac_delim"'/g
23868 t rset
23869 :rset
23870 s/^[ ]*#[ ]*define[ ][ ]*/ /
23871 t def
23872 d
23873 :def
23874 s/\\$//
23875 t bsnl
23876 s/["\\]/\\&/g
23877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23878 D["\1"]=" \3"/p
23879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23880 d
23881 :bsnl
23882 s/["\\]/\\&/g
23883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23884 D["\1"]=" \3\\\\\\n"\\/p
23885 t cont
23886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23887 t cont
23888 d
23889 :cont
23890 n
23891 s/.\{148\}/&'"$ac_delim"'/g
23892 t clear
23893 :clear
23894 s/\\$//
23895 t bsnlc
23896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23897 d
23898 :bsnlc
23899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23900 b cont
23901 ' <confdefs.h | sed '
23902 s/'"$ac_delim"'/"\\\
23903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23904
23905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23906 for (key in D) D_is_set[key] = 1
23907 FS = "\a"
23908 }
23909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23910 line = \$ 0
23911 split(line, arg, " ")
23912 if (arg[1] == "#") {
23913 defundef = arg[2]
23914 mac1 = arg[3]
23915 } else {
23916 defundef = substr(arg[1], 2)
23917 mac1 = arg[2]
23918 }
23919 split(mac1, mac2, "(") #)
23920 macro = mac2[1]
23921 prefix = substr(line, 1, index(line, defundef) - 1)
23922 if (D_is_set[macro]) {
23923 # Preserve the white space surrounding the "#".
23924 print prefix "define", macro P[macro] D[macro]
23925 next
23926 } else {
23927 # Replace #undef with comments. This is necessary, for example,
23928 # in the case of _POSIX_SOURCE, which is predefined and required
23929 # on some systems where configure will not decide to define it.
23930 if (defundef == "undef") {
23931 print "/*", prefix defundef, macro, "*/"
23932 next
23933 }
23934 }
23935 }
23936 { print }
23937 _ACAWK
23938 _ACEOF
23939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23940 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23941 fi # test -n "$CONFIG_HEADERS"
23942
23943
23944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23945 shift
23946 for ac_tag
23947 do
23948 case $ac_tag in
23949 :[FHLC]) ac_mode=$ac_tag; continue;;
23950 esac
23951 case $ac_mode$ac_tag in
23952 :[FHL]*:*);;
23953 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23954 :[FH]-) ac_tag=-:-;;
23955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23956 esac
23957 ac_save_IFS=$IFS
23958 IFS=:
23959 set x $ac_tag
23960 IFS=$ac_save_IFS
23961 shift
23962 ac_file=$1
23963 shift
23964
23965 case $ac_mode in
23966 :L) ac_source=$1;;
23967 :[FH])
23968 ac_file_inputs=
23969 for ac_f
23970 do
23971 case $ac_f in
23972 -) ac_f="$tmp/stdin";;
23973 *) # Look for the file first in the build tree, then in the source tree
23974 # (if the path is not absolute). The absolute path cannot be DOS-style,
23975 # because $ac_f cannot contain `:'.
23976 test -f "$ac_f" ||
23977 case $ac_f in
23978 [\\/$]*) false;;
23979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23980 esac ||
23981 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23982 esac
23983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23984 as_fn_append ac_file_inputs " '$ac_f'"
23985 done
23986
23987 # Let's still pretend it is `configure' which instantiates (i.e., don't
23988 # use $as_me), people would be surprised to read:
23989 # /* config.h. Generated by config.status. */
23990 configure_input='Generated from '`
23991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23992 `' by configure.'
23993 if test x"$ac_file" != x-; then
23994 configure_input="$ac_file. $configure_input"
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23996 $as_echo "$as_me: creating $ac_file" >&6;}
23997 fi
23998 # Neutralize special characters interpreted by sed in replacement strings.
23999 case $configure_input in #(
24000 *\&* | *\|* | *\\* )
24001 ac_sed_conf_input=`$as_echo "$configure_input" |
24002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24003 *) ac_sed_conf_input=$configure_input;;
24004 esac
24005
24006 case $ac_tag in
24007 *:-:* | *:-) cat >"$tmp/stdin" \
24008 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24009 esac
24010 ;;
24011 esac
24012
24013 ac_dir=`$as_dirname -- "$ac_file" ||
24014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015 X"$ac_file" : 'X\(//\)[^/]' \| \
24016 X"$ac_file" : 'X\(//\)$' \| \
24017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24018 $as_echo X"$ac_file" |
24019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24020 s//\1/
24021 q
24022 }
24023 /^X\(\/\/\)[^/].*/{
24024 s//\1/
24025 q
24026 }
24027 /^X\(\/\/\)$/{
24028 s//\1/
24029 q
24030 }
24031 /^X\(\/\).*/{
24032 s//\1/
24033 q
24034 }
24035 s/.*/./; q'`
24036 as_dir="$ac_dir"; as_fn_mkdir_p
24037 ac_builddir=.
24038
24039 case "$ac_dir" in
24040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24041 *)
24042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24043 # A ".." for each directory in $ac_dir_suffix.
24044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24045 case $ac_top_builddir_sub in
24046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24048 esac ;;
24049 esac
24050 ac_abs_top_builddir=$ac_pwd
24051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24052 # for backward compatibility:
24053 ac_top_builddir=$ac_top_build_prefix
24054
24055 case $srcdir in
24056 .) # We are building in place.
24057 ac_srcdir=.
24058 ac_top_srcdir=$ac_top_builddir_sub
24059 ac_abs_top_srcdir=$ac_pwd ;;
24060 [\\/]* | ?:[\\/]* ) # Absolute name.
24061 ac_srcdir=$srcdir$ac_dir_suffix;
24062 ac_top_srcdir=$srcdir
24063 ac_abs_top_srcdir=$srcdir ;;
24064 *) # Relative name.
24065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24066 ac_top_srcdir=$ac_top_build_prefix$srcdir
24067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24068 esac
24069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24070
24071
24072 case $ac_mode in
24073 :F)
24074 #
24075 # CONFIG_FILE
24076 #
24077
24078 case $INSTALL in
24079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24081 esac
24082 ac_MKDIR_P=$MKDIR_P
24083 case $MKDIR_P in
24084 [\\/$]* | ?:[\\/]* ) ;;
24085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24086 esac
24087 _ACEOF
24088
24089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24090 # If the template does not know about datarootdir, expand it.
24091 # FIXME: This hack should be removed a few years after 2.60.
24092 ac_datarootdir_hack=; ac_datarootdir_seen=
24093 ac_sed_dataroot='
24094 /datarootdir/ {
24095 p
24096 q
24097 }
24098 /@datadir@/p
24099 /@docdir@/p
24100 /@infodir@/p
24101 /@localedir@/p
24102 /@mandir@/p'
24103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24104 *datarootdir*) ac_datarootdir_seen=yes;;
24105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24108 _ACEOF
24109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24110 ac_datarootdir_hack='
24111 s&@datadir@&$datadir&g
24112 s&@docdir@&$docdir&g
24113 s&@infodir@&$infodir&g
24114 s&@localedir@&$localedir&g
24115 s&@mandir@&$mandir&g
24116 s&\\\${datarootdir}&$datarootdir&g' ;;
24117 esac
24118 _ACEOF
24119
24120 # Neutralize VPATH when `$srcdir' = `.'.
24121 # Shell code in configure.ac might set extrasub.
24122 # FIXME: do we really want to maintain this feature?
24123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24124 ac_sed_extra="$ac_vpsub
24125 $extrasub
24126 _ACEOF
24127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24128 :t
24129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24130 s|@configure_input@|$ac_sed_conf_input|;t t
24131 s&@top_builddir@&$ac_top_builddir_sub&;t t
24132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24133 s&@srcdir@&$ac_srcdir&;t t
24134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24135 s&@top_srcdir@&$ac_top_srcdir&;t t
24136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24137 s&@builddir@&$ac_builddir&;t t
24138 s&@abs_builddir@&$ac_abs_builddir&;t t
24139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24140 s&@INSTALL@&$ac_INSTALL&;t t
24141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24142 $ac_datarootdir_hack
24143 "
24144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24145 if $ac_cs_awk_getline; then
24146 $AWK -f "$tmp/subs.awk"
24147 else
24148 $AWK -f "$tmp/subs.awk" | $SHELL
24149 fi >$tmp/out \
24150 || as_fn_error "could not create $ac_file" "$LINENO" 5
24151
24152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24156 which seems to be undefined. Please make sure it is defined." >&5
24157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24158 which seems to be undefined. Please make sure it is defined." >&2;}
24159
24160 rm -f "$tmp/stdin"
24161 case $ac_file in
24162 -) cat "$tmp/out" && rm -f "$tmp/out";;
24163 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24164 esac \
24165 || as_fn_error "could not create $ac_file" "$LINENO" 5
24166 ;;
24167 :H)
24168 #
24169 # CONFIG_HEADER
24170 #
24171 if test x"$ac_file" != x-; then
24172 {
24173 $as_echo "/* $configure_input */" \
24174 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24175 } >"$tmp/config.h" \
24176 || as_fn_error "could not create $ac_file" "$LINENO" 5
24177 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24180 else
24181 rm -f "$ac_file"
24182 mv "$tmp/config.h" "$ac_file" \
24183 || as_fn_error "could not create $ac_file" "$LINENO" 5
24184 fi
24185 else
24186 $as_echo "/* $configure_input */" \
24187 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24188 || as_fn_error "could not create -" "$LINENO" 5
24189 fi
24190 # Compute "$ac_file"'s index in $config_headers.
24191 _am_arg="$ac_file"
24192 _am_stamp_count=1
24193 for _am_header in $config_headers :; do
24194 case $_am_header in
24195 $_am_arg | $_am_arg:* )
24196 break ;;
24197 * )
24198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24199 esac
24200 done
24201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24203 X"$_am_arg" : 'X\(//\)[^/]' \| \
24204 X"$_am_arg" : 'X\(//\)$' \| \
24205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24206 $as_echo X"$_am_arg" |
24207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24208 s//\1/
24209 q
24210 }
24211 /^X\(\/\/\)[^/].*/{
24212 s//\1/
24213 q
24214 }
24215 /^X\(\/\/\)$/{
24216 s//\1/
24217 q
24218 }
24219 /^X\(\/\).*/{
24220 s//\1/
24221 q
24222 }
24223 s/.*/./; q'`/stamp-h$_am_stamp_count
24224 ;;
24225
24226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24227 $as_echo "$as_me: executing $ac_file commands" >&6;}
24228 ;;
24229 esac
24230
24231
24232 case $ac_file$ac_mode in
24233 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24234 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24235 # are listed without --file. Let's play safe and only enable the eval
24236 # if we detect the quoting.
24237 case $CONFIG_FILES in
24238 *\'*) eval set x "$CONFIG_FILES" ;;
24239 *) set x $CONFIG_FILES ;;
24240 esac
24241 shift
24242 for mf
24243 do
24244 # Strip MF so we end up with the name of the file.
24245 mf=`echo "$mf" | sed -e 's/:.*$//'`
24246 # Check whether this is an Automake generated Makefile or not.
24247 # We used to match only the files named `Makefile.in', but
24248 # some people rename them; so instead we look at the file content.
24249 # Grep'ing the first line is not enough: some people post-process
24250 # each Makefile.in and add a new line on top of each file to say so.
24251 # Grep'ing the whole file is not good either: AIX grep has a line
24252 # limit of 2048, but all sed's we know have understand at least 4000.
24253 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24254 dirpart=`$as_dirname -- "$mf" ||
24255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24256 X"$mf" : 'X\(//\)[^/]' \| \
24257 X"$mf" : 'X\(//\)$' \| \
24258 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24259 $as_echo X"$mf" |
24260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24261 s//\1/
24262 q
24263 }
24264 /^X\(\/\/\)[^/].*/{
24265 s//\1/
24266 q
24267 }
24268 /^X\(\/\/\)$/{
24269 s//\1/
24270 q
24271 }
24272 /^X\(\/\).*/{
24273 s//\1/
24274 q
24275 }
24276 s/.*/./; q'`
24277 else
24278 continue
24279 fi
24280 # Extract the definition of DEPDIR, am__include, and am__quote
24281 # from the Makefile without running `make'.
24282 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24283 test -z "$DEPDIR" && continue
24284 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24285 test -z "am__include" && continue
24286 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24287 # When using ansi2knr, U may be empty or an underscore; expand it
24288 U=`sed -n 's/^U = //p' < "$mf"`
24289 # Find all dependency output files, they are included files with
24290 # $(DEPDIR) in their names. We invoke sed twice because it is the
24291 # simplest approach to changing $(DEPDIR) to its actual value in the
24292 # expansion.
24293 for file in `sed -n "
24294 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24295 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24296 # Make sure the directory exists.
24297 test -f "$dirpart/$file" && continue
24298 fdir=`$as_dirname -- "$file" ||
24299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300 X"$file" : 'X\(//\)[^/]' \| \
24301 X"$file" : 'X\(//\)$' \| \
24302 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24303 $as_echo X"$file" |
24304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24305 s//\1/
24306 q
24307 }
24308 /^X\(\/\/\)[^/].*/{
24309 s//\1/
24310 q
24311 }
24312 /^X\(\/\/\)$/{
24313 s//\1/
24314 q
24315 }
24316 /^X\(\/\).*/{
24317 s//\1/
24318 q
24319 }
24320 s/.*/./; q'`
24321 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24322 # echo "creating $dirpart/$file"
24323 echo '# dummy' > "$dirpart/$file"
24324 done
24325 done
24326 }
24327 ;;
24328 "mkdirs":C)
24329 for dir in etc lisp ; do
24330 test -d ${dir} || mkdir ${dir}
24331 done
24332 ;;
24333 "epaths":C)
24334 echo creating src/epaths.h
24335 ${MAKE-make} epaths-force
24336 ;;
24337 "gdbinit":C)
24338 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24339 echo creating src/.gdbinit
24340 echo source $srcdir/src/.gdbinit > src/.gdbinit
24341 fi
24342 ;;
24343
24344 esac
24345 done # for ac_tag
24346
24347
24348 as_fn_exit 0
24349 _ACEOF
24350 ac_clean_files=$ac_clean_files_save
24351
24352 test $ac_write_fail = 0 ||
24353 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24354
24355
24356 # configure is writing to config.log, and then calls config.status.
24357 # config.status does its own redirection, appending to config.log.
24358 # Unfortunately, on DOS this fails, as config.log is still kept open
24359 # by configure, so config.status won't be able to write to it; its
24360 # output is simply discarded. So we exec the FD to /dev/null,
24361 # effectively closing config.log, so it can be properly (re)opened and
24362 # appended to by config.status. When coming back to configure, we
24363 # need to make the FD available again.
24364 if test "$no_create" != yes; then
24365 ac_cs_success=:
24366 ac_config_status_args=
24367 test "$silent" = yes &&
24368 ac_config_status_args="$ac_config_status_args --quiet"
24369 exec 5>/dev/null
24370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24371 exec 5>>config.log
24372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24373 # would make configure fail if this is the last instruction.
24374 $ac_cs_success || as_fn_exit $?
24375 fi
24376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24379 fi
24380
24381