]> code.delx.au - gnu-emacs/blob - autogen/configure
Support IF NOT EXISTS in SQL declarations
[gnu-emacs] / 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.3.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.3.50'
553 PACKAGE_STRING='emacs 24.3.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 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 LTLIBINTL
639 LIBINTL
640 LIB_EACCESS
641 WINDOWS_64_BIT_OFF_T
642 HAVE_UNISTD_H
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
644 NEXT_UNISTD_H
645 LIB_TIMER_TIME
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
650 NEXT_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
653 NEXT_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
655 NEXT_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
657 NEXT_STDIO_H
658 REPLACE_VSPRINTF
659 REPLACE_VSNPRINTF
660 REPLACE_VPRINTF
661 REPLACE_VFPRINTF
662 REPLACE_VDPRINTF
663 REPLACE_VASPRINTF
664 REPLACE_TMPFILE
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
667 REPLACE_SPRINTF
668 REPLACE_SNPRINTF
669 REPLACE_RENAMEAT
670 REPLACE_RENAME
671 REPLACE_REMOVE
672 REPLACE_PRINTF
673 REPLACE_POPEN
674 REPLACE_PERROR
675 REPLACE_OBSTACK_PRINTF
676 REPLACE_GETLINE
677 REPLACE_GETDELIM
678 REPLACE_FTELLO
679 REPLACE_FTELL
680 REPLACE_FSEEKO
681 REPLACE_FSEEK
682 REPLACE_FREOPEN
683 REPLACE_FPURGE
684 REPLACE_FPRINTF
685 REPLACE_FOPEN
686 REPLACE_FFLUSH
687 REPLACE_FDOPEN
688 REPLACE_FCLOSE
689 REPLACE_DPRINTF
690 HAVE_VDPRINTF
691 HAVE_VASPRINTF
692 HAVE_RENAMEAT
693 HAVE_POPEN
694 HAVE_PCLOSE
695 HAVE_FTELLO
696 HAVE_FSEEKO
697 HAVE_DPRINTF
698 HAVE_DECL_VSNPRINTF
699 HAVE_DECL_SNPRINTF
700 HAVE_DECL_OBSTACK_PRINTF
701 HAVE_DECL_GETLINE
702 HAVE_DECL_GETDELIM
703 HAVE_DECL_FTELLO
704 HAVE_DECL_FSEEKO
705 HAVE_DECL_FPURGE
706 GNULIB_VSPRINTF_POSIX
707 GNULIB_VSNPRINTF
708 GNULIB_VPRINTF_POSIX
709 GNULIB_VPRINTF
710 GNULIB_VFPRINTF_POSIX
711 GNULIB_VFPRINTF
712 GNULIB_VDPRINTF
713 GNULIB_VSCANF
714 GNULIB_VFSCANF
715 GNULIB_VASPRINTF
716 GNULIB_TMPFILE
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
719 GNULIB_SPRINTF_POSIX
720 GNULIB_SNPRINTF
721 GNULIB_SCANF
722 GNULIB_RENAMEAT
723 GNULIB_RENAME
724 GNULIB_REMOVE
725 GNULIB_PUTS
726 GNULIB_PUTCHAR
727 GNULIB_PUTC
728 GNULIB_PRINTF_POSIX
729 GNULIB_PRINTF
730 GNULIB_POPEN
731 GNULIB_PERROR
732 GNULIB_PCLOSE
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
735 GNULIB_GETLINE
736 GNULIB_GETDELIM
737 GNULIB_GETCHAR
738 GNULIB_GETC
739 GNULIB_FWRITE
740 GNULIB_FTELLO
741 GNULIB_FTELL
742 GNULIB_FSEEKO
743 GNULIB_FSEEK
744 GNULIB_FSCANF
745 GNULIB_FREOPEN
746 GNULIB_FREAD
747 GNULIB_FPUTS
748 GNULIB_FPUTC
749 GNULIB_FPURGE
750 GNULIB_FPRINTF_POSIX
751 GNULIB_FPRINTF
752 GNULIB_FOPEN
753 GNULIB_FGETS
754 GNULIB_FGETC
755 GNULIB_FFLUSH
756 GNULIB_FDOPEN
757 GNULIB_FCLOSE
758 GNULIB_DPRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
760 NEXT_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
763 STDDEF_H
764 HAVE_WCHAR_T
765 REPLACE_NULL
766 HAVE__BOOL
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
769 STDBOOL_H
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
772 STDARG_H
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
774 NEXT_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
777 STDALIGN_H
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
779 NEXT_SIGNAL_H
780 LIB_PTHREAD_SIGMASK
781 REPLACE_RAISE
782 REPLACE_PTHREAD_SIGMASK
783 HAVE_SIGHANDLER_T
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
786 HAVE_SIGACTION
787 HAVE_SIGINFO_T
788 HAVE_SIGSET_T
789 HAVE_RAISE
790 HAVE_PTHREAD_SIGMASK
791 HAVE_POSIX_SIGNALBLOCKING
792 GNULIB_SIGACTION
793 GNULIB_SIGPROCMASK
794 GNULIB_SIGNAL_H_SIGPIPE
795 GNULIB_RAISE
796 GNULIB_PTHREAD_SIGMASK
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 REPLACE_TIMEGM
806 REPLACE_NANOSLEEP
807 REPLACE_MKTIME
808 REPLACE_LOCALTIME_R
809 HAVE_TIMEGM
810 HAVE_STRPTIME
811 HAVE_NANOSLEEP
812 HAVE_DECL_LOCALTIME_R
813 GNULIB_TIME_R
814 GNULIB_TIMEGM
815 GNULIB_STRPTIME
816 GNULIB_NANOSLEEP
817 GNULIB_MKTIME
818 REPLACE_UTIMENSAT
819 REPLACE_STAT
820 REPLACE_MKNOD
821 REPLACE_MKFIFO
822 REPLACE_MKDIR
823 REPLACE_LSTAT
824 REPLACE_FUTIMENS
825 REPLACE_FSTATAT
826 REPLACE_FSTAT
827 HAVE_UTIMENSAT
828 HAVE_MKNODAT
829 HAVE_MKNOD
830 HAVE_MKFIFOAT
831 HAVE_MKFIFO
832 HAVE_MKDIRAT
833 HAVE_LSTAT
834 HAVE_LCHMOD
835 HAVE_FUTIMENS
836 HAVE_FSTATAT
837 HAVE_FCHMODAT
838 GNULIB_UTIMENSAT
839 GNULIB_STAT
840 GNULIB_MKNODAT
841 GNULIB_MKNOD
842 GNULIB_MKFIFOAT
843 GNULIB_MKFIFO
844 GNULIB_MKDIRAT
845 GNULIB_LSTAT
846 GNULIB_LCHMOD
847 GNULIB_FUTIMENS
848 GNULIB_FSTATAT
849 GNULIB_FSTAT
850 GNULIB_FCHMODAT
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
852 NEXT_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
855 PRIPTR_PREFIX
856 PRI_MACROS_BROKEN
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
859 REPLACE_STRTOIMAX
860 HAVE_DECL_STRTOUMAX
861 HAVE_DECL_STRTOIMAX
862 HAVE_DECL_IMAXDIV
863 HAVE_DECL_IMAXABS
864 GNULIB_STRTOUMAX
865 GNULIB_STRTOIMAX
866 GNULIB_IMAXDIV
867 GNULIB_IMAXABS
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
870 STDINT_H
871 WINT_T_SUFFIX
872 WCHAR_T_SUFFIX
873 SIG_ATOMIC_T_SUFFIX
874 SIZE_T_SUFFIX
875 PTRDIFF_T_SUFFIX
876 HAVE_SIGNED_WINT_T
877 HAVE_SIGNED_WCHAR_T
878 HAVE_SIGNED_SIG_ATOMIC_T
879 BITSIZEOF_WINT_T
880 BITSIZEOF_WCHAR_T
881 BITSIZEOF_SIG_ATOMIC_T
882 BITSIZEOF_SIZE_T
883 BITSIZEOF_PTRDIFF_T
884 APPLE_UNIVERSAL_BUILD
885 HAVE_SYS_BITYPES_H
886 HAVE_SYS_INTTYPES_H
887 HAVE_STDINT_H
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
889 NEXT_STDINT_H
890 HAVE_SYS_TYPES_H
891 HAVE_INTTYPES_H
892 HAVE_WCHAR_H
893 HAVE_UNSIGNED_LONG_LONG_INT
894 HAVE_LONG_LONG_INT
895 HAVE_WINSOCK2_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
897 NEXT_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
899 REPLACE_GETTIMEOFDAY
900 HAVE_SYS_TIME_H
901 HAVE_STRUCT_TIMEVAL
902 HAVE_GETTIMEOFDAY
903 GNULIB_GETTIMEOFDAY
904 GNULIB_GL_UNISTD_H_GETOPT
905 GETOPT_H
906 HAVE_GETOPT_H
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
908 NEXT_GETOPT_H
909 GETLOADAVG_LIBS
910 REPLACE_WCTOMB
911 REPLACE_UNSETENV
912 REPLACE_STRTOD
913 REPLACE_SETENV
914 REPLACE_REALPATH
915 REPLACE_REALLOC
916 REPLACE_RANDOM_R
917 REPLACE_PUTENV
918 REPLACE_PTSNAME_R
919 REPLACE_PTSNAME
920 REPLACE_MKSTEMP
921 REPLACE_MBTOWC
922 REPLACE_MALLOC
923 REPLACE_CANONICALIZE_FILE_NAME
924 REPLACE_CALLOC
925 HAVE_DECL_UNSETENV
926 HAVE_UNLOCKPT
927 HAVE_SYS_LOADAVG_H
928 HAVE_STRUCT_RANDOM_DATA
929 HAVE_STRTOULL
930 HAVE_STRTOLL
931 HAVE_STRTOD
932 HAVE_DECL_SETENV
933 HAVE_SETENV
934 HAVE_RPMATCH
935 HAVE_REALPATH
936 HAVE_RANDOM_R
937 HAVE_RANDOM_H
938 HAVE_RANDOM
939 HAVE_PTSNAME_R
940 HAVE_PTSNAME
941 HAVE_POSIX_OPENPT
942 HAVE_MKSTEMPS
943 HAVE_MKSTEMP
944 HAVE_MKOSTEMPS
945 HAVE_MKOSTEMP
946 HAVE_MKDTEMP
947 HAVE_GRANTPT
948 HAVE_GETSUBOPT
949 HAVE_DECL_GETLOADAVG
950 HAVE_CANONICALIZE_FILE_NAME
951 HAVE_ATOLL
952 HAVE__EXIT
953 GNULIB_WCTOMB
954 GNULIB_UNSETENV
955 GNULIB_UNLOCKPT
956 GNULIB_SYSTEM_POSIX
957 GNULIB_STRTOULL
958 GNULIB_STRTOLL
959 GNULIB_STRTOD
960 GNULIB_SETENV
961 GNULIB_RPMATCH
962 GNULIB_REALPATH
963 GNULIB_REALLOC_POSIX
964 GNULIB_RANDOM_R
965 GNULIB_RANDOM
966 GNULIB_PUTENV
967 GNULIB_PTSNAME_R
968 GNULIB_PTSNAME
969 GNULIB_POSIX_OPENPT
970 GNULIB_MKSTEMPS
971 GNULIB_MKSTEMP
972 GNULIB_MKOSTEMPS
973 GNULIB_MKOSTEMP
974 GNULIB_MKDTEMP
975 GNULIB_MBTOWC
976 GNULIB_MALLOC_POSIX
977 GNULIB_GRANTPT
978 GNULIB_GETSUBOPT
979 GNULIB_GETLOADAVG
980 GNULIB_CANONICALIZE_FILE_NAME
981 GNULIB_CALLOC_POSIX
982 GNULIB_ATOLL
983 GNULIB__EXIT
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
985 NEXT_FCNTL_H
986 PRAGMA_COLUMNS
987 PRAGMA_SYSTEM_HEADER
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
989 INCLUDE_NEXT
990 REPLACE_OPENAT
991 REPLACE_OPEN
992 REPLACE_FCNTL
993 HAVE_OPENAT
994 HAVE_FCNTL
995 GNULIB_OPENAT
996 GNULIB_OPEN
997 GNULIB_NONBLOCKING
998 GNULIB_FCNTL
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1001 LIB_EXECINFO
1002 EXECINFO_H
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1005 REPLACE_WRITE
1006 REPLACE_USLEEP
1007 REPLACE_UNLINKAT
1008 REPLACE_UNLINK
1009 REPLACE_TTYNAME_R
1010 REPLACE_SYMLINK
1011 REPLACE_SLEEP
1012 REPLACE_RMDIR
1013 REPLACE_READLINK
1014 REPLACE_READ
1015 REPLACE_PWRITE
1016 REPLACE_PREAD
1017 REPLACE_LSEEK
1018 REPLACE_LINKAT
1019 REPLACE_LINK
1020 REPLACE_LCHOWN
1021 REPLACE_ISATTY
1022 REPLACE_GETPAGESIZE
1023 REPLACE_GETGROUPS
1024 REPLACE_GETLOGIN_R
1025 REPLACE_GETDOMAINNAME
1026 REPLACE_GETCWD
1027 REPLACE_FTRUNCATE
1028 REPLACE_FCHOWNAT
1029 REPLACE_DUP2
1030 REPLACE_DUP
1031 REPLACE_CLOSE
1032 REPLACE_CHOWN
1033 HAVE_SYS_PARAM_H
1034 HAVE_OS_H
1035 HAVE_DECL_TTYNAME_R
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1041 HAVE_DECL_FDATASYNC
1042 HAVE_DECL_FCHDIR
1043 HAVE_DECL_ENVIRON
1044 HAVE_USLEEP
1045 HAVE_UNLINKAT
1046 HAVE_SYMLINKAT
1047 HAVE_SYMLINK
1048 HAVE_SLEEP
1049 HAVE_SETHOSTNAME
1050 HAVE_READLINKAT
1051 HAVE_READLINK
1052 HAVE_PWRITE
1053 HAVE_PREAD
1054 HAVE_PIPE2
1055 HAVE_PIPE
1056 HAVE_LINKAT
1057 HAVE_LINK
1058 HAVE_LCHOWN
1059 HAVE_GROUP_MEMBER
1060 HAVE_GETPAGESIZE
1061 HAVE_GETLOGIN
1062 HAVE_GETHOSTNAME
1063 HAVE_GETGROUPS
1064 HAVE_GETDTABLESIZE
1065 HAVE_FTRUNCATE
1066 HAVE_FSYNC
1067 HAVE_FDATASYNC
1068 HAVE_FCHOWNAT
1069 HAVE_FCHDIR
1070 HAVE_FACCESSAT
1071 HAVE_EUIDACCESS
1072 HAVE_DUP3
1073 HAVE_DUP2
1074 HAVE_CHOWN
1075 GNULIB_WRITE
1076 GNULIB_USLEEP
1077 GNULIB_UNLINKAT
1078 GNULIB_UNLINK
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1081 GNULIB_TTYNAME_R
1082 GNULIB_SYMLINKAT
1083 GNULIB_SYMLINK
1084 GNULIB_SLEEP
1085 GNULIB_SETHOSTNAME
1086 GNULIB_RMDIR
1087 GNULIB_READLINKAT
1088 GNULIB_READLINK
1089 GNULIB_READ
1090 GNULIB_PWRITE
1091 GNULIB_PREAD
1092 GNULIB_PIPE2
1093 GNULIB_PIPE
1094 GNULIB_LSEEK
1095 GNULIB_LINKAT
1096 GNULIB_LINK
1097 GNULIB_LCHOWN
1098 GNULIB_ISATTY
1099 GNULIB_GROUP_MEMBER
1100 GNULIB_GETUSERSHELL
1101 GNULIB_GETPAGESIZE
1102 GNULIB_GETLOGIN_R
1103 GNULIB_GETLOGIN
1104 GNULIB_GETHOSTNAME
1105 GNULIB_GETGROUPS
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1108 GNULIB_GETCWD
1109 GNULIB_FTRUNCATE
1110 GNULIB_FSYNC
1111 GNULIB_FDATASYNC
1112 GNULIB_FCHOWNAT
1113 GNULIB_FCHDIR
1114 GNULIB_FACCESSAT
1115 GNULIB_EUIDACCESS
1116 GNULIB_ENVIRON
1117 GNULIB_DUP3
1118 GNULIB_DUP2
1119 GNULIB_DUP
1120 GNULIB_CLOSE
1121 GNULIB_CHOWN
1122 GNULIB_CHDIR
1123 LIB_CLOCK_GETTIME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1126 ALLOCA_H
1127 ALLOCA
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1130 POST_ALLOC_OBJ
1131 PRE_ALLOC_OBJ
1132 CYGWIN_OBJ
1133 RALLOC_OBJ
1134 OLDXMENU_DEPS
1135 LIBX_OTHER
1136 LIBXMENU
1137 OLDXMENU
1138 OLDXMENU_TARGET
1139 LIBXT_OTHER
1140 TOOLKIT_LIBW
1141 WIDGET_OBJ
1142 XOBJ
1143 XMENU_OBJ
1144 FONT_OBJ
1145 OTHER_FILES
1146 GNU_OBJC_CFLAGS
1147 ns_appsrc
1148 ns_appresdir
1149 ns_appbindir
1150 ns_appdir
1151 X_TOOLKIT_TYPE
1152 GNUSTEP_CFLAGS
1153 C_SWITCH_X_SITE
1154 LD_SWITCH_X_SITE
1155 gameuser
1156 gamedir
1157 bitmapdir
1158 archlibdir
1159 etcdir
1160 x_default_search_path
1161 lisppath
1162 locallisppath
1163 standardlisppath
1164 leimdir
1165 lispdir
1166 srcdir
1167 canonical
1168 configuration
1169 version
1170 copyright
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 BLESSMAIL_TARGET
1181 LIBS_MAIL
1182 liblockfile
1183 LIBXML2_LIBS
1184 LIBXML2_CFLAGS
1185 LIBXSM
1186 LIBGPM
1187 LIBGIF
1188 LIBTIFF
1189 LIBPNG
1190 LIBJPEG
1191 LIBXPM
1192 M17N_FLT_LIBS
1193 M17N_FLT_CFLAGS
1194 LIBOTF_LIBS
1195 LIBOTF_CFLAGS
1196 FREETYPE_LIBS
1197 FREETYPE_CFLAGS
1198 XFT_LIBS
1199 XFT_CFLAGS
1200 FONTCONFIG_LIBS
1201 FONTCONFIG_CFLAGS
1202 LIBXMU
1203 LIBXTR6
1204 LIBGNUTLS_LIBS
1205 LIBGNUTLS_CFLAGS
1206 LIBSELINUX_LIBS
1207 SETTINGS_LIBS
1208 SETTINGS_CFLAGS
1209 GOBJECT_LIBS
1210 GOBJECT_CFLAGS
1211 GCONF_LIBS
1212 GCONF_CFLAGS
1213 GSETTINGS_LIBS
1214 GSETTINGS_CFLAGS
1215 DBUS_OBJ
1216 DBUS_LIBS
1217 DBUS_CFLAGS
1218 GTK_OBJ
1219 GTK_LIBS
1220 GTK_CFLAGS
1221 IMAGEMAGICK_LIBS
1222 IMAGEMAGICK_CFLAGS
1223 RSVG_LIBS
1224 RSVG_CFLAGS
1225 LIB_PTHREAD
1226 VMLIMIT_OBJ
1227 GMALLOC_OBJ
1228 HAVE_XSERVER
1229 W32_LIBS
1230 W32_OBJ
1231 LIB_STANDARD
1232 NS_OBJC_OBJ
1233 NS_OBJ
1234 ns_self_contained
1235 INSTALL_ARCH_INDEP_EXTRA
1236 TEMACS_LDFLAGS2
1237 LD_SWITCH_X_SITE_RPATH
1238 XMKMF
1239 DEPFLAGS
1240 MKDEPDIR
1241 CFLAGS_SOUND
1242 ALSA_LIBS
1243 ALSA_CFLAGS
1244 LIBSOUND
1245 PKG_CONFIG
1246 CRT_DIR
1247 START_FILES
1248 LIB_MATH
1249 LIBS_SYSTEM
1250 C_SWITCH_SYSTEM
1251 UNEXEC_OBJ
1252 C_SWITCH_MACHINE
1253 LD_SWITCH_SYSTEM
1254 CANNOT_DUMP
1255 INFO_OPTS
1256 INFO_EXT
1257 HAVE_MAKEINFO
1258 PAXCTL
1259 GZIP_PROG
1260 INSTALL_INFO
1261 LN_S
1262 GNULIB_WARN_CFLAGS
1263 WARN_CFLAGS
1264 WERROR_CFLAGS
1265 RANLIB
1266 ARFLAGS
1267 AR
1268 EGREP
1269 GREP
1270 CPP
1271 am__fastdepCC_FALSE
1272 am__fastdepCC_TRUE
1273 CCDEPMODE
1274 AMDEPBACKSLASH
1275 AMDEP_FALSE
1276 AMDEP_TRUE
1277 am__quote
1278 am__include
1279 DEPDIR
1280 OBJEXT
1281 EXEEXT
1282 ac_ct_CC
1283 CPPFLAGS
1284 LDFLAGS
1285 CFLAGS
1286 CC
1287 host_os
1288 host_vendor
1289 host_cpu
1290 host
1291 build_os
1292 build_vendor
1293 build_cpu
1294 build
1295 PROFILING_CFLAGS
1296 GZIP_INFO
1297 cache_file
1298 am__untar
1299 am__tar
1300 AMTAR
1301 am__leading_dot
1302 SET_MAKE
1303 AWK
1304 mkdir_p
1305 MKDIR_P
1306 INSTALL_STRIP_PROGRAM
1307 STRIP
1308 install_sh
1309 MAKEINFO
1310 AUTOHEADER
1311 AUTOMAKE
1312 AUTOCONF
1313 ACLOCAL
1314 VERSION
1315 PACKAGE
1316 CYGPATH_W
1317 am__isrc
1318 INSTALL_DATA
1319 INSTALL_SCRIPT
1320 INSTALL_PROGRAM
1321 target_alias
1322 host_alias
1323 build_alias
1324 LIBS
1325 ECHO_T
1326 ECHO_N
1327 ECHO_C
1328 DEFS
1329 mandir
1330 localedir
1331 libdir
1332 psdir
1333 pdfdir
1334 dvidir
1335 htmldir
1336 infodir
1337 docdir
1338 oldincludedir
1339 includedir
1340 localstatedir
1341 sharedstatedir
1342 sysconfdir
1343 datadir
1344 datarootdir
1345 libexecdir
1346 sbindir
1347 bindir
1348 program_transform_name
1349 prefix
1350 exec_prefix
1351 PACKAGE_URL
1352 PACKAGE_BUGREPORT
1353 PACKAGE_STRING
1354 PACKAGE_VERSION
1355 PACKAGE_TARNAME
1356 PACKAGE_NAME
1357 PATH_SEPARATOR
1358 SHELL'
1359 ac_subst_files='deps_frag
1360 lisp_frag'
1361 ac_user_opts='
1362 enable_option_checking
1363 with_all
1364 with_pop
1365 with_kerberos
1366 with_kerberos5
1367 with_hesiod
1368 with_mmdf
1369 with_mail_unlink
1370 with_mailhost
1371 with_sound
1372 with_x_toolkit
1373 with_wide_int
1374 with_xpm
1375 with_jpeg
1376 with_tiff
1377 with_gif
1378 with_png
1379 with_rsvg
1380 with_xml2
1381 with_imagemagick
1382 with_xft
1383 with_libotf
1384 with_m17n_flt
1385 with_toolkit_scroll_bars
1386 with_xaw3d
1387 with_xim
1388 with_ns
1389 with_w32
1390 with_gpm
1391 with_dbus
1392 with_gconf
1393 with_gsettings
1394 with_selinux
1395 with_gnutls
1396 with_makeinfo
1397 with_compress_info
1398 with_pkg_config_prog
1399 with_crt_dir
1400 with_gameuser
1401 with_gnustep_conf
1402 enable_ns_self_contained
1403 enable_locallisppath
1404 enable_checking
1405 enable_check_lisp_object_type
1406 enable_profiling
1407 enable_autodepend
1408 enable_dependency_tracking
1409 enable_largefile
1410 enable_gcc_warnings
1411 enable_link_time_optimization
1412 with_x
1413 '
1414 ac_precious_vars='build_alias
1415 host_alias
1416 target_alias
1417 CC
1418 CFLAGS
1419 LDFLAGS
1420 LIBS
1421 CPPFLAGS
1422 CPP
1423 XMKMF'
1424
1425
1426 # Initialize some variables set by options.
1427 ac_init_help=
1428 ac_init_version=false
1429 ac_unrecognized_opts=
1430 ac_unrecognized_sep=
1431 # The variables have the same names as the options, with
1432 # dashes changed to underlines.
1433 cache_file=/dev/null
1434 exec_prefix=NONE
1435 no_create=
1436 no_recursion=
1437 prefix=NONE
1438 program_prefix=NONE
1439 program_suffix=NONE
1440 program_transform_name=s,x,x,
1441 silent=
1442 site=
1443 srcdir=
1444 verbose=
1445 x_includes=NONE
1446 x_libraries=NONE
1447
1448 # Installation directory options.
1449 # These are left unexpanded so users can "make install exec_prefix=/foo"
1450 # and all the variables that are supposed to be based on exec_prefix
1451 # by default will actually change.
1452 # Use braces instead of parens because sh, perl, etc. also accept them.
1453 # (The list follows the same order as the GNU Coding Standards.)
1454 bindir='${exec_prefix}/bin'
1455 sbindir='${exec_prefix}/sbin'
1456 libexecdir='${exec_prefix}/libexec'
1457 datarootdir='${prefix}/share'
1458 datadir='${datarootdir}'
1459 sysconfdir='${prefix}/etc'
1460 sharedstatedir='${prefix}/com'
1461 localstatedir='${prefix}/var'
1462 includedir='${prefix}/include'
1463 oldincludedir='/usr/include'
1464 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1465 infodir='${datarootdir}/info'
1466 htmldir='${docdir}'
1467 dvidir='${docdir}'
1468 pdfdir='${docdir}'
1469 psdir='${docdir}'
1470 libdir='${exec_prefix}/lib'
1471 localedir='${datarootdir}/locale'
1472 mandir='${datarootdir}/man'
1473
1474 ac_prev=
1475 ac_dashdash=
1476 for ac_option
1477 do
1478 # If the previous option needs an argument, assign it.
1479 if test -n "$ac_prev"; then
1480 eval $ac_prev=\$ac_option
1481 ac_prev=
1482 continue
1483 fi
1484
1485 case $ac_option in
1486 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1487 *) ac_optarg=yes ;;
1488 esac
1489
1490 # Accept the important Cygnus configure options, so we can diagnose typos.
1491
1492 case $ac_dashdash$ac_option in
1493 --)
1494 ac_dashdash=yes ;;
1495
1496 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1497 ac_prev=bindir ;;
1498 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1499 bindir=$ac_optarg ;;
1500
1501 -build | --build | --buil | --bui | --bu)
1502 ac_prev=build_alias ;;
1503 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1504 build_alias=$ac_optarg ;;
1505
1506 -cache-file | --cache-file | --cache-fil | --cache-fi \
1507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1508 ac_prev=cache_file ;;
1509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1511 cache_file=$ac_optarg ;;
1512
1513 --config-cache | -C)
1514 cache_file=config.cache ;;
1515
1516 -datadir | --datadir | --datadi | --datad)
1517 ac_prev=datadir ;;
1518 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1519 datadir=$ac_optarg ;;
1520
1521 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1522 | --dataroo | --dataro | --datar)
1523 ac_prev=datarootdir ;;
1524 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1525 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1526 datarootdir=$ac_optarg ;;
1527
1528 -disable-* | --disable-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error "invalid feature name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537 "enable_$ac_useropt"
1538 "*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval enable_$ac_useropt=no ;;
1543
1544 -docdir | --docdir | --docdi | --doc | --do)
1545 ac_prev=docdir ;;
1546 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1547 docdir=$ac_optarg ;;
1548
1549 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1550 ac_prev=dvidir ;;
1551 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1552 dvidir=$ac_optarg ;;
1553
1554 -enable-* | --enable-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1558 as_fn_error "invalid feature name: $ac_useropt"
1559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563 "enable_$ac_useropt"
1564 "*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval enable_$ac_useropt=\$ac_optarg ;;
1569
1570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1572 | --exec | --exe | --ex)
1573 ac_prev=exec_prefix ;;
1574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1576 | --exec=* | --exe=* | --ex=*)
1577 exec_prefix=$ac_optarg ;;
1578
1579 -gas | --gas | --ga | --g)
1580 # Obsolete; use --with-gas.
1581 with_gas=yes ;;
1582
1583 -help | --help | --hel | --he | -h)
1584 ac_init_help=long ;;
1585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1586 ac_init_help=recursive ;;
1587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1588 ac_init_help=short ;;
1589
1590 -host | --host | --hos | --ho)
1591 ac_prev=host_alias ;;
1592 -host=* | --host=* | --hos=* | --ho=*)
1593 host_alias=$ac_optarg ;;
1594
1595 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1596 ac_prev=htmldir ;;
1597 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1598 | --ht=*)
1599 htmldir=$ac_optarg ;;
1600
1601 -includedir | --includedir | --includedi | --included | --include \
1602 | --includ | --inclu | --incl | --inc)
1603 ac_prev=includedir ;;
1604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1605 | --includ=* | --inclu=* | --incl=* | --inc=*)
1606 includedir=$ac_optarg ;;
1607
1608 -infodir | --infodir | --infodi | --infod | --info | --inf)
1609 ac_prev=infodir ;;
1610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1611 infodir=$ac_optarg ;;
1612
1613 -libdir | --libdir | --libdi | --libd)
1614 ac_prev=libdir ;;
1615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1616 libdir=$ac_optarg ;;
1617
1618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1619 | --libexe | --libex | --libe)
1620 ac_prev=libexecdir ;;
1621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1622 | --libexe=* | --libex=* | --libe=*)
1623 libexecdir=$ac_optarg ;;
1624
1625 -localedir | --localedir | --localedi | --localed | --locale)
1626 ac_prev=localedir ;;
1627 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1628 localedir=$ac_optarg ;;
1629
1630 -localstatedir | --localstatedir | --localstatedi | --localstated \
1631 | --localstate | --localstat | --localsta | --localst | --locals)
1632 ac_prev=localstatedir ;;
1633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1634 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1635 localstatedir=$ac_optarg ;;
1636
1637 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1638 ac_prev=mandir ;;
1639 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1640 mandir=$ac_optarg ;;
1641
1642 -nfp | --nfp | --nf)
1643 # Obsolete; use --without-fp.
1644 with_fp=no ;;
1645
1646 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1647 | --no-cr | --no-c | -n)
1648 no_create=yes ;;
1649
1650 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1651 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1652 no_recursion=yes ;;
1653
1654 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1655 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1656 | --oldin | --oldi | --old | --ol | --o)
1657 ac_prev=oldincludedir ;;
1658 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1659 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1660 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1661 oldincludedir=$ac_optarg ;;
1662
1663 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1664 ac_prev=prefix ;;
1665 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1666 prefix=$ac_optarg ;;
1667
1668 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1669 | --program-pre | --program-pr | --program-p)
1670 ac_prev=program_prefix ;;
1671 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1672 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1673 program_prefix=$ac_optarg ;;
1674
1675 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1676 | --program-suf | --program-su | --program-s)
1677 ac_prev=program_suffix ;;
1678 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1679 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1680 program_suffix=$ac_optarg ;;
1681
1682 -program-transform-name | --program-transform-name \
1683 | --program-transform-nam | --program-transform-na \
1684 | --program-transform-n | --program-transform- \
1685 | --program-transform | --program-transfor \
1686 | --program-transfo | --program-transf \
1687 | --program-trans | --program-tran \
1688 | --progr-tra | --program-tr | --program-t)
1689 ac_prev=program_transform_name ;;
1690 -program-transform-name=* | --program-transform-name=* \
1691 | --program-transform-nam=* | --program-transform-na=* \
1692 | --program-transform-n=* | --program-transform-=* \
1693 | --program-transform=* | --program-transfor=* \
1694 | --program-transfo=* | --program-transf=* \
1695 | --program-trans=* | --program-tran=* \
1696 | --progr-tra=* | --program-tr=* | --program-t=*)
1697 program_transform_name=$ac_optarg ;;
1698
1699 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1700 ac_prev=pdfdir ;;
1701 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1702 pdfdir=$ac_optarg ;;
1703
1704 -psdir | --psdir | --psdi | --psd | --ps)
1705 ac_prev=psdir ;;
1706 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1707 psdir=$ac_optarg ;;
1708
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 silent=yes ;;
1712
1713 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1714 ac_prev=sbindir ;;
1715 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1716 | --sbi=* | --sb=*)
1717 sbindir=$ac_optarg ;;
1718
1719 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1720 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1721 | --sharedst | --shareds | --shared | --share | --shar \
1722 | --sha | --sh)
1723 ac_prev=sharedstatedir ;;
1724 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1725 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1726 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1727 | --sha=* | --sh=*)
1728 sharedstatedir=$ac_optarg ;;
1729
1730 -site | --site | --sit)
1731 ac_prev=site ;;
1732 -site=* | --site=* | --sit=*)
1733 site=$ac_optarg ;;
1734
1735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1736 ac_prev=srcdir ;;
1737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1738 srcdir=$ac_optarg ;;
1739
1740 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1741 | --syscon | --sysco | --sysc | --sys | --sy)
1742 ac_prev=sysconfdir ;;
1743 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1744 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1745 sysconfdir=$ac_optarg ;;
1746
1747 -target | --target | --targe | --targ | --tar | --ta | --t)
1748 ac_prev=target_alias ;;
1749 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1750 target_alias=$ac_optarg ;;
1751
1752 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1753 verbose=yes ;;
1754
1755 -version | --version | --versio | --versi | --vers | -V)
1756 ac_init_version=: ;;
1757
1758 -with-* | --with-*)
1759 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1760 # Reject names that are not valid shell variable names.
1761 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1762 as_fn_error "invalid package name: $ac_useropt"
1763 ac_useropt_orig=$ac_useropt
1764 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765 case $ac_user_opts in
1766 *"
1767 "with_$ac_useropt"
1768 "*) ;;
1769 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1770 ac_unrecognized_sep=', ';;
1771 esac
1772 eval with_$ac_useropt=\$ac_optarg ;;
1773
1774 -without-* | --without-*)
1775 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1776 # Reject names that are not valid shell variable names.
1777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1778 as_fn_error "invalid package name: $ac_useropt"
1779 ac_useropt_orig=$ac_useropt
1780 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1781 case $ac_user_opts in
1782 *"
1783 "with_$ac_useropt"
1784 "*) ;;
1785 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1786 ac_unrecognized_sep=', ';;
1787 esac
1788 eval with_$ac_useropt=no ;;
1789
1790 --x)
1791 # Obsolete; use --with-x.
1792 with_x=yes ;;
1793
1794 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1795 | --x-incl | --x-inc | --x-in | --x-i)
1796 ac_prev=x_includes ;;
1797 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1798 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1799 x_includes=$ac_optarg ;;
1800
1801 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1802 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1803 ac_prev=x_libraries ;;
1804 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1805 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1806 x_libraries=$ac_optarg ;;
1807
1808 -*) as_fn_error "unrecognized option: \`$ac_option'
1809 Try \`$0 --help' for more information."
1810 ;;
1811
1812 *=*)
1813 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1814 # Reject names that are not valid shell variable names.
1815 case $ac_envvar in #(
1816 '' | [0-9]* | *[!_$as_cr_alnum]* )
1817 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1818 esac
1819 eval $ac_envvar=\$ac_optarg
1820 export $ac_envvar ;;
1821
1822 *)
1823 # FIXME: should be removed in autoconf 3.0.
1824 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1825 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1826 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1827 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1828 ;;
1829
1830 esac
1831 done
1832
1833 if test -n "$ac_prev"; then
1834 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1835 as_fn_error "missing argument to $ac_option"
1836 fi
1837
1838 if test -n "$ac_unrecognized_opts"; then
1839 case $enable_option_checking in
1840 no) ;;
1841 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1842 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1843 esac
1844 fi
1845
1846 # Check all directory arguments for consistency.
1847 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1848 datadir sysconfdir sharedstatedir localstatedir includedir \
1849 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1850 libdir localedir mandir
1851 do
1852 eval ac_val=\$$ac_var
1853 # Remove trailing slashes.
1854 case $ac_val in
1855 */ )
1856 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1857 eval $ac_var=\$ac_val;;
1858 esac
1859 # Be sure to have absolute directory names.
1860 case $ac_val in
1861 [\\/$]* | ?:[\\/]* ) continue;;
1862 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1863 esac
1864 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1865 done
1866
1867 # There might be people who depend on the old broken behavior: `$host'
1868 # used to hold the argument of --host etc.
1869 # FIXME: To remove some day.
1870 build=$build_alias
1871 host=$host_alias
1872 target=$target_alias
1873
1874 # FIXME: To remove some day.
1875 if test "x$host_alias" != x; then
1876 if test "x$build_alias" = x; then
1877 cross_compiling=maybe
1878 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1879 If a cross compiler is detected then cross compile mode will be used." >&2
1880 elif test "x$build_alias" != "x$host_alias"; then
1881 cross_compiling=yes
1882 fi
1883 fi
1884
1885 ac_tool_prefix=
1886 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1887
1888 test "$silent" = yes && exec 6>/dev/null
1889
1890
1891 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1892 ac_ls_di=`ls -di .` &&
1893 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1894 as_fn_error "working directory cannot be determined"
1895 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1896 as_fn_error "pwd does not report name of working directory"
1897
1898
1899 # Find the source files, if location was not specified.
1900 if test -z "$srcdir"; then
1901 ac_srcdir_defaulted=yes
1902 # Try the directory containing this script, then the parent directory.
1903 ac_confdir=`$as_dirname -- "$as_myself" ||
1904 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1905 X"$as_myself" : 'X\(//\)[^/]' \| \
1906 X"$as_myself" : 'X\(//\)$' \| \
1907 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1908 $as_echo X"$as_myself" |
1909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1910 s//\1/
1911 q
1912 }
1913 /^X\(\/\/\)[^/].*/{
1914 s//\1/
1915 q
1916 }
1917 /^X\(\/\/\)$/{
1918 s//\1/
1919 q
1920 }
1921 /^X\(\/\).*/{
1922 s//\1/
1923 q
1924 }
1925 s/.*/./; q'`
1926 srcdir=$ac_confdir
1927 if test ! -r "$srcdir/$ac_unique_file"; then
1928 srcdir=..
1929 fi
1930 else
1931 ac_srcdir_defaulted=no
1932 fi
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1935 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1936 fi
1937 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1938 ac_abs_confdir=`(
1939 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1940 pwd)`
1941 # When building in place, set srcdir=.
1942 if test "$ac_abs_confdir" = "$ac_pwd"; then
1943 srcdir=.
1944 fi
1945 # Remove unnecessary trailing slashes from srcdir.
1946 # Double slashes in file names in object file debugging info
1947 # mess up M-x gdb in Emacs.
1948 case $srcdir in
1949 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1950 esac
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1953 eval ac_env_${ac_var}_value=\$${ac_var}
1954 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1955 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1956 done
1957
1958 #
1959 # Report the --help message.
1960 #
1961 if test "$ac_init_help" = "long"; then
1962 # Omit some internal or obsolete options to make the list less imposing.
1963 # This message is too long to be a string in the A/UX 3.1 sh.
1964 cat <<_ACEOF
1965 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1966
1967 Usage: $0 [OPTION]... [VAR=VALUE]...
1968
1969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1970 VAR=VALUE. See below for descriptions of some of the useful variables.
1971
1972 Defaults for the options are specified in brackets.
1973
1974 Configuration:
1975 -h, --help display this help and exit
1976 --help=short display options specific to this package
1977 --help=recursive display the short help of all the included packages
1978 -V, --version display version information and exit
1979 -q, --quiet, --silent do not print \`checking...' messages
1980 --cache-file=FILE cache test results in FILE [disabled]
1981 -C, --config-cache alias for \`--cache-file=config.cache'
1982 -n, --no-create do not create output files
1983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1984
1985 Installation directories:
1986 --prefix=PREFIX install architecture-independent files in PREFIX
1987 [$ac_default_prefix]
1988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1989 [PREFIX]
1990
1991 By default, \`make install' will install all the files in
1992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1994 for instance \`--prefix=\$HOME'.
1995
1996 For better control, use the options below.
1997
1998 Fine tuning of the installation directories:
1999 --bindir=DIR user executables [EPREFIX/bin]
2000 --sbindir=DIR system admin executables [EPREFIX/sbin]
2001 --libexecdir=DIR program executables [EPREFIX/libexec]
2002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2005 --libdir=DIR object code libraries [EPREFIX/lib]
2006 --includedir=DIR C header files [PREFIX/include]
2007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2008 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2009 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2010 --infodir=DIR info documentation [DATAROOTDIR/info]
2011 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2012 --mandir=DIR man documentation [DATAROOTDIR/man]
2013 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2014 --htmldir=DIR html documentation [DOCDIR]
2015 --dvidir=DIR dvi documentation [DOCDIR]
2016 --pdfdir=DIR pdf documentation [DOCDIR]
2017 --psdir=DIR ps documentation [DOCDIR]
2018 _ACEOF
2019
2020 cat <<\_ACEOF
2021
2022 Program names:
2023 --program-prefix=PREFIX prepend PREFIX to installed program names
2024 --program-suffix=SUFFIX append SUFFIX to installed program names
2025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2026
2027 X features:
2028 --x-includes=DIR X include files are in DIR
2029 --x-libraries=DIR X library files are in DIR
2030
2031 System types:
2032 --build=BUILD configure for building on BUILD [guessed]
2033 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2034 _ACEOF
2035 fi
2036
2037 if test -n "$ac_init_help"; then
2038 case $ac_init_help in
2039 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2040 esac
2041 cat <<\_ACEOF
2042
2043 Optional Features:
2044 --disable-option-checking ignore unrecognized --enable/--with options
2045 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2046 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2047 --disable-ns-self-contained
2048 disable self contained build under NeXTstep
2049 --enable-locallisppath=PATH
2050 directories Emacs should search for lisp files
2051 specific to this site
2052 --enable-checking[=LIST]
2053 enable expensive run-time checks. With LIST, enable
2054 only specific categories of checks. Categories are:
2055 all,yes,no. Flags are: stringbytes, stringoverrun,
2056 stringfreelist, xmallocoverrun, conslist, glyphs
2057 --enable-check-lisp-object-type
2058 enable compile time checks for the Lisp_Object data
2059 type. This is useful for development for catching
2060 certain types of bugs.
2061 --enable-profiling build emacs with low-level, gprof profiling support.
2062 Mainly useful for debugging Emacs itself. May not
2063 work on all platforms. Stops profiler.el working.
2064 --enable-autodepend automatically generate dependencies to .h-files.
2065 Requires GNU Make and Gcc. Enabled if GNU Make and
2066 Gcc is found
2067 --disable-dependency-tracking speeds up one-time build
2068 --enable-dependency-tracking do not reject slow dependency extractors
2069 --disable-largefile omit support for large files
2070 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2071 developers, and may generate false alarms when used
2072 with older or non-GNU development tools.
2073 --enable-link-time-optimization
2074 build emacs with link-time optimization. This is
2075 supported only for GCC since 4.5.0.
2076
2077 Optional Packages:
2078 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2079 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2080 --without-all omit almost all features and build small executable
2081 with minimal dependencies
2082 --without-pop don't support POP mail retrieval with movemail
2083 --with-kerberos support Kerberos-authenticated POP
2084 --with-kerberos5 support Kerberos version 5 authenticated POP
2085 --with-hesiod support Hesiod to get the POP server host
2086 --with-mmdf support MMDF mailboxes
2087 --with-mail-unlink unlink, rather than empty, mail spool after reading
2088 --with-mailhost=HOSTNAME
2089 string giving default POP mail host
2090 --without-sound don't compile with sound support
2091 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2092 gtk3, lucid or athena, motif, no)
2093 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2094 --without-xpm don't compile with XPM image support
2095 --without-jpeg don't compile with JPEG image support
2096 --without-tiff don't compile with TIFF image support
2097 --without-gif don't compile with GIF image support
2098 --without-png don't compile with PNG image support
2099 --without-rsvg don't compile with SVG image support
2100 --without-xml2 don't compile with XML parsing support
2101 --without-imagemagick don't compile with ImageMagick image support
2102 --without-xft don't use XFT for anti aliased fonts
2103 --without-libotf don't use libotf for OpenType font support
2104 --without-m17n-flt don't use m17n-flt for text shaping
2105 --without-toolkit-scroll-bars
2106 don't use Motif or Xaw3d scroll bars
2107 --without-xaw3d don't use Xaw3d
2108 --without-xim don't use X11 XIM
2109 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2110 --with-w32 use native MS Windows GUI
2111 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2112 console
2113 --without-dbus don't compile with D-Bus support
2114 --without-gconf don't compile with GConf support
2115 --without-gsettings don't compile with GSettings support
2116 --without-selinux don't compile with SELinux support
2117 --without-gnutls don't use -lgnutls for SSL/TLS support
2118 --without-makeinfo don't require makeinfo for building manuals
2119 --without-compress-info don't compress the installed Info pages
2120 --with-pkg-config-prog=PATH
2121 path to pkg-config for finding GTK and librsvg
2122 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2123 /usr/lib, or /usr/lib64 on some platforms.
2124 --with-gameuser=USER user for shared game score files
2125 --with-gnustep-conf=PATH
2126 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2127 or /etc/GNUstep/GNUstep.conf
2128 --with-x use the X Window System
2129
2130 Some influential environment variables:
2131 CC C compiler command
2132 CFLAGS C compiler flags
2133 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2134 nonstandard directory <lib dir>
2135 LIBS libraries to pass to the linker, e.g. -l<library>
2136 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2137 you have headers in a nonstandard directory <include dir>
2138 CPP C preprocessor
2139 XMKMF Path to xmkmf, Makefile generator for X Window System
2140
2141 Use these variables to override the choices made by `configure' or to help
2142 it to find libraries and programs with nonstandard names/locations.
2143
2144 Report bugs to the package provider.
2145 _ACEOF
2146 ac_status=$?
2147 fi
2148
2149 if test "$ac_init_help" = "recursive"; then
2150 # If there are subdirs, report their specific --help.
2151 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2152 test -d "$ac_dir" ||
2153 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2154 continue
2155 ac_builddir=.
2156
2157 case "$ac_dir" in
2158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2159 *)
2160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2161 # A ".." for each directory in $ac_dir_suffix.
2162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2163 case $ac_top_builddir_sub in
2164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2166 esac ;;
2167 esac
2168 ac_abs_top_builddir=$ac_pwd
2169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2170 # for backward compatibility:
2171 ac_top_builddir=$ac_top_build_prefix
2172
2173 case $srcdir in
2174 .) # We are building in place.
2175 ac_srcdir=.
2176 ac_top_srcdir=$ac_top_builddir_sub
2177 ac_abs_top_srcdir=$ac_pwd ;;
2178 [\\/]* | ?:[\\/]* ) # Absolute name.
2179 ac_srcdir=$srcdir$ac_dir_suffix;
2180 ac_top_srcdir=$srcdir
2181 ac_abs_top_srcdir=$srcdir ;;
2182 *) # Relative name.
2183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2184 ac_top_srcdir=$ac_top_build_prefix$srcdir
2185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2186 esac
2187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2188
2189 cd "$ac_dir" || { ac_status=$?; continue; }
2190 # Check for guested configure.
2191 if test -f "$ac_srcdir/configure.gnu"; then
2192 echo &&
2193 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2194 elif test -f "$ac_srcdir/configure"; then
2195 echo &&
2196 $SHELL "$ac_srcdir/configure" --help=recursive
2197 else
2198 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2199 fi || ac_status=$?
2200 cd "$ac_pwd" || { ac_status=$?; break; }
2201 done
2202 fi
2203
2204 test -n "$ac_init_help" && exit $ac_status
2205 if $ac_init_version; then
2206 cat <<\_ACEOF
2207 emacs configure 24.3.50
2208 generated by GNU Autoconf 2.65
2209
2210 Copyright (C) 2009 Free Software Foundation, Inc.
2211 This configure script is free software; the Free Software Foundation
2212 gives unlimited permission to copy, distribute and modify it.
2213 _ACEOF
2214 exit
2215 fi
2216
2217 ## ------------------------ ##
2218 ## Autoconf initialization. ##
2219 ## ------------------------ ##
2220
2221 # ac_fn_c_try_compile LINENO
2222 # --------------------------
2223 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_compile ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext
2228 if { { ac_try="$ac_compile"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_compile") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest.$ac_objext; then :
2247 ac_retval=0
2248 else
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_retval=1
2253 fi
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2256
2257 } # ac_fn_c_try_compile
2258
2259 # ac_fn_c_try_cpp LINENO
2260 # ----------------------
2261 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2262 ac_fn_c_try_cpp ()
2263 {
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { { ac_try="$ac_cpp conftest.$ac_ext"
2266 case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } >/dev/null && {
2281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2282 test ! -s conftest.err
2283 }; then :
2284 ac_retval=0
2285 else
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290 fi
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 as_fn_set_status $ac_retval
2293
2294 } # ac_fn_c_try_cpp
2295
2296 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2297 # -------------------------------------------------------
2298 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2299 # the include files in INCLUDES and setting the cache variable VAR
2300 # accordingly.
2301 ac_fn_c_check_header_mongrel ()
2302 {
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309 fi
2310 eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 else
2314 # Is the header compilable?
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2316 $as_echo_n "checking $2 usability... " >&6; }
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 #include <$2>
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_header_compiler=yes
2324 else
2325 ac_header_compiler=no
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2329 $as_echo "$ac_header_compiler" >&6; }
2330
2331 # Is the header present?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2333 $as_echo_n "checking $2 presence... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2336 #include <$2>
2337 _ACEOF
2338 if ac_fn_c_try_cpp "$LINENO"; then :
2339 ac_header_preproc=yes
2340 else
2341 ac_header_preproc=no
2342 fi
2343 rm -f conftest.err conftest.$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2345 $as_echo "$ac_header_preproc" >&6; }
2346
2347 # So? What about this header?
2348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2349 yes:no: )
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2351 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 ;;
2355 no:yes:* )
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2357 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2359 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2361 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2363 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366 ;;
2367 esac
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 eval "$3=\$ac_header_compiler"
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 fi
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380
2381 } # ac_fn_c_check_header_mongrel
2382
2383 # ac_fn_c_try_run LINENO
2384 # ----------------------
2385 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2386 # that executables *can* be run.
2387 ac_fn_c_try_run ()
2388 {
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 if { { ac_try="$ac_link"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link") 2>&5
2398 ac_status=$?
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2401 { { case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_try") 2>&5
2408 ac_status=$?
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; }; }; then :
2411 ac_retval=0
2412 else
2413 $as_echo "$as_me: program exited with status $ac_status" >&5
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_retval=$ac_status
2418 fi
2419 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2422
2423 } # ac_fn_c_try_run
2424
2425 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2426 # -------------------------------------------------------
2427 # Tests whether HEADER exists and can be compiled using the include files in
2428 # INCLUDES, setting the cache variable VAR accordingly.
2429 ac_fn_c_check_header_compile ()
2430 {
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2439 $4
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443 eval "$3=yes"
2444 else
2445 eval "$3=no"
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453
2454 } # ac_fn_c_check_header_compile
2455
2456 # ac_fn_c_try_link LINENO
2457 # -----------------------
2458 # Try to link conftest.$ac_ext, and return whether this succeeded.
2459 ac_fn_c_try_link ()
2460 {
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { { ac_try="$ac_link"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469 $as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_link") 2>conftest.err
2471 ac_status=$?
2472 if test -s conftest.err; then
2473 grep -v '^ *+' conftest.err >conftest.er1
2474 cat conftest.er1 >&5
2475 mv -f conftest.er1 conftest.err
2476 fi
2477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2478 test $ac_status = 0; } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest$ac_exeext && {
2482 test "$cross_compiling" = yes ||
2483 $as_test_x conftest$ac_exeext
2484 }; then :
2485 ac_retval=0
2486 else
2487 $as_echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_retval=1
2491 fi
2492 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2493 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2494 # interfere with the next link command; also delete a directory that is
2495 # left behind by Apple's compiler. We do this before executing the actions.
2496 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2498 as_fn_set_status $ac_retval
2499
2500 } # ac_fn_c_try_link
2501
2502 # ac_fn_c_check_decl LINENO SYMBOL VAR
2503 # ------------------------------------
2504 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2505 ac_fn_c_check_decl ()
2506 {
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2509 $as_echo_n "checking whether $2 is declared... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $4
2516 int
2517 main ()
2518 {
2519 #ifndef $2
2520 (void) $2;
2521 #endif
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_c_check_decl
2540
2541 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2542 # ----------------------------------------------
2543 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2544 ac_fn_c_check_header_preproc ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 #include <$2>
2555 _ACEOF
2556 if ac_fn_c_try_cpp "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562 fi
2563 eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567
2568 } # ac_fn_c_check_header_preproc
2569
2570 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2571 # ----------------------------------------------------
2572 # Tries to find if the field MEMBER exists in type AGGR, after including
2573 # INCLUDES, setting cache variable VAR accordingly.
2574 ac_fn_c_check_member ()
2575 {
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2578 $as_echo_n "checking for $2.$3... " >&6; }
2579 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $5
2585 int
2586 main ()
2587 {
2588 static $2 ac_aggr;
2589 if (ac_aggr.$3)
2590 return 0;
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 eval "$4=yes"
2597 else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 $5
2601 int
2602 main ()
2603 {
2604 static $2 ac_aggr;
2605 if (sizeof ac_aggr.$3)
2606 return 0;
2607 ;
2608 return 0;
2609 }
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$4=yes"
2613 else
2614 eval "$4=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 eval ac_res=\$$4
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624
2625 } # ac_fn_c_check_member
2626
2627 # ac_fn_c_check_func LINENO FUNC VAR
2628 # ----------------------------------
2629 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2630 ac_fn_c_check_func ()
2631 {
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2634 $as_echo_n "checking for $2... " >&6; }
2635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2640 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2642 #define $2 innocuous_$2
2643
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $2 (); below.
2646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 <limits.h> exists even on freestanding compilers. */
2648
2649 #ifdef __STDC__
2650 # include <limits.h>
2651 #else
2652 # include <assert.h>
2653 #endif
2654
2655 #undef $2
2656
2657 /* Override any GCC internal prototype to avoid an error.
2658 Use char because int might match the return type of a GCC
2659 builtin and then its argument prototype would still apply. */
2660 #ifdef __cplusplus
2661 extern "C"
2662 #endif
2663 char $2 ();
2664 /* The GNU C library defines this for functions which it implements
2665 to always fail with ENOSYS. Some functions are actually named
2666 something starting with __ and the normal name is an alias. */
2667 #if defined __stub_$2 || defined __stub___$2
2668 choke me
2669 #endif
2670
2671 int
2672 main ()
2673 {
2674 return $2 ();
2675 ;
2676 return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_link "$LINENO"; then :
2680 eval "$3=yes"
2681 else
2682 eval "$3=no"
2683 fi
2684 rm -f core conftest.err conftest.$ac_objext \
2685 conftest$ac_exeext conftest.$ac_ext
2686 fi
2687 eval ac_res=\$$3
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691
2692 } # ac_fn_c_check_func
2693
2694 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2695 # -------------------------------------------
2696 # Tests whether TYPE exists after having included INCLUDES, setting cache
2697 # variable VAR accordingly.
2698 ac_fn_c_check_type ()
2699 {
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 eval "$3=no"
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 $4
2710 int
2711 main ()
2712 {
2713 if (sizeof ($2))
2714 return 0;
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2722 $4
2723 int
2724 main ()
2725 {
2726 if (sizeof (($2)))
2727 return 0;
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733
2734 else
2735 eval "$3=yes"
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745
2746 } # ac_fn_c_check_type
2747
2748 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2749 # --------------------------------------------
2750 # Tries to find the compile-time value of EXPR in a program that includes
2751 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2752 # computed
2753 ac_fn_c_compute_int ()
2754 {
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 if test "$cross_compiling" = yes; then
2757 # Depending upon the size, compute the lo and hi bounds.
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2760 $4
2761 int
2762 main ()
2763 {
2764 static int test_array [1 - 2 * !(($2) >= 0)];
2765 test_array [0] = 0
2766
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=0 ac_mid=0
2773 while :; do
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0
2782
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid; break
2789 else
2790 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2791 if test $ac_lo -le $ac_mid; then
2792 ac_lo= ac_hi=
2793 break
2794 fi
2795 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2796 fi
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 done
2799 else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2802 $4
2803 int
2804 main ()
2805 {
2806 static int test_array [1 - 2 * !(($2) < 0)];
2807 test_array [0] = 0
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=-1 ac_mid=-1
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2823 test_array [0] = 0
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_lo=$ac_mid; break
2831 else
2832 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2833 if test $ac_mid -le $ac_hi; then
2834 ac_lo= ac_hi=
2835 break
2836 fi
2837 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 else
2842 ac_lo= ac_hi=
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 # Binary search between lo and hi bounds.
2848 while test "x$ac_lo" != "x$ac_hi"; do
2849 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852 $4
2853 int
2854 main ()
2855 {
2856 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2857 test_array [0] = 0
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_hi=$ac_mid
2865 else
2866 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2867 fi
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 done
2870 case $ac_lo in #((
2871 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2872 '') ac_retval=1 ;;
2873 esac
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 $4
2878 static long int longval () { return $2; }
2879 static unsigned long int ulongval () { return $2; }
2880 #include <stdio.h>
2881 #include <stdlib.h>
2882 int
2883 main ()
2884 {
2885
2886 FILE *f = fopen ("conftest.val", "w");
2887 if (! f)
2888 return 1;
2889 if (($2) < 0)
2890 {
2891 long int i = longval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%ld", i);
2895 }
2896 else
2897 {
2898 unsigned long int i = ulongval ();
2899 if (i != ($2))
2900 return 1;
2901 fprintf (f, "%lu", i);
2902 }
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 if ac_fn_c_try_run "$LINENO"; then :
2912 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2913 else
2914 ac_retval=1
2915 fi
2916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2917 conftest.$ac_objext conftest.beam conftest.$ac_ext
2918 rm -f conftest.val
2919
2920 fi
2921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2922 as_fn_set_status $ac_retval
2923
2924 } # ac_fn_c_compute_int
2925 cat >config.log <<_ACEOF
2926 This file contains any messages produced by compilers while
2927 running configure, to aid debugging if configure makes a mistake.
2928
2929 It was created by emacs $as_me 24.3.50, which was
2930 generated by GNU Autoconf 2.65. Invocation command line was
2931
2932 $ $0 $@
2933
2934 _ACEOF
2935 exec 5>>config.log
2936 {
2937 cat <<_ASUNAME
2938 ## --------- ##
2939 ## Platform. ##
2940 ## --------- ##
2941
2942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2947
2948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2950
2951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2958
2959 _ASUNAME
2960
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 $as_echo "PATH: $as_dir"
2967 done
2968 IFS=$as_save_IFS
2969
2970 } >&5
2971
2972 cat >&5 <<_ACEOF
2973
2974
2975 ## ----------- ##
2976 ## Core tests. ##
2977 ## ----------- ##
2978
2979 _ACEOF
2980
2981
2982 # Keep a trace of the command line.
2983 # Strip out --no-create and --no-recursion so they do not pile up.
2984 # Strip out --silent because we don't want to record it for future runs.
2985 # Also quote any args containing shell meta-characters.
2986 # Make two passes to allow for proper duplicate-argument suppression.
2987 ac_configure_args=
2988 ac_configure_args0=
2989 ac_configure_args1=
2990 ac_must_keep_next=false
2991 for ac_pass in 1 2
2992 do
2993 for ac_arg
2994 do
2995 case $ac_arg in
2996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2998 | -silent | --silent | --silen | --sile | --sil)
2999 continue ;;
3000 *\'*)
3001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3002 esac
3003 case $ac_pass in
3004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3005 2)
3006 as_fn_append ac_configure_args1 " '$ac_arg'"
3007 if test $ac_must_keep_next = true; then
3008 ac_must_keep_next=false # Got value, back to normal.
3009 else
3010 case $ac_arg in
3011 *=* | --config-cache | -C | -disable-* | --disable-* \
3012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3014 | -with-* | --with-* | -without-* | --without-* | --x)
3015 case "$ac_configure_args0 " in
3016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3017 esac
3018 ;;
3019 -* ) ac_must_keep_next=true ;;
3020 esac
3021 fi
3022 as_fn_append ac_configure_args " '$ac_arg'"
3023 ;;
3024 esac
3025 done
3026 done
3027 { ac_configure_args0=; unset ac_configure_args0;}
3028 { ac_configure_args1=; unset ac_configure_args1;}
3029
3030 # When interrupted or exit'd, cleanup temporary files, and complete
3031 # config.log. We remove comments because anyway the quotes in there
3032 # would cause problems or look ugly.
3033 # WARNING: Use '\'' to represent an apostrophe within the trap.
3034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3035 trap 'exit_status=$?
3036 # Save into config.log some information that might help in debugging.
3037 {
3038 echo
3039
3040 cat <<\_ASBOX
3041 ## ---------------- ##
3042 ## Cache variables. ##
3043 ## ---------------- ##
3044 _ASBOX
3045 echo
3046 # The following way of writing the cache mishandles newlines in values,
3047 (
3048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3049 eval ac_val=\$$ac_var
3050 case $ac_val in #(
3051 *${as_nl}*)
3052 case $ac_var in #(
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3055 esac
3056 case $ac_var in #(
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3060 esac ;;
3061 esac
3062 done
3063 (set) 2>&1 |
3064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3066 sed -n \
3067 "s/'\''/'\''\\\\'\'''\''/g;
3068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3069 ;; #(
3070 *)
3071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3072 ;;
3073 esac |
3074 sort
3075 )
3076 echo
3077
3078 cat <<\_ASBOX
3079 ## ----------------- ##
3080 ## Output variables. ##
3081 ## ----------------- ##
3082 _ASBOX
3083 echo
3084 for ac_var in $ac_subst_vars
3085 do
3086 eval ac_val=\$$ac_var
3087 case $ac_val in
3088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3089 esac
3090 $as_echo "$ac_var='\''$ac_val'\''"
3091 done | sort
3092 echo
3093
3094 if test -n "$ac_subst_files"; then
3095 cat <<\_ASBOX
3096 ## ------------------- ##
3097 ## File substitutions. ##
3098 ## ------------------- ##
3099 _ASBOX
3100 echo
3101 for ac_var in $ac_subst_files
3102 do
3103 eval ac_val=\$$ac_var
3104 case $ac_val in
3105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3106 esac
3107 $as_echo "$ac_var='\''$ac_val'\''"
3108 done | sort
3109 echo
3110 fi
3111
3112 if test -s confdefs.h; then
3113 cat <<\_ASBOX
3114 ## ----------- ##
3115 ## confdefs.h. ##
3116 ## ----------- ##
3117 _ASBOX
3118 echo
3119 cat confdefs.h
3120 echo
3121 fi
3122 test "$ac_signal" != 0 &&
3123 $as_echo "$as_me: caught signal $ac_signal"
3124 $as_echo "$as_me: exit $exit_status"
3125 } >&5
3126 rm -f core *.core core.conftest.* &&
3127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3128 exit $exit_status
3129 ' 0
3130 for ac_signal in 1 2 13 15; do
3131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3132 done
3133 ac_signal=0
3134
3135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3136 rm -f -r conftest* confdefs.h
3137
3138 $as_echo "/* confdefs.h */" > confdefs.h
3139
3140 # Predefined preprocessor variables.
3141
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_NAME "$PACKAGE_NAME"
3144 _ACEOF
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3148 _ACEOF
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3152 _ACEOF
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_STRING "$PACKAGE_STRING"
3156 _ACEOF
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_URL "$PACKAGE_URL"
3164 _ACEOF
3165
3166
3167 # Let the site file select an alternate cache file if it wants to.
3168 # Prefer an explicitly selected file to automatically selected ones.
3169 ac_site_file1=NONE
3170 ac_site_file2=NONE
3171 if test -n "$CONFIG_SITE"; then
3172 ac_site_file1=$CONFIG_SITE
3173 elif test "x$prefix" != xNONE; then
3174 ac_site_file1=$prefix/share/config.site
3175 ac_site_file2=$prefix/etc/config.site
3176 else
3177 ac_site_file1=$ac_default_prefix/share/config.site
3178 ac_site_file2=$ac_default_prefix/etc/config.site
3179 fi
3180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3181 do
3182 test "x$ac_site_file" = xNONE && continue
3183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3186 sed 's/^/| /' "$ac_site_file" >&5
3187 . "$ac_site_file"
3188 fi
3189 done
3190
3191 if test -r "$cache_file"; then
3192 # Some versions of bash will fail to source /dev/null (special files
3193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3196 $as_echo "$as_me: loading cache $cache_file" >&6;}
3197 case $cache_file in
3198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3199 *) . "./$cache_file";;
3200 esac
3201 fi
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3204 $as_echo "$as_me: creating cache $cache_file" >&6;}
3205 >$cache_file
3206 fi
3207
3208 as_fn_append ac_header_list " linux/version.h"
3209 as_fn_append ac_header_list " sys/systeminfo.h"
3210 as_fn_append ac_header_list " coff.h"
3211 as_fn_append ac_header_list " pty.h"
3212 as_fn_append ac_header_list " sys/vlimit.h"
3213 as_fn_append ac_header_list " sys/resource.h"
3214 as_fn_append ac_header_list " sys/utsname.h"
3215 as_fn_append ac_header_list " pwd.h"
3216 as_fn_append ac_header_list " utmp.h"
3217 as_fn_append ac_header_list " dirent.h"
3218 as_fn_append ac_header_list " util.h"
3219 as_fn_append ac_header_list " sys/socket.h"
3220 as_fn_append ac_header_list " stdlib.h"
3221 as_fn_append ac_header_list " unistd.h"
3222 as_fn_append ac_header_list " sys/param.h"
3223 as_fn_append ac_header_list " pthread.h"
3224 as_fn_append ac_header_list " malloc/malloc.h"
3225 as_fn_append ac_header_list " maillock.h"
3226 as_fn_append ac_header_list " sys/un.h"
3227 as_fn_append ac_func_list " tzset"
3228 as_fn_append ac_func_list " readlinkat"
3229 as_fn_append ac_header_list " execinfo.h"
3230 as_fn_append ac_func_list " faccessat"
3231 as_fn_append ac_header_list " stdio_ext.h"
3232 as_fn_append ac_func_list " __fpending"
3233 gl_getopt_required=GNU
3234 as_fn_append ac_header_list " getopt.h"
3235 as_fn_append ac_func_list " gettimeofday"
3236 as_fn_append ac_func_list " nanotime"
3237 as_fn_append ac_header_list " sys/time.h"
3238 as_fn_append ac_header_list " wchar.h"
3239 as_fn_append ac_header_list " stdint.h"
3240 as_fn_append ac_header_list " inttypes.h"
3241 as_fn_append ac_func_list " lstat"
3242 as_fn_append ac_func_list " alarm"
3243 as_fn_append ac_header_list " sys/select.h"
3244 as_fn_append ac_func_list " pselect"
3245 as_fn_append ac_func_list " pthread_sigmask"
3246 as_fn_append ac_func_list " readlink"
3247 as_fn_append ac_func_list " strtoimax"
3248 as_fn_append ac_func_list " strtoumax"
3249 as_fn_append ac_func_list " symlink"
3250 as_fn_append ac_header_list " sys/stat.h"
3251 as_fn_append ac_func_list " localtime_r"
3252 as_fn_append ac_header_list " utime.h"
3253 as_fn_append ac_func_list " futimes"
3254 as_fn_append ac_func_list " futimesat"
3255 as_fn_append ac_func_list " futimens"
3256 as_fn_append ac_func_list " utimensat"
3257 as_fn_append ac_func_list " lutimes"
3258 # Check that the precious variables saved in the cache have kept the same
3259 # value.
3260 ac_cache_corrupted=false
3261 for ac_var in $ac_precious_vars; do
3262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3263 eval ac_new_set=\$ac_env_${ac_var}_set
3264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3265 eval ac_new_val=\$ac_env_${ac_var}_value
3266 case $ac_old_set,$ac_new_set in
3267 set,)
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3270 ac_cache_corrupted=: ;;
3271 ,set)
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3274 ac_cache_corrupted=: ;;
3275 ,);;
3276 *)
3277 if test "x$ac_old_val" != "x$ac_new_val"; then
3278 # differences in whitespace do not lead to failure.
3279 ac_old_val_w=`echo x $ac_old_val`
3280 ac_new_val_w=`echo x $ac_new_val`
3281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3284 ac_cache_corrupted=:
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3288 eval $ac_var=\$ac_old_val
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3294 fi;;
3295 esac
3296 # Pass precious variables to config.status.
3297 if test "$ac_new_set" = set; then
3298 case $ac_new_val in
3299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3300 *) ac_arg=$ac_var=$ac_new_val ;;
3301 esac
3302 case " $ac_configure_args " in
3303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3305 esac
3306 fi
3307 done
3308 if $ac_cache_corrupted; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3313 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3314 fi
3315 ## -------------------- ##
3316 ## Main body of script. ##
3317 ## -------------------- ##
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3327
3328
3329 ac_aux_dir=
3330 for ac_dir in build-aux "$srcdir"/build-aux; do
3331 for ac_t in install-sh install.sh shtool; do
3332 if test -f "$ac_dir/$ac_t"; then
3333 ac_aux_dir=$ac_dir
3334 ac_install_sh="$ac_aux_dir/$ac_t -c"
3335 break 2
3336 fi
3337 done
3338 done
3339 if test -z "$ac_aux_dir"; then
3340 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3341 fi
3342
3343 # These three variables are undocumented and unsupported,
3344 # and are intended to be withdrawn in a future Autoconf release.
3345 # They can cause serious problems if a builder's source tree is in a directory
3346 # whose full name contains unusual characters.
3347 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3348 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3349 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3350
3351
3352 am__api_version='1.11'
3353
3354 # Find a good install program. We prefer a C program (faster),
3355 # so one script is as good as another. But avoid the broken or
3356 # incompatible versions:
3357 # SysV /etc/install, /usr/sbin/install
3358 # SunOS /usr/etc/install
3359 # IRIX /sbin/install
3360 # AIX /bin/install
3361 # AmigaOS /C/install, which installs bootblocks on floppy discs
3362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365 # OS/2's system install, which has a completely different semantic
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 # Reject install programs that cannot install multiple files.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3369 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3370 if test -z "$INSTALL"; then
3371 if test "${ac_cv_path_install+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 # Account for people who put trailing slashes in PATH elements.
3380 case $as_dir/ in #((
3381 ./ | .// | /[cC]/* | \
3382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3384 /usr/ucb/* ) ;;
3385 *)
3386 # OSF1 and SCO ODT 3.0 have their own names for install.
3387 # Don't use installbsd from OSF since it installs stuff as root
3388 # by default.
3389 for ac_prog in ginstall scoinst install; do
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3392 if test $ac_prog = install &&
3393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3394 # AIX install. It has an incompatible calling convention.
3395 :
3396 elif test $ac_prog = install &&
3397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3398 # program-specific install script used by HP pwplus--don't use.
3399 :
3400 else
3401 rm -rf conftest.one conftest.two conftest.dir
3402 echo one > conftest.one
3403 echo two > conftest.two
3404 mkdir conftest.dir
3405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3406 test -s conftest.one && test -s conftest.two &&
3407 test -s conftest.dir/conftest.one &&
3408 test -s conftest.dir/conftest.two
3409 then
3410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3411 break 3
3412 fi
3413 fi
3414 fi
3415 done
3416 done
3417 ;;
3418 esac
3419
3420 done
3421 IFS=$as_save_IFS
3422
3423 rm -rf conftest.one conftest.two conftest.dir
3424
3425 fi
3426 if test "${ac_cv_path_install+set}" = set; then
3427 INSTALL=$ac_cv_path_install
3428 else
3429 # As a last resort, use the slow shell script. Don't cache a
3430 # value for INSTALL within a source directory, because that will
3431 # break other packages using the cache if that directory is
3432 # removed, or if the value is a relative name.
3433 INSTALL=$ac_install_sh
3434 fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3437 $as_echo "$INSTALL" >&6; }
3438
3439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3440 # It thinks the first close brace ends the variable substitution.
3441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3442
3443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3444
3445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3448 $as_echo_n "checking whether build environment is sane... " >&6; }
3449 # Just in case
3450 sleep 1
3451 echo timestamp > conftest.file
3452 # Reject unsafe characters in $srcdir or the absolute working directory
3453 # name. Accept space and tab only in the latter.
3454 am_lf='
3455 '
3456 case `pwd` in
3457 *[\\\"\#\$\&\'\`$am_lf]*)
3458 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3459 esac
3460 case $srcdir in
3461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3462 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3463 esac
3464
3465 # Do `set' in a subshell so we don't clobber the current shell's
3466 # arguments. Must try -L first in case configure is actually a
3467 # symlink; some systems play weird games with the mod time of symlinks
3468 # (eg FreeBSD returns the mod time of the symlink's containing
3469 # directory).
3470 if (
3471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3472 if test "$*" = "X"; then
3473 # -L didn't work.
3474 set X `ls -t "$srcdir/configure" conftest.file`
3475 fi
3476 rm -f conftest.file
3477 if test "$*" != "X $srcdir/configure conftest.file" \
3478 && test "$*" != "X conftest.file $srcdir/configure"; then
3479
3480 # If neither matched, then we have a broken ls. This can happen
3481 # if, for instance, CONFIG_SHELL is bash and it inherits a
3482 # broken ls alias from the environment. This has actually
3483 # happened. Such a system could not be considered "sane".
3484 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3485 alias in your environment" "$LINENO" 5
3486 fi
3487
3488 test "$2" = conftest.file
3489 )
3490 then
3491 # Ok.
3492 :
3493 else
3494 as_fn_error "newly created file is older than distributed files!
3495 Check your system clock" "$LINENO" 5
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 test "$program_prefix" != NONE &&
3500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3501 # Use a double $ so make ignores it.
3502 test "$program_suffix" != NONE &&
3503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3504 # Double any \ or $.
3505 # By default was `s,x,x', remove it if useless.
3506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3508
3509 # expand $ac_aux_dir to an absolute path
3510 am_aux_dir=`cd $ac_aux_dir && pwd`
3511
3512 if test x"${MISSING+set}" != xset; then
3513 case $am_aux_dir in
3514 *\ * | *\ *)
3515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3516 *)
3517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3518 esac
3519 fi
3520 # Use eval to expand $SHELL
3521 if eval "$MISSING --run true"; then
3522 am_missing_run="$MISSING --run "
3523 else
3524 am_missing_run=
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3526 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3527 fi
3528
3529 if test x"${install_sh}" != xset; then
3530 case $am_aux_dir in
3531 *\ * | *\ *)
3532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3533 *)
3534 install_sh="\${SHELL} $am_aux_dir/install-sh"
3535 esac
3536 fi
3537
3538 # Installed binaries are usually stripped using `strip' when the user
3539 # run `make install-strip'. However `strip' might not be the right
3540 # tool to use in cross-compilation environments, therefore Automake
3541 # will honor the `STRIP' environment variable to overrule this program.
3542 if test "$cross_compiling" != no; then
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}strip; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_STRIP+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$STRIP"; then
3552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 STRIP=$ac_cv_prog_STRIP
3572 if test -n "$STRIP"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3574 $as_echo "$STRIP" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 if test -z "$ac_cv_prog_STRIP"; then
3583 ac_ct_STRIP=$STRIP
3584 # Extract the first word of "strip", so it can be a program name with args.
3585 set dummy strip; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_STRIP"; then
3592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_STRIP="strip"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3612 if test -n "$ac_ct_STRIP"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3614 $as_echo "$ac_ct_STRIP" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620 if test "x$ac_ct_STRIP" = x; then
3621 STRIP=":"
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 STRIP=$ac_ct_STRIP
3630 fi
3631 else
3632 STRIP="$ac_cv_prog_STRIP"
3633 fi
3634
3635 fi
3636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3637
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3640 if test -z "$MKDIR_P"; then
3641 if test "${ac_cv_path_mkdir+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_prog in mkdir gmkdir; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3653 'mkdir (GNU coreutils) '* | \
3654 'mkdir (coreutils) '* | \
3655 'mkdir (fileutils) '4.1*)
3656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3657 break 3;;
3658 esac
3659 done
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 fi
3665
3666 test -d ./--version && rmdir ./--version
3667 if test "${ac_cv_path_mkdir+set}" = set; then
3668 MKDIR_P="$ac_cv_path_mkdir -p"
3669 else
3670 # As a last resort, use the slow shell script. Don't cache a
3671 # value for MKDIR_P within a source directory, because that will
3672 # break other packages using the cache if that directory is
3673 # removed, or if the value is a relative name.
3674 MKDIR_P="$ac_install_sh -d"
3675 fi
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3678 $as_echo "$MKDIR_P" >&6; }
3679
3680
3681 mkdir_p="$MKDIR_P"
3682 case $mkdir_p in
3683 [\\/$]* | ?:[\\/]*) ;;
3684 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3685 esac
3686
3687 for ac_prog in gawk mawk nawk awk
3688 do
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_AWK+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$AWK"; then
3697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_AWK="$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 AWK=$ac_cv_prog_AWK
3717 if test -n "$AWK"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3719 $as_echo "$AWK" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 test -n "$AWK" && break
3727 done
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3730 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3731 set x ${MAKE-make}
3732 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat >conftest.make <<\_ACEOF
3737 SHELL = /bin/sh
3738 all:
3739 @echo '@@@%%%=$(MAKE)=@@@%%%'
3740 _ACEOF
3741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3743 *@@@%%%=?*=@@@%%%*)
3744 eval ac_cv_prog_make_${ac_make}_set=yes;;
3745 *)
3746 eval ac_cv_prog_make_${ac_make}_set=no;;
3747 esac
3748 rm -f conftest.make
3749 fi
3750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752 $as_echo "yes" >&6; }
3753 SET_MAKE=
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 SET_MAKE="MAKE=${MAKE-make}"
3758 fi
3759
3760 rm -rf .tst 2>/dev/null
3761 mkdir .tst 2>/dev/null
3762 if test -d .tst; then
3763 am__leading_dot=.
3764 else
3765 am__leading_dot=_
3766 fi
3767 rmdir .tst 2>/dev/null
3768
3769 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771 # is not polluted with repeated "-I."
3772 am__isrc=' -I$(srcdir)'
3773 # test to see if srcdir already configured
3774 if test -f $srcdir/config.status; then
3775 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3776 fi
3777 fi
3778
3779 # test whether we have cygpath
3780 if test -z "$CYGPATH_W"; then
3781 if (cygpath --version) >/dev/null 2>/dev/null; then
3782 CYGPATH_W='cygpath -w'
3783 else
3784 CYGPATH_W=echo
3785 fi
3786 fi
3787
3788
3789 # Define the identity of the package.
3790 PACKAGE='emacs'
3791 VERSION='24.3.50'
3792
3793
3794 cat >>confdefs.h <<_ACEOF
3795 #define PACKAGE "$PACKAGE"
3796 _ACEOF
3797
3798
3799 cat >>confdefs.h <<_ACEOF
3800 #define VERSION "$VERSION"
3801 _ACEOF
3802
3803 # Some tools Automake needs.
3804
3805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3806
3807
3808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3809
3810
3811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3812
3813
3814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3815
3816
3817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818
3819 # We need awk for the "check" target. The system "awk" is bad on
3820 # some platforms.
3821 # Always define AMTAR for backward compatibility.
3822
3823 AMTAR=${AMTAR-"${am_missing_run}tar"}
3824
3825 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826
3827
3828
3829
3830
3831
3832
3833
3834 lispdir='${datadir}/emacs/${version}/lisp'
3835 leimdir='${datadir}/emacs/${version}/leim'
3836 standardlisppath='${lispdir}:${leimdir}'
3837 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3838 '${datadir}/emacs/site-lisp'
3839 lisppath='${locallisppath}:${standardlisppath}'
3840 etcdir='${datadir}/emacs/${version}/etc'
3841 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3842 docdir='${datadir}/emacs/${version}/etc'
3843 gamedir='${localstatedir}/games/emacs'
3844
3845
3846 # Check whether --with-all was given.
3847 if test "${with_all+set}" = set; then :
3848 withval=$with_all; with_features=$withval
3849 else
3850 with_features=yes
3851 fi
3852
3853
3854
3855
3856
3857 # Check whether --with-pop was given.
3858 if test "${with_pop+set}" = set; then :
3859 withval=$with_pop;
3860 else
3861 with_pop=$with_features
3862 fi
3863
3864 if test "$with_pop" = yes; then
3865 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3866
3867 fi
3868
3869
3870 # Check whether --with-kerberos was given.
3871 if test "${with_kerberos+set}" = set; then :
3872 withval=$with_kerberos;
3873 else
3874 with_kerberos=no
3875 fi
3876
3877 if test "$with_kerberos" != no; then
3878 $as_echo "#define KERBEROS 1" >>confdefs.h
3879
3880 fi
3881
3882
3883 # Check whether --with-kerberos5 was given.
3884 if test "${with_kerberos5+set}" = set; then :
3885 withval=$with_kerberos5;
3886 else
3887 with_kerberos5=no
3888 fi
3889
3890 if test "${with_kerberos5}" != no; then
3891 if test "${with_kerberos}" = no; then
3892 with_kerberos=yes
3893 $as_echo "#define KERBEROS 1" >>confdefs.h
3894
3895 fi
3896
3897 $as_echo "#define KERBEROS5 1" >>confdefs.h
3898
3899 fi
3900
3901
3902 # Check whether --with-hesiod was given.
3903 if test "${with_hesiod+set}" = set; then :
3904 withval=$with_hesiod;
3905 else
3906 with_hesiod=no
3907 fi
3908
3909 if test "$with_hesiod" != no; then
3910
3911 $as_echo "#define HESIOD 1" >>confdefs.h
3912
3913 fi
3914
3915
3916 # Check whether --with-mmdf was given.
3917 if test "${with_mmdf+set}" = set; then :
3918 withval=$with_mmdf;
3919 else
3920 with_mmdf=no
3921 fi
3922
3923 if test "$with_mmdf" != no; then
3924
3925 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3926
3927 fi
3928
3929
3930 # Check whether --with-mail-unlink was given.
3931 if test "${with_mail_unlink+set}" = set; then :
3932 withval=$with_mail_unlink;
3933 else
3934 with_mail_unlink=no
3935 fi
3936
3937 if test "$with_mail_unlink" != no; then
3938
3939 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3940
3941 fi
3942
3943
3944 # Check whether --with-mailhost was given.
3945 if test "${with_mailhost+set}" = set; then :
3946 withval=$with_mailhost;
3947 cat >>confdefs.h <<_ACEOF
3948 #define MAILHOST "$withval"
3949 _ACEOF
3950
3951 fi
3952
3953
3954
3955 # Check whether --with-sound was given.
3956 if test "${with_sound+set}" = set; then :
3957 withval=$with_sound;
3958 else
3959 with_sound=$with_features
3960 fi
3961
3962
3963
3964 # Check whether --with-x-toolkit was given.
3965 if test "${with_x_toolkit+set}" = set; then :
3966 withval=$with_x_toolkit; case "${withval}" in
3967 y | ye | yes ) val=gtk ;;
3968 n | no ) val=no ;;
3969 l | lu | luc | luci | lucid ) val=lucid ;;
3970 a | at | ath | athe | athen | athena ) val=athena ;;
3971 m | mo | mot | moti | motif ) val=motif ;;
3972 g | gt | gtk ) val=gtk ;;
3973 gtk2 ) val=gtk2 ;;
3974 gtk3 ) val=gtk3 ;;
3975 * )
3976 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3978 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3979 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3980 ;;
3981 esac
3982 with_x_toolkit=$val
3983
3984 fi
3985
3986
3987
3988 # Check whether --with-wide-int was given.
3989 if test "${with_wide_int+set}" = set; then :
3990 withval=$with_wide_int;
3991 else
3992 with_wide_int=no
3993 fi
3994
3995 if test "$with_wide_int" = yes; then
3996
3997 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3998
3999 fi
4000
4001
4002 # Check whether --with-xpm was given.
4003 if test "${with_xpm+set}" = set; then :
4004 withval=$with_xpm;
4005 else
4006 with_xpm=$with_features
4007 fi
4008
4009
4010 # Check whether --with-jpeg was given.
4011 if test "${with_jpeg+set}" = set; then :
4012 withval=$with_jpeg;
4013 else
4014 with_jpeg=$with_features
4015 fi
4016
4017
4018 # Check whether --with-tiff was given.
4019 if test "${with_tiff+set}" = set; then :
4020 withval=$with_tiff;
4021 else
4022 with_tiff=$with_features
4023 fi
4024
4025
4026 # Check whether --with-gif was given.
4027 if test "${with_gif+set}" = set; then :
4028 withval=$with_gif;
4029 else
4030 with_gif=$with_features
4031 fi
4032
4033
4034 # Check whether --with-png was given.
4035 if test "${with_png+set}" = set; then :
4036 withval=$with_png;
4037 else
4038 with_png=$with_features
4039 fi
4040
4041
4042 # Check whether --with-rsvg was given.
4043 if test "${with_rsvg+set}" = set; then :
4044 withval=$with_rsvg;
4045 else
4046 with_rsvg=$with_features
4047 fi
4048
4049
4050 # Check whether --with-xml2 was given.
4051 if test "${with_xml2+set}" = set; then :
4052 withval=$with_xml2;
4053 else
4054 with_xml2=$with_features
4055 fi
4056
4057
4058 # Check whether --with-imagemagick was given.
4059 if test "${with_imagemagick+set}" = set; then :
4060 withval=$with_imagemagick;
4061 else
4062 with_imagemagick=$with_features
4063 fi
4064
4065
4066
4067 # Check whether --with-xft was given.
4068 if test "${with_xft+set}" = set; then :
4069 withval=$with_xft;
4070 else
4071 with_xft=$with_features
4072 fi
4073
4074
4075 # Check whether --with-libotf was given.
4076 if test "${with_libotf+set}" = set; then :
4077 withval=$with_libotf;
4078 else
4079 with_libotf=$with_features
4080 fi
4081
4082
4083 # Check whether --with-m17n-flt was given.
4084 if test "${with_m17n_flt+set}" = set; then :
4085 withval=$with_m17n_flt;
4086 else
4087 with_m17n_flt=$with_features
4088 fi
4089
4090
4091
4092 # Check whether --with-toolkit-scroll-bars was given.
4093 if test "${with_toolkit_scroll_bars+set}" = set; then :
4094 withval=$with_toolkit_scroll_bars;
4095 else
4096 with_toolkit_scroll_bars=$with_features
4097 fi
4098
4099
4100 # Check whether --with-xaw3d was given.
4101 if test "${with_xaw3d+set}" = set; then :
4102 withval=$with_xaw3d;
4103 else
4104 with_xaw3d=$with_features
4105 fi
4106
4107
4108 # Check whether --with-xim was given.
4109 if test "${with_xim+set}" = set; then :
4110 withval=$with_xim;
4111 else
4112 with_xim=$with_features
4113 fi
4114
4115
4116 # Check whether --with-ns was given.
4117 if test "${with_ns+set}" = set; then :
4118 withval=$with_ns;
4119 else
4120 with_ns=no
4121 fi
4122
4123
4124 # Check whether --with-w32 was given.
4125 if test "${with_w32+set}" = set; then :
4126 withval=$with_w32;
4127 else
4128 with_w32=no
4129 fi
4130
4131
4132
4133 # Check whether --with-gpm was given.
4134 if test "${with_gpm+set}" = set; then :
4135 withval=$with_gpm;
4136 else
4137 with_gpm=$with_features
4138 fi
4139
4140
4141 # Check whether --with-dbus was given.
4142 if test "${with_dbus+set}" = set; then :
4143 withval=$with_dbus;
4144 else
4145 with_dbus=$with_features
4146 fi
4147
4148
4149 # Check whether --with-gconf was given.
4150 if test "${with_gconf+set}" = set; then :
4151 withval=$with_gconf;
4152 else
4153 with_gconf=$with_features
4154 fi
4155
4156
4157 # Check whether --with-gsettings was given.
4158 if test "${with_gsettings+set}" = set; then :
4159 withval=$with_gsettings;
4160 else
4161 with_gsettings=$with_features
4162 fi
4163
4164
4165 # Check whether --with-selinux was given.
4166 if test "${with_selinux+set}" = set; then :
4167 withval=$with_selinux;
4168 else
4169 with_selinux=$with_features
4170 fi
4171
4172
4173 # Check whether --with-gnutls was given.
4174 if test "${with_gnutls+set}" = set; then :
4175 withval=$with_gnutls;
4176 else
4177 with_gnutls=$with_features
4178 fi
4179
4180
4181 ## For the times when you want to build Emacs but don't have
4182 ## a suitable makeinfo, and can live without the manuals.
4183
4184 # Check whether --with-makeinfo was given.
4185 if test "${with_makeinfo+set}" = set; then :
4186 withval=$with_makeinfo;
4187 else
4188 with_makeinfo=$with_features
4189 fi
4190
4191
4192 ## Makefile.in needs the cache file name.
4193
4194
4195 ## This is an option because I do not know if all info/man support
4196 ## compressed files, nor how to test if they do so.
4197
4198 # Check whether --with-compress-info was given.
4199 if test "${with_compress_info+set}" = set; then :
4200 withval=$with_compress_info;
4201 else
4202 with_compress_info=$with_features
4203 fi
4204
4205 if test $with_compress_info = yes; then
4206 GZIP_INFO=yes
4207 else
4208 GZIP_INFO=
4209 fi
4210
4211
4212
4213 # Check whether --with-pkg-config-prog was given.
4214 if test "${with_pkg_config_prog+set}" = set; then :
4215 withval=$with_pkg_config_prog;
4216 fi
4217
4218 if test "X${with_pkg_config_prog}" != X; then
4219 if test "${with_pkg_config_prog}" != yes; then
4220 PKG_CONFIG="${with_pkg_config_prog}"
4221 fi
4222 fi
4223
4224 CRT_DIR=
4225
4226 # Check whether --with-crt-dir was given.
4227 if test "${with_crt_dir+set}" = set; then :
4228 withval=$with_crt_dir;
4229 fi
4230
4231 CRT_DIR="${with_crt_dir}"
4232
4233
4234 # Check whether --with-gameuser was given.
4235 if test "${with_gameuser+set}" = set; then :
4236 withval=$with_gameuser;
4237 fi
4238
4239 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4240 && gameuser="${with_gameuser}"
4241 test "X$gameuser" = X && gameuser=games
4242
4243
4244 # Check whether --with-gnustep-conf was given.
4245 if test "${with_gnustep_conf+set}" = set; then :
4246 withval=$with_gnustep_conf;
4247 fi
4248
4249 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4250 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4251 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4252 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4253
4254 # Check whether --enable-ns-self-contained was given.
4255 if test "${enable_ns_self_contained+set}" = set; then :
4256 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4257 else
4258 EN_NS_SELF_CONTAINED=yes
4259 fi
4260
4261
4262 # Check whether --enable-locallisppath was given.
4263 if test "${enable_locallisppath+set}" = set; then :
4264 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4265 locallisppath=
4266 elif test "${enableval}" != "yes"; then
4267 locallisppath=${enableval}
4268 fi
4269 fi
4270
4271
4272 # Check whether --enable-checking was given.
4273 if test "${enable_checking+set}" = set; then :
4274 enableval=$enable_checking; ac_checking_flags="${enableval}"
4275 fi
4276
4277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4278 for check in $ac_checking_flags
4279 do
4280 case $check in
4281 # these set all the flags to specific states
4282 yes) ac_enable_checking=1 ;;
4283 no) ac_enable_checking= ;
4284 ac_gc_check_stringbytes= ;
4285 ac_gc_check_string_overrun= ;
4286 ac_gc_check_string_free_list= ;
4287 ac_xmalloc_overrun= ;
4288 ac_gc_check_cons_list= ;
4289 ac_glyphs_debug= ;;
4290 all) ac_enable_checking=1 ;
4291 ac_gc_check_stringbytes=1 ;
4292 ac_gc_check_string_overrun=1 ;
4293 ac_gc_check_string_free_list=1 ;
4294 ac_xmalloc_overrun=1 ;
4295 ac_gc_check_cons_list=1 ;
4296 ac_glyphs_debug=1 ;;
4297 # these enable particular checks
4298 stringbytes) ac_gc_check_stringbytes=1 ;;
4299 stringoverrun) ac_gc_check_string_overrun=1 ;;
4300 stringfreelist) ac_gc_check_string_free_list=1 ;;
4301 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4302 conslist) ac_gc_check_cons_list=1 ;;
4303 glyphs) ac_glyphs_debug=1 ;;
4304 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4305 esac
4306 done
4307 IFS="$ac_save_IFS"
4308
4309 if test x$ac_enable_checking != x ; then
4310
4311 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4312
4313 fi
4314 if test x$ac_gc_check_stringbytes != x ; then
4315
4316 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4317
4318 fi
4319 if test x$ac_gc_check_string_overrun != x ; then
4320
4321 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4322
4323 fi
4324 if test x$ac_gc_check_string_free_list != x ; then
4325
4326 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4327
4328 fi
4329 if test x$ac_xmalloc_overrun != x ; then
4330
4331 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4332
4333 fi
4334 if test x$ac_gc_check_cons_list != x ; then
4335
4336 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4337
4338 fi
4339 if test x$ac_glyphs_debug != x ; then
4340
4341 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4342
4343 fi
4344
4345 # Check whether --enable-check-lisp-object-type was given.
4346 if test "${enable_check_lisp_object_type+set}" = set; then :
4347 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4348
4349 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4350
4351 fi
4352 fi
4353
4354
4355
4356 # Check whether --enable-profiling was given.
4357 if test "${enable_profiling+set}" = set; then :
4358 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4359 fi
4360
4361 if test x$ac_enable_profiling != x ; then
4362 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4363 else
4364 PROFILING_CFLAGS=
4365 fi
4366
4367
4368 # Check whether --enable-autodepend was given.
4369 if test "${enable_autodepend+set}" = set; then :
4370 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4371 else
4372 ac_enable_autodepend=yes
4373 fi
4374
4375
4376 #### Make srcdir absolute, if it isn't already. It's important to
4377 #### avoid running the path through pwd unnecessarily, since pwd can
4378 #### give you automounter prefixes, which can go away. We do all this
4379 #### so Emacs can find its files when run uninstalled.
4380 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4381 unset CDPATH
4382 case "${srcdir}" in
4383 /* ) ;;
4384 . )
4385 ## We may be able to use the $PWD environment variable to make this
4386 ## absolute. But sometimes PWD is inaccurate.
4387 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4388 ## but that tested only for a well-formed and valid PWD,
4389 ## it did not object when PWD was well-formed and valid but just wrong.
4390 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4391 then
4392 srcdir="$PWD"
4393 else
4394 srcdir="`(cd ${srcdir}; pwd)`"
4395 fi
4396 ;;
4397 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4398 esac
4399
4400 ### Canonicalize the configuration name.
4401
4402 # Make sure we can run config.sub.
4403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4404 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4407 $as_echo_n "checking build system type... " >&6; }
4408 if test "${ac_cv_build+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 ac_build_alias=$build_alias
4412 test "x$ac_build_alias" = x &&
4413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4414 test "x$ac_build_alias" = x &&
4415 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4417 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4421 $as_echo "$ac_cv_build" >&6; }
4422 case $ac_cv_build in
4423 *-*-*) ;;
4424 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4425 esac
4426 build=$ac_cv_build
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_build
4429 shift
4430 build_cpu=$1
4431 build_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 build_os=$*
4436 IFS=$ac_save_IFS
4437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4441 $as_echo_n "checking host system type... " >&6; }
4442 if test "${ac_cv_host+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test "x$host_alias" = x; then
4446 ac_cv_host=$ac_cv_build
4447 else
4448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4449 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4454 $as_echo "$ac_cv_host" >&6; }
4455 case $ac_cv_host in
4456 *-*-*) ;;
4457 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4458 esac
4459 host=$ac_cv_host
4460 ac_save_IFS=$IFS; IFS='-'
4461 set x $ac_cv_host
4462 shift
4463 host_cpu=$1
4464 host_vendor=$2
4465 shift; shift
4466 # Remember, the first character of IFS is used to create $*,
4467 # except with old shells:
4468 host_os=$*
4469 IFS=$ac_save_IFS
4470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4471
4472
4473 canonical=$host
4474 configuration=${host_alias-${build_alias-$host}}
4475
4476
4477
4478 ### If you add support for a new configuration, add code to this
4479 ### switch statement to recognize your configuration name and select
4480 ### the appropriate operating system file.
4481
4482 ### You would hope that you could choose an s/*.h
4483 ### file based on the operating system portion. However, it turns out
4484 ### that each s/*.h file is pretty manufacturer-specific.
4485 ### So we basically have to have a special case for each
4486 ### configuration name.
4487 ###
4488 ### As far as handling version numbers on operating systems is
4489 ### concerned, make sure things will fail in a fixable way. If
4490 ### /etc/MACHINES doesn't say anything about version numbers, be
4491 ### prepared to handle anything reasonably. If version numbers
4492 ### matter, be sure /etc/MACHINES says something about it.
4493
4494 opsys='' unported=no
4495 case "${canonical}" in
4496
4497 ## GNU/Linux and similar ports
4498 *-*-linux* )
4499 opsys=gnu-linux
4500 ;;
4501
4502 ## FreeBSD ports
4503 *-*-freebsd* )
4504 opsys=freebsd
4505 ;;
4506
4507 ## FreeBSD kernel + glibc based userland
4508 *-*-kfreebsd*gnu* )
4509 opsys=gnu-kfreebsd
4510 ;;
4511
4512 ## NetBSD ports
4513 *-*-netbsd* )
4514 opsys=netbsd
4515 ;;
4516
4517 ## OpenBSD ports
4518 *-*-openbsd* )
4519 opsys=openbsd
4520 ;;
4521
4522 ## Apple Darwin / Mac OS X
4523 *-apple-darwin* )
4524 case "${canonical}" in
4525 i[3456]86-* ) ;;
4526 powerpc-* ) ;;
4527 x86_64-* ) ;;
4528 * ) unported=yes ;;
4529 esac
4530 opsys=darwin
4531 ## Use fink packages if available.
4532 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4533 ## if test -d /sw/include && test -d /sw/lib; then
4534 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4535 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4536 ## fi
4537 ;;
4538
4539 ## HP 9000 series 700 and 800, running HP/UX
4540 hppa*-hp-hpux10.2* )
4541 opsys=hpux10-20
4542 ;;
4543 hppa*-hp-hpux1[1-9]* )
4544 opsys=hpux11
4545 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4546 ;;
4547
4548 ## IBM machines
4549 rs6000-ibm-aix4.[23]* )
4550 opsys=aix4-2
4551 ;;
4552 powerpc-ibm-aix4.[23]* )
4553 opsys=aix4-2
4554 ;;
4555 rs6000-ibm-aix[56]* )
4556 opsys=aix4-2
4557 ;;
4558 powerpc-ibm-aix[56]* )
4559 opsys=aix4-2
4560 ;;
4561
4562 ## Silicon Graphics machines
4563 ## Iris 4D
4564 mips-sgi-irix6.5 )
4565 opsys=irix6-5
4566 # Without defining _LANGUAGE_C, things get masked out in the headers
4567 # so that, for instance, grepping for `free' in stdlib.h fails and
4568 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4569 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4570 ;;
4571
4572 ## Suns
4573 *-sun-solaris* \
4574 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4575 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4576 case "${canonical}" in
4577 i[3456]86-*-* ) ;;
4578 amd64-*-*|x86_64-*-*) ;;
4579 sparc* ) ;;
4580 * ) unported=yes ;;
4581 esac
4582 case "${canonical}" in
4583 *-sunos5.6* | *-solaris2.6* )
4584 opsys=sol2-6
4585 RANLIB="ar -ts"
4586 ;;
4587 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4588 opsys=sol2-6
4589 emacs_check_sunpro_c=yes
4590 ;;
4591 *-sunos5* | *-solaris* )
4592 opsys=sol2-10
4593 emacs_check_sunpro_c=yes
4594 ;;
4595 esac
4596 ## Watch out for a compiler that we know will not work.
4597 case "${canonical}" in
4598 *-solaris* | *-sunos5* )
4599 if [ "x$CC" = x/usr/ucb/cc ]; then
4600 ## /usr/ucb/cc doesn't work;
4601 ## we should find some other compiler that does work.
4602 unset CC
4603 fi
4604 ;;
4605 *) ;;
4606 esac
4607 ;;
4608
4609 ## Intel 386 machines where we don't care about the manufacturer.
4610 i[3456]86-*-* )
4611 case "${canonical}" in
4612 *-cygwin ) opsys=cygwin ;;
4613 *-darwin* ) opsys=darwin ;;
4614 *-sysv4.2uw* ) opsys=unixware ;;
4615 *-sysv5uw* ) opsys=unixware ;;
4616 *-sysv5OpenUNIX* ) opsys=unixware ;;
4617 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4618 esac
4619 ;;
4620
4621 * )
4622 unported=yes
4623 ;;
4624 esac
4625
4626 ### If the code above didn't choose an operating system, just choose
4627 ### an operating system based on the configuration name. You really
4628 ### only want to use this when you have no idea what the right
4629 ### operating system is; if you know what operating systems a machine
4630 ### runs, it's cleaner to make it explicit in the case statement
4631 ### above.
4632 if test x"${opsys}" = x; then
4633 case "${canonical}" in
4634 *-gnu* ) opsys=gnu ;;
4635 * )
4636 unported=yes
4637 ;;
4638 esac
4639 fi
4640
4641
4642
4643 if test $unported = yes; then
4644 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4645 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4646 fi
4647
4648
4649 #### Choose a compiler.
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_CC+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 CC=$ac_cv_prog_CC
4685 if test -n "$CC"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4687 $as_echo "$CC" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694 fi
4695 if test -z "$ac_cv_prog_CC"; then
4696 ac_ct_CC=$CC
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_CC="gcc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733 if test "x$ac_ct_CC" = x; then
4734 CC=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 CC=$ac_ct_CC
4743 fi
4744 else
4745 CC="$ac_cv_prog_CC"
4746 fi
4747
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}cc; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_CC="${ac_tool_prefix}cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 fi
4789 if test -z "$CC"; then
4790 # Extract the first word of "cc", so it can be a program name with args.
4791 set dummy cc; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 ac_prog_rejected=no
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4809 ac_prog_rejected=yes
4810 continue
4811 fi
4812 ac_cv_prog_CC="cc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 if test $ac_prog_rejected = yes; then
4821 # We found a bogon in the path, so make sure we never use it.
4822 set dummy $ac_cv_prog_CC
4823 shift
4824 if test $# != 0; then
4825 # We chose a different compiler from the bogus one.
4826 # However, it has the same basename, so the bogon will be chosen
4827 # first if we set CC to just the basename; use the full file name.
4828 shift
4829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4830 fi
4831 fi
4832 fi
4833 fi
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 $as_echo "$CC" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 fi
4845 if test -z "$CC"; then
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in cl.exe
4848 do
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 test -n "$CC" && break
4887 done
4888 fi
4889 if test -z "$CC"; then
4890 ac_ct_CC=$CC
4891 for ac_prog in cl.exe
4892 do
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4923 $as_echo "$ac_ct_CC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 test -n "$ac_ct_CC" && break
4931 done
4932
4933 if test "x$ac_ct_CC" = x; then
4934 CC=""
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942 CC=$ac_ct_CC
4943 fi
4944 fi
4945
4946 fi
4947
4948
4949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error "no acceptable C compiler found in \$PATH
4952 See \`config.log' for more details." "$LINENO" 5; }
4953
4954 # Provide some information about the compiler.
4955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4956 set X $ac_compile
4957 ac_compiler=$2
4958 for ac_option in --version -v -V -qversion; do
4959 { { ac_try="$ac_compiler $ac_option >&5"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4967 ac_status=$?
4968 if test -s conftest.err; then
4969 sed '10a\
4970 ... rest of stderr output deleted ...
4971 10q' conftest.err >conftest.er1
4972 cat conftest.er1 >&5
4973 fi
4974 rm -f conftest.er1 conftest.err
4975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977 done
4978
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981
4982 int
4983 main ()
4984 {
4985
4986 ;
4987 return 0;
4988 }
4989 _ACEOF
4990 ac_clean_files_save=$ac_clean_files
4991 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4992 # Try to create an executable without -o first, disregard a.out.
4993 # It will help us diagnose broken compilers, and finding out an intuition
4994 # of exeext.
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4996 $as_echo_n "checking whether the C compiler works... " >&6; }
4997 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4998
4999 # The possible output files:
5000 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5001
5002 ac_rmfiles=
5003 for ac_file in $ac_files
5004 do
5005 case $ac_file in
5006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5008 esac
5009 done
5010 rm -f $ac_rmfiles
5011
5012 if { { ac_try="$ac_link_default"
5013 case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016 esac
5017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5018 $as_echo "$ac_try_echo"; } >&5
5019 (eval "$ac_link_default") 2>&5
5020 ac_status=$?
5021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022 test $ac_status = 0; }; then :
5023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5026 # so that the user can short-circuit this test for compilers unknown to
5027 # Autoconf.
5028 for ac_file in $ac_files ''
5029 do
5030 test -f "$ac_file" || continue
5031 case $ac_file in
5032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5033 ;;
5034 [ab].out )
5035 # We found the default executable, but exeext='' is most
5036 # certainly right.
5037 break;;
5038 *.* )
5039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5040 then :; else
5041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5042 fi
5043 # We set ac_cv_exeext here because the later test for it is not
5044 # safe: cross compilers may not add the suffix if given an `-o'
5045 # argument, so we may need to know it at that point already.
5046 # Even if this section looks crufty: it has the advantage of
5047 # actually working.
5048 break;;
5049 * )
5050 break;;
5051 esac
5052 done
5053 test "$ac_cv_exeext" = no && ac_cv_exeext=
5054
5055 else
5056 ac_file=''
5057 fi
5058 if test -z "$ac_file"; then :
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066 { as_fn_set_status 77
5067 as_fn_error "C compiler cannot create executables
5068 See \`config.log' for more details." "$LINENO" 5; }; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5074 $as_echo_n "checking for C compiler default output file name... " >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5076 $as_echo "$ac_file" >&6; }
5077 ac_exeext=$ac_cv_exeext
5078
5079 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5080 ac_clean_files=$ac_clean_files_save
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5082 $as_echo_n "checking for suffix of executables... " >&6; }
5083 if { { ac_try="$ac_link"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_link") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; then :
5094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5096 # work properly (i.e., refer to `conftest.exe'), while it won't with
5097 # `rm'.
5098 for ac_file in conftest.exe conftest conftest.*; do
5099 test -f "$ac_file" || continue
5100 case $ac_file in
5101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5103 break;;
5104 * ) break;;
5105 esac
5106 done
5107 else
5108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 as_fn_error "cannot compute suffix of executables: cannot compile and link
5111 See \`config.log' for more details." "$LINENO" 5; }
5112 fi
5113 rm -f conftest conftest$ac_cv_exeext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5115 $as_echo "$ac_cv_exeext" >&6; }
5116
5117 rm -f conftest.$ac_ext
5118 EXEEXT=$ac_cv_exeext
5119 ac_exeext=$EXEEXT
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdio.h>
5123 int
5124 main ()
5125 {
5126 FILE *f = fopen ("conftest.out", "w");
5127 return ferror (f) || fclose (f) != 0;
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 ac_clean_files="$ac_clean_files conftest.out"
5134 # Check that the compiler produces executables we can run. If not, either
5135 # the compiler is broken, or we cross compile.
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5137 $as_echo_n "checking whether we are cross compiling... " >&6; }
5138 if test "$cross_compiling" != yes; then
5139 { { ac_try="$ac_link"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_link") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; }
5150 if { ac_try='./conftest$ac_cv_exeext'
5151 { { case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_try") 2>&5
5158 ac_status=$?
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; }; then
5161 cross_compiling=no
5162 else
5163 if test "$cross_compiling" = maybe; then
5164 cross_compiling=yes
5165 else
5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168 as_fn_error "cannot run C compiled programs.
5169 If you meant to cross compile, use \`--host'.
5170 See \`config.log' for more details." "$LINENO" 5; }
5171 fi
5172 fi
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5175 $as_echo "$cross_compiling" >&6; }
5176
5177 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5178 ac_clean_files=$ac_clean_files_save
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5180 $as_echo_n "checking for suffix of object files... " >&6; }
5181 if test "${ac_cv_objext+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186
5187 int
5188 main ()
5189 {
5190
5191 ;
5192 return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.o conftest.obj
5196 if { { ac_try="$ac_compile"
5197 case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5200 esac
5201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5202 $as_echo "$ac_try_echo"; } >&5
5203 (eval "$ac_compile") 2>&5
5204 ac_status=$?
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; }; then :
5207 for ac_file in conftest.o conftest.obj conftest.*; do
5208 test -f "$ac_file" || continue;
5209 case $ac_file in
5210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5212 break;;
5213 esac
5214 done
5215 else
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "cannot compute suffix of object files: cannot compile
5222 See \`config.log' for more details." "$LINENO" 5; }
5223 fi
5224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5227 $as_echo "$ac_cv_objext" >&6; }
5228 OBJEXT=$ac_cv_objext
5229 ac_objext=$OBJEXT
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5232 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237
5238 int
5239 main ()
5240 {
5241 #ifndef __GNUC__
5242 choke me
5243 #endif
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_compiler_gnu=yes
5251 else
5252 ac_compiler_gnu=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5259 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5260 if test $ac_compiler_gnu = yes; then
5261 GCC=yes
5262 else
5263 GCC=
5264 fi
5265 ac_test_CFLAGS=${CFLAGS+set}
5266 ac_save_CFLAGS=$CFLAGS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5268 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5269 if test "${ac_cv_prog_cc_g+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 ac_save_c_werror_flag=$ac_c_werror_flag
5273 ac_c_werror_flag=yes
5274 ac_cv_prog_cc_g=no
5275 CFLAGS="-g"
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main ()
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 ac_cv_prog_cc_g=yes
5289 else
5290 CFLAGS=""
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293
5294 int
5295 main ()
5296 {
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303
5304 else
5305 ac_c_werror_flag=$ac_save_c_werror_flag
5306 CFLAGS="-g"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_prog_cc_g=yes
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_c_werror_flag=$ac_save_c_werror_flag
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5329 $as_echo "$ac_cv_prog_cc_g" >&6; }
5330 if test "$ac_test_CFLAGS" = set; then
5331 CFLAGS=$ac_save_CFLAGS
5332 elif test $ac_cv_prog_cc_g = yes; then
5333 if test "$GCC" = yes; then
5334 CFLAGS="-g -O2"
5335 else
5336 CFLAGS="-g"
5337 fi
5338 else
5339 if test "$GCC" = yes; then
5340 CFLAGS="-O2"
5341 else
5342 CFLAGS=
5343 fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5347 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 ac_cv_prog_cc_c89=no
5351 ac_save_CC=$CC
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <stdarg.h>
5355 #include <stdio.h>
5356 #include <sys/types.h>
5357 #include <sys/stat.h>
5358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5359 struct buf { int x; };
5360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5361 static char *e (p, i)
5362 char **p;
5363 int i;
5364 {
5365 return p[i];
5366 }
5367 static char *f (char * (*g) (char **, int), char **p, ...)
5368 {
5369 char *s;
5370 va_list v;
5371 va_start (v,p);
5372 s = g (p, va_arg (v,int));
5373 va_end (v);
5374 return s;
5375 }
5376
5377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5378 function prototypes and stuff, but not '\xHH' hex character constants.
5379 These don't provoke an error unfortunately, instead are silently treated
5380 as 'x'. The following induces an error, until -std is added to get
5381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5382 array size at least. It's necessary to write '\x00'==0 to get something
5383 that's true only with -std. */
5384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5385
5386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5387 inside strings and character constants. */
5388 #define FOO(x) 'x'
5389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5390
5391 int test (int i, double x);
5392 struct s1 {int (*f) (int a);};
5393 struct s2 {int (*f) (double a);};
5394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5395 int argc;
5396 char **argv;
5397 int
5398 main ()
5399 {
5400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5407 do
5408 CC="$ac_save_CC $ac_arg"
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_cv_prog_cc_c89=$ac_arg
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext
5413 test "x$ac_cv_prog_cc_c89" != "xno" && break
5414 done
5415 rm -f conftest.$ac_ext
5416 CC=$ac_save_CC
5417
5418 fi
5419 # AC_CACHE_VAL
5420 case "x$ac_cv_prog_cc_c89" in
5421 x)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5423 $as_echo "none needed" >&6; } ;;
5424 xno)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5426 $as_echo "unsupported" >&6; } ;;
5427 *)
5428 CC="$CC $ac_cv_prog_cc_c89"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5431 esac
5432 if test "x$ac_cv_prog_cc_c89" != xno; then :
5433
5434 fi
5435
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 DEPDIR="${am__leading_dot}deps"
5442
5443 ac_config_commands="$ac_config_commands depfiles"
5444
5445
5446 am_make=${MAKE-make}
5447 cat > confinc << 'END'
5448 am__doit:
5449 @echo this is the am__doit target
5450 .PHONY: am__doit
5451 END
5452 # If we don't find an include directive, just comment out the code.
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5454 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5455 am__include="#"
5456 am__quote=
5457 _am_result=none
5458 # First try GNU make style include.
5459 echo "include confinc" > confmf
5460 # Ignore all kinds of additional output from `make'.
5461 case `$am_make -s -f confmf 2> /dev/null` in #(
5462 *the\ am__doit\ target*)
5463 am__include=include
5464 am__quote=
5465 _am_result=GNU
5466 ;;
5467 esac
5468 # Now try BSD make style include.
5469 if test "$am__include" = "#"; then
5470 echo '.include "confinc"' > confmf
5471 case `$am_make -s -f confmf 2> /dev/null` in #(
5472 *the\ am__doit\ target*)
5473 am__include=.include
5474 am__quote="\""
5475 _am_result=BSD
5476 ;;
5477 esac
5478 fi
5479
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5482 $as_echo "$_am_result" >&6; }
5483 rm -f confinc confmf
5484
5485 # Check whether --enable-dependency-tracking was given.
5486 if test "${enable_dependency_tracking+set}" = set; then :
5487 enableval=$enable_dependency_tracking;
5488 fi
5489
5490 if test "x$enable_dependency_tracking" != xno; then
5491 am_depcomp="$ac_aux_dir/depcomp"
5492 AMDEPBACKSLASH='\'
5493 fi
5494 if test "x$enable_dependency_tracking" != xno; then
5495 AMDEP_TRUE=
5496 AMDEP_FALSE='#'
5497 else
5498 AMDEP_TRUE='#'
5499 AMDEP_FALSE=
5500 fi
5501
5502
5503
5504 depcc="$CC" am_compiler_list=
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5507 $as_echo_n "checking dependency style of $depcc... " >&6; }
5508 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5512 # We make a subdir and do the tests there. Otherwise we can end up
5513 # making bogus files that we don't know about and never remove. For
5514 # instance it was reported that on HP-UX the gcc test will end up
5515 # making a dummy file named `D' -- because `-MD' means `put the output
5516 # in D'.
5517 mkdir conftest.dir
5518 # Copy depcomp to subdir because otherwise we won't find it if we're
5519 # using a relative directory.
5520 cp "$am_depcomp" conftest.dir
5521 cd conftest.dir
5522 # We will build objects and dependencies in a subdirectory because
5523 # it helps to detect inapplicable dependency modes. For instance
5524 # both Tru64's cc and ICC support -MD to output dependencies as a
5525 # side effect of compilation, but ICC will put the dependencies in
5526 # the current directory while Tru64 will put them in the object
5527 # directory.
5528 mkdir sub
5529
5530 am_cv_CC_dependencies_compiler_type=none
5531 if test "$am_compiler_list" = ""; then
5532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5533 fi
5534 am__universal=false
5535 case " $depcc " in #(
5536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5537 esac
5538
5539 for depmode in $am_compiler_list; do
5540 # Setup a source with many dependencies, because some compilers
5541 # like to wrap large dependency lists on column 80 (with \), and
5542 # we should not choose a depcomp mode which is confused by this.
5543 #
5544 # We need to recreate these files for each test, as the compiler may
5545 # overwrite some of them when testing with obscure command lines.
5546 # This happens at least with the AIX C compiler.
5547 : > sub/conftest.c
5548 for i in 1 2 3 4 5 6; do
5549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5551 # Solaris 8's {/usr,}/bin/sh.
5552 touch sub/conftst$i.h
5553 done
5554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5555
5556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557 # mode. It turns out that the SunPro C++ compiler does not properly
5558 # handle `-M -o', and we need to detect this. Also, some Intel
5559 # versions had trouble with output in subdirs
5560 am__obj=sub/conftest.${OBJEXT-o}
5561 am__minus_obj="-o $am__obj"
5562 case $depmode in
5563 gcc)
5564 # This depmode causes a compiler race in universal mode.
5565 test "$am__universal" = false || continue
5566 ;;
5567 nosideeffect)
5568 # after this tag, mechanisms are not by side-effect, so they'll
5569 # only be used when explicitly requested
5570 if test "x$enable_dependency_tracking" = xyes; then
5571 continue
5572 else
5573 break
5574 fi
5575 ;;
5576 msvisualcpp | msvcmsys)
5577 # This compiler won't grok `-c -o', but also, the minuso test has
5578 # not run yet. These depmodes are late enough in the game, and
5579 # so weak that their functioning should not be impacted.
5580 am__obj=conftest.${OBJEXT-o}
5581 am__minus_obj=
5582 ;;
5583 none) break ;;
5584 esac
5585 if depmode=$depmode \
5586 source=sub/conftest.c object=$am__obj \
5587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5589 >/dev/null 2>conftest.err &&
5590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594 # icc doesn't choke on unknown options, it will just issue warnings
5595 # or remarks (even with -Werror). So we grep stderr for any message
5596 # that says an option was ignored or not supported.
5597 # When given -MP, icc 7.0 and 7.1 complain thusly:
5598 # icc: Command line warning: ignoring option '-M'; no argument required
5599 # The diagnosis changed in icc 8.0:
5600 # icc: Command line remark: option '-MP' not supported
5601 if (grep 'ignoring option' conftest.err ||
5602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603 am_cv_CC_dependencies_compiler_type=$depmode
5604 break
5605 fi
5606 fi
5607 done
5608
5609 cd ..
5610 rm -rf conftest.dir
5611 else
5612 am_cv_CC_dependencies_compiler_type=none
5613 fi
5614
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619
5620 if
5621 test "x$enable_dependency_tracking" != xno \
5622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623 am__fastdepCC_TRUE=
5624 am__fastdepCC_FALSE='#'
5625 else
5626 am__fastdepCC_TRUE='#'
5627 am__fastdepCC_FALSE=
5628 fi
5629
5630
5631 if test "x$CC" != xcc; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5633 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5636 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5637 fi
5638 set dummy $CC; ac_cc=`$as_echo "$2" |
5639 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5640 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 # Make sure it works both with $CC and with simple cc.
5655 # We do the test twice because some compilers refuse to overwrite an
5656 # existing .o file with -o, though they will create one.
5657 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 rm -f conftest2.*
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5679 then
5680 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5681 if test "x$CC" != xcc; then
5682 # Test first that cc exists at all.
5683 if { ac_try='cc -c conftest.$ac_ext >&5'
5684 { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5695 rm -f conftest2.*
5696 if { { case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; } &&
5706 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711 $as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; };
5716 then
5717 # cc works too.
5718 :
5719 else
5720 # cc exists but doesn't like -o.
5721 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5722 fi
5723 fi
5724 fi
5725 else
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727 fi
5728 rm -f core conftest*
5729
5730 fi
5731 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737
5738 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5739
5740 fi
5741
5742 # FIXME: we rely on the cache variable name because
5743 # there is no other way.
5744 set dummy $CC
5745 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5746 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5747 if test "$am_t" != yes; then
5748 # Losing compiler, so override with the script.
5749 # FIXME: It is wrong to rewrite CC.
5750 # But if we don't then we get into trouble of one sort or another.
5751 # A longer-term fix would be to have automake use am__CC in this case,
5752 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5753 CC="$am_aux_dir/compile $CC"
5754 fi
5755
5756
5757
5758 if test x$GCC = xyes; then
5759 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5760 else
5761 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5762 fi
5763
5764 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5765
5766 # Avoid gnulib's threadlib module, as we do threads our own way.
5767
5768
5769 # Initialize gnulib right after choosing the compiler.
5770
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5778 # On Suns, sometimes $CPP names a directory.
5779 if test -n "$CPP" && test -d "$CPP"; then
5780 CPP=
5781 fi
5782 if test -z "$CPP"; then
5783 if test "${ac_cv_prog_CPP+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 # Double quotes because CPP needs to be expanded
5787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5788 do
5789 ac_preproc_ok=false
5790 for ac_c_preproc_warn_flag in '' yes
5791 do
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5795 # <limits.h> exists even on freestanding compilers.
5796 # On the NeXT, cc -E runs the code through the compiler's parser,
5797 # not just through cpp. "Syntax error" is here to catch this case.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805 Syntax error
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808
5809 else
5810 # Broken: fails on valid input.
5811 continue
5812 fi
5813 rm -f conftest.err conftest.$ac_ext
5814
5815 # OK, works on sane cases. Now check whether nonexistent headers
5816 # can be detected and how.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <ac_nonexistent.h>
5820 _ACEOF
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5822 # Broken: success on invalid input.
5823 continue
5824 else
5825 # Passes both tests.
5826 ac_preproc_ok=:
5827 break
5828 fi
5829 rm -f conftest.err conftest.$ac_ext
5830
5831 done
5832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833 rm -f conftest.err conftest.$ac_ext
5834 if $ac_preproc_ok; then :
5835 break
5836 fi
5837
5838 done
5839 ac_cv_prog_CPP=$CPP
5840
5841 fi
5842 CPP=$ac_cv_prog_CPP
5843 else
5844 ac_cv_prog_CPP=$CPP
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5847 $as_echo "$CPP" >&6; }
5848 ac_preproc_ok=false
5849 for ac_c_preproc_warn_flag in '' yes
5850 do
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #ifdef __STDC__
5860 # include <limits.h>
5861 #else
5862 # include <assert.h>
5863 #endif
5864 Syntax error
5865 _ACEOF
5866 if ac_fn_c_try_cpp "$LINENO"; then :
5867
5868 else
5869 # Broken: fails on valid input.
5870 continue
5871 fi
5872 rm -f conftest.err conftest.$ac_ext
5873
5874 # OK, works on sane cases. Now check whether nonexistent headers
5875 # can be detected and how.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if ac_fn_c_try_cpp "$LINENO"; then :
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 # Passes both tests.
5885 ac_preproc_ok=:
5886 break
5887 fi
5888 rm -f conftest.err conftest.$ac_ext
5889
5890 done
5891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5892 rm -f conftest.err conftest.$ac_ext
5893 if $ac_preproc_ok; then :
5894
5895 else
5896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5899 See \`config.log' for more details." "$LINENO" 5; }
5900 fi
5901
5902 ac_ext=c
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -z "$GREP"; then
5915 ac_path_GREP_found=false
5916 # Loop through the user's path and test for each of PROGNAME-LIST
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_prog in grep ggrep; do
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5926 # Check for GNU ac_path_GREP and select it if it is found.
5927 # Check for GNU $ac_path_GREP
5928 case `"$ac_path_GREP" --version 2>&1` in
5929 *GNU*)
5930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5931 *)
5932 ac_count=0
5933 $as_echo_n 0123456789 >"conftest.in"
5934 while :
5935 do
5936 cat "conftest.in" "conftest.in" >"conftest.tmp"
5937 mv "conftest.tmp" "conftest.in"
5938 cp "conftest.in" "conftest.nl"
5939 $as_echo 'GREP' >> "conftest.nl"
5940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5942 as_fn_arith $ac_count + 1 && ac_count=$as_val
5943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5944 # Best one so far, save it but keep looking for a better one
5945 ac_cv_path_GREP="$ac_path_GREP"
5946 ac_path_GREP_max=$ac_count
5947 fi
5948 # 10*(2^10) chars as input seems more than enough
5949 test $ac_count -gt 10 && break
5950 done
5951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5952 esac
5953
5954 $ac_path_GREP_found && break 3
5955 done
5956 done
5957 done
5958 IFS=$as_save_IFS
5959 if test -z "$ac_cv_path_GREP"; then
5960 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5961 fi
5962 else
5963 ac_cv_path_GREP=$GREP
5964 fi
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5968 $as_echo "$ac_cv_path_GREP" >&6; }
5969 GREP="$ac_cv_path_GREP"
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5973 $as_echo_n "checking for egrep... " >&6; }
5974 if test "${ac_cv_path_EGREP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5978 then ac_cv_path_EGREP="$GREP -E"
5979 else
5980 if test -z "$EGREP"; then
5981 ac_path_EGREP_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in egrep; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5992 # Check for GNU ac_path_EGREP and select it if it is found.
5993 # Check for GNU $ac_path_EGREP
5994 case `"$ac_path_EGREP" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5997 *)
5998 ac_count=0
5999 $as_echo_n 0123456789 >"conftest.in"
6000 while :
6001 do
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'EGREP' >> "conftest.nl"
6006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_EGREP="$ac_path_EGREP"
6012 ac_path_EGREP_max=$ac_count
6013 fi
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6019
6020 $ac_path_EGREP_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_EGREP"; then
6026 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6027 fi
6028 else
6029 ac_cv_path_EGREP=$EGREP
6030 fi
6031
6032 fi
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6035 $as_echo "$ac_cv_path_EGREP" >&6; }
6036 EGREP="$ac_cv_path_EGREP"
6037
6038
6039
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6042 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6043 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049
6050 #ifdef __ACK__
6051 Amsterdam
6052 #endif
6053
6054 _ACEOF
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6057 gl_cv_c_amsterdam_compiler=yes
6058 else
6059 gl_cv_c_amsterdam_compiler=no
6060 fi
6061 rm -f conftest*
6062
6063
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6066 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6067 if test -z "$AR"; then
6068 if test $gl_cv_c_amsterdam_compiler = yes; then
6069 AR='cc -c.a'
6070 if test -z "$ARFLAGS"; then
6071 ARFLAGS='-o'
6072 fi
6073 else
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ar; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$AR"; then
6083 ac_cv_prog_AR="$AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_AR="${ac_tool_prefix}ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 AR=$ac_cv_prog_AR
6103 if test -n "$AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6105 $as_echo "$AR" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112 fi
6113 if test -z "$ac_cv_prog_AR"; then
6114 ac_ct_AR=$AR
6115 # Extract the first word of "ar", so it can be a program name with args.
6116 set dummy ar; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$ac_ct_AR"; then
6123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_AR="ar"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6143 if test -n "$ac_ct_AR"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6145 $as_echo "$ac_ct_AR" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151 if test "x$ac_ct_AR" = x; then
6152 AR="ar"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160 AR=$ac_ct_AR
6161 fi
6162 else
6163 AR="$ac_cv_prog_AR"
6164 fi
6165
6166 if test -z "$ARFLAGS"; then
6167 ARFLAGS='cru'
6168 fi
6169 fi
6170 else
6171 if test -z "$ARFLAGS"; then
6172 ARFLAGS='cru'
6173 fi
6174 fi
6175
6176
6177 if test -z "$RANLIB"; then
6178 if test $gl_cv_c_amsterdam_compiler = yes; then
6179 RANLIB=':'
6180 else
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$RANLIB"; then
6190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 RANLIB=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221 ac_ct_RANLIB=$RANLIB
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_RANLIB"; then
6230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_RANLIB="ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_RANLIB" = x; then
6259 RANLIB=":"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 RANLIB=$ac_ct_RANLIB
6268 fi
6269 else
6270 RANLIB="$ac_cv_prog_RANLIB"
6271 fi
6272
6273 fi
6274 fi
6275
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6278 $as_echo_n "checking for ANSI C header files... " >&6; }
6279 if test "${ac_cv_header_stdc+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <stdlib.h>
6285 #include <stdarg.h>
6286 #include <string.h>
6287 #include <float.h>
6288
6289 int
6290 main ()
6291 {
6292
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 ac_cv_header_stdc=yes
6299 else
6300 ac_cv_header_stdc=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303
6304 if test $ac_cv_header_stdc = yes; then
6305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <string.h>
6309
6310 _ACEOF
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 $EGREP "memchr" >/dev/null 2>&1; then :
6313
6314 else
6315 ac_cv_header_stdc=no
6316 fi
6317 rm -f conftest*
6318
6319 fi
6320
6321 if test $ac_cv_header_stdc = yes; then
6322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <stdlib.h>
6326
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "free" >/dev/null 2>&1; then :
6330
6331 else
6332 ac_cv_header_stdc=no
6333 fi
6334 rm -f conftest*
6335
6336 fi
6337
6338 if test $ac_cv_header_stdc = yes; then
6339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6340 if test "$cross_compiling" = yes; then :
6341 :
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #include <ctype.h>
6346 #include <stdlib.h>
6347 #if ((' ' & 0x0FF) == 0x020)
6348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6350 #else
6351 # define ISLOWER(c) \
6352 (('a' <= (c) && (c) <= 'i') \
6353 || ('j' <= (c) && (c) <= 'r') \
6354 || ('s' <= (c) && (c) <= 'z'))
6355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6356 #endif
6357
6358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6359 int
6360 main ()
6361 {
6362 int i;
6363 for (i = 0; i < 256; i++)
6364 if (XOR (islower (i), ISLOWER (i))
6365 || toupper (i) != TOUPPER (i))
6366 return 2;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_run "$LINENO"; then :
6371
6372 else
6373 ac_cv_header_stdc=no
6374 fi
6375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6376 conftest.$ac_objext conftest.beam conftest.$ac_ext
6377 fi
6378
6379 fi
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6382 $as_echo "$ac_cv_header_stdc" >&6; }
6383 if test $ac_cv_header_stdc = yes; then
6384
6385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6386
6387 fi
6388
6389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6391 inttypes.h stdint.h unistd.h
6392 do :
6393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6395 "
6396 eval as_val=\$$as_ac_Header
6397 if test "x$as_val" = x""yes; then :
6398 cat >>confdefs.h <<_ACEOF
6399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 _ACEOF
6401
6402 fi
6403
6404 done
6405
6406
6407
6408
6409
6410 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6411 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6412 MINIX=yes
6413 else
6414 MINIX=
6415 fi
6416
6417
6418 if test "$MINIX" = yes; then
6419
6420 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6421
6422
6423 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6424
6425
6426 $as_echo "#define _MINIX 1" >>confdefs.h
6427
6428 fi
6429
6430 case "$host_os" in
6431 hpux*)
6432
6433 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6434
6435 ;;
6436 esac
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6440 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6441 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446
6447 # define __EXTENSIONS__ 1
6448 $ac_includes_default
6449 int
6450 main ()
6451 {
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 ac_cv_safe_to_define___extensions__=yes
6459 else
6460 ac_cv_safe_to_define___extensions__=no
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6465 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6466 test $ac_cv_safe_to_define___extensions__ = yes &&
6467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6468
6469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6470
6471 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6472
6473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6474
6475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6476
6477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6478
6479
6480
6481
6482
6483
6484
6485
6486 # Check whether --enable-largefile was given.
6487 if test "${enable_largefile+set}" = set; then :
6488 enableval=$enable_largefile;
6489 fi
6490
6491 if test "$enable_largefile" != no; then
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 ac_cv_sys_largefile_CC=no
6499 if test "$GCC" != yes; then
6500 ac_save_CC=$CC
6501 while :; do
6502 # IRIX 6.2 and later do not support large files by default,
6503 # so use the C compiler's -n32 option if that helps.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6514 ? 1 : -1];
6515 int
6516 main ()
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 break
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext
6527 CC="$CC -n32"
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 ac_cv_sys_largefile_CC=' -n32'; break
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext
6532 break
6533 done
6534 CC=$ac_save_CC
6535 rm -f conftest.$ac_ext
6536 fi
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6540 if test "$ac_cv_sys_largefile_CC" != no; then
6541 CC=$CC$ac_cv_sys_largefile_CC
6542 fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 while :; do
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <sys/types.h>
6553 /* Check that off_t can represent 2**63 - 1 correctly.
6554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6555 since some C++ compilers masquerading as C compilers
6556 incorrectly reject 9223372036854775807. */
6557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6559 && LARGE_OFF_T % 2147483647 == 1)
6560 ? 1 : -1];
6561 int
6562 main ()
6563 {
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 ac_cv_sys_file_offset_bits=no; break
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #define _FILE_OFFSET_BITS 64
6576 #include <sys/types.h>
6577 /* Check that off_t can represent 2**63 - 1 correctly.
6578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6579 since some C++ compilers masquerading as C compilers
6580 incorrectly reject 9223372036854775807. */
6581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6583 && LARGE_OFF_T % 2147483647 == 1)
6584 ? 1 : -1];
6585 int
6586 main ()
6587 {
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_sys_file_offset_bits=64; break
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 ac_cv_sys_file_offset_bits=unknown
6598 break
6599 done
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6603 case $ac_cv_sys_file_offset_bits in #(
6604 no | unknown) ;;
6605 *)
6606 cat >>confdefs.h <<_ACEOF
6607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6608 _ACEOF
6609 ;;
6610 esac
6611 rm -rf conftest*
6612 if test $ac_cv_sys_file_offset_bits = unknown; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6615 if test "${ac_cv_sys_large_files+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 while :; do
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6629 ? 1 : -1];
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 ac_cv_sys_large_files=no; break
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #define _LARGE_FILES 1
6645 #include <sys/types.h>
6646 /* Check that off_t can represent 2**63 - 1 correctly.
6647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6648 since some C++ compilers masquerading as C compilers
6649 incorrectly reject 9223372036854775807. */
6650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6652 && LARGE_OFF_T % 2147483647 == 1)
6653 ? 1 : -1];
6654 int
6655 main ()
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 ac_cv_sys_large_files=1; break
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_cv_sys_large_files=unknown
6667 break
6668 done
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6671 $as_echo "$ac_cv_sys_large_files" >&6; }
6672 case $ac_cv_sys_large_files in #(
6673 no | unknown) ;;
6674 *)
6675 cat >>confdefs.h <<_ACEOF
6676 #define _LARGE_FILES $ac_cv_sys_large_files
6677 _ACEOF
6678 ;;
6679 esac
6680 rm -rf conftest*
6681 fi
6682
6683
6684 fi
6685
6686 case $ac_cv_prog_cc_stdc in #(
6687 no) :
6688 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6689 *) :
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6691 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6692 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_cv_prog_cc_c99=no
6696 ac_save_CC=$CC
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 #include <stdarg.h>
6700 #include <stdbool.h>
6701 #include <stdlib.h>
6702 #include <wchar.h>
6703 #include <stdio.h>
6704
6705 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6706 #define debug(...) fprintf (stderr, __VA_ARGS__)
6707 #define showlist(...) puts (#__VA_ARGS__)
6708 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6709 static void
6710 test_varargs_macros (void)
6711 {
6712 int x = 1234;
6713 int y = 5678;
6714 debug ("Flag");
6715 debug ("X = %d\n", x);
6716 showlist (The first, second, and third items.);
6717 report (x>y, "x is %d but y is %d", x, y);
6718 }
6719
6720 // Check long long types.
6721 #define BIG64 18446744073709551615ull
6722 #define BIG32 4294967295ul
6723 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6724 #if !BIG_OK
6725 your preprocessor is broken;
6726 #endif
6727 #if BIG_OK
6728 #else
6729 your preprocessor is broken;
6730 #endif
6731 static long long int bignum = -9223372036854775807LL;
6732 static unsigned long long int ubignum = BIG64;
6733
6734 struct incomplete_array
6735 {
6736 int datasize;
6737 double data[];
6738 };
6739
6740 struct named_init {
6741 int number;
6742 const wchar_t *name;
6743 double average;
6744 };
6745
6746 typedef const char *ccp;
6747
6748 static inline int
6749 test_restrict (ccp restrict text)
6750 {
6751 // See if C++-style comments work.
6752 // Iterate through items via the restricted pointer.
6753 // Also check for declarations in for loops.
6754 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6755 continue;
6756 return 0;
6757 }
6758
6759 // Check varargs and va_copy.
6760 static void
6761 test_varargs (const char *format, ...)
6762 {
6763 va_list args;
6764 va_start (args, format);
6765 va_list args_copy;
6766 va_copy (args_copy, args);
6767
6768 const char *str;
6769 int number;
6770 float fnumber;
6771
6772 while (*format)
6773 {
6774 switch (*format++)
6775 {
6776 case 's': // string
6777 str = va_arg (args_copy, const char *);
6778 break;
6779 case 'd': // int
6780 number = va_arg (args_copy, int);
6781 break;
6782 case 'f': // float
6783 fnumber = va_arg (args_copy, double);
6784 break;
6785 default:
6786 break;
6787 }
6788 }
6789 va_end (args_copy);
6790 va_end (args);
6791 }
6792
6793 int
6794 main ()
6795 {
6796
6797 // Check bool.
6798 _Bool success = false;
6799
6800 // Check restrict.
6801 if (test_restrict ("String literal") == 0)
6802 success = true;
6803 char *restrict newvar = "Another string";
6804
6805 // Check varargs.
6806 test_varargs ("s, d' f .", "string", 65, 34.234);
6807 test_varargs_macros ();
6808
6809 // Check flexible array members.
6810 struct incomplete_array *ia =
6811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6812 ia->datasize = 10;
6813 for (int i = 0; i < ia->datasize; ++i)
6814 ia->data[i] = i * 1.234;
6815
6816 // Check named initializers.
6817 struct named_init ni = {
6818 .number = 34,
6819 .name = L"Test wide string",
6820 .average = 543.34343,
6821 };
6822
6823 ni.number = 58;
6824
6825 int dynamic_array[ni.number];
6826 dynamic_array[ni.number - 1] = 543;
6827
6828 // work around unused variable warnings
6829 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6830 || dynamic_array[ni.number - 1] != 543);
6831
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6837 do
6838 CC="$ac_save_CC $ac_arg"
6839 if ac_fn_c_try_compile "$LINENO"; then :
6840 ac_cv_prog_cc_c99=$ac_arg
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext
6843 test "x$ac_cv_prog_cc_c99" != "xno" && break
6844 done
6845 rm -f conftest.$ac_ext
6846 CC=$ac_save_CC
6847
6848 fi
6849 # AC_CACHE_VAL
6850 case "x$ac_cv_prog_cc_c99" in
6851 x)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6853 $as_echo "none needed" >&6; } ;;
6854 xno)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6856 $as_echo "unsupported" >&6; } ;;
6857 *)
6858 CC="$CC $ac_cv_prog_cc_c99"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6860 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6861 esac
6862 if test "x$ac_cv_prog_cc_c99" != xno; then :
6863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6867 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 ac_cv_prog_cc_c89=no
6871 ac_save_CC=$CC
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <stdarg.h>
6875 #include <stdio.h>
6876 #include <sys/types.h>
6877 #include <sys/stat.h>
6878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6879 struct buf { int x; };
6880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6881 static char *e (p, i)
6882 char **p;
6883 int i;
6884 {
6885 return p[i];
6886 }
6887 static char *f (char * (*g) (char **, int), char **p, ...)
6888 {
6889 char *s;
6890 va_list v;
6891 va_start (v,p);
6892 s = g (p, va_arg (v,int));
6893 va_end (v);
6894 return s;
6895 }
6896
6897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6898 function prototypes and stuff, but not '\xHH' hex character constants.
6899 These don't provoke an error unfortunately, instead are silently treated
6900 as 'x'. The following induces an error, until -std is added to get
6901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6902 array size at least. It's necessary to write '\x00'==0 to get something
6903 that's true only with -std. */
6904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6905
6906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6907 inside strings and character constants. */
6908 #define FOO(x) 'x'
6909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6910
6911 int test (int i, double x);
6912 struct s1 {int (*f) (int a);};
6913 struct s2 {int (*f) (double a);};
6914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6915 int argc;
6916 char **argv;
6917 int
6918 main ()
6919 {
6920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6927 do
6928 CC="$ac_save_CC $ac_arg"
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 ac_cv_prog_cc_c89=$ac_arg
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext
6933 test "x$ac_cv_prog_cc_c89" != "xno" && break
6934 done
6935 rm -f conftest.$ac_ext
6936 CC=$ac_save_CC
6937
6938 fi
6939 # AC_CACHE_VAL
6940 case "x$ac_cv_prog_cc_c89" in
6941 x)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6943 $as_echo "none needed" >&6; } ;;
6944 xno)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6946 $as_echo "unsupported" >&6; } ;;
6947 *)
6948 CC="$CC $ac_cv_prog_cc_c89"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6951 esac
6952 if test "x$ac_cv_prog_cc_c89" != xno; then :
6953 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6954 else
6955 ac_cv_prog_cc_stdc=no
6956 fi
6957
6958 fi
6959 ;;
6960 esac
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6962 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6963 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 fi
6966
6967 case $ac_cv_prog_cc_stdc in #(
6968 no) :
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6970 $as_echo "unsupported" >&6; } ;; #(
6971 '') :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6973 $as_echo "none needed" >&6; } ;; #(
6974 *) :
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6976 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6977 esac
6978
6979
6980
6981 # Code from module alloca-opt:
6982 # Code from module allocator:
6983 # Code from module c-ctype:
6984 # Code from module c-strcase:
6985 # Code from module careadlinkat:
6986 # Code from module clock-time:
6987 # Code from module close-stream:
6988 # Code from module crypto/md5:
6989 # Code from module crypto/sha1:
6990 # Code from module crypto/sha256:
6991 # Code from module crypto/sha512:
6992 # Code from module dosname:
6993 # Code from module dtoastr:
6994 # Code from module dtotimespec:
6995 # Code from module dup2:
6996 # Code from module environ:
6997 # Code from module euidaccess:
6998 # Code from module execinfo:
6999 # Code from module extensions:
7000
7001 # Code from module extern-inline:
7002 # Code from module faccessat:
7003 # Code from module fcntl-h:
7004 # Code from module filemode:
7005 # Code from module fpending:
7006 # Code from module getgroups:
7007 # Code from module getloadavg:
7008 # Code from module getopt-gnu:
7009 # Code from module getopt-posix:
7010 # Code from module gettext-h:
7011 # Code from module gettime:
7012 # Code from module gettimeofday:
7013 # Code from module group-member:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7019
7020 # Code from module lstat:
7021 # Code from module manywarnings:
7022 # Code from module mktime:
7023 # Code from module multiarch:
7024 # Code from module nocrash:
7025 # Code from module pathmax:
7026 # Code from module pselect:
7027 # Code from module pthread_sigmask:
7028 # Code from module readlink:
7029 # Code from module root-uid:
7030 # Code from module signal-h:
7031 # Code from module snippet/_Noreturn:
7032 # Code from module snippet/arg-nonnull:
7033 # Code from module snippet/c++defs:
7034 # Code from module snippet/warn-on-use:
7035 # Code from module socklen:
7036 # Code from module ssize_t:
7037 # Code from module stat:
7038 # Code from module stat-time:
7039 # Code from module stdalign:
7040 # Code from module stdarg:
7041
7042
7043
7044 # Code from module stdbool:
7045 # Code from module stddef:
7046 # Code from module stdint:
7047 # Code from module stdio:
7048 # Code from module stdlib:
7049 # Code from module strftime:
7050 # Code from module strtoimax:
7051 # Code from module strtoll:
7052 # Code from module strtoull:
7053 # Code from module strtoumax:
7054 # Code from module symlink:
7055 # Code from module sys_select:
7056 # Code from module sys_stat:
7057 # Code from module sys_time:
7058 # Code from module time:
7059 # Code from module time_r:
7060 # Code from module timer-time:
7061 # Code from module timespec:
7062 # Code from module timespec-add:
7063 # Code from module timespec-sub:
7064 # Code from module u64:
7065 # Code from module unistd:
7066 # Code from module utimens:
7067 # Code from module verify:
7068 # Code from module warnings:
7069 # Code from module xalloc-oversized:
7070
7071
7072 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7073 # if -g3 works and the user does not specify CFLAGS.
7074 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7075 if test "$ac_test_CFLAGS" != set; then
7076 case $CFLAGS in
7077 '-g')
7078 emacs_g3_CFLAGS='-g3';;
7079 '-g -O2')
7080 emacs_g3_CFLAGS='-g3 -O2';;
7081 *)
7082 emacs_g3_CFLAGS='';;
7083 esac
7084 if test -n "$emacs_g3_CFLAGS"; then
7085 emacs_save_CFLAGS=$CFLAGS
7086 CFLAGS=$emacs_g3_CFLAGS
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7088 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7089 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 int
7096 main ()
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 emacs_cv_prog_cc_g3=yes
7105 else
7106 emacs_cv_prog_cc_g3=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7112 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7113 if test $emacs_cv_prog_cc_g3 = yes; then
7114 CFLAGS=$emacs_g3_CFLAGS
7115 else
7116 CFLAGS=$emacs_save_CFLAGS
7117 fi
7118 fi
7119 fi
7120
7121 # Check whether --enable-gcc-warnings was given.
7122 if test "${enable_gcc_warnings+set}" = set; then :
7123 enableval=$enable_gcc_warnings; case $enableval in
7124 yes|no) ;;
7125 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7126 esac
7127 gl_gcc_warnings=$enableval
7128 else
7129 gl_gcc_warnings=no
7130
7131 fi
7132
7133
7134 # Check whether --enable-link-time-optimization was given.
7135 if test "${enable_link_time_optimization+set}" = set; then :
7136 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7138 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7139 ac_lto_supported=no
7140 if test x$GCC = xyes; then
7141 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7142 if test x$CPUS != x; then
7143 LTO="-flto=$CPUS"
7144 else
7145 LTO="-flto"
7146 fi
7147 old_CFLAGS=$CFLAGS
7148 CFLAGS="$CFLAGS $LTO"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151
7152 int
7153 main ()
7154 {
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_lto_supported=yes
7162 else
7163 ac_lto_supported=no
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 CFLAGS="$old_CFLAGS"
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7169 $as_echo "$ac_lto_supported" >&6; }
7170 if test "$ac_lto_supported" = "yes"; then
7171 CFLAGS="$CFLAGS $LTO"
7172 fi
7173 fi
7174 fi
7175
7176
7177 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7178 # ------------------------------------------------
7179 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7180 # Otherwise, run RUN-IF-NOT-FOUND.
7181
7182
7183 # When compiling with GCC, prefer -isystem to -I when including system
7184 # include files, to avoid generating useless diagnostics for the files.
7185 if test "$gl_gcc_warnings" != yes; then
7186 isystem='-I'
7187 else
7188 isystem='-isystem '
7189
7190 # This, $nw, is the list of warnings we disable.
7191 nw=
7192
7193 case $with_x_toolkit in
7194 lucid | athena | motif)
7195 # Old toolkits mishandle 'const'.
7196 nw="$nw -Wwrite-strings"
7197 ;;
7198 *)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7200 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7201 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204
7205 gl_save_compiler_FLAGS="$CFLAGS"
7206 as_fn_append CFLAGS " -Werror"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209
7210 int
7211 main ()
7212 {
7213
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 gl_cv_warn_c__Werror=yes
7220 else
7221 gl_cv_warn_c__Werror=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 CFLAGS="$gl_save_compiler_FLAGS"
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7228 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7229 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7230 as_fn_append WERROR_CFLAGS " -Werror"
7231 fi
7232
7233
7234 ;;
7235 esac
7236
7237
7238 nw="$nw -Waggregate-return" # anachronistic
7239 nw="$nw -Wlong-long" # C90 is anachronistic
7240 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7241 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7242 nw="$nw -Wtraditional" # Warns on #elif which we use often
7243 nw="$nw -Wcast-qual" # Too many warnings for now
7244 nw="$nw -Wconversion" # Too many warnings for now
7245 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7246 nw="$nw -Wsign-conversion" # Too many warnings for now
7247 nw="$nw -Woverlength-strings" # Not a problem these days
7248 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7249 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7250 nw="$nw -Wpadded" # Our structs are not padded
7251 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7252 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7253 nw="$nw -Wformat-nonliteral" # we do this a lot
7254 nw="$nw -Wvla" # warnings in gettext.h
7255 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7256 nw="$nw -Wswitch-enum" # Too many warnings for now
7257 nw="$nw -Wswitch-default" # Too many warnings for now
7258 nw="$nw -Wfloat-equal" # warns about high-quality code
7259 nw="$nw -Winline" # OK to ignore 'inline'
7260 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7261 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7262 # signed overflow has undefined behavior
7263 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7264 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7265
7266 # Emacs doesn't care about shadowing; see
7267 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7268 nw="$nw -Wshadow"
7269
7270 # The following line should be removable at some point.
7271 nw="$nw -Wsuggest-attribute=pure"
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -Wstack-protector" >&5
7274 $as_echo_n "checking whether to use -Wstack-protector... " >&6; }
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #if (1 <= __LONG_MAX__ >> 31 >> 31 \
7278 && 4 < __GNUC__ + (7 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__)))
7279 /* OK */
7280 #else
7281 #error "Not GCC, or GCC before 4.7.2, or 'long int' has < 64 bits."
7282 #endif
7283
7284 int
7285 main ()
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_cpp "$LINENO"; then :
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 nw="$nw -Wstack-protector"
7299 fi
7300 rm -f conftest.err conftest.$ac_ext
7301
7302
7303
7304 if test -n "$GCC"; then
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7307 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7308 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311
7312 gl_save_CFLAGS="$CFLAGS"
7313 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316
7317 int
7318 main ()
7319 {
7320
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 if ac_fn_c_try_compile "$LINENO"; then :
7326 gl_cv_cc_nomfi_supported=yes
7327 else
7328 gl_cv_cc_nomfi_supported=no
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 CFLAGS="$gl_save_CFLAGS"
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7335 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7336
7337 if test "$gl_cv_cc_nomfi_supported" = yes; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7339 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7340 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343
7344 gl_save_CFLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -W -Werror"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 void f (void)
7349 {
7350 typedef struct { int a; int b; } s_t;
7351 s_t s1 = { 0, };
7352 }
7353
7354 int
7355 main ()
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_compile "$LINENO"; then :
7363 gl_cv_cc_nomfi_needed=no
7364 else
7365 gl_cv_cc_nomfi_needed=yes
7366 fi
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 CFLAGS="$gl_save_CFLAGS"
7369
7370 fi
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7373 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7374 fi
7375
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7377 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7378 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381
7382 gl_save_CFLAGS="$CFLAGS"
7383 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386
7387 int
7388 main ()
7389 {
7390
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 if ac_fn_c_try_compile "$LINENO"; then :
7396 gl_cv_cc_uninitialized_supported=yes
7397 else
7398 gl_cv_cc_uninitialized_supported=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 CFLAGS="$gl_save_CFLAGS"
7402 fi
7403
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7405 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7406
7407 fi
7408
7409 # List all gcc warning categories.
7410 gl_manywarn_set=
7411 for gl_manywarn_item in \
7412 -W \
7413 -Wabi \
7414 -Waddress \
7415 -Wall \
7416 -Warray-bounds \
7417 -Wattributes \
7418 -Wbad-function-cast \
7419 -Wbuiltin-macro-redefined \
7420 -Wcast-align \
7421 -Wchar-subscripts \
7422 -Wclobbered \
7423 -Wcomment \
7424 -Wcomments \
7425 -Wcoverage-mismatch \
7426 -Wcpp \
7427 -Wdeprecated \
7428 -Wdeprecated-declarations \
7429 -Wdisabled-optimization \
7430 -Wdiv-by-zero \
7431 -Wdouble-promotion \
7432 -Wempty-body \
7433 -Wendif-labels \
7434 -Wenum-compare \
7435 -Wextra \
7436 -Wformat-contains-nul \
7437 -Wformat-extra-args \
7438 -Wformat-nonliteral \
7439 -Wformat-security \
7440 -Wformat-y2k \
7441 -Wformat-zero-length \
7442 -Wformat=2 \
7443 -Wfree-nonheap-object \
7444 -Wignored-qualifiers \
7445 -Wimplicit \
7446 -Wimplicit-function-declaration \
7447 -Wimplicit-int \
7448 -Winit-self \
7449 -Winline \
7450 -Wint-to-pointer-cast \
7451 -Winvalid-memory-model \
7452 -Winvalid-pch \
7453 -Wjump-misses-init \
7454 -Wlogical-op \
7455 -Wmain \
7456 -Wmaybe-uninitialized \
7457 -Wmissing-braces \
7458 -Wmissing-declarations \
7459 -Wmissing-field-initializers \
7460 -Wmissing-format-attribute \
7461 -Wmissing-include-dirs \
7462 -Wmissing-noreturn \
7463 -Wmissing-parameter-type \
7464 -Wmissing-prototypes \
7465 -Wmudflap \
7466 -Wmultichar \
7467 -Wnarrowing \
7468 -Wnested-externs \
7469 -Wnonnull \
7470 -Wnormalized=nfc \
7471 -Wold-style-declaration \
7472 -Wold-style-definition \
7473 -Woverflow \
7474 -Woverlength-strings \
7475 -Woverride-init \
7476 -Wpacked \
7477 -Wpacked-bitfield-compat \
7478 -Wparentheses \
7479 -Wpointer-arith \
7480 -Wpointer-sign \
7481 -Wpointer-to-int-cast \
7482 -Wpragmas \
7483 -Wreturn-type \
7484 -Wsequence-point \
7485 -Wshadow \
7486 -Wsizeof-pointer-memaccess \
7487 -Wstack-protector \
7488 -Wstrict-aliasing \
7489 -Wstrict-overflow \
7490 -Wstrict-prototypes \
7491 -Wsuggest-attribute=const \
7492 -Wsuggest-attribute=format \
7493 -Wsuggest-attribute=noreturn \
7494 -Wsuggest-attribute=pure \
7495 -Wswitch \
7496 -Wswitch-default \
7497 -Wsync-nand \
7498 -Wsystem-headers \
7499 -Wtrampolines \
7500 -Wtrigraphs \
7501 -Wtype-limits \
7502 -Wuninitialized \
7503 -Wunknown-pragmas \
7504 -Wunreachable-code \
7505 -Wunsafe-loop-optimizations \
7506 -Wunused \
7507 -Wunused-but-set-parameter \
7508 -Wunused-but-set-variable \
7509 -Wunused-function \
7510 -Wunused-label \
7511 -Wunused-local-typedefs \
7512 -Wunused-macros \
7513 -Wunused-parameter \
7514 -Wunused-result \
7515 -Wunused-value \
7516 -Wunused-variable \
7517 -Wvarargs \
7518 -Wvariadic-macros \
7519 -Wvector-operation-performance \
7520 -Wvla \
7521 -Wvolatile-register-var \
7522 -Wwrite-strings \
7523 \
7524 ; do
7525 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7526 done
7527
7528 # Disable specific options as needed.
7529 if test "$gl_cv_cc_nomfi_needed" = yes; then
7530 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7531 fi
7532
7533 if test "$gl_cv_cc_uninitialized_supported" = no; then
7534 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7535 fi
7536
7537 ws=$gl_manywarn_set
7538
7539
7540 gl_warn_set=
7541 set x $ws; shift
7542 for gl_warn_item
7543 do
7544 case " $nw " in
7545 *" $gl_warn_item "*)
7546 ;;
7547 *)
7548 gl_warn_set="$gl_warn_set $gl_warn_item"
7549 ;;
7550 esac
7551 done
7552 ws=$gl_warn_set
7553
7554 for w in $ws; do
7555 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7557 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7558 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561
7562 gl_save_compiler_FLAGS="$CFLAGS"
7563 as_fn_append CFLAGS " $w"
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566
7567 int
7568 main ()
7569 {
7570
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 eval "$as_gl_Warn=yes"
7577 else
7578 eval "$as_gl_Warn=no"
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 CFLAGS="$gl_save_compiler_FLAGS"
7582
7583 fi
7584 eval ac_res=\$$as_gl_Warn
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7586 $as_echo "$ac_res" >&6; }
7587 eval as_val=\$$as_gl_Warn
7588 if test "x$as_val" = x""yes; then :
7589 as_fn_append WARN_CFLAGS " $w"
7590 fi
7591
7592
7593 done
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7595 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7596 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599
7600 gl_save_compiler_FLAGS="$CFLAGS"
7601 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604
7605 int
7606 main ()
7607 {
7608
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 gl_cv_warn_c__Wno_missing_field_initializers=yes
7615 else
7616 gl_cv_warn_c__Wno_missing_field_initializers=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 CFLAGS="$gl_save_compiler_FLAGS"
7620
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7623 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7624 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7625 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7626 fi
7627
7628 # We need this one
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7630 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7631 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634
7635 gl_save_compiler_FLAGS="$CFLAGS"
7636 as_fn_append CFLAGS " -Wno-sign-compare"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639
7640 int
7641 main ()
7642 {
7643
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 gl_cv_warn_c__Wno_sign_compare=yes
7650 else
7651 gl_cv_warn_c__Wno_sign_compare=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 CFLAGS="$gl_save_compiler_FLAGS"
7655
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7658 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7659 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7660 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7661 fi
7662
7663 # Too many warnings for now
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7665 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7666 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669
7670 gl_save_compiler_FLAGS="$CFLAGS"
7671 as_fn_append CFLAGS " -Wno-type-limits"
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674
7675 int
7676 main ()
7677 {
7678
7679 ;
7680 return 0;
7681 }
7682 _ACEOF
7683 if ac_fn_c_try_compile "$LINENO"; then :
7684 gl_cv_warn_c__Wno_type_limits=yes
7685 else
7686 gl_cv_warn_c__Wno_type_limits=no
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 CFLAGS="$gl_save_compiler_FLAGS"
7690
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7693 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7694 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7695 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7696 fi
7697
7698 # Too many warnings for now
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7700 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7701 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704
7705 gl_save_compiler_FLAGS="$CFLAGS"
7706 as_fn_append CFLAGS " -Wno-switch"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709
7710 int
7711 main ()
7712 {
7713
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 gl_cv_warn_c__Wno_switch=yes
7720 else
7721 gl_cv_warn_c__Wno_switch=no
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 CFLAGS="$gl_save_compiler_FLAGS"
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7728 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7729 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7730 as_fn_append WARN_CFLAGS " -Wno-switch"
7731 fi
7732
7733 # Too many warnings for now
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7735 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7736 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739
7740 gl_save_compiler_FLAGS="$CFLAGS"
7741 as_fn_append CFLAGS " -Wno-unused-parameter"
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744
7745 int
7746 main ()
7747 {
7748
7749 ;
7750 return 0;
7751 }
7752 _ACEOF
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 gl_cv_warn_c__Wno_unused_parameter=yes
7755 else
7756 gl_cv_warn_c__Wno_unused_parameter=no
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 CFLAGS="$gl_save_compiler_FLAGS"
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7763 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7764 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7765 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7766 fi
7767
7768 # Too many warnings for now
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7770 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7771 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774
7775 gl_save_compiler_FLAGS="$CFLAGS"
7776 as_fn_append CFLAGS " -Wno-format-nonliteral"
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779
7780 int
7781 main ()
7782 {
7783
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 gl_cv_warn_c__Wno_format_nonliteral=yes
7790 else
7791 gl_cv_warn_c__Wno_format_nonliteral=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 CFLAGS="$gl_save_compiler_FLAGS"
7795
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7798 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7799 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7800 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7801 fi
7802
7803
7804
7805 # In spite of excluding -Wlogical-op above, it is enabled, as of
7806 # gcc 4.5.0 20090517.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7808 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7809 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812
7813 gl_save_compiler_FLAGS="$CFLAGS"
7814 as_fn_append CFLAGS " -Wno-logical-op"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817
7818 int
7819 main ()
7820 {
7821
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827 gl_cv_warn_c__Wno_logical_op=yes
7828 else
7829 gl_cv_warn_c__Wno_logical_op=no
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 CFLAGS="$gl_save_compiler_FLAGS"
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7836 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7837 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7838 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7839 fi
7840
7841
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7844 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7845 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848
7849 gl_save_compiler_FLAGS="$CFLAGS"
7850 as_fn_append CFLAGS " -fdiagnostics-show-option"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853
7854 int
7855 main ()
7856 {
7857
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 gl_cv_warn_c__fdiagnostics_show_option=yes
7864 else
7865 gl_cv_warn_c__fdiagnostics_show_option=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 CFLAGS="$gl_save_compiler_FLAGS"
7869
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7872 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7873 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7874 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7875 fi
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7879 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7880 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883
7884 gl_save_compiler_FLAGS="$CFLAGS"
7885 as_fn_append CFLAGS " -funit-at-a-time"
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888
7889 int
7890 main ()
7891 {
7892
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 gl_cv_warn_c__funit_at_a_time=yes
7899 else
7900 gl_cv_warn_c__funit_at_a_time=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 CFLAGS="$gl_save_compiler_FLAGS"
7904
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7907 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7908 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7909 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7910 fi
7911
7912
7913
7914
7915 $as_echo "#define lint 1" >>confdefs.h
7916
7917
7918
7919 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7920
7921
7922 # We use a slightly smaller set of warning options for lib/.
7923 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7924 nw=
7925 nw="$nw -Wunused-macros"
7926
7927
7928 gl_warn_set=
7929 set x $WARN_CFLAGS; shift
7930 for gl_warn_item
7931 do
7932 case " $nw " in
7933 *" $gl_warn_item "*)
7934 ;;
7935 *)
7936 gl_warn_set="$gl_warn_set $gl_warn_item"
7937 ;;
7938 esac
7939 done
7940 GNULIB_WARN_CFLAGS=$gl_warn_set
7941
7942
7943 fi
7944
7945
7946
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7948 $as_echo_n "checking whether ln -s works... " >&6; }
7949 LN_S=$as_ln_s
7950 if test "$LN_S" = "ln -s"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7952 $as_echo "yes" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7955 $as_echo "no, using $LN_S" >&6; }
7956 fi
7957
7958
7959 # Extract the first word of "install-info", so it can be a program name with args.
7960 set dummy install-info; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 case $INSTALL_INFO in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7969 ;;
7970 *)
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7987 ;;
7988 esac
7989 fi
7990 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7991 if test -n "$INSTALL_INFO"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7993 $as_echo "$INSTALL_INFO" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999
8000 # Extract the first word of "gzip", so it can be a program name with args.
8001 set dummy gzip; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 case $GZIP_PROG in
8008 [\\/]* | ?:[\\/]*)
8009 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8010 ;;
8011 *)
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 ;;
8028 esac
8029 fi
8030 GZIP_PROG=$ac_cv_path_GZIP_PROG
8031 if test -n "$GZIP_PROG"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8033 $as_echo "$GZIP_PROG" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040
8041 if test $opsys = gnu-linux; then
8042 # Extract the first word of "paxctl", so it can be a program name with args.
8043 set dummy paxctl; ac_word=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 case $PAXCTL in
8050 [\\/]* | ?:[\\/]*)
8051 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8052 ;;
8053 *)
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8056 do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 ;;
8070 esac
8071 fi
8072 PAXCTL=$ac_cv_path_PAXCTL
8073 if test -n "$PAXCTL"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8075 $as_echo "$PAXCTL" >&6; }
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082 if test "X$PAXCTL" != X; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8084 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087
8088 int
8089 main ()
8090 {
8091
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098 $as_echo "yes" >&6; }
8099 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }; PAXCTL=""; fi
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 fi
8105 fi
8106
8107 ## Need makeinfo >= 4.7 (?) to build the manuals.
8108 # Extract the first word of "makeinfo", so it can be a program name with args.
8109 set dummy makeinfo; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 case $MAKEINFO in
8116 [\\/]* | ?:[\\/]*)
8117 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8118 ;;
8119 *)
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8136 ;;
8137 esac
8138 fi
8139 MAKEINFO=$ac_cv_path_MAKEINFO
8140 if test -n "$MAKEINFO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8142 $as_echo "$MAKEINFO" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149 if test "$MAKEINFO" != "no" && \
8150 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
8151 MAKEINFO=no
8152 fi
8153
8154 ## Makeinfo is unusual. For a released Emacs, the manuals are
8155 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8156 ## therefore in the category of "special tools" not normally required, which
8157 ## configure does not have to check for (eg autoconf itself).
8158 ## In a Bazaar checkout on the other hand, the manuals are not included.
8159 ## So makeinfo is a requirement to build from Bazaar, and configure
8160 ## should test for it as it does for any other build requirement.
8161 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8162 ## with pre-built manuals, from a Bazaar checkout.
8163 HAVE_MAKEINFO=yes
8164
8165 if test "$MAKEINFO" = "no"; then
8166 MAKEINFO=makeinfo
8167 if test "x${with_makeinfo}" = "xno"; then
8168 HAVE_MAKEINFO=no
8169 elif test ! -e $srcdir/info/emacs; then
8170 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8171 source tree does not seem to have pre-built manuals in the \`info' directory.
8172 Either install a suitable version of makeinfo, or re-run configure
8173 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8174 fi
8175 fi
8176
8177
8178 INFO_EXT=.info
8179 INFO_OPTS=--no-split
8180
8181
8182
8183
8184 if test x$GCC = xyes; then
8185 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8186 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8187 else
8188 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8189 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8190 fi
8191
8192
8193 late_LDFLAGS=$LDFLAGS
8194 if test x$GCC = xyes; then
8195 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8196 else
8197 LDFLAGS="$LDFLAGS -znocombreloc"
8198 fi
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8201 $as_echo_n "checking for -znocombreloc... " >&6; }
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204
8205 int
8206 main ()
8207 {
8208
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"; then :
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215 $as_echo "yes" >&6; }
8216 else
8217 LDFLAGS=$late_LDFLAGS
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223
8224
8225 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8226 case "$opsys" in
8227 your-opsys-here) CANNOT_DUMP=yes ;;
8228 esac
8229
8230 test "$CANNOT_DUMP" = "yes" && \
8231
8232 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8233
8234
8235
8236
8237
8238 UNEXEC_OBJ=unexelf.o
8239 case "$opsys" in
8240 # MSDOS uses unexcoff.o
8241 # MSWindows uses unexw32.o
8242 aix4-2)
8243 UNEXEC_OBJ=unexaix.o
8244 ;;
8245 cygwin)
8246 UNEXEC_OBJ=unexcw.o
8247 ;;
8248 darwin)
8249 UNEXEC_OBJ=unexmacosx.o
8250 ;;
8251 hpux10-20 | hpux11)
8252 UNEXEC_OBJ=unexhp9k800.o
8253 ;;
8254 sol2-10)
8255 # Use the Solaris dldump() function, called from unexsol.c, to dump
8256 # emacs, instead of the generic ELF dump code found in unexelf.c.
8257 # The resulting binary has a complete symbol table, and is better
8258 # for debugging and other observability tools (debuggers, pstack, etc).
8259 #
8260 # If you encounter a problem using dldump(), please consider sending
8261 # a message to the OpenSolaris tools-linking mailing list:
8262 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8263 #
8264 # It is likely that dldump() works with older Solaris too, but this has
8265 # not been tested, so for now this change is for Solaris 10 or newer.
8266 UNEXEC_OBJ=unexsol.o
8267 ;;
8268 esac
8269
8270 LD_SWITCH_SYSTEM=
8271 case "$opsys" in
8272 freebsd)
8273 ## Let `ld' find image libs and similar things in /usr/local/lib.
8274 ## The system compiler, GCC, has apparently been modified to not
8275 ## look there, contrary to what a stock GCC would do.
8276 ### It's not our place to do this. See bug#10313#17.
8277 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8278 :
8279 ;;
8280
8281 gnu-linux)
8282 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8283 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8284 ;;
8285
8286 netbsd)
8287 ### It's not our place to do this. See bug#10313#17.
8288 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8289 :
8290 ;;
8291
8292 openbsd)
8293 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8294 ## otherwise Emacs dumps core on elf systems.
8295 LD_SWITCH_SYSTEM="-Z"
8296 ;;
8297 esac
8298
8299
8300 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8301
8302 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8303 ## which has not been defined yet. When this was handled with cpp,
8304 ## it was expanded to null when configure sourced the s/*.h file.
8305 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8306 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8307 ## (or somesuch), but because it is supposed to go at the _front_
8308 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8309 ## Compare with the gnu-linux case below, which added to the end
8310 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8311 ## LD_SWITCH_SYSTEM_TEMACS.
8312 case "$opsys" in
8313 netbsd|openbsd)
8314 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8315 esac
8316
8317
8318 C_SWITCH_MACHINE=
8319 case $canonical in
8320 alpha*)
8321 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8322 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8323
8324 fi
8325
8326 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8327 ## With ELF, make sure that all common symbols get allocated to in the
8328 ## data section. Otherwise, the dump of temacs may miss variables in
8329 ## the shared library that have been initialized. For example, with
8330 ## GNU libc, __malloc_initialized would normally be resolved to the
8331 ## shared library's .bss section, which is fatal.
8332 if test "x$GCC" = "xyes"; then
8333 C_SWITCH_MACHINE="-fno-common"
8334 else
8335 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8336 fi
8337 else
8338 UNEXEC_OBJ=unexalpha.o
8339 fi
8340 ;;
8341 esac
8342
8343
8344
8345
8346 C_SWITCH_SYSTEM=
8347 ## Some programs in src produce warnings saying certain subprograms
8348 ## are too complex and need a MAXMEM value greater than 2000 for
8349 ## additional optimization. --nils@exp-math.uni-essen.de
8350 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8351 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8352 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8353 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8354
8355
8356
8357 LIBS_SYSTEM=
8358 case "$opsys" in
8359 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8360 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8361
8362 freebsd) LIBS_SYSTEM="-lutil" ;;
8363
8364 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8365
8366 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8367
8368 ## Motif needs -lgen.
8369 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8370 esac
8371
8372
8373
8374 ### Make sure subsequent tests use flags consistent with the build flags.
8375
8376 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8377 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8378 else
8379 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8380 fi
8381
8382 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8383
8384 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8385
8386
8387
8388 LIB_MATH=-lm
8389 LIB_STANDARD=
8390 START_FILES=
8391 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8392
8393 case $opsys in
8394 cygwin )
8395 LIB_MATH=
8396 START_FILES='pre-crt0.o'
8397 ;;
8398 darwin )
8399 ## Adding -lm confuses the dynamic linker, so omit it.
8400 LIB_MATH=
8401 START_FILES='pre-crt0.o'
8402 ;;
8403 freebsd )
8404 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8405 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8406 SYSTEM_TYPE=berkeley-unix
8407 ;;
8408 gnu-linux | gnu-kfreebsd )
8409 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8410 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8411 ;;
8412 hpux10-20 | hpux11 )
8413 LIB_STANDARD=-lc
8414 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8415 ;;
8416 netbsd | openbsd )
8417 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8418 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8419 SYSTEM_TYPE=berkeley-unix
8420 ;;
8421
8422 sol2* | unixware )
8423 SYSTEM_TYPE=usg-unix-v
8424 ;;
8425
8426 esac
8427
8428
8429
8430
8431 cat >>confdefs.h <<_ACEOF
8432 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8433 _ACEOF
8434
8435
8436 crt_files=
8437
8438 for file in x $LIB_STANDARD $START_FILES; do
8439 case "$file" in
8440 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8441 esac
8442 done
8443
8444 if test "x$crt_files" != x; then
8445
8446 ## If user specified a crt-dir, use that unconditionally.
8447 crt_gcc=no
8448
8449 if test "X$CRT_DIR" = "X"; then
8450
8451 CRT_DIR=/usr/lib # default
8452
8453 case "$canonical" in
8454 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8455 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8456 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8457 ## For anything else (eg /usr/lib32), it is up the user to specify
8458 ## the location (bug#5655).
8459 ## Test for crtn.o, not just the directory, because sometimes the
8460 ## directory exists but does not have the relevant files (bug#1287).
8461 ## FIXME better to test for binary compatibility somehow.
8462 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8463 ;;
8464
8465 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8466 esac
8467
8468 case "$opsys" in
8469 hpux10-20) CRT_DIR=/lib ;;
8470 esac
8471
8472 test "x${GCC}" = xyes && crt_gcc=yes
8473
8474 fi # CRT_DIR = ""
8475
8476 crt_missing=
8477
8478 for file in $crt_files; do
8479
8480 ## If we're using gcc, try to determine it automatically by asking
8481 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8482 ## system-dependent default from above.]
8483 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8484
8485 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8486 case "$crt_file" in
8487 */*)
8488 CRT_DIR=`$as_dirname -- "$crt_file" ||
8489 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8490 X"$crt_file" : 'X\(//\)[^/]' \| \
8491 X"$crt_file" : 'X\(//\)$' \| \
8492 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8493 $as_echo X"$crt_file" |
8494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8495 s//\1/
8496 q
8497 }
8498 /^X\(\/\/\)[^/].*/{
8499 s//\1/
8500 q
8501 }
8502 /^X\(\/\/\)$/{
8503 s//\1/
8504 q
8505 }
8506 /^X\(\/\).*/{
8507 s//\1/
8508 q
8509 }
8510 s/.*/./; q'`
8511 ;;
8512 esac
8513 fi
8514
8515 crt_gcc=no
8516
8517 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8518 done # $crt_files
8519
8520 test "x$crt_missing" = x || \
8521 as_fn_error "Required file(s) not found:$crt_missing
8522 Try using the --with-crt-dir option." "$LINENO" 5
8523
8524 fi # crt_files != ""
8525
8526
8527
8528 case $opsys in
8529 netbsd | openbsd )
8530 if test -f $CRT_DIR/crti.o; then
8531
8532 test -f $CRT_DIR/crtn.o || \
8533 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8534
8535 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8536 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8537 fi
8538 ;;
8539 esac
8540
8541
8542 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8543 pre_PKG_CONFIG_LIBS=$LIBS
8544
8545 # Extract the first word of "pkg-config", so it can be a program name with args.
8546 set dummy pkg-config; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 case $PKG_CONFIG in
8553 [\\/]* | ?:[\\/]*)
8554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8555 ;;
8556 *)
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568 done
8569 done
8570 IFS=$as_save_IFS
8571
8572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8573 ;;
8574 esac
8575 fi
8576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8577 if test -n "$PKG_CONFIG"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8579 $as_echo "$PKG_CONFIG" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8583 fi
8584
8585
8586
8587
8588
8589
8590 if test "${with_sound}" != "no"; then
8591 # Sound support for GNU/Linux and the free BSDs.
8592 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8593 do :
8594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8596 eval as_val=\$$as_ac_Header
8597 if test "x$as_val" = x""yes; then :
8598 cat >>confdefs.h <<_ACEOF
8599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8600 _ACEOF
8601 have_sound_header=yes
8602 fi
8603
8604 done
8605
8606 # Emulation library used on NetBSD.
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8608 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8609 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 ac_check_lib_save_LIBS=$LIBS
8613 LIBS="-lossaudio $LIBS"
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616
8617 /* Override any GCC internal prototype to avoid an error.
8618 Use char because int might match the return type of a GCC
8619 builtin and then its argument prototype would still apply. */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 char _oss_ioctl ();
8624 int
8625 main ()
8626 {
8627 return _oss_ioctl ();
8628 ;
8629 return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 ac_cv_lib_ossaudio__oss_ioctl=yes
8634 else
8635 ac_cv_lib_ossaudio__oss_ioctl=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8642 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8643 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8644 LIBSOUND=-lossaudio
8645 else
8646 LIBSOUND=
8647 fi
8648
8649
8650
8651 ALSA_REQUIRED=1.0.0
8652 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8653
8654 succeeded=no
8655
8656 if test "$PKG_CONFIG" = "no" ; then
8657 HAVE_ALSA=no
8658 else
8659 PKG_CONFIG_MIN_VERSION=0.9.0
8660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8662 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8663
8664 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8665 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8666 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8667 edit_cflags="
8668 s,///*,/,g
8669 s/^/ /
8670 s/ -I/ $isystem/g
8671 s/^ //
8672 "
8673 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8674 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8676 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8677 succeeded=yes
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 ALSA_CFLAGS=""
8682 ALSA_LIBS=""
8683 ## If we have a custom action on failure, don't print errors, but
8684 ## do set a variable so people can do so. Do it in a subshell
8685 ## to capture any diagnostics in invoking pkg-config.
8686 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8687
8688 fi
8689
8690
8691
8692 else
8693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8695 fi
8696 fi
8697
8698 if test $succeeded = yes; then
8699 HAVE_ALSA=yes
8700 else
8701 HAVE_ALSA=no
8702 fi
8703
8704 if test $HAVE_ALSA = yes; then
8705 SAVE_CFLAGS="$CFLAGS"
8706 SAVE_LIBS="$LIBS"
8707 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8708 LIBS="$ALSA_LIBS $LIBS"
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #include <asoundlib.h>
8712 int
8713 main ()
8714 {
8715 snd_lib_error_set_handler (0);
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 emacs_alsa_normal=yes
8722 else
8723 emacs_alsa_normal=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 if test "$emacs_alsa_normal" != yes; then
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #include <alsa/asoundlib.h>
8730 int
8731 main ()
8732 {
8733 snd_lib_error_set_handler (0);
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"; then :
8739 emacs_alsa_subdir=yes
8740 else
8741 emacs_alsa_subdir=no
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 if test "$emacs_alsa_subdir" != yes; then
8745 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8746 fi
8747 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8748 fi
8749
8750 CFLAGS="$SAVE_CFLAGS"
8751 LIBS="$SAVE_LIBS"
8752 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8753 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8754
8755 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8756
8757 fi
8758
8759 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8760 case "$opsys" in
8761 gnu-linux|freebsd|netbsd)
8762
8763 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8764
8765 ;;
8766 esac
8767 fi
8768
8769
8770 fi
8771
8772
8773
8774
8775 for ac_header in $ac_header_list
8776 do :
8777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8779 "
8780 eval as_val=\$$as_ac_Header
8781 if test "x$as_val" = x""yes; then :
8782 cat >>confdefs.h <<_ACEOF
8783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 fi
8787
8788 done
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8815 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <sys/personality.h>
8819 int
8820 main ()
8821 {
8822 personality (PER_LINUX32)
8823 ;
8824 return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"; then :
8828 emacs_cv_personality_linux32=yes
8829 else
8830 emacs_cv_personality_linux32=no
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8834 $as_echo "$emacs_cv_personality_linux32" >&6; }
8835
8836 if test $emacs_cv_personality_linux32 = yes; then
8837
8838 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8839
8840 fi
8841
8842 for ac_header in term.h
8843 do :
8844 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8845 if test "x$ac_cv_header_term_h" = x""yes; then :
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_TERM_H 1
8848 _ACEOF
8849
8850 fi
8851
8852 done
8853
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8855 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8856 if test "${ac_cv_header_time+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/time.h>
8863 #include <time.h>
8864
8865 int
8866 main ()
8867 {
8868 if ((struct tm *) 0)
8869 return 0;
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_compile "$LINENO"; then :
8875 ac_cv_header_time=yes
8876 else
8877 ac_cv_header_time=no
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8882 $as_echo "$ac_cv_header_time" >&6; }
8883 if test $ac_cv_header_time = yes; then
8884
8885 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8886
8887 fi
8888
8889 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8890
8891 "
8892 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8893 ac_have_decl=1
8894 else
8895 ac_have_decl=0
8896 fi
8897
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8900 _ACEOF
8901
8902 if test $ac_cv_have_decl_sys_siglist != yes; then
8903 # For Tru64, at least:
8904 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8905
8906 "
8907 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8908 ac_have_decl=1
8909 else
8910 ac_have_decl=0
8911 fi
8912
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8915 _ACEOF
8916
8917 if test $ac_cv_have_decl___sys_siglist = yes; then
8918
8919 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8920
8921 fi
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8924 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8925 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <sys/types.h>
8931 #include <sys/wait.h>
8932 #ifndef WEXITSTATUS
8933 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8934 #endif
8935 #ifndef WIFEXITED
8936 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8937 #endif
8938
8939 int
8940 main ()
8941 {
8942 int s;
8943 wait (&s);
8944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_compile "$LINENO"; then :
8950 ac_cv_header_sys_wait_h=yes
8951 else
8952 ac_cv_header_sys_wait_h=no
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8957 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8958 if test $ac_cv_header_sys_wait_h = yes; then
8959
8960 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8961
8962 fi
8963
8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8966 $as_echo_n "checking for speed_t... " >&6; }
8967 if test "${emacs_cv_speed_t+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <termios.h>
8973 int
8974 main ()
8975 {
8976 speed_t x = 1;
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982 emacs_cv_speed_t=yes
8983 else
8984 emacs_cv_speed_t=no
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 fi
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8989 $as_echo "$emacs_cv_speed_t" >&6; }
8990 if test $emacs_cv_speed_t = yes; then
8991
8992 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8993
8994 fi
8995
8996
8997
8998
8999 for ac_header in net/if.h
9000 do :
9001 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9002 #if HAVE_SYS_SOCKET_H
9003 #include <sys/socket.h>
9004 #endif
9005 "
9006 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_NET_IF_H 1
9009 _ACEOF
9010
9011 fi
9012
9013 done
9014
9015 for ac_header in ifaddrs.h
9016 do :
9017 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9018 #if HAVE_SYS_SOCKET_H
9019 #include <sys/socket.h>
9020 #endif
9021 "
9022 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9023 cat >>confdefs.h <<_ACEOF
9024 #define HAVE_IFADDRS_H 1
9025 _ACEOF
9026
9027 fi
9028
9029 done
9030
9031 for ac_header in net/if_dl.h
9032 do :
9033 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9034 #if HAVE_SYS_SOCKET_H
9035 #include <sys/socket.h>
9036 #endif
9037 "
9038 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9039 cat >>confdefs.h <<_ACEOF
9040 #define HAVE_NET_IF_DL_H 1
9041 _ACEOF
9042
9043 fi
9044
9045 done
9046
9047
9048 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9049 #if HAVE_SYS_SOCKET_H
9050 #include <sys/socket.h>
9051 #endif
9052 #if HAVE_NET_IF_H
9053 #include <net/if.h>
9054 #endif
9055 "
9056 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9057
9058 cat >>confdefs.h <<_ACEOF
9059 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9060 _ACEOF
9061
9062
9063 fi
9064 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9065 #if HAVE_SYS_SOCKET_H
9066 #include <sys/socket.h>
9067 #endif
9068 #if HAVE_NET_IF_H
9069 #include <net/if.h>
9070 #endif
9071 "
9072 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9076 _ACEOF
9077
9078
9079 fi
9080 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9081 #if HAVE_SYS_SOCKET_H
9082 #include <sys/socket.h>
9083 #endif
9084 #if HAVE_NET_IF_H
9085 #include <net/if.h>
9086 #endif
9087 "
9088 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9089
9090 cat >>confdefs.h <<_ACEOF
9091 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9092 _ACEOF
9093
9094
9095 fi
9096 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9097 #if HAVE_SYS_SOCKET_H
9098 #include <sys/socket.h>
9099 #endif
9100 #if HAVE_NET_IF_H
9101 #include <net/if.h>
9102 #endif
9103 "
9104 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9105
9106 cat >>confdefs.h <<_ACEOF
9107 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9108 _ACEOF
9109
9110
9111 fi
9112 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9113 #if HAVE_SYS_SOCKET_H
9114 #include <sys/socket.h>
9115 #endif
9116 #if HAVE_NET_IF_H
9117 #include <net/if.h>
9118 #endif
9119 "
9120 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9121
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9124 _ACEOF
9125
9126
9127 fi
9128 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9129 #if HAVE_SYS_SOCKET_H
9130 #include <sys/socket.h>
9131 #endif
9132 #if HAVE_NET_IF_H
9133 #include <net/if.h>
9134 #endif
9135 "
9136 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9137
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9140 _ACEOF
9141
9142
9143 fi
9144
9145
9146
9147
9148 DEPFLAGS=
9149 MKDEPDIR=":"
9150 deps_frag=deps.mk
9151 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9153 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9154 HAVE_GNU_MAKE=no
9155 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9156 if test "x$testval" != x; then
9157 HAVE_GNU_MAKE=yes
9158 else
9159 ac_enable_autodepend=no
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9162 $as_echo "$HAVE_GNU_MAKE" >&6; }
9163 if test $HAVE_GNU_MAKE = yes; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9165 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9166 SAVE_CFLAGS="$CFLAGS"
9167 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170
9171 int
9172 main ()
9173 {
9174
9175 ;
9176 return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_compile "$LINENO"; then :
9180
9181 else
9182 ac_enable_autodepend=no
9183 fi
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 CFLAGS="$SAVE_CFLAGS"
9186 test -f deps.d || ac_enable_autodepend=no
9187 rm -rf deps.d
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9189 $as_echo "$ac_enable_autodepend" >&6; }
9190 fi
9191 if test $ac_enable_autodepend = yes; then
9192 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9193 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9194 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9195 deps_frag=autodeps.mk
9196 fi
9197 fi
9198 deps_frag=$srcdir/src/$deps_frag
9199
9200
9201
9202
9203
9204 lisp_frag=$srcdir/src/lisp.mk
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9209 $as_echo_n "checking for long file names... " >&6; }
9210 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 ac_cv_sys_long_file_names=yes
9214 # Test for long file names in all the places we know might matter:
9215 # . the current directory, where building will happen
9216 # $prefix/lib where we will be installing things
9217 # $exec_prefix/lib likewise
9218 # $TMPDIR if set, where it might want to write temporary files
9219 # /tmp where it might want to write temporary files
9220 # /var/tmp likewise
9221 # /usr/tmp likewise
9222 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9223 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9224 # in the usual case where exec_prefix is '${prefix}'.
9225 case $ac_dir in #(
9226 . | /* | ?:[\\/]*) ;; #(
9227 *) continue;;
9228 esac
9229 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9230 ac_xdir=$ac_dir/cf$$
9231 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9232 ac_tf1=$ac_xdir/conftest9012345
9233 ac_tf2=$ac_xdir/conftest9012346
9234 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9235 ac_cv_sys_long_file_names=no
9236 rm -f -r "$ac_xdir" 2>/dev/null
9237 test $ac_cv_sys_long_file_names = no && break
9238 done
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9241 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9242 if test $ac_cv_sys_long_file_names = yes; then
9243
9244 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9245
9246 fi
9247
9248
9249 #### Choose a window system.
9250
9251 ## We leave window_system equal to none if
9252 ## we end up building without one. Any new window system should
9253 ## set window_system to an appropriate value and add objects to
9254 ## window-system-specific substs.
9255
9256 window_system=none
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9258 $as_echo_n "checking for X... " >&6; }
9259
9260
9261 # Check whether --with-x was given.
9262 if test "${with_x+set}" = set; then :
9263 withval=$with_x;
9264 fi
9265
9266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9267 if test "x$with_x" = xno; then
9268 # The user explicitly disabled X.
9269 have_x=disabled
9270 else
9271 case $x_includes,$x_libraries in #(
9272 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9273 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 # One or both of the vars are not set, and there is no cached value.
9277 ac_x_includes=no ac_x_libraries=no
9278 rm -f -r conftest.dir
9279 if mkdir conftest.dir; then
9280 cd conftest.dir
9281 cat >Imakefile <<'_ACEOF'
9282 incroot:
9283 @echo incroot='${INCROOT}'
9284 usrlibdir:
9285 @echo usrlibdir='${USRLIBDIR}'
9286 libdir:
9287 @echo libdir='${LIBDIR}'
9288 _ACEOF
9289 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9291 for ac_var in incroot usrlibdir libdir; do
9292 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9293 done
9294 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9295 for ac_extension in a so sl dylib la dll; do
9296 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9297 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9298 ac_im_usrlibdir=$ac_im_libdir; break
9299 fi
9300 done
9301 # Screen out bogus values from the imake configuration. They are
9302 # bogus both because they are the default anyway, and because
9303 # using them would break gcc on systems where it needs fixed includes.
9304 case $ac_im_incroot in
9305 /usr/include) ac_x_includes= ;;
9306 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9307 esac
9308 case $ac_im_usrlibdir in
9309 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9310 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9311 esac
9312 fi
9313 cd ..
9314 rm -f -r conftest.dir
9315 fi
9316
9317 # Standard set of common directories for X headers.
9318 # Check X11 before X11Rn because it is often a symlink to the current release.
9319 ac_x_header_dirs='
9320 /usr/X11/include
9321 /usr/X11R7/include
9322 /usr/X11R6/include
9323 /usr/X11R5/include
9324 /usr/X11R4/include
9325
9326 /usr/include/X11
9327 /usr/include/X11R7
9328 /usr/include/X11R6
9329 /usr/include/X11R5
9330 /usr/include/X11R4
9331
9332 /usr/local/X11/include
9333 /usr/local/X11R7/include
9334 /usr/local/X11R6/include
9335 /usr/local/X11R5/include
9336 /usr/local/X11R4/include
9337
9338 /usr/local/include/X11
9339 /usr/local/include/X11R7
9340 /usr/local/include/X11R6
9341 /usr/local/include/X11R5
9342 /usr/local/include/X11R4
9343
9344 /usr/X386/include
9345 /usr/x386/include
9346 /usr/XFree86/include/X11
9347
9348 /usr/include
9349 /usr/local/include
9350 /usr/unsupported/include
9351 /usr/athena/include
9352 /usr/local/x11r5/include
9353 /usr/lpp/Xamples/include
9354
9355 /usr/openwin/include
9356 /usr/openwin/share/include'
9357
9358 if test "$ac_x_includes" = no; then
9359 # Guess where to find include files, by looking for Xlib.h.
9360 # First, try using that file with no special directory specified.
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 #include <X11/Xlib.h>
9364 _ACEOF
9365 if ac_fn_c_try_cpp "$LINENO"; then :
9366 # We can compile using X headers with no special include directory.
9367 ac_x_includes=
9368 else
9369 for ac_dir in $ac_x_header_dirs; do
9370 if test -r "$ac_dir/X11/Xlib.h"; then
9371 ac_x_includes=$ac_dir
9372 break
9373 fi
9374 done
9375 fi
9376 rm -f conftest.err conftest.$ac_ext
9377 fi # $ac_x_includes = no
9378
9379 if test "$ac_x_libraries" = no; then
9380 # Check for the libraries.
9381 # See if we find them without any special options.
9382 # Don't add to $LIBS permanently.
9383 ac_save_LIBS=$LIBS
9384 LIBS="-lX11 $LIBS"
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9388 int
9389 main ()
9390 {
9391 XrmInitialize ()
9392 ;
9393 return 0;
9394 }
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 LIBS=$ac_save_LIBS
9398 # We can link X programs with no special library path.
9399 ac_x_libraries=
9400 else
9401 LIBS=$ac_save_LIBS
9402 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9403 do
9404 # Don't even attempt the hair of trying to link an X program!
9405 for ac_extension in a so sl dylib la dll; do
9406 if test -r "$ac_dir/libX11.$ac_extension"; then
9407 ac_x_libraries=$ac_dir
9408 break 2
9409 fi
9410 done
9411 done
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 fi # $ac_x_libraries = no
9416
9417 case $ac_x_includes,$ac_x_libraries in #(
9418 no,* | *,no | *\'*)
9419 # Didn't find X, or a directory has "'" in its name.
9420 ac_cv_have_x="have_x=no";; #(
9421 *)
9422 # Record where we found X for the cache.
9423 ac_cv_have_x="have_x=yes\
9424 ac_x_includes='$ac_x_includes'\
9425 ac_x_libraries='$ac_x_libraries'"
9426 esac
9427 fi
9428 ;; #(
9429 *) have_x=yes;;
9430 esac
9431 eval "$ac_cv_have_x"
9432 fi # $with_x != no
9433
9434 if test "$have_x" != yes; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9436 $as_echo "$have_x" >&6; }
9437 no_x=yes
9438 else
9439 # If each of the values was on the command line, it overrides each guess.
9440 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9441 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9442 # Update the cache value to reflect the command line values.
9443 ac_cv_have_x="have_x=yes\
9444 ac_x_includes='$x_includes'\
9445 ac_x_libraries='$x_libraries'"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9447 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9448 fi
9449
9450 if test "$no_x" != yes; then
9451 window_system=x11
9452 fi
9453
9454 LD_SWITCH_X_SITE_RPATH=
9455 if test "${x_libraries}" != NONE; then
9456 if test -n "${x_libraries}"; then
9457 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9458 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9459 fi
9460 x_default_search_path=""
9461 x_search_path=${x_libraries}
9462 if test -z "${x_search_path}"; then
9463 x_search_path=/usr/lib
9464 fi
9465 for x_library in `echo ${x_search_path}: | \
9466 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9467 x_search_path="\
9468 ${x_library}/X11/%L/%T/%N%C%S:\
9469 ${x_library}/X11/%l/%T/%N%C%S:\
9470 ${x_library}/X11/%T/%N%C%S:\
9471 ${x_library}/X11/%L/%T/%N%S:\
9472 ${x_library}/X11/%l/%T/%N%S:\
9473 ${x_library}/X11/%T/%N%S"
9474 if test x"${x_default_search_path}" = x; then
9475 x_default_search_path=${x_search_path}
9476 else
9477 x_default_search_path="${x_search_path}:${x_default_search_path}"
9478 fi
9479 done
9480 fi
9481
9482
9483 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9484 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9485 fi
9486
9487 if test x"${x_includes}" = x; then
9488 bitmapdir=/usr/include/X11/bitmaps
9489 else
9490 # accumulate include directories that have X11 bitmap subdirectories
9491 bmd_acc="dummyval"
9492 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9493 if test -d "${bmd}/X11/bitmaps"; then
9494 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9495 fi
9496 if test -d "${bmd}/bitmaps"; then
9497 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9498 fi
9499 done
9500 if test ${bmd_acc} != "dummyval"; then
9501 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9502 fi
9503 fi
9504
9505 HAVE_NS=no
9506 NS_IMPL_COCOA=no
9507 NS_IMPL_GNUSTEP=no
9508 tmp_CPPFLAGS="$CPPFLAGS"
9509 tmp_CFLAGS="$CFLAGS"
9510 CPPFLAGS="$CPPFLAGS -x objective-c"
9511 CFLAGS="$CFLAGS -x objective-c"
9512 TEMACS_LDFLAGS2="\${LDFLAGS}"
9513 GNU_OBJC_CFLAGS=
9514 if test "${with_ns}" != no; then
9515 if test "${opsys}" = darwin; then
9516 NS_IMPL_COCOA=yes
9517 ns_appdir=`pwd`/nextstep/Emacs.app
9518 ns_appbindir=${ns_appdir}/Contents/MacOS
9519 ns_appresdir=${ns_appdir}/Contents/Resources
9520 ns_appsrc=Cocoa/Emacs.base
9521 elif test -f $GNUSTEP_CONFIG_FILE; then
9522 NS_IMPL_GNUSTEP=yes
9523 ns_appdir=`pwd`/nextstep/Emacs.app
9524 ns_appbindir=${ns_appdir}
9525 ns_appresdir=${ns_appdir}/Resources
9526 ns_appsrc=GNUstep/Emacs.base
9527 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9528 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9529 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9530 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9531 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9532 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9533 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9534 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9535 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9536 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9537 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9538 LIB_STANDARD=
9539 START_FILES=
9540 TEMACS_LDFLAGS2=
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9542 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9543 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 #include <GNUstepBase/GSConfig.h>
9549 int
9550 main ()
9551 {
9552 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9553 1;
9554 #else
9555 fail;
9556 #endif
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"; then :
9562 emacs_cv_objc_exceptions=yes
9563 else
9564 emacs_cv_objc_exceptions=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9569 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9570 if test $emacs_cv_objc_exceptions = yes; then
9571
9572 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9573
9574 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9575 fi
9576 fi
9577
9578 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9579
9580 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9581 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9582 HAVE_NS=yes
9583 else
9584 as_fn_error "\`--with-ns' was specified, but the include
9585 files are missing or cannot be compiled." "$LINENO" 5
9586 fi
9587
9588
9589
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 #include <AppKit/AppKit.h>
9593 int
9594 main ()
9595 {
9596
9597 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9598 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9599 ; /* OK */
9600 #else
9601 #error "OSX 10.4 or newer required"
9602 #endif
9603 #endif
9604
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_compile "$LINENO"; then :
9610 ns_osx_have_104=yes
9611 else
9612 ns_osx_have_104=no
9613 fi
9614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #include <Foundation/NSObjCRuntime.h>
9618 int
9619 main ()
9620 {
9621 NSInteger i;
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"; then :
9627 ns_have_nsinteger=yes
9628 else
9629 ns_have_nsinteger=no
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632 if test $ns_osx_have_104 = no; then
9633 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9634 fi
9635 if test $ns_have_nsinteger = yes; then
9636
9637 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9638
9639 fi
9640 fi
9641
9642
9643
9644 INSTALL_ARCH_INDEP_EXTRA=install-etc
9645 ns_self_contained=no
9646 NS_OBJ=
9647 NS_OBJC_OBJ=
9648 if test "${HAVE_NS}" = yes; then
9649 if test "$with_toolkit_scroll_bars" = "no"; then
9650 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9651 fi
9652
9653 window_system=nextstep
9654 # set up packaging dirs
9655 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9656 ns_self_contained=yes
9657 prefix=${ns_appresdir}
9658 exec_prefix=${ns_appbindir}
9659 libexecdir="\${ns_appbindir}/libexec"
9660 archlibdir="\${ns_appbindir}/libexec"
9661 docdir="\${ns_appresdir}/etc"
9662 etcdir="\${ns_appresdir}/etc"
9663 infodir="\${ns_appresdir}/info"
9664 mandir="\${ns_appresdir}/man"
9665 lispdir="\${ns_appresdir}/lisp"
9666 leimdir="\${ns_appresdir}/leim"
9667 INSTALL_ARCH_INDEP_EXTRA=
9668 fi
9669 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9670 fi
9671 CFLAGS="$tmp_CFLAGS"
9672 CPPFLAGS="$tmp_CPPFLAGS"
9673
9674
9675
9676
9677
9678
9679 HAVE_W32=no
9680 W32_OBJ=
9681 W32_LIBS=
9682 if test "${with_w32}" != no; then
9683 if test "${opsys}" != "cygwin"; then
9684 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9685 fi
9686 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_windows_h" = x""yes; then :
9688 HAVE_W32=yes
9689 else
9690 as_fn_error "\`--with-w32' was specified, but windows.h
9691 cannot be found." "$LINENO" 5
9692 fi
9693
9694
9695
9696 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9697
9698 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9699 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9700 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9701 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9702 fi
9703
9704
9705
9706 if test "${HAVE_W32}" = "yes"; then
9707 window_system=w32
9708 with_xft=no
9709 fi
9710
9711 ## $window_system is now set to the window system we will
9712 ## ultimately use.
9713
9714 term_header=
9715 HAVE_X_WINDOWS=no
9716 HAVE_X11=no
9717 USE_X_TOOLKIT=none
9718
9719 case "${window_system}" in
9720 x11 )
9721 HAVE_X_WINDOWS=yes
9722 HAVE_X11=yes
9723 term_header=xterm.h
9724 case "${with_x_toolkit}" in
9725 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9726 motif ) USE_X_TOOLKIT=MOTIF ;;
9727 gtk ) with_gtk=yes
9728 term_header=gtkutil.h
9729 USE_X_TOOLKIT=none ;;
9730 gtk2 ) with_gtk2=yes
9731 term_header=gtkutil.h
9732 USE_X_TOOLKIT=none ;;
9733 gtk3 ) with_gtk3=yes
9734 term_header=gtkutil.h
9735 USE_X_TOOLKIT=none ;;
9736 no ) USE_X_TOOLKIT=none ;;
9737 * ) USE_X_TOOLKIT=maybe ;;
9738 esac
9739 ;;
9740 nextstep )
9741 term_header=nsterm.h
9742 ;;
9743 w32 )
9744 term_header=w32term.h
9745 ;;
9746 esac
9747
9748 if test -n "${term_header}"; then
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define TERM_HEADER "${term_header}"
9752 _ACEOF
9753
9754 fi
9755
9756 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9757 # Extract the first word of "X", so it can be a program name with args.
9758 set dummy X; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 if test -n "$HAVE_XSERVER"; then
9765 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9766 else
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_prog_HAVE_XSERVER="true"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778 done
9779 done
9780 IFS=$as_save_IFS
9781
9782 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9783 fi
9784 fi
9785 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9786 if test -n "$HAVE_XSERVER"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9788 $as_echo "$HAVE_XSERVER" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9792 fi
9793
9794
9795 if test "$HAVE_XSERVER" = true ||
9796 test -n "$DISPLAY" ||
9797 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9798 as_fn_error "You seem to be running X, but no X development libraries
9799 were found. You should install the relevant development files for X
9800 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9801 sure you have development files for image handling, i.e.
9802 tiff, gif, jpeg, png and xpm.
9803 If you are sure you want Emacs compiled without X window support, pass
9804 --without-x
9805 to configure." "$LINENO" 5
9806 fi
9807 fi
9808
9809 ### If we're using X11, we should use the X menu package.
9810 HAVE_MENUS=no
9811 case ${HAVE_X11} in
9812 yes ) HAVE_MENUS=yes ;;
9813 esac
9814
9815 # Does the opsystem file prohibit the use of the GNU malloc?
9816 # Assume not, until told otherwise.
9817 GNU_MALLOC=yes
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9820 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9821 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 #include <malloc.h>
9827 static void hook (void) {}
9828 int
9829 main ()
9830 {
9831 malloc_set_state (malloc_get_state ());
9832 __after_morecore_hook = hook;
9833 __malloc_initialize_hook = hook;
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 emacs_cv_var_doug_lea_malloc=yes
9840 else
9841 emacs_cv_var_doug_lea_malloc=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9847 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9848 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9849
9850
9851 system_malloc=no
9852 case "$opsys" in
9853 ## darwin ld insists on the use of malloc routines in the System framework.
9854 darwin|sol2-10) system_malloc=yes ;;
9855 esac
9856
9857 if test "${system_malloc}" = "yes"; then
9858
9859 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9860
9861 GNU_MALLOC=no
9862 GNU_MALLOC_reason="
9863 (The GNU allocators don't work with this system configuration.)"
9864 GMALLOC_OBJ=
9865 VMLIMIT_OBJ=
9866 else
9867 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9868 VMLIMIT_OBJ=vm-limit.o
9869 fi
9870
9871
9872
9873 if test "$doug_lea_malloc" = "yes" ; then
9874 if test "$GNU_MALLOC" = yes ; then
9875 GNU_MALLOC_reason="
9876 (Using Doug Lea's new malloc from the GNU C Library.)"
9877 fi
9878
9879 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9880
9881
9882 ## Use mmap directly for allocating larger buffers.
9883 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9884 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9885 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9886 case "$opsys" in
9887 gnu*) REL_ALLOC=no ;;
9888 esac
9889 fi
9890
9891 if test x"${REL_ALLOC}" = x; then
9892 REL_ALLOC=${GNU_MALLOC}
9893 fi
9894
9895 use_mmap_for_buffers=no
9896 case "$opsys" in
9897 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9898 esac
9899
9900
9901
9902
9903
9904
9905
9906
9907 for ac_func in getpagesize
9908 do :
9909 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9910 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9911 cat >>confdefs.h <<_ACEOF
9912 #define HAVE_GETPAGESIZE 1
9913 _ACEOF
9914
9915 fi
9916 done
9917
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9919 $as_echo_n "checking for working mmap... " >&6; }
9920 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 if test "$cross_compiling" = yes; then :
9924 ac_cv_func_mmap_fixed_mapped=no
9925 else
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 /* malloc might have been renamed as rpl_malloc. */
9930 #undef malloc
9931
9932 /* Thanks to Mike Haertel and Jim Avera for this test.
9933 Here is a matrix of mmap possibilities:
9934 mmap private not fixed
9935 mmap private fixed at somewhere currently unmapped
9936 mmap private fixed at somewhere already mapped
9937 mmap shared not fixed
9938 mmap shared fixed at somewhere currently unmapped
9939 mmap shared fixed at somewhere already mapped
9940 For private mappings, we should verify that changes cannot be read()
9941 back from the file, nor mmap's back from the file at a different
9942 address. (There have been systems where private was not correctly
9943 implemented like the infamous i386 svr4.0, and systems where the
9944 VM page cache was not coherent with the file system buffer cache
9945 like early versions of FreeBSD and possibly contemporary NetBSD.)
9946 For shared mappings, we should conversely verify that changes get
9947 propagated back to all the places they're supposed to be.
9948
9949 Grep wants private fixed already mapped.
9950 The main things grep needs to know about mmap are:
9951 * does it exist and is it safe to write into the mmap'd area
9952 * how to use it (BSD variants) */
9953
9954 #include <fcntl.h>
9955 #include <sys/mman.h>
9956
9957 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9958 char *malloc ();
9959 #endif
9960
9961 /* This mess was copied from the GNU getpagesize.h. */
9962 #ifndef HAVE_GETPAGESIZE
9963 # ifdef _SC_PAGESIZE
9964 # define getpagesize() sysconf(_SC_PAGESIZE)
9965 # else /* no _SC_PAGESIZE */
9966 # ifdef HAVE_SYS_PARAM_H
9967 # include <sys/param.h>
9968 # ifdef EXEC_PAGESIZE
9969 # define getpagesize() EXEC_PAGESIZE
9970 # else /* no EXEC_PAGESIZE */
9971 # ifdef NBPG
9972 # define getpagesize() NBPG * CLSIZE
9973 # ifndef CLSIZE
9974 # define CLSIZE 1
9975 # endif /* no CLSIZE */
9976 # else /* no NBPG */
9977 # ifdef NBPC
9978 # define getpagesize() NBPC
9979 # else /* no NBPC */
9980 # ifdef PAGESIZE
9981 # define getpagesize() PAGESIZE
9982 # endif /* PAGESIZE */
9983 # endif /* no NBPC */
9984 # endif /* no NBPG */
9985 # endif /* no EXEC_PAGESIZE */
9986 # else /* no HAVE_SYS_PARAM_H */
9987 # define getpagesize() 8192 /* punt totally */
9988 # endif /* no HAVE_SYS_PARAM_H */
9989 # endif /* no _SC_PAGESIZE */
9990
9991 #endif /* no HAVE_GETPAGESIZE */
9992
9993 int
9994 main ()
9995 {
9996 char *data, *data2, *data3;
9997 const char *cdata2;
9998 int i, pagesize;
9999 int fd, fd2;
10000
10001 pagesize = getpagesize ();
10002
10003 /* First, make a file with some known garbage in it. */
10004 data = (char *) malloc (pagesize);
10005 if (!data)
10006 return 1;
10007 for (i = 0; i < pagesize; ++i)
10008 *(data + i) = rand ();
10009 umask (0);
10010 fd = creat ("conftest.mmap", 0600);
10011 if (fd < 0)
10012 return 2;
10013 if (write (fd, data, pagesize) != pagesize)
10014 return 3;
10015 close (fd);
10016
10017 /* Next, check that the tail of a page is zero-filled. File must have
10018 non-zero length, otherwise we risk SIGBUS for entire page. */
10019 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10020 if (fd2 < 0)
10021 return 4;
10022 cdata2 = "";
10023 if (write (fd2, cdata2, 1) != 1)
10024 return 5;
10025 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10026 if (data2 == MAP_FAILED)
10027 return 6;
10028 for (i = 0; i < pagesize; ++i)
10029 if (*(data2 + i))
10030 return 7;
10031 close (fd2);
10032 if (munmap (data2, pagesize))
10033 return 8;
10034
10035 /* Next, try to mmap the file at a fixed address which already has
10036 something else allocated at it. If we can, also make sure that
10037 we see the same garbage. */
10038 fd = open ("conftest.mmap", O_RDWR);
10039 if (fd < 0)
10040 return 9;
10041 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10042 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10043 return 10;
10044 for (i = 0; i < pagesize; ++i)
10045 if (*(data + i) != *(data2 + i))
10046 return 11;
10047
10048 /* Finally, make sure that changes to the mapped area do not
10049 percolate back to the file as seen by read(). (This is a bug on
10050 some variants of i386 svr4.0.) */
10051 for (i = 0; i < pagesize; ++i)
10052 *(data2 + i) = *(data2 + i) + 1;
10053 data3 = (char *) malloc (pagesize);
10054 if (!data3)
10055 return 12;
10056 if (read (fd, data3, pagesize) != pagesize)
10057 return 13;
10058 for (i = 0; i < pagesize; ++i)
10059 if (*(data + i) != *(data3 + i))
10060 return 14;
10061 close (fd);
10062 return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_run "$LINENO"; then :
10066 ac_cv_func_mmap_fixed_mapped=yes
10067 else
10068 ac_cv_func_mmap_fixed_mapped=no
10069 fi
10070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10071 conftest.$ac_objext conftest.beam conftest.$ac_ext
10072 fi
10073
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10076 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10077 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10078
10079 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10080
10081 fi
10082 rm -f conftest.mmap conftest.txt
10083
10084 if test $use_mmap_for_buffers = yes; then
10085
10086 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10087
10088 REL_ALLOC=no
10089 fi
10090
10091 LIBS="$LIBS_SYSTEM $LIBS"
10092
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10094 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10095 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-ldnet $LIBS"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char dnet_ntoa ();
10110 int
10111 main ()
10112 {
10113 return dnet_ntoa ();
10114 ;
10115 return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 ac_cv_lib_dnet_dnet_ntoa=yes
10120 else
10121 ac_cv_lib_dnet_dnet_ntoa=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10128 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10129 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10130 cat >>confdefs.h <<_ACEOF
10131 #define HAVE_LIBDNET 1
10132 _ACEOF
10133
10134 LIBS="-ldnet $LIBS"
10135
10136 fi
10137
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10140 $as_echo_n "checking for main in -lXbsd... " >&6; }
10141 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 ac_check_lib_save_LIBS=$LIBS
10145 LIBS="-lXbsd $LIBS"
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148
10149
10150 int
10151 main ()
10152 {
10153 return main ();
10154 ;
10155 return 0;
10156 }
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159 ac_cv_lib_Xbsd_main=yes
10160 else
10161 ac_cv_lib_Xbsd_main=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10168 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10169 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10170 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10171 fi
10172
10173
10174 LIB_PTHREAD=
10175
10176
10177
10178 if test "$ac_cv_header_pthread_h"; then
10179 if test "$GMALLOC_OBJ" = gmalloc.o; then
10180 emacs_pthread_function=pthread_atfork
10181 else
10182 emacs_pthread_function=pthread_self
10183 fi
10184 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10186 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10187 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-lpthread $LIBS"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char $emacs_pthread_function ();
10202 int
10203 main ()
10204 {
10205 return $emacs_pthread_function ();
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 eval "$as_ac_Lib=yes"
10212 else
10213 eval "$as_ac_Lib=no"
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 eval ac_res=\$$as_ac_Lib
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10221 $as_echo "$ac_res" >&6; }
10222 eval as_val=\$$as_ac_Lib
10223 if test "x$as_val" = x""yes; then :
10224 HAVE_PTHREAD=yes
10225 fi
10226
10227 fi
10228 if test "$HAVE_PTHREAD" = yes; then
10229 case "${canonical}" in
10230 *-hpux*) ;;
10231 *) LIB_PTHREAD="-lpthread"
10232 LIBS="$LIB_PTHREAD $LIBS" ;;
10233 esac
10234
10235 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10236
10237 fi
10238
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10241 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10242 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-lpthreads $LIBS"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char cma_open ();
10257 int
10258 main ()
10259 {
10260 return cma_open ();
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 if ac_fn_c_try_link "$LINENO"; then :
10266 ac_cv_lib_pthreads_cma_open=yes
10267 else
10268 ac_cv_lib_pthreads_cma_open=no
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10273 fi
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10275 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10276 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10277 cat >>confdefs.h <<_ACEOF
10278 #define HAVE_LIBPTHREADS 1
10279 _ACEOF
10280
10281 LIBS="-lpthreads $LIBS"
10282
10283 fi
10284
10285
10286 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10287 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10288 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10289 ## added to LIBS in configure would never contain the pthreads part,
10290 ## but the value used in Makefiles might. FIXME?
10291 ##
10292 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10293 ## be harmless on older versions of X where it happens to exist.
10294 test "$opsys" = "aix4-2" && \
10295 test $ac_cv_lib_pthreads_cma_open = yes && \
10296 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10297
10298
10299 case ${host_os} in
10300 aix*)
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10302 $as_echo_n "checking for -bbigtoc option... " >&6; }
10303 if test "${gdb_cv_bigtoc+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306
10307 case $GCC in
10308 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10309 *) gdb_cv_bigtoc=-bbigtoc ;;
10310 esac
10311
10312 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315
10316 int
10317 main ()
10318 {
10319 int i;
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325
10326 else
10327 gdb_cv_bigtoc=
10328 fi
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10334 $as_echo "$gdb_cv_bigtoc" >&6; }
10335 ;;
10336 esac
10337
10338 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10339 # used for the tests that follow. We set them back to REAL_CFLAGS and
10340 # REAL_CPPFLAGS later on.
10341
10342 REAL_CFLAGS="$CFLAGS"
10343 REAL_CPPFLAGS="$CPPFLAGS"
10344
10345 if test "${HAVE_X11}" = "yes"; then
10346 DEFS="$C_SWITCH_X_SITE $DEFS"
10347 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10348 LIBS="-lX11 $LIBS"
10349 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10350 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10351
10352 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10353 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10354 # but it's more convenient here to set LD_RUN_PATH since this
10355 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10356 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10357 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10358 export LD_RUN_PATH
10359 fi
10360
10361 if test "${opsys}" = "gnu-linux"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10363 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 int
10368 main ()
10369 {
10370 XOpenDisplay ("foo");
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 xgnu_linux_first_failure=no
10377 else
10378 xgnu_linux_first_failure=yes
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 if test "${xgnu_linux_first_failure}" = "yes"; then
10383 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10384 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10385 OLD_CPPFLAGS="$CPPFLAGS"
10386 OLD_LIBS="$LIBS"
10387 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10388 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10389 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10390 LIBS="$LIBS -b i486-linuxaout"
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393
10394 int
10395 main ()
10396 {
10397 XOpenDisplay ("foo");
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 xgnu_linux_second_failure=no
10404 else
10405 xgnu_linux_second_failure=yes
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 if test "${xgnu_linux_second_failure}" = "yes"; then
10410 # If we get the same failure with -b, there is no use adding -b.
10411 # So take it out. This plays safe.
10412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10414 CPPFLAGS="$OLD_CPPFLAGS"
10415 LIBS="$OLD_LIBS"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420 $as_echo "yes" >&6; }
10421 fi
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426 fi
10427
10428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10429 # header files included from there.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10431 $as_echo_n "checking for Xkb... " >&6; }
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 #include <X11/Xlib.h>
10435 #include <X11/XKBlib.h>
10436 int
10437 main ()
10438 {
10439 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 emacs_xkb=yes
10446 else
10447 emacs_xkb=no
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10452 $as_echo "$emacs_xkb" >&6; }
10453 if test $emacs_xkb = yes; then
10454
10455 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10456
10457 fi
10458
10459 for ac_func in XrmSetDatabase XScreenResourceString \
10460 XScreenNumberOfScreen
10461 do :
10462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10464 eval as_val=\$$as_ac_var
10465 if test "x$as_val" = x""yes; then :
10466 cat >>confdefs.h <<_ACEOF
10467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 _ACEOF
10469
10470 fi
10471 done
10472
10473 fi
10474
10475 if test "${window_system}" = "x11"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10477 $as_echo_n "checking X11 version 6... " >&6; }
10478 if test "${emacs_cv_x11_version_6+set}" = set; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include <X11/Xlib.h>
10484 int
10485 main ()
10486 {
10487 #if XlibSpecificationRelease < 6
10488 fail;
10489 #endif
10490
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"; then :
10496 emacs_cv_x11_version_6=yes
10497 else
10498 emacs_cv_x11_version_6=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 fi
10503
10504 if test $emacs_cv_x11_version_6 = yes; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10506 $as_echo "6 or newer" >&6; }
10507
10508 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10509
10510
10511 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10512
10513 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10514 ## XIM support.
10515 case "$opsys" in
10516 sol2-*) : ;;
10517 *)
10518 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10519
10520 ;;
10521 esac
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10524 $as_echo "before 6" >&6; }
10525 fi
10526 fi
10527
10528
10529 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10530 HAVE_RSVG=no
10531 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10532 if test "${with_rsvg}" != "no"; then
10533 RSVG_REQUIRED=2.11.0
10534 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10535
10536
10537 succeeded=no
10538
10539 if test "$PKG_CONFIG" = "no" ; then
10540 :
10541 else
10542 PKG_CONFIG_MIN_VERSION=0.9.0
10543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10545 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10546
10547 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10548 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10549 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10550 edit_cflags="
10551 s,///*,/,g
10552 s/^/ /
10553 s/ -I/ $isystem/g
10554 s/^ //
10555 "
10556 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10557 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10559 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10560 succeeded=yes
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 RSVG_CFLAGS=""
10565 RSVG_LIBS=""
10566 ## If we have a custom action on failure, don't print errors, but
10567 ## do set a variable so people can do so. Do it in a subshell
10568 ## to capture any diagnostics in invoking pkg-config.
10569 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10570
10571 fi
10572
10573
10574
10575 else
10576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10578 fi
10579 fi
10580
10581 if test $succeeded = yes; then
10582 HAVE_RSVG=yes
10583 else
10584 :
10585 fi
10586
10587
10588
10589
10590 if test $HAVE_RSVG = yes; then
10591
10592 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10593
10594 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10595 LIBS="$RSVG_LIBS $LIBS"
10596 fi
10597 fi
10598 fi
10599
10600 HAVE_IMAGEMAGICK=no
10601 if test "${HAVE_X11}" = "yes"; then
10602 if test "${with_imagemagick}" != "no"; then
10603 ## 6.2.8 is the earliest version known to work, but earlier versions
10604 ## might work - let us know if you find one.
10605 ## 6.0.7 does not work. See bug#7955.
10606 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10607
10608 succeeded=no
10609
10610 if test "$PKG_CONFIG" = "no" ; then
10611 :
10612 else
10613 PKG_CONFIG_MIN_VERSION=0.9.0
10614 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10616 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10617
10618 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10619 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10620 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10621 edit_cflags="
10622 s,///*,/,g
10623 s/^/ /
10624 s/ -I/ $isystem/g
10625 s/^ //
10626 "
10627 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10628 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10630 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10631 succeeded=yes
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 IMAGEMAGICK_CFLAGS=""
10636 IMAGEMAGICK_LIBS=""
10637 ## If we have a custom action on failure, don't print errors, but
10638 ## do set a variable so people can do so. Do it in a subshell
10639 ## to capture any diagnostics in invoking pkg-config.
10640 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10641
10642 fi
10643
10644
10645
10646 else
10647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10649 fi
10650 fi
10651
10652 if test $succeeded = yes; then
10653 HAVE_IMAGEMAGICK=yes
10654 else
10655 :
10656 fi
10657
10658
10659
10660
10661 if test $HAVE_IMAGEMAGICK = yes; then
10662
10663 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10664
10665 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10666 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10667 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10668 do :
10669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10671 eval as_val=\$$as_ac_var
10672 if test "x$as_val" = x""yes; then :
10673 cat >>confdefs.h <<_ACEOF
10674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10675 _ACEOF
10676
10677 fi
10678 done
10679
10680 fi
10681 fi
10682 fi
10683
10684
10685 HAVE_GTK=no
10686 GTK_OBJ=
10687 check_gtk2=no
10688 gtk3_pkg_errors=
10689 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10690 GLIB_REQUIRED=2.28
10691 GTK_REQUIRED=3.0
10692 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10693
10694
10695 succeeded=no
10696
10697 if test "$PKG_CONFIG" = "no" ; then
10698 pkg_check_gtk=no
10699 else
10700 PKG_CONFIG_MIN_VERSION=0.9.0
10701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10703 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10704
10705 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10706 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10707 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10708 edit_cflags="
10709 s,///*,/,g
10710 s/^/ /
10711 s/ -I/ $isystem/g
10712 s/^ //
10713 "
10714 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10715 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10717 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10718 succeeded=yes
10719 else
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10722 GTK_CFLAGS=""
10723 GTK_LIBS=""
10724 ## If we have a custom action on failure, don't print errors, but
10725 ## do set a variable so people can do so. Do it in a subshell
10726 ## to capture any diagnostics in invoking pkg-config.
10727 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10728
10729 fi
10730
10731
10732
10733 else
10734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10736 fi
10737 fi
10738
10739 if test $succeeded = yes; then
10740 pkg_check_gtk=yes
10741 else
10742 pkg_check_gtk=no
10743 fi
10744
10745 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10746 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10747 fi
10748 if test "$pkg_check_gtk" = "yes"; then
10749
10750 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10751
10752 GTK_OBJ=emacsgtkfixed.o
10753 term_header=gtkutil.h
10754 USE_GTK_TOOLKIT="GTK3"
10755 else
10756 check_gtk2=yes
10757 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10758 fi
10759 fi
10760
10761 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10762 GLIB_REQUIRED=2.10
10763 GTK_REQUIRED=2.10
10764 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10765
10766
10767 succeeded=no
10768
10769 if test "$PKG_CONFIG" = "no" ; then
10770 pkg_check_gtk=no
10771 else
10772 PKG_CONFIG_MIN_VERSION=0.9.0
10773 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10775 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10776
10777 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10778 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10779 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10780 edit_cflags="
10781 s,///*,/,g
10782 s/^/ /
10783 s/ -I/ $isystem/g
10784 s/^ //
10785 "
10786 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10787 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10789 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10790 succeeded=yes
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10794 GTK_CFLAGS=""
10795 GTK_LIBS=""
10796 ## If we have a custom action on failure, don't print errors, but
10797 ## do set a variable so people can do so. Do it in a subshell
10798 ## to capture any diagnostics in invoking pkg-config.
10799 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10800
10801 fi
10802
10803
10804
10805 else
10806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10808 fi
10809 fi
10810
10811 if test $succeeded = yes; then
10812 pkg_check_gtk=yes
10813 else
10814 pkg_check_gtk=no
10815 fi
10816
10817 if test "$pkg_check_gtk" = "no" &&
10818 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10819 then
10820 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10821 fi
10822 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10823 fi
10824
10825 if test x"$pkg_check_gtk" = xyes; then
10826
10827
10828
10829 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10830 CFLAGS="$CFLAGS $GTK_CFLAGS"
10831 LIBS="$GTK_LIBS $LIBS"
10832 GTK_COMPILES=no
10833 for ac_func in gtk_main
10834 do :
10835 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10836 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10837 cat >>confdefs.h <<_ACEOF
10838 #define HAVE_GTK_MAIN 1
10839 _ACEOF
10840 GTK_COMPILES=yes
10841 fi
10842 done
10843
10844 if test "${GTK_COMPILES}" != "yes"; then
10845 if test "$USE_X_TOOLKIT" != "maybe"; then
10846 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10847 fi
10848 else
10849 HAVE_GTK=yes
10850
10851 $as_echo "#define USE_GTK 1" >>confdefs.h
10852
10853 GTK_OBJ="gtkutil.o $GTK_OBJ"
10854 USE_X_TOOLKIT=none
10855 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10856 :
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10859 closing open displays. This is no problem if you just use
10860 one display, but if you use more than one and close one of them
10861 Emacs may crash." >&5
10862 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10863 closing open displays. This is no problem if you just use
10864 one display, but if you use more than one and close one of them
10865 Emacs may crash." >&2;}
10866 sleep 3
10867 fi
10868 fi
10869
10870 fi
10871
10872
10873
10874 if test "${HAVE_GTK}" = "yes"; then
10875
10876 if test "$with_toolkit_scroll_bars" != no; then
10877 with_toolkit_scroll_bars=yes
10878 fi
10879
10880 HAVE_GTK_FILE_SELECTION=no
10881 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10882 #include <gtk/gtk.h>
10883 "
10884 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10885 HAVE_GTK_FILE_SELECTION=yes
10886 else
10887 HAVE_GTK_FILE_SELECTION=no
10888 fi
10889
10890 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10891 for ac_func in gtk_file_selection_new
10892 do :
10893 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10894 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10895 cat >>confdefs.h <<_ACEOF
10896 #define HAVE_GTK_FILE_SELECTION_NEW 1
10897 _ACEOF
10898
10899 fi
10900 done
10901
10902 fi
10903
10904
10905 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10906 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10907 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10908 gtk_orientable_set_orientation \
10909 gtk_window_set_has_resize_grip
10910 do :
10911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10913 eval as_val=\$$as_ac_var
10914 if test "x$as_val" = x""yes; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10917 _ACEOF
10918
10919 fi
10920 done
10921
10922
10923 term_header=gtkutil.h
10924 fi
10925
10926 HAVE_DBUS=no
10927 DBUS_OBJ=
10928 if test "${with_dbus}" = "yes"; then
10929
10930 succeeded=no
10931
10932 if test "$PKG_CONFIG" = "no" ; then
10933 HAVE_DBUS=no
10934 else
10935 PKG_CONFIG_MIN_VERSION=0.9.0
10936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10938 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10939
10940 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10941 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10942 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10943 edit_cflags="
10944 s,///*,/,g
10945 s/^/ /
10946 s/ -I/ $isystem/g
10947 s/^ //
10948 "
10949 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10950 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10952 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10953 succeeded=yes
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10957 DBUS_CFLAGS=""
10958 DBUS_LIBS=""
10959 ## If we have a custom action on failure, don't print errors, but
10960 ## do set a variable so people can do so. Do it in a subshell
10961 ## to capture any diagnostics in invoking pkg-config.
10962 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10963
10964 fi
10965
10966
10967
10968 else
10969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10971 fi
10972 fi
10973
10974 if test $succeeded = yes; then
10975 HAVE_DBUS=yes
10976 else
10977 HAVE_DBUS=no
10978 fi
10979
10980 if test "$HAVE_DBUS" = yes; then
10981 LIBS="$LIBS $DBUS_LIBS"
10982
10983 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10984
10985 for ac_func in dbus_watch_get_unix_fd \
10986 dbus_type_is_valid \
10987 dbus_validate_bus_name \
10988 dbus_validate_path \
10989 dbus_validate_interface \
10990 dbus_validate_member
10991 do :
10992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10994 eval as_val=\$$as_ac_var
10995 if test "x$as_val" = x""yes; then :
10996 cat >>confdefs.h <<_ACEOF
10997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10998 _ACEOF
10999
11000 fi
11001 done
11002
11003 DBUS_OBJ=dbusbind.o
11004 fi
11005 fi
11006
11007
11008 HAVE_GSETTINGS=no
11009 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11010
11011 succeeded=no
11012
11013 if test "$PKG_CONFIG" = "no" ; then
11014 HAVE_GSETTINGS=no
11015 else
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11019 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11020
11021 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11022 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11023 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11024 edit_cflags="
11025 s,///*,/,g
11026 s/^/ /
11027 s/ -I/ $isystem/g
11028 s/^ //
11029 "
11030 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11031 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11033 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11034 succeeded=yes
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 GSETTINGS_CFLAGS=""
11039 GSETTINGS_LIBS=""
11040 ## If we have a custom action on failure, don't print errors, but
11041 ## do set a variable so people can do so. Do it in a subshell
11042 ## to capture any diagnostics in invoking pkg-config.
11043 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11044
11045 fi
11046
11047
11048
11049 else
11050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11052 fi
11053 fi
11054
11055 if test $succeeded = yes; then
11056 HAVE_GSETTINGS=yes
11057 else
11058 HAVE_GSETTINGS=no
11059 fi
11060
11061 if test "$HAVE_GSETTINGS" = "yes"; then
11062
11063 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11064
11065 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11066 SETTINGS_LIBS="$GSETTINGS_LIBS"
11067 fi
11068 fi
11069
11070 HAVE_GCONF=no
11071 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11072
11073 succeeded=no
11074
11075 if test "$PKG_CONFIG" = "no" ; then
11076 HAVE_GCONF=no
11077 else
11078 PKG_CONFIG_MIN_VERSION=0.9.0
11079 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11081 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11082
11083 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11084 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11085 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11086 edit_cflags="
11087 s,///*,/,g
11088 s/^/ /
11089 s/ -I/ $isystem/g
11090 s/^ //
11091 "
11092 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11093 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11095 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11096 succeeded=yes
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 GCONF_CFLAGS=""
11101 GCONF_LIBS=""
11102 ## If we have a custom action on failure, don't print errors, but
11103 ## do set a variable so people can do so. Do it in a subshell
11104 ## to capture any diagnostics in invoking pkg-config.
11105 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11106
11107 fi
11108
11109
11110
11111 else
11112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11114 fi
11115 fi
11116
11117 if test $succeeded = yes; then
11118 HAVE_GCONF=yes
11119 else
11120 HAVE_GCONF=no
11121 fi
11122
11123 if test "$HAVE_GCONF" = yes; then
11124
11125 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11126
11127 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11128 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11129 fi
11130 fi
11131
11132 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11133
11134 succeeded=no
11135
11136 if test "$PKG_CONFIG" = "no" ; then
11137 HAVE_GOBJECT=no
11138 else
11139 PKG_CONFIG_MIN_VERSION=0.9.0
11140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11142 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11143
11144 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11145 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11146 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11147 edit_cflags="
11148 s,///*,/,g
11149 s/^/ /
11150 s/ -I/ $isystem/g
11151 s/^ //
11152 "
11153 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11154 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11156 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11157 succeeded=yes
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161 GOBJECT_CFLAGS=""
11162 GOBJECT_LIBS=""
11163 ## If we have a custom action on failure, don't print errors, but
11164 ## do set a variable so people can do so. Do it in a subshell
11165 ## to capture any diagnostics in invoking pkg-config.
11166 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11167
11168 fi
11169
11170
11171
11172 else
11173 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11174 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11175 fi
11176 fi
11177
11178 if test $succeeded = yes; then
11179 HAVE_GOBJECT=yes
11180 else
11181 HAVE_GOBJECT=no
11182 fi
11183
11184 if test "$HAVE_GOBJECT" = "yes"; then
11185 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11186 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11187 fi
11188 SAVE_CFLAGS="$CFLAGS"
11189 SAVE_LIBS="$LIBS"
11190 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11191 LIBS="$SETTINGS_LIBS $LIBS"
11192 for ac_func in g_type_init
11193 do :
11194 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11195 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_G_TYPE_INIT 1
11198 _ACEOF
11199
11200 fi
11201 done
11202
11203 CFLAGS="$SAVE_CFLAGS"
11204 LIBS="$SAVE_LIBS"
11205 fi
11206
11207
11208
11209
11210 HAVE_LIBSELINUX=no
11211 LIBSELINUX_LIBS=
11212 if test "${with_selinux}" = "yes"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11214 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11215 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-lselinux $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char lgetfilecon ();
11230 int
11231 main ()
11232 {
11233 return lgetfilecon ();
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 ac_cv_lib_selinux_lgetfilecon=yes
11240 else
11241 ac_cv_lib_selinux_lgetfilecon=no
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11248 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11249 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11250 HAVE_LIBSELINUX=yes
11251 else
11252 HAVE_LIBSELINUX=no
11253 fi
11254
11255 if test "$HAVE_LIBSELINUX" = yes; then
11256
11257 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11258
11259 LIBSELINUX_LIBS=-lselinux
11260 fi
11261 fi
11262
11263
11264 HAVE_GNUTLS=no
11265 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11266 if test "${with_gnutls}" = "yes" ; then
11267
11268 succeeded=no
11269
11270 if test "$PKG_CONFIG" = "no" ; then
11271 HAVE_GNUTLS=no
11272 else
11273 PKG_CONFIG_MIN_VERSION=0.9.0
11274 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11276 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11277
11278 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11279 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11280 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11281 edit_cflags="
11282 s,///*,/,g
11283 s/^/ /
11284 s/ -I/ $isystem/g
11285 s/^ //
11286 "
11287 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11288 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11290 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11291 succeeded=yes
11292 else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 LIBGNUTLS_CFLAGS=""
11296 LIBGNUTLS_LIBS=""
11297 ## If we have a custom action on failure, don't print errors, but
11298 ## do set a variable so people can do so. Do it in a subshell
11299 ## to capture any diagnostics in invoking pkg-config.
11300 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11301
11302 fi
11303
11304
11305
11306 else
11307 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11308 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11309 fi
11310 fi
11311
11312 if test $succeeded = yes; then
11313 HAVE_GNUTLS=yes
11314 else
11315 HAVE_GNUTLS=no
11316 fi
11317
11318 if test "${HAVE_GNUTLS}" = "yes"; then
11319
11320 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11321
11322 fi
11323
11324 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11325 LIBS="$LIBGNUTLS_LIBS $LIBS"
11326 for ac_func in gnutls_certificate_set_verify_function
11327 do :
11328 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11329 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11332 _ACEOF
11333 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11334 fi
11335 done
11336
11337
11338 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11339
11340 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11341
11342 fi
11343 fi
11344
11345
11346
11347
11348 HAVE_XAW3D=no
11349 LUCID_LIBW=
11350 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11351 if test "$with_xaw3d" != no; then
11352 if test "${emacs_cv_xaw3d+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357
11358 #include <X11/Intrinsic.h>
11359 #include <X11/Xaw3d/Simple.h>
11360 int
11361 main ()
11362 {
11363
11364 ;
11365 return 0;
11366 }
11367 _ACEOF
11368 if ac_fn_c_try_link "$LINENO"; then :
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11370 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11371 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lXaw3d $LIBS"
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char XawScrollbarSetThumb ();
11386 int
11387 main ()
11388 {
11389 return XawScrollbarSetThumb ();
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11396 else
11397 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401 LIBS=$ac_check_lib_save_LIBS
11402 fi
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11404 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11405 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11406 emacs_cv_xaw3d=yes
11407 else
11408 emacs_cv_xaw3d=no
11409 fi
11410
11411 else
11412 emacs_cv_xaw3d=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 fi
11417
11418 else
11419 emacs_cv_xaw3d=no
11420 fi
11421 if test $emacs_cv_xaw3d = yes; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11423 $as_echo_n "checking for xaw3d... " >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11425 $as_echo "yes; using Lucid toolkit" >&6; }
11426 USE_X_TOOLKIT=LUCID
11427 HAVE_XAW3D=yes
11428 LUCID_LIBW=-lXaw3d
11429
11430 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11431
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11434 $as_echo_n "checking for xaw3d... " >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11438 $as_echo_n "checking for libXaw... " >&6; }
11439 if test "${emacs_cv_xaw+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444
11445 #include <X11/Intrinsic.h>
11446 #include <X11/Xaw/Simple.h>
11447 int
11448 main ()
11449 {
11450
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 emacs_cv_xaw=yes
11457 else
11458 emacs_cv_xaw=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 fi
11463
11464 if test $emacs_cv_xaw = yes; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11466 $as_echo "yes; using Lucid toolkit" >&6; }
11467 USE_X_TOOLKIT=LUCID
11468 LUCID_LIBW=-lXaw
11469 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11470 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11471 else
11472 as_fn_error "No X toolkit could be found.
11473 If you are sure you want Emacs compiled without an X toolkit, pass
11474 --with-x-toolkit=no
11475 to configure. Otherwise, install the development libraries for the toolkit
11476 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11477 fi
11478 fi
11479 fi
11480
11481 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11482
11483 LIBXTR6=
11484 if test "${USE_X_TOOLKIT}" != "none"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11486 $as_echo_n "checking X11 toolkit version... " >&6; }
11487 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <X11/Intrinsic.h>
11493 int
11494 main ()
11495 {
11496 #if XtSpecificationRelease < 6
11497 fail;
11498 #endif
11499
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 emacs_cv_x11_toolkit_version_6=yes
11506 else
11507 emacs_cv_x11_toolkit_version_6=no
11508 fi
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 fi
11512
11513 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11514 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11516 $as_echo "6 or newer" >&6; }
11517
11518 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11519
11520 LIBXTR6="-lSM -lICE"
11521 case "$opsys" in
11522 ## Use libw.a along with X11R6 Xt.
11523 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11524 esac
11525 else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11527 $as_echo "before 6" >&6; }
11528 fi
11529
11530 OLDLIBS="$LIBS"
11531 if test x$HAVE_X11XTR6 = xyes; then
11532 LIBS="-lXt -lSM -lICE $LIBS"
11533 else
11534 LIBS="-lXt $LIBS"
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11537 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11538 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-lXmu $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char XmuConvertStandardSelection ();
11553 int
11554 main ()
11555 {
11556 return XmuConvertStandardSelection ();
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11563 else
11564 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11571 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11572 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE_LIBXMU 1
11575 _ACEOF
11576
11577 LIBS="-lXmu $LIBS"
11578
11579 fi
11580
11581 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11582 fi
11583
11584
11585 LIBXMU=-lXmu
11586 case $opsys in
11587 ## These systems don't supply Xmu.
11588 hpux* | aix4-2 )
11589 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11590 ;;
11591 esac
11592
11593
11594 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11595 if test "${HAVE_X11}" = "yes"; then
11596 if test "${USE_X_TOOLKIT}" != "none"; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11598 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11599 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-lXext $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char XShapeQueryExtension ();
11614 int
11615 main ()
11616 {
11617 return XShapeQueryExtension ();
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623 ac_cv_lib_Xext_XShapeQueryExtension=yes
11624 else
11625 ac_cv_lib_Xext_XShapeQueryExtension=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11632 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11633 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11634 cat >>confdefs.h <<_ACEOF
11635 #define HAVE_LIBXEXT 1
11636 _ACEOF
11637
11638 LIBS="-lXext $LIBS"
11639
11640 fi
11641
11642 fi
11643 fi
11644
11645 LIBXP=
11646 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11647 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11648 if test -d /usr/include/openmotif; then
11649 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11650 emacs_cv_openmotif=yes
11651 case "$canonical" in
11652 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11653 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11654 ;;
11655 *)
11656 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11657 esac
11658 else
11659 emacs_cv_openmotif=no
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11662 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11663 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668 #include <Xm/Xm.h>
11669 int
11670 main ()
11671 {
11672 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11673 int x = 5;
11674 #else
11675 Motif version prior to 2.1.
11676 #endif
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 if ac_fn_c_try_compile "$LINENO"; then :
11682 emacs_cv_motif_version_2_1=yes
11683 else
11684 emacs_cv_motif_version_2_1=no
11685 fi
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11689 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11690 if test $emacs_cv_motif_version_2_1 = yes; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11692 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11693 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-lXp $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char XpCreateContext ();
11708 int
11709 main ()
11710 {
11711 return XpCreateContext ();
11712 ;
11713 return 0;
11714 }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 ac_cv_lib_Xp_XpCreateContext=yes
11718 else
11719 ac_cv_lib_Xp_XpCreateContext=no
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11724 fi
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11726 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11727 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11728 LIBXP=-lXp
11729 fi
11730
11731 if test x$emacs_cv_openmotif = xyes; then
11732 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11733 fi
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11736 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11737 if test "${emacs_cv_lesstif+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 # We put this in CFLAGS temporarily to precede other -I options
11741 # that might be in CFLAGS temporarily.
11742 # We put this in CPPFLAGS where it precedes the other -I options.
11743 OLD_CPPFLAGS=$CPPFLAGS
11744 OLD_CFLAGS=$CFLAGS
11745 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11746 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11750 int
11751 main ()
11752 {
11753 int x = 5;
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_compile "$LINENO"; then :
11759 emacs_cv_lesstif=yes
11760 else
11761 emacs_cv_lesstif=no
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11766 $as_echo "$emacs_cv_lesstif" >&6; }
11767 if test $emacs_cv_lesstif = yes; then
11768 # Make sure this -I option remains in CPPFLAGS after it is set
11769 # back to REAL_CPPFLAGS.
11770 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11771 # have those other -I options anyway. Ultimately, having this
11772 # directory ultimately in CPPFLAGS will be enough.
11773 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11774 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11775 else
11776 CFLAGS=$OLD_CFLAGS
11777 CPPFLAGS=$OLD_CPPFLAGS
11778 fi
11779 fi
11780 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11781 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11782
11783 else
11784 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11785 fi
11786
11787
11788 fi
11789
11790
11791 USE_TOOLKIT_SCROLL_BARS=no
11792 if test "${with_toolkit_scroll_bars}" != "no"; then
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11795 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11796
11797 HAVE_XAW3D=no
11798 USE_TOOLKIT_SCROLL_BARS=yes
11799 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11800 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11801
11802 USE_TOOLKIT_SCROLL_BARS=yes
11803 fi
11804 elif test "${HAVE_GTK}" = "yes"; then
11805 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11806
11807 USE_TOOLKIT_SCROLL_BARS=yes
11808 elif test "${HAVE_NS}" = "yes"; then
11809 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11810
11811 USE_TOOLKIT_SCROLL_BARS=yes
11812 elif test "${HAVE_W32}" = "yes"; then
11813 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11814
11815 USE_TOOLKIT_SCROLL_BARS=yes
11816 fi
11817 fi
11818
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821
11822 #include <X11/Xlib.h>
11823 #include <X11/Xresource.h>
11824 int
11825 main ()
11826 {
11827 XIMProc callback;
11828 ;
11829 return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_c_try_compile "$LINENO"; then :
11833 HAVE_XIM=yes
11834
11835 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11836
11837 else
11838 HAVE_XIM=no
11839 fi
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841
11842
11843 if test "${with_xim}" != "no"; then
11844
11845 $as_echo "#define USE_XIM 1" >>confdefs.h
11846
11847 fi
11848
11849
11850 if test "${HAVE_XIM}" != "no"; then
11851 late_CFLAGS=$CFLAGS
11852 if test "$GCC" = yes; then
11853 CFLAGS="$CFLAGS --pedantic-errors"
11854 fi
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857
11858 #include <X11/Xlib.h>
11859 #include <X11/Xresource.h>
11860 int
11861 main ()
11862 {
11863 Display *display;
11864 XrmDatabase db;
11865 char *res_name;
11866 char *res_class;
11867 XIMProc callback;
11868 XPointer *client_data;
11869 #ifndef __GNUC__
11870 /* If we're not using GCC, it's probably not XFree86, and this is
11871 probably right, but we can't use something like --pedantic-errors. */
11872 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11873 char*, XIMProc, XPointer*);
11874 #endif
11875 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11876 client_data);
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_c_try_compile "$LINENO"; then :
11882 emacs_cv_arg6_star=yes
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 if test "$emacs_cv_arg6_star" = yes; then
11886 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11887
11888 else
11889 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11890
11891 fi
11892 CFLAGS=$late_CFLAGS
11893 fi
11894
11895 ### Start of font-backend (under any platform) section.
11896 # (nothing here yet -- this is a placeholder)
11897 ### End of font-backend (under any platform) section.
11898
11899 ### Start of font-backend (under X11) section.
11900 if test "${HAVE_X11}" = "yes"; then
11901
11902 succeeded=no
11903
11904 if test "$PKG_CONFIG" = "no" ; then
11905 HAVE_FC=no
11906 else
11907 PKG_CONFIG_MIN_VERSION=0.9.0
11908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11910 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11911
11912 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11913 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11914 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11915 edit_cflags="
11916 s,///*,/,g
11917 s/^/ /
11918 s/ -I/ $isystem/g
11919 s/^ //
11920 "
11921 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11922 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11924 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11925 succeeded=yes
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 FONTCONFIG_CFLAGS=""
11930 FONTCONFIG_LIBS=""
11931 ## If we have a custom action on failure, don't print errors, but
11932 ## do set a variable so people can do so. Do it in a subshell
11933 ## to capture any diagnostics in invoking pkg-config.
11934 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11935
11936 fi
11937
11938
11939
11940 else
11941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11943 fi
11944 fi
11945
11946 if test $succeeded = yes; then
11947 HAVE_FC=yes
11948 else
11949 HAVE_FC=no
11950 fi
11951
11952
11953 ## Use -lXft if available, unless `--with-xft=no'.
11954 HAVE_XFT=maybe
11955 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11956 with_xft="no";
11957 fi
11958 if test "x${with_xft}" != "xno"; then
11959
11960
11961 succeeded=no
11962
11963 if test "$PKG_CONFIG" = "no" ; then
11964 HAVE_XFT=no
11965 else
11966 PKG_CONFIG_MIN_VERSION=0.9.0
11967 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11969 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11970
11971 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11972 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11973 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11974 edit_cflags="
11975 s,///*,/,g
11976 s/^/ /
11977 s/ -I/ $isystem/g
11978 s/^ //
11979 "
11980 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11981 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11983 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11984 succeeded=yes
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988 XFT_CFLAGS=""
11989 XFT_LIBS=""
11990 ## If we have a custom action on failure, don't print errors, but
11991 ## do set a variable so people can do so. Do it in a subshell
11992 ## to capture any diagnostics in invoking pkg-config.
11993 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
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 :
12007 else
12008 HAVE_XFT=no
12009 fi
12010
12011 ## Because xftfont.c uses XRenderQueryExtension, we also
12012 ## need to link to -lXrender.
12013 HAVE_XRENDER=no
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12015 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12016 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lXrender $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char XRenderQueryExtension ();
12031 int
12032 main ()
12033 {
12034 return XRenderQueryExtension ();
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12041 else
12042 ac_cv_lib_Xrender_XRenderQueryExtension=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12049 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12050 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12051 HAVE_XRENDER=yes
12052 fi
12053
12054 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12055 OLD_CPPFLAGS="$CPPFLAGS"
12056 OLD_CFLAGS="$CFLAGS"
12057 OLD_LIBS="$LIBS"
12058 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12059 CFLAGS="$CFLAGS $XFT_CFLAGS"
12060 XFT_LIBS="-lXrender $XFT_LIBS"
12061 LIBS="$XFT_LIBS $LIBS"
12062 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12063 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12065 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12066 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-lXft $XFT_LIBS $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 XftFontOpen ();
12081 int
12082 main ()
12083 {
12084 return XftFontOpen ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_Xft_XftFontOpen=yes
12091 else
12092 ac_cv_lib_Xft_XftFontOpen=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_Xft_XftFontOpen" >&5
12099 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12100 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12101 HAVE_XFT=yes
12102 fi
12103
12104 fi
12105
12106
12107
12108 if test "${HAVE_XFT}" = "yes"; then
12109
12110 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12111
12112
12113 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12114 else
12115 CPPFLAGS="$OLD_CPPFLAGS"
12116 CFLAGS="$OLD_CFLAGS"
12117 LIBS="$OLD_LIBS"
12118 fi # "${HAVE_XFT}" = "yes"
12119 fi # "$HAVE_XFT" != no
12120 fi # "x${with_xft}" != "xno"
12121
12122 ## We used to allow building with FreeType and without Xft.
12123 ## However, the ftx font backend driver is not in good shape.
12124 if test "$HAVE_XFT" != "yes"; then
12125 HAVE_XFT=no
12126 HAVE_FREETYPE=no
12127 else
12128
12129 succeeded=no
12130
12131 if test "$PKG_CONFIG" = "no" ; then
12132 HAVE_FREETYPE=no
12133 else
12134 PKG_CONFIG_MIN_VERSION=0.9.0
12135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12137 $as_echo_n "checking for freetype2... " >&6; }
12138
12139 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12140 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12141 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12142 edit_cflags="
12143 s,///*,/,g
12144 s/^/ /
12145 s/ -I/ $isystem/g
12146 s/^ //
12147 "
12148 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12149 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12151 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12152 succeeded=yes
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156 FREETYPE_CFLAGS=""
12157 FREETYPE_LIBS=""
12158 ## If we have a custom action on failure, don't print errors, but
12159 ## do set a variable so people can do so. Do it in a subshell
12160 ## to capture any diagnostics in invoking pkg-config.
12161 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12162
12163 fi
12164
12165
12166
12167 else
12168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12170 fi
12171 fi
12172
12173 if test $succeeded = yes; then
12174 HAVE_FREETYPE=yes
12175 else
12176 HAVE_FREETYPE=no
12177 fi
12178
12179
12180 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12181 fi
12182
12183 HAVE_LIBOTF=no
12184 if test "${HAVE_FREETYPE}" = "yes"; then
12185
12186 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12187
12188 if test "${with_libotf}" != "no"; then
12189
12190 succeeded=no
12191
12192 if test "$PKG_CONFIG" = "no" ; then
12193 HAVE_LIBOTF=no
12194 else
12195 PKG_CONFIG_MIN_VERSION=0.9.0
12196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12198 $as_echo_n "checking for libotf... " >&6; }
12199
12200 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12201 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12202 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12203 edit_cflags="
12204 s,///*,/,g
12205 s/^/ /
12206 s/ -I/ $isystem/g
12207 s/^ //
12208 "
12209 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12210 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12212 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12213 succeeded=yes
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 LIBOTF_CFLAGS=""
12218 LIBOTF_LIBS=""
12219 ## If we have a custom action on failure, don't print errors, but
12220 ## do set a variable so people can do so. Do it in a subshell
12221 ## to capture any diagnostics in invoking pkg-config.
12222 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12223
12224 fi
12225
12226
12227
12228 else
12229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12231 fi
12232 fi
12233
12234 if test $succeeded = yes; then
12235 HAVE_LIBOTF=yes
12236 else
12237 HAVE_LIBOTF=no
12238 fi
12239
12240 if test "$HAVE_LIBOTF" = "yes"; then
12241
12242 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12245 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12246 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lotf $LIBS"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char OTF_get_variation_glyphs ();
12261 int
12262 main ()
12263 {
12264 return OTF_get_variation_glyphs ();
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12271 else
12272 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12279 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12280 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12281 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12282 else
12283 HAVE_OTF_GET_VARIATION_GLYPHS=no
12284 fi
12285
12286 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12287
12288 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12289
12290 fi
12291 fi
12292 fi
12293 fi
12294
12295 HAVE_M17N_FLT=no
12296 if test "${HAVE_LIBOTF}" = yes; then
12297 if test "${with_m17n_flt}" != "no"; then
12298
12299 succeeded=no
12300
12301 if test "$PKG_CONFIG" = "no" ; then
12302 HAVE_M17N_FLT=no
12303 else
12304 PKG_CONFIG_MIN_VERSION=0.9.0
12305 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12307 $as_echo_n "checking for m17n-flt... " >&6; }
12308
12309 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12310 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12311 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12312 edit_cflags="
12313 s,///*,/,g
12314 s/^/ /
12315 s/ -I/ $isystem/g
12316 s/^ //
12317 "
12318 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12319 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12321 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12322 succeeded=yes
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 M17N_FLT_CFLAGS=""
12327 M17N_FLT_LIBS=""
12328 ## If we have a custom action on failure, don't print errors, but
12329 ## do set a variable so people can do so. Do it in a subshell
12330 ## to capture any diagnostics in invoking pkg-config.
12331 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12332
12333 fi
12334
12335
12336
12337 else
12338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12340 fi
12341 fi
12342
12343 if test $succeeded = yes; then
12344 HAVE_M17N_FLT=yes
12345 else
12346 HAVE_M17N_FLT=no
12347 fi
12348
12349 if test "$HAVE_M17N_FLT" = "yes"; then
12350
12351 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12352
12353 fi
12354 fi
12355 fi
12356 else
12357 HAVE_XFT=no
12358 HAVE_FREETYPE=no
12359 HAVE_LIBOTF=no
12360 HAVE_M17N_FLT=no
12361 fi
12362
12363 ### End of font-backend (under X11) section.
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374 ### Use -lXpm if available, unless `--with-xpm=no'.
12375 HAVE_XPM=no
12376 LIBXPM=
12377
12378 if test "${HAVE_W32}" = "yes"; then
12379 if test "${with_xpm}" != "no"; then
12380 SAVE_CPPFLAGS="$CPPFLAGS"
12381 SAVE_LDFLAGS="$LDFLAGS"
12382 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12383 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12384 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12385 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12387 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12388 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-lXpm $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char XpmReadFileToImage ();
12403 int
12404 main ()
12405 {
12406 return XpmReadFileToImage ();
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12413 else
12414 ac_cv_lib_Xpm_XpmReadFileToImage=no
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12421 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12422 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12423 HAVE_XPM=yes
12424 fi
12425
12426 fi
12427
12428
12429 if test "${HAVE_XPM}" = "yes"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12431 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #include "X11/xpm.h"
12435 #ifndef XpmReturnAllocPixels
12436 no_return_alloc_pixels
12437 #endif
12438
12439 _ACEOF
12440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12441 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12442 HAVE_XPM=no
12443 else
12444 HAVE_XPM=yes
12445 fi
12446 rm -f conftest*
12447
12448
12449 if test "${HAVE_XPM}" = "yes"; then
12450 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12456 CPPFLAGS="$SAVE_CPPFLAGS"
12457 LDFLAGS="$SAVE_LDFLAGS"
12458 fi
12459 fi
12460 fi
12461
12462 if test "${HAVE_XPM}" = "yes"; then
12463
12464 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12465
12466 LIBXPM=-lXpm
12467 fi
12468 fi
12469
12470 if test "${HAVE_X11}" = "yes"; then
12471 if test "${with_xpm}" != "no"; then
12472 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12473 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12475 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12476 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lXpm -lX11 $LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char XpmReadFileToPixmap ();
12491 int
12492 main ()
12493 {
12494 return XpmReadFileToPixmap ();
12495 ;
12496 return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12501 else
12502 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12509 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12510 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12511 HAVE_XPM=yes
12512 fi
12513
12514 fi
12515
12516
12517 if test "${HAVE_XPM}" = "yes"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12519 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522 #include "X11/xpm.h"
12523 #ifndef XpmReturnAllocPixels
12524 no_return_alloc_pixels
12525 #endif
12526
12527 _ACEOF
12528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12530 HAVE_XPM=no
12531 else
12532 HAVE_XPM=yes
12533 fi
12534 rm -f conftest*
12535
12536
12537 if test "${HAVE_XPM}" = "yes"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544 fi
12545 fi
12546
12547 if test "${HAVE_XPM}" = "yes"; then
12548
12549 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12550
12551 LIBXPM=-lXpm
12552 fi
12553 fi
12554
12555
12556
12557 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12558 HAVE_JPEG=no
12559 LIBJPEG=
12560 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12561 if test "${with_jpeg}" != "no"; then
12562 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12563 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12565 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12566 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-ljpeg $LIBS"
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12577 #ifdef __cplusplus
12578 extern "C"
12579 #endif
12580 char jpeg_destroy_compress ();
12581 int
12582 main ()
12583 {
12584 return jpeg_destroy_compress ();
12585 ;
12586 return 0;
12587 }
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12590 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12591 else
12592 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_check_lib_save_LIBS
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12599 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12600 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12601 HAVE_JPEG=yes
12602 fi
12603
12604 fi
12605
12606
12607 fi
12608
12609 if test "${HAVE_JPEG}" = "yes"; then
12610 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12611
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #include <jpeglib.h>
12615 version=JPEG_LIB_VERSION
12616
12617 _ACEOF
12618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12619 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12620 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12621
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12624 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12625 HAVE_JPEG=no
12626 fi
12627 rm -f conftest*
12628
12629 fi
12630 if test "${HAVE_JPEG}" = "yes"; then
12631 LIBJPEG=-ljpeg
12632 fi
12633 fi
12634
12635
12636 ### Use -lpng if available, unless `--with-png=no'.
12637 HAVE_PNG=no
12638 LIBPNG=
12639 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12640 if test "${with_png}" != "no"; then
12641 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12642 # in /usr/include/libpng.
12643 for ac_header in png.h libpng/png.h
12644 do :
12645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12647 eval as_val=\$$as_ac_Header
12648 if test "x$as_val" = x""yes; then :
12649 cat >>confdefs.h <<_ACEOF
12650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12651 _ACEOF
12652 break
12653 fi
12654
12655 done
12656
12657 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12659 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12660 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lpng -lz -lm $LIBS"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char png_get_channels ();
12675 int
12676 main ()
12677 {
12678 return png_get_channels ();
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 ac_cv_lib_png_png_get_channels=yes
12685 else
12686 ac_cv_lib_png_png_get_channels=no
12687 fi
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12691 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12693 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12694 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12695 HAVE_PNG=yes
12696 fi
12697
12698 fi
12699 fi
12700
12701 if test "${HAVE_PNG}" = "yes"; then
12702
12703 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12704
12705 LIBPNG="-lpng -lz -lm"
12706
12707 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12708 # include <libpng/png.h>
12709 #else
12710 # include <png.h>
12711 #endif
12712
12713 "
12714 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12715
12716 else
12717
12718 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12719
12720 fi
12721
12722 fi
12723 fi
12724
12725
12726 ### Use -ltiff if available, unless `--with-tiff=no'.
12727 HAVE_TIFF=no
12728 LIBTIFF=
12729 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12730 if test "${with_tiff}" != "no"; then
12731 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12733 tifflibs="-lz -lm"
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12737 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-ltiff $tifflibs $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char TIFFGetVersion ();
12753 int
12754 main ()
12755 {
12756 return TIFFGetVersion ();
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_tiff_TIFFGetVersion=yes
12763 else
12764 ac_cv_lib_tiff_TIFFGetVersion=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12771 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12772 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12773 HAVE_TIFF=yes
12774 fi
12775
12776 fi
12777
12778
12779 fi
12780
12781 if test "${HAVE_TIFF}" = "yes"; then
12782
12783 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12784
12785 LIBTIFF=-ltiff
12786 fi
12787 fi
12788
12789
12790 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12791 HAVE_GIF=no
12792 LIBGIF=
12793 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12794 || test "${HAVE_W32}" = "yes"; then
12795 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12796 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12797 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12798 # Earlier versions can crash Emacs.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12800 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12801 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 ac_check_lib_save_LIBS=$LIBS
12805 LIBS="-lgif $LIBS"
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 char EGifPutExtensionLast ();
12816 int
12817 main ()
12818 {
12819 return EGifPutExtensionLast ();
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_link "$LINENO"; then :
12825 ac_cv_lib_gif_EGifPutExtensionLast=yes
12826 else
12827 ac_cv_lib_gif_EGifPutExtensionLast=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12834 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12835 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12836 HAVE_GIF=yes
12837 else
12838 HAVE_GIF=maybe
12839 fi
12840
12841 fi
12842
12843
12844
12845 if test "$HAVE_GIF" = yes; then
12846 LIBGIF=-lgif
12847 elif test "$HAVE_GIF" = maybe; then
12848 # If gif_lib.h but no libgif, try libungif.
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12850 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12851 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-lungif $LIBS"
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char EGifPutExtensionLast ();
12866 int
12867 main ()
12868 {
12869 return EGifPutExtensionLast ();
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12876 else
12877 ac_cv_lib_ungif_EGifPutExtensionLast=no
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12884 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12885 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12886 HAVE_GIF=yes
12887 else
12888 HAVE_GIF=no
12889 fi
12890
12891 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12892 fi
12893
12894 if test "${HAVE_GIF}" = "yes"; then
12895
12896 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12897
12898 fi
12899 fi
12900
12901
12902 if test "${HAVE_X11}" = "yes"; then
12903 MISSING=""
12904 WITH_NO=""
12905 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12906 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12907 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12908 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12909 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12910 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12911 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12912 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12913 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12914 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12915
12916 if test "X${MISSING}" != X; then
12917 as_fn_error "The following required libraries were not found:
12918 $MISSING
12919 Maybe some development libraries/packages are missing?
12920 If you don't want to link with them give
12921 $WITH_NO
12922 as options to configure" "$LINENO" 5
12923 fi
12924 fi
12925
12926 ### Use -lgpm if available, unless `--with-gpm=no'.
12927 HAVE_GPM=no
12928 LIBGPM=
12929 if test "${with_gpm}" != "no"; then
12930 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12931 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12933 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12934 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_check_lib_save_LIBS=$LIBS
12938 LIBS="-lgpm $LIBS"
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char Gpm_Open ();
12949 int
12950 main ()
12951 {
12952 return Gpm_Open ();
12953 ;
12954 return 0;
12955 }
12956 _ACEOF
12957 if ac_fn_c_try_link "$LINENO"; then :
12958 ac_cv_lib_gpm_Gpm_Open=yes
12959 else
12960 ac_cv_lib_gpm_Gpm_Open=no
12961 fi
12962 rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
12964 LIBS=$ac_check_lib_save_LIBS
12965 fi
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12967 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12968 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12969 HAVE_GPM=yes
12970 fi
12971
12972 fi
12973
12974
12975
12976 if test "${HAVE_GPM}" = "yes"; then
12977
12978 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12979
12980 LIBGPM=-lgpm
12981 fi
12982 fi
12983
12984
12985
12986
12987
12988
12989 GNUSTEP_CFLAGS=
12990 ### Use NeXTstep API to implement GUI.
12991 if test "${HAVE_NS}" = "yes"; then
12992
12993 $as_echo "#define HAVE_NS 1" >>confdefs.h
12994
12995 if test "${NS_IMPL_COCOA}" = "yes"; then
12996
12997 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12998
12999 fi
13000 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13001
13002 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13003
13004 # See also .m.o rule in Makefile.in */
13005 # FIXME: are all these flags really needed? Document here why. */
13006 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13007 ## Extra CFLAGS applied to src/*.m files.
13008 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"
13009 fi
13010 # We also have mouse menus.
13011 HAVE_MENUS=yes
13012 OTHER_FILES=ns-app
13013 fi
13014
13015 if test "${HAVE_W32}" = "yes"; then
13016 HAVE_MENUS=yes
13017 fi
13018
13019 ### Use session management (-lSM -lICE) if available
13020 HAVE_X_SM=no
13021 LIBXSM=
13022 if test "${HAVE_X11}" = "yes"; then
13023 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13024 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13026 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13027 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 ac_check_lib_save_LIBS=$LIBS
13031 LIBS="-lSM -lICE $LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char SmcOpenConnection ();
13042 int
13043 main ()
13044 {
13045 return SmcOpenConnection ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_SM_SmcOpenConnection=yes
13052 else
13053 ac_cv_lib_SM_SmcOpenConnection=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13060 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13061 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13062 HAVE_X_SM=yes
13063 fi
13064
13065 fi
13066
13067
13068
13069 if test "${HAVE_X_SM}" = "yes"; then
13070
13071 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13072
13073 LIBXSM="-lSM -lICE"
13074 case "$LIBS" in
13075 *-lSM*) ;;
13076 *) LIBS="$LIBXSM $LIBS" ;;
13077 esac
13078 fi
13079 fi
13080
13081
13082 ### Use libxml (-lxml2) if available
13083 HAVE_LIBXML2=no
13084 if test "${with_xml2}" != "no"; then
13085 ### I'm not sure what the version number should be, so I just guessed.
13086
13087 succeeded=no
13088
13089 if test "$PKG_CONFIG" = "no" ; then
13090 HAVE_LIBXML2=no
13091 else
13092 PKG_CONFIG_MIN_VERSION=0.9.0
13093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13095 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13096
13097 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13098 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13099 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13100 edit_cflags="
13101 s,///*,/,g
13102 s/^/ /
13103 s/ -I/ $isystem/g
13104 s/^ //
13105 "
13106 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13107 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13109 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13110 succeeded=yes
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 LIBXML2_CFLAGS=""
13115 LIBXML2_LIBS=""
13116 ## If we have a custom action on failure, don't print errors, but
13117 ## do set a variable so people can do so. Do it in a subshell
13118 ## to capture any diagnostics in invoking pkg-config.
13119 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13120
13121 fi
13122
13123
13124
13125 else
13126 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13127 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13128 fi
13129 fi
13130
13131 if test $succeeded = yes; then
13132 HAVE_LIBXML2=yes
13133 else
13134 HAVE_LIBXML2=no
13135 fi
13136
13137 if test "${HAVE_LIBXML2}" = "yes"; then
13138 LIBS="$LIBXML2_LIBS $LIBS"
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13140 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13141 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 ac_check_lib_save_LIBS=$LIBS
13145 LIBS="-lxml2 $LIBS"
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char htmlReadMemory ();
13156 int
13157 main ()
13158 {
13159 return htmlReadMemory ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 ac_cv_lib_xml2_htmlReadMemory=yes
13166 else
13167 ac_cv_lib_xml2_htmlReadMemory=no
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13172 fi
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13174 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13175 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13176 HAVE_LIBXML2=yes
13177 else
13178 HAVE_LIBXML2=no
13179 fi
13180
13181 if test "${HAVE_LIBXML2}" = "yes"; then
13182
13183 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13184
13185 else
13186 LIBXML2_LIBS=""
13187 LIBXML2_CFLAGS=""
13188 fi
13189 fi
13190 fi
13191
13192
13193
13194 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13196 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13197 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 #include <netdb.h>
13203 int
13204 main ()
13205 {
13206 return h_errno;
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 emacs_cv_netdb_declares_h_errno=yes
13213 else
13214 emacs_cv_netdb_declares_h_errno=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13220 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13221 if test $emacs_cv_netdb_declares_h_errno = yes; then
13222
13223 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13224
13225 fi
13226
13227 # sqrt and other floating-point functions such as fmod and frexp
13228 # are found in -lm on most systems.
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13230 $as_echo_n "checking for sqrt in -lm... " >&6; }
13231 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lm $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char sqrt ();
13246 int
13247 main ()
13248 {
13249 return sqrt ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_m_sqrt=yes
13256 else
13257 ac_cv_lib_m_sqrt=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13264 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13265 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_LIBM 1
13268 _ACEOF
13269
13270 LIBS="-lm $LIBS"
13271
13272 fi
13273
13274
13275 # Check for mail-locking functions in a "mail" library. Probably this should
13276 # have the same check as for liblockfile below.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13278 $as_echo_n "checking for maillock in -lmail... " >&6; }
13279 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lmail $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char maillock ();
13294 int
13295 main ()
13296 {
13297 return maillock ();
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_mail_maillock=yes
13304 else
13305 ac_cv_lib_mail_maillock=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13312 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13313 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13314 have_mail=yes
13315 else
13316 have_mail=no
13317 fi
13318
13319 if test $have_mail = yes; then
13320 LIBS_MAIL=-lmail
13321 LIBS="$LIBS_MAIL $LIBS"
13322
13323 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13324
13325 else
13326 LIBS_MAIL=
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13329 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13330 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-llockfile $LIBS"
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13341 #ifdef __cplusplus
13342 extern "C"
13343 #endif
13344 char maillock ();
13345 int
13346 main ()
13347 {
13348 return maillock ();
13349 ;
13350 return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"; then :
13354 ac_cv_lib_lockfile_maillock=yes
13355 else
13356 ac_cv_lib_lockfile_maillock=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13363 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13364 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13365 have_lockfile=yes
13366 else
13367 have_lockfile=no
13368 fi
13369
13370 if test $have_lockfile = yes; then
13371 LIBS_MAIL=-llockfile
13372 LIBS="$LIBS_MAIL $LIBS"
13373
13374 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13375
13376 else
13377 # If we have the shared liblockfile, assume we must use it for mail
13378 # locking (e.g. Debian). If we couldn't link against liblockfile
13379 # (no liblockfile.a installed), ensure that we don't need to.
13380 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13381 set dummy liblockfile.so; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 if test -n "$liblockfile"; then
13388 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13392 for as_dir in $as_dummy
13393 do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
13396 for ac_exec_ext in '' $ac_executable_extensions; do
13397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13398 ac_cv_prog_liblockfile="yes"
13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 break 2
13401 fi
13402 done
13403 done
13404 IFS=$as_save_IFS
13405
13406 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13407 fi
13408 fi
13409 liblockfile=$ac_cv_prog_liblockfile
13410 if test -n "$liblockfile"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13412 $as_echo "$liblockfile" >&6; }
13413 else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416 fi
13417
13418
13419 if test $ac_cv_prog_liblockfile = yes; then
13420 as_fn_error "Shared liblockfile found but can't link against it.
13421 This probably means that movemail could lose mail.
13422 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13423 fi
13424 fi
13425
13426
13427
13428
13429
13430 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13431 ## interlock access to the mail spool. The alternative is a lock file named
13432 ## /usr/spool/mail/$USER.lock.
13433 mail_lock=no
13434 case "$opsys" in
13435 aix4-2) mail_lock="lockf" ;;
13436
13437 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13438
13439 ## On GNU/Linux systems, both methods are used by various mail programs.
13440 ## I assume most people are using newer mailers that have heard of flock.
13441 ## Change this if you need to.
13442 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13443 ## configure gets the right answers, and that means *NOT* using flock.
13444 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13445 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13446 ## Debian maintainer hasn't provided a clean fix for Emacs.
13447 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13448 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13449 ## correct logic. -- fx
13450 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13451 ## liblockfile is a Free Software replacement for libmail, used on
13452 ## Debian systems and elsewhere. -rfr.
13453 gnu-*)
13454 mail_lock="flock"
13455 if test $have_mail = yes || test $have_lockfile = yes; then
13456 test $ac_cv_header_maillock_h = yes && mail_lock=no
13457 fi
13458 ;;
13459 esac
13460
13461 BLESSMAIL_TARGET=
13462 case "$mail_lock" in
13463 flock)
13464 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13465 ;;
13466
13467 lockf)
13468 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13469 ;;
13470
13471 *) BLESSMAIL_TARGET="need-blessmail" ;;
13472 esac
13473
13474
13475
13476 for ac_func in gethostname \
13477 closedir getrusage get_current_dir_name \
13478 lrand48 \
13479 select getpagesize setlocale \
13480 utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
13481 strsignal setitimer \
13482 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13483 gai_strerror mkstemp getline getdelim fsync sync \
13484 difftime posix_memalign \
13485 getpwent endpwent getgrent endgrent \
13486 touchlock \
13487 cfmakeraw cfsetspeed copysign __executable_start
13488 do :
13489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13491 eval as_val=\$$as_ac_var
13492 if test "x$as_val" = x""yes; then :
13493 cat >>confdefs.h <<_ACEOF
13494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13495 _ACEOF
13496
13497 fi
13498 done
13499
13500
13501 if test $opsys = unixware; then
13502
13503 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13504
13505 else
13506 for ac_func in getwd
13507 do :
13508 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13509 if test "x$ac_cv_func_getwd" = x""yes; then :
13510 cat >>confdefs.h <<_ACEOF
13511 #define HAVE_GETWD 1
13512 _ACEOF
13513
13514 fi
13515 done
13516
13517 fi
13518
13519 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13520 ## has a broken `rint' in some library versions including math library
13521 ## version number A.09.05.
13522 ## You can fix the math library by installing patch number PHSS_4630.
13523 ## But we can fix it more reliably for Emacs by just not using rint.
13524 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13525 case $opsys in
13526 hpux*) : ;;
13527 *) for ac_func in random rint
13528 do :
13529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13531 eval as_val=\$$as_ac_var
13532 if test "x$as_val" = x""yes; then :
13533 cat >>confdefs.h <<_ACEOF
13534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13535 _ACEOF
13536
13537 fi
13538 done
13539 ;;
13540 esac
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13543 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13544 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546 else
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549
13550 int
13551 main ()
13552 {
13553 __builtin_unwind_init ();
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 emacs_cv_func___builtin_unwind_init=yes
13560 else
13561 emacs_cv_func___builtin_unwind_init=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 fi
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13567 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13568 if test $emacs_cv_func___builtin_unwind_init = yes; then
13569
13570 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13571
13572 fi
13573
13574
13575
13576
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13579 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13580 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 while :; do
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <sys/types.h> /* for off_t */
13587 #include <stdio.h>
13588 int
13589 main ()
13590 {
13591 int (*fp) (FILE *, off_t, int) = fseeko;
13592 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 ac_cv_sys_largefile_source=no; break
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 #define _LARGEFILE_SOURCE 1
13605 #include <sys/types.h> /* for off_t */
13606 #include <stdio.h>
13607 int
13608 main ()
13609 {
13610 int (*fp) (FILE *, off_t, int) = fseeko;
13611 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13612 ;
13613 return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 ac_cv_sys_largefile_source=1; break
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext conftest.$ac_ext
13621 ac_cv_sys_largefile_source=unknown
13622 break
13623 done
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13626 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13627 case $ac_cv_sys_largefile_source in #(
13628 no | unknown) ;;
13629 *)
13630 cat >>confdefs.h <<_ACEOF
13631 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13632 _ACEOF
13633 ;;
13634 esac
13635 rm -rf conftest*
13636
13637 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13638 # in glibc 2.1.3, but that breaks too many other things.
13639 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13640 if test $ac_cv_sys_largefile_source != unknown; then
13641
13642 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13643
13644 fi
13645
13646
13647 # UNIX98 PTYs.
13648 for ac_func in grantpt
13649 do :
13650 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13651 if test "x$ac_cv_func_grantpt" = x""yes; then :
13652 cat >>confdefs.h <<_ACEOF
13653 #define HAVE_GRANTPT 1
13654 _ACEOF
13655
13656 fi
13657 done
13658
13659
13660 # PTY-related GNU extensions.
13661 for ac_func in getpt posix_openpt
13662 do :
13663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13665 eval as_val=\$$as_ac_var
13666 if test "x$as_val" = x""yes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13669 _ACEOF
13670
13671 fi
13672 done
13673
13674
13675 # Check this now, so that we will NOT find the above functions in ncurses.
13676 # That is because we have not set up to link ncurses in lib-src.
13677 # It's better to believe a function is not available
13678 # than to expect to find it in ncurses.
13679 # Also we need tputs and friends to be able to build at all.
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13681 $as_echo_n "checking for library containing tputs... " >&6; }
13682 # Run a test program that contains a call to tputs, a call that is
13683 # never executed. This tests whether a pre-'main' dynamic linker
13684 # works with the library. It's too much trouble to actually call
13685 # tputs in the test program, due to portability hassles. When
13686 # cross-compiling, assume the test program will run if it links.
13687
13688 # Maybe curses should be tried earlier?
13689 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13690 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13691 OLIBS=$LIBS
13692 if test -z "$tputs_library"; then
13693 LIBS_TERMCAP=
13694 msg='none required'
13695 else
13696 LIBS_TERMCAP=-l$tputs_library
13697 msg=$LIBS_TERMCAP
13698 LIBS="$LIBS_TERMCAP $LIBS"
13699 fi
13700 if test "$cross_compiling" = yes; then :
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703
13704 extern void tputs (const char *, int, int (*)(int));
13705 int main (int argc, char **argv)
13706 {
13707 if (argc == 10000)
13708 tputs (argv[0], 0, 0);
13709 return 0;
13710 }
13711
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714
13715 else
13716 msg=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723
13724 extern void tputs (const char *, int, int (*)(int));
13725 int main (int argc, char **argv)
13726 {
13727 if (argc == 10000)
13728 tputs (argv[0], 0, 0);
13729 return 0;
13730 }
13731
13732 _ACEOF
13733 if ac_fn_c_try_run "$LINENO"; then :
13734
13735 else
13736 msg=no
13737 fi
13738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13739 conftest.$ac_objext conftest.beam conftest.$ac_ext
13740 fi
13741
13742 LIBS=$OLIBS
13743 if test "X$msg" != Xno; then
13744 break
13745 fi
13746 done
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13748 $as_echo "$msg" >&6; }
13749 if test "X$msg" = Xno; then
13750 as_fn_error "The required function \`tputs' was not found in any library.
13751 The following libraries were tried (in order):
13752 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13753 Please try installing whichever of these libraries is most appropriate
13754 for your system, together with its header files.
13755 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13756 fi
13757
13758 ## Use termcap instead of terminfo?
13759 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13760 TERMINFO=yes
13761 ## FIXME? In the cases below where we unconditionally set
13762 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13763 ## if that was found above to have tputs.
13764 ## Should we use the gnu* logic everywhere?
13765 case "$opsys" in
13766 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13767 ## The ncurses library has been moved out of the System framework in
13768 ## Mac OS X 10.2. So if configure detects it, set the command-line
13769 ## option to use it.
13770 darwin) LIBS_TERMCAP="-lncurses" ;;
13771
13772 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13773
13774 freebsd)
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13776 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13777 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #include <osreldate.h>
13783 int
13784 main ()
13785 {
13786 #if __FreeBSD_version < 400000
13787 fail;
13788 #endif
13789
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 emacs_cv_freebsd_terminfo=yes
13796 else
13797 emacs_cv_freebsd_terminfo=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 fi
13802
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13805 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13806
13807 if test $emacs_cv_freebsd_terminfo = yes; then
13808 LIBS_TERMCAP="-lncurses"
13809 else
13810 TERMINFO=no
13811 LIBS_TERMCAP="-ltermcap"
13812 fi
13813 ;;
13814
13815 netbsd)
13816 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13817 TERMINFO=no
13818 LIBS_TERMCAP="-ltermcap"
13819 fi
13820 ;;
13821
13822 openbsd) LIBS_TERMCAP="-lncurses" ;;
13823
13824 ## hpux: Make sure we get select from libc rather than from libcurses
13825 ## because libcurses on HPUX 10.10 has a broken version of select.
13826 ## We used to use -lc -lcurses, but this may be cleaner.
13827 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13828 # set that way, now it uses the default). Isn't this a contradiction?
13829 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13830
13831 esac
13832
13833 TERMCAP_OBJ=tparam.o
13834 if test $TERMINFO = yes; then
13835
13836 $as_echo "#define TERMINFO 1" >>confdefs.h
13837
13838 TERMCAP_OBJ=terminfo.o
13839 fi
13840
13841
13842
13843
13844 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13845 # On Darwin, res_init appears not to be useful: see bug#562 and
13846 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13847 resolv=no
13848
13849 if test $opsys != darwin; then
13850
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <netinet/in.h>
13854 #include <arpa/nameser.h>
13855 #include <resolv.h>
13856 int
13857 main ()
13858 {
13859 return res_init();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 have_res_init=yes
13866 else
13867 have_res_init=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 if test "$have_res_init" = no; then
13872 OLIBS="$LIBS"
13873 LIBS="$LIBS -lresolv"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13875 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <netinet/in.h>
13879 #include <arpa/nameser.h>
13880 #include <resolv.h>
13881 int
13882 main ()
13883 {
13884 return res_init();
13885 ;
13886 return 0;
13887 }
13888 _ACEOF
13889 if ac_fn_c_try_link "$LINENO"; then :
13890 have_res_init=yes
13891 else
13892 have_res_init=no
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13897 $as_echo "$have_res_init" >&6; }
13898 if test "$have_res_init" = yes ; then
13899 resolv=yes
13900 fi
13901 LIBS="$OLIBS"
13902 fi
13903
13904 if test "$have_res_init" = yes; then
13905
13906 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13907
13908 fi
13909 fi
13910 # Do we need the Hesiod library to provide the support routines?
13911 LIBHESIOD=
13912 if test "$with_hesiod" != no ; then
13913 # Don't set $LIBS here -- see comments above. FIXME which comments?
13914 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13915 if test "x$ac_cv_func_res_send" = x""yes; then :
13916
13917 else
13918 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13919 if test "x$ac_cv_func___res_send" = x""yes; then :
13920
13921 else
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13923 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13924 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 ac_check_lib_save_LIBS=$LIBS
13928 LIBS="-lresolv $LIBS"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931
13932 /* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13935 #ifdef __cplusplus
13936 extern "C"
13937 #endif
13938 char res_send ();
13939 int
13940 main ()
13941 {
13942 return res_send ();
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_link "$LINENO"; then :
13948 ac_cv_lib_resolv_res_send=yes
13949 else
13950 ac_cv_lib_resolv_res_send=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13957 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13958 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13959 resolv=yes
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13962 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13963 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lresolv $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char __res_send ();
13978 int
13979 main ()
13980 {
13981 return __res_send ();
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ac_cv_lib_resolv___res_send=yes
13988 else
13989 ac_cv_lib_resolv___res_send=no
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13996 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13997 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13998 resolv=yes
13999 fi
14000
14001 fi
14002
14003 fi
14004
14005 fi
14006
14007 if test "$resolv" = yes ; then
14008 RESOLVLIB=-lresolv
14009 else
14010 RESOLVLIB=
14011 fi
14012 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14013 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14014
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14017 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14018 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lhesiod $RESOLVLIB $LIBS"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14029 #ifdef __cplusplus
14030 extern "C"
14031 #endif
14032 char hes_getmailhost ();
14033 int
14034 main ()
14035 {
14036 return hes_getmailhost ();
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_c_try_link "$LINENO"; then :
14042 ac_cv_lib_hesiod_hes_getmailhost=yes
14043 else
14044 ac_cv_lib_hesiod_hes_getmailhost=no
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14051 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14052 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14053 hesiod=yes
14054 else
14055 :
14056 fi
14057
14058 fi
14059
14060
14061 if test x"$hesiod" = xyes; then
14062
14063 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14064
14065 LIBHESIOD=-lhesiod
14066 fi
14067 fi
14068
14069
14070 # Do we need libresolv (due to res_init or Hesiod)?
14071 if test "$resolv" = yes && test $opsys != darwin; then
14072
14073 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14074
14075 LIBRESOLV=-lresolv
14076 else
14077 LIBRESOLV=
14078 fi
14079
14080
14081 # These tell us which Kerberos-related libraries to use.
14082 COM_ERRLIB=
14083 CRYPTOLIB=
14084 KRB5LIB=
14085 DESLIB=
14086 KRB4LIB=
14087
14088 if test "${with_kerberos}" != no; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14090 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14091 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lcom_err $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char com_err ();
14106 int
14107 main ()
14108 {
14109 return com_err ();
14110 ;
14111 return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 ac_cv_lib_com_err_com_err=yes
14116 else
14117 ac_cv_lib_com_err_com_err=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14124 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14125 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14126 have_com_err=yes
14127 else
14128 have_com_err=no
14129 fi
14130
14131 if test $have_com_err = yes; then
14132 COM_ERRLIB=-lcom_err
14133 LIBS="$COM_ERRLIB $LIBS"
14134
14135 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14136
14137 fi
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14139 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14140 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lcrypto $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char mit_des_cbc_encrypt ();
14155 int
14156 main ()
14157 {
14158 return mit_des_cbc_encrypt ();
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14165 else
14166 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14173 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14174 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14175 have_crypto=yes
14176 else
14177 have_crypto=no
14178 fi
14179
14180 if test $have_crypto = yes; then
14181 CRYPTOLIB=-lcrypto
14182 LIBS="$CRYPTOLIB $LIBS"
14183
14184 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14185
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14188 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14189 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 ac_check_lib_save_LIBS=$LIBS
14193 LIBS="-lk5crypto $LIBS"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char mit_des_cbc_encrypt ();
14204 int
14205 main ()
14206 {
14207 return mit_des_cbc_encrypt ();
14208 ;
14209 return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14214 else
14215 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14216 fi
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14222 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14223 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14224 have_k5crypto=yes
14225 else
14226 have_k5crypto=no
14227 fi
14228
14229 if test $have_k5crypto = yes; then
14230 CRYPTOLIB=-lk5crypto
14231 LIBS="$CRYPTOLIB $LIBS"
14232
14233 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14234
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14237 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14238 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lkrb5 $LIBS"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char krb5_init_context ();
14253 int
14254 main ()
14255 {
14256 return krb5_init_context ();
14257 ;
14258 return 0;
14259 }
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_lib_krb5_krb5_init_context=yes
14263 else
14264 ac_cv_lib_krb5_krb5_init_context=no
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14271 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14272 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14273 have_krb5=yes
14274 else
14275 have_krb5=no
14276 fi
14277
14278 if test $have_krb5=yes; then
14279 KRB5LIB=-lkrb5
14280 LIBS="$KRB5LIB $LIBS"
14281
14282 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14283
14284 fi
14285 if test "${with_kerberos5}" = no; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14287 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14288 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-ldes425 $LIBS"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char des_cbc_encrypt ();
14303 int
14304 main ()
14305 {
14306 return des_cbc_encrypt ();
14307 ;
14308 return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 ac_cv_lib_des425_des_cbc_encrypt=yes
14313 else
14314 ac_cv_lib_des425_des_cbc_encrypt=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14321 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14322 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14323 have_des425=yes
14324 else
14325 have_des425=no
14326 fi
14327
14328 if test $have_des425 = yes; then
14329 DESLIB=-ldes425
14330 LIBS="$DESLIB $LIBS"
14331
14332 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14333
14334 else
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14336 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14337 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 ac_check_lib_save_LIBS=$LIBS
14341 LIBS="-ldes $LIBS"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344
14345 /* Override any GCC internal prototype to avoid an error.
14346 Use char because int might match the return type of a GCC
14347 builtin and then its argument prototype would still apply. */
14348 #ifdef __cplusplus
14349 extern "C"
14350 #endif
14351 char des_cbc_encrypt ();
14352 int
14353 main ()
14354 {
14355 return des_cbc_encrypt ();
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 ac_cv_lib_des_des_cbc_encrypt=yes
14362 else
14363 ac_cv_lib_des_des_cbc_encrypt=no
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14370 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14371 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14372 have_des=yes
14373 else
14374 have_des=no
14375 fi
14376
14377 if test $have_des = yes; then
14378 DESLIB=-ldes
14379 LIBS="$DESLIB $LIBS"
14380
14381 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14382
14383 fi
14384 fi
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14386 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14387 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 ac_check_lib_save_LIBS=$LIBS
14391 LIBS="-lkrb4 $LIBS"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char krb_get_cred ();
14402 int
14403 main ()
14404 {
14405 return krb_get_cred ();
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 ac_cv_lib_krb4_krb_get_cred=yes
14412 else
14413 ac_cv_lib_krb4_krb_get_cred=no
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14421 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14422 have_krb4=yes
14423 else
14424 have_krb4=no
14425 fi
14426
14427 if test $have_krb4 = yes; then
14428 KRB4LIB=-lkrb4
14429 LIBS="$KRB4LIB $LIBS"
14430
14431 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14432
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14435 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14436 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 ac_check_lib_save_LIBS=$LIBS
14440 LIBS="-lkrb $LIBS"
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply. */
14447 #ifdef __cplusplus
14448 extern "C"
14449 #endif
14450 char krb_get_cred ();
14451 int
14452 main ()
14453 {
14454 return krb_get_cred ();
14455 ;
14456 return 0;
14457 }
14458 _ACEOF
14459 if ac_fn_c_try_link "$LINENO"; then :
14460 ac_cv_lib_krb_krb_get_cred=yes
14461 else
14462 ac_cv_lib_krb_krb_get_cred=no
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14466 LIBS=$ac_check_lib_save_LIBS
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14469 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14470 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14471 have_krb=yes
14472 else
14473 have_krb=no
14474 fi
14475
14476 if test $have_krb = yes; then
14477 KRB4LIB=-lkrb
14478 LIBS="$KRB4LIB $LIBS"
14479
14480 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14481
14482 fi
14483 fi
14484 fi
14485
14486 if test "${with_kerberos5}" != no; then
14487 for ac_header in krb5.h
14488 do :
14489 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14490 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_KRB5_H 1
14493 _ACEOF
14494 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14495 "
14496 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14497
14498 cat >>confdefs.h <<_ACEOF
14499 #define HAVE_KRB5_ERROR_TEXT 1
14500 _ACEOF
14501
14502
14503 fi
14504 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14505 "
14506 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14507
14508 cat >>confdefs.h <<_ACEOF
14509 #define HAVE_KRB5_ERROR_E_TEXT 1
14510 _ACEOF
14511
14512
14513 fi
14514
14515 fi
14516
14517 done
14518
14519 else
14520 for ac_header in des.h
14521 do :
14522 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14523 if test "x$ac_cv_header_des_h" = x""yes; then :
14524 cat >>confdefs.h <<_ACEOF
14525 #define HAVE_DES_H 1
14526 _ACEOF
14527
14528 else
14529 for ac_header in kerberosIV/des.h
14530 do :
14531 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14532 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14533 cat >>confdefs.h <<_ACEOF
14534 #define HAVE_KERBEROSIV_DES_H 1
14535 _ACEOF
14536
14537 else
14538 for ac_header in kerberos/des.h
14539 do :
14540 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14541 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14542 cat >>confdefs.h <<_ACEOF
14543 #define HAVE_KERBEROS_DES_H 1
14544 _ACEOF
14545
14546 fi
14547
14548 done
14549
14550 fi
14551
14552 done
14553
14554 fi
14555
14556 done
14557
14558 for ac_header in krb.h
14559 do :
14560 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14561 if test "x$ac_cv_header_krb_h" = x""yes; then :
14562 cat >>confdefs.h <<_ACEOF
14563 #define HAVE_KRB_H 1
14564 _ACEOF
14565
14566 else
14567 for ac_header in kerberosIV/krb.h
14568 do :
14569 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14570 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14571 cat >>confdefs.h <<_ACEOF
14572 #define HAVE_KERBEROSIV_KRB_H 1
14573 _ACEOF
14574
14575 else
14576 for ac_header in kerberos/krb.h
14577 do :
14578 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_KERBEROS_KRB_H 1
14582 _ACEOF
14583
14584 fi
14585
14586 done
14587
14588 fi
14589
14590 done
14591
14592 fi
14593
14594 done
14595
14596 fi
14597 for ac_header in com_err.h
14598 do :
14599 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14600 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14601 cat >>confdefs.h <<_ACEOF
14602 #define HAVE_COM_ERR_H 1
14603 _ACEOF
14604
14605 fi
14606
14607 done
14608
14609 fi
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620 for ac_func in $ac_func_list
14621 do :
14622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14624 eval as_val=\$$as_ac_var
14625 if test "x$as_val" = x""yes; then :
14626 cat >>confdefs.h <<_ACEOF
14627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14628 _ACEOF
14629
14630 fi
14631 done
14632
14633
14634
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14637 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14638 if test "${emacs_cv_localtime_cache+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 if test x$ac_cv_func_tzset = xyes; then
14642 if test "$cross_compiling" = yes; then :
14643 # If we have tzset, assume the worst when cross-compiling.
14644 emacs_cv_localtime_cache=yes
14645 else
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648 #include <time.h>
14649 char TZ_GMT0[] = "TZ=GMT0";
14650 char TZ_PST8[] = "TZ=PST8";
14651 main()
14652 {
14653 time_t now = time ((time_t *) 0);
14654 int hour_GMT0, hour_unset;
14655 if (putenv (TZ_GMT0) != 0)
14656 exit (1);
14657 hour_GMT0 = localtime (&now)->tm_hour;
14658 unsetenv("TZ");
14659 hour_unset = localtime (&now)->tm_hour;
14660 if (putenv (TZ_PST8) != 0)
14661 exit (1);
14662 if (localtime (&now)->tm_hour == hour_GMT0)
14663 exit (1);
14664 unsetenv("TZ");
14665 if (localtime (&now)->tm_hour != hour_unset)
14666 exit (1);
14667 exit (0);
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_run "$LINENO"; then :
14671 emacs_cv_localtime_cache=no
14672 else
14673 emacs_cv_localtime_cache=yes
14674 fi
14675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14676 conftest.$ac_objext conftest.beam conftest.$ac_ext
14677 fi
14678
14679 else
14680 # If we lack tzset, report that localtime does not cache TZ,
14681 # since we can't invalidate the cache if we don't have tzset.
14682 emacs_cv_localtime_cache=no
14683 fi
14684 fi
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14686 $as_echo "$emacs_cv_localtime_cache" >&6; }
14687 if test $emacs_cv_localtime_cache = yes; then
14688
14689 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14690
14691 fi
14692
14693 ok_so_far=yes
14694 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14695 if test "x$ac_cv_func_socket" = x""yes; then :
14696
14697 else
14698 ok_so_far=no
14699 fi
14700
14701 if test $ok_so_far = yes; then
14702 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14703 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14704
14705 else
14706 ok_so_far=no
14707 fi
14708
14709
14710 fi
14711 if test $ok_so_far = yes; then
14712 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14713 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14714
14715 else
14716 ok_so_far=no
14717 fi
14718
14719
14720 fi
14721 if test $ok_so_far = yes; then
14722
14723 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14724
14725 fi
14726
14727 if test -f /usr/lpp/X11/bin/smt.exp; then
14728
14729 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14730
14731 fi
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14734 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14735 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14737 $as_echo "yes" >&6; }
14738
14739 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14740
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14744 fi
14745
14746 case $canonical in
14747 *-solaris2.4 | *-solaris2.4.*)
14748 : ${ac_cv_func_vfork_works=no};;
14749 esac
14750
14751 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14752 if test "x$ac_cv_type_pid_t" = x""yes; then :
14753
14754 else
14755
14756 cat >>confdefs.h <<_ACEOF
14757 #define pid_t int
14758 _ACEOF
14759
14760 fi
14761
14762 for ac_header in vfork.h
14763 do :
14764 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14765 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define HAVE_VFORK_H 1
14768 _ACEOF
14769
14770 fi
14771
14772 done
14773
14774 for ac_func in fork vfork
14775 do :
14776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14778 eval as_val=\$$as_ac_var
14779 if test "x$as_val" = x""yes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 _ACEOF
14783
14784 fi
14785 done
14786
14787 if test "x$ac_cv_func_fork" = xyes; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14789 $as_echo_n "checking for working fork... " >&6; }
14790 if test "${ac_cv_func_fork_works+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 if test "$cross_compiling" = yes; then :
14794 ac_cv_func_fork_works=cross
14795 else
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 $ac_includes_default
14799 int
14800 main ()
14801 {
14802
14803 /* By Ruediger Kuhlmann. */
14804 return fork () < 0;
14805
14806 ;
14807 return 0;
14808 }
14809 _ACEOF
14810 if ac_fn_c_try_run "$LINENO"; then :
14811 ac_cv_func_fork_works=yes
14812 else
14813 ac_cv_func_fork_works=no
14814 fi
14815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14816 conftest.$ac_objext conftest.beam conftest.$ac_ext
14817 fi
14818
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14821 $as_echo "$ac_cv_func_fork_works" >&6; }
14822
14823 else
14824 ac_cv_func_fork_works=$ac_cv_func_fork
14825 fi
14826 if test "x$ac_cv_func_fork_works" = xcross; then
14827 case $host in
14828 *-*-amigaos* | *-*-msdosdjgpp*)
14829 # Override, as these systems have only a dummy fork() stub
14830 ac_cv_func_fork_works=no
14831 ;;
14832 *)
14833 ac_cv_func_fork_works=yes
14834 ;;
14835 esac
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14837 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14838 fi
14839 ac_cv_func_vfork_works=$ac_cv_func_vfork
14840 if test "x$ac_cv_func_vfork" = xyes; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14842 $as_echo_n "checking for working vfork... " >&6; }
14843 if test "${ac_cv_func_vfork_works+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 if test "$cross_compiling" = yes; then :
14847 ac_cv_func_vfork_works=cross
14848 else
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 /* Thanks to Paul Eggert for this test. */
14852 $ac_includes_default
14853 #include <sys/wait.h>
14854 #ifdef HAVE_VFORK_H
14855 # include <vfork.h>
14856 #endif
14857 /* On some sparc systems, changes by the child to local and incoming
14858 argument registers are propagated back to the parent. The compiler
14859 is told about this with #include <vfork.h>, but some compilers
14860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14861 static variable whose address is put into a register that is
14862 clobbered by the vfork. */
14863 static void
14864 #ifdef __cplusplus
14865 sparc_address_test (int arg)
14866 # else
14867 sparc_address_test (arg) int arg;
14868 #endif
14869 {
14870 static pid_t child;
14871 if (!child) {
14872 child = vfork ();
14873 if (child < 0) {
14874 perror ("vfork");
14875 _exit(2);
14876 }
14877 if (!child) {
14878 arg = getpid();
14879 write(-1, "", 0);
14880 _exit (arg);
14881 }
14882 }
14883 }
14884
14885 int
14886 main ()
14887 {
14888 pid_t parent = getpid ();
14889 pid_t child;
14890
14891 sparc_address_test (0);
14892
14893 child = vfork ();
14894
14895 if (child == 0) {
14896 /* Here is another test for sparc vfork register problems. This
14897 test uses lots of local variables, at least as many local
14898 variables as main has allocated so far including compiler
14899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14901 reuse the register of parent for one of the local variables,
14902 since it will think that parent can't possibly be used any more
14903 in this routine. Assigning to the local variable will thus
14904 munge parent in the parent process. */
14905 pid_t
14906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14908 /* Convince the compiler that p..p7 are live; otherwise, it might
14909 use the same hardware register for all 8 local variables. */
14910 if (p != p1 || p != p2 || p != p3 || p != p4
14911 || p != p5 || p != p6 || p != p7)
14912 _exit(1);
14913
14914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14915 from child file descriptors. If the child closes a descriptor
14916 before it execs or exits, this munges the parent's descriptor
14917 as well. Test for this by closing stdout in the child. */
14918 _exit(close(fileno(stdout)) != 0);
14919 } else {
14920 int status;
14921 struct stat st;
14922
14923 while (wait(&status) != child)
14924 ;
14925 return (
14926 /* Was there some problem with vforking? */
14927 child < 0
14928
14929 /* Did the child fail? (This shouldn't happen.) */
14930 || status
14931
14932 /* Did the vfork/compiler bug occur? */
14933 || parent != getpid()
14934
14935 /* Did the file descriptor bug occur? */
14936 || fstat(fileno(stdout), &st) != 0
14937 );
14938 }
14939 }
14940 _ACEOF
14941 if ac_fn_c_try_run "$LINENO"; then :
14942 ac_cv_func_vfork_works=yes
14943 else
14944 ac_cv_func_vfork_works=no
14945 fi
14946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14947 conftest.$ac_objext conftest.beam conftest.$ac_ext
14948 fi
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14952 $as_echo "$ac_cv_func_vfork_works" >&6; }
14953
14954 fi;
14955 if test "x$ac_cv_func_fork_works" = xcross; then
14956 ac_cv_func_vfork_works=$ac_cv_func_vfork
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14958 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14959 fi
14960
14961 if test "x$ac_cv_func_vfork_works" = xyes; then
14962
14963 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14964
14965 else
14966
14967 $as_echo "#define vfork fork" >>confdefs.h
14968
14969 fi
14970 if test "x$ac_cv_func_fork_works" = xyes; then
14971
14972 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14973
14974 fi
14975
14976
14977 for ac_func in snprintf
14978 do :
14979 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14980 if test "x$ac_cv_func_snprintf" = x""yes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_SNPRINTF 1
14983 _ACEOF
14984
14985 fi
14986 done
14987
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14990 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14991 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 #include <langinfo.h>
14997 int
14998 main ()
14999 {
15000 char* cs = nl_langinfo(CODESET);
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 emacs_cv_langinfo_codeset=yes
15007 else
15008 emacs_cv_langinfo_codeset=no
15009 fi
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15015 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15016 if test $emacs_cv_langinfo_codeset = yes; then
15017
15018 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15019
15020 fi
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15023 $as_echo_n "checking for mbstate_t... " >&6; }
15024 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 # include <wchar.h>
15031 int
15032 main ()
15033 {
15034 mbstate_t x; return sizeof x;
15035 ;
15036 return 0;
15037 }
15038 _ACEOF
15039 if ac_fn_c_try_compile "$LINENO"; then :
15040 ac_cv_type_mbstate_t=yes
15041 else
15042 ac_cv_type_mbstate_t=no
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15047 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15048 if test $ac_cv_type_mbstate_t = yes; then
15049
15050 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15051
15052 else
15053
15054 $as_echo "#define mbstate_t int" >>confdefs.h
15055
15056 fi
15057
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15059 $as_echo_n "checking for C restricted array declarations... " >&6; }
15060 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15061 $as_echo_n "(cached) " >&6
15062 else
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 void fred (int x[__restrict]);
15066 int
15067 main ()
15068 {
15069
15070 ;
15071 return 0;
15072 }
15073 _ACEOF
15074 if ac_fn_c_try_compile "$LINENO"; then :
15075 emacs_cv_c_restrict_arr=yes
15076 else
15077 emacs_cv_c_restrict_arr=no
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 fi
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15082 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15083 if test "$emacs_cv_c_restrict_arr" = yes; then
15084
15085 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15086
15087 fi
15088
15089
15090
15091 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15092
15093
15094
15095 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15096
15097
15098 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15099
15100 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15101
15102
15103
15104 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15105
15106
15107
15108
15109
15110 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15111
15112
15113
15114 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15115
15116
15117
15118 $as_echo "#define subprocesses 1" >>confdefs.h
15119
15120
15121
15122 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15123
15124
15125
15126
15127 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15128
15129
15130
15131
15132
15133 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15134
15135
15136
15137 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15138
15139
15140
15141 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15142
15143
15144
15145
15146
15147 case $opsys in
15148 aix4-2)
15149 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15150 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15151
15152 fi
15153 ;;
15154
15155 hpux*)
15156 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15157
15158 ;;
15159 esac
15160
15161
15162 case $opsys in
15163 irix6-5 | sol2* | unixware )
15164
15165 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15166
15167 ;;
15168 esac
15169
15170 emacs_broken_SIGIO=no
15171
15172 case $opsys in
15173 hpux* | irix6-5 | openbsd | sol2* | unixware )
15174 emacs_broken_SIGIO=yes
15175 ;;
15176
15177 aix4-2)
15178
15179 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15180
15181 ;;
15182
15183 freebsd)
15184
15185 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15186
15187 ;;
15188 esac
15189
15190 case $opsys in
15191 gnu-* | sol2-10 )
15192
15193 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15194
15195 ;;
15196 esac
15197
15198 case $opsys in
15199 darwin | freebsd | netbsd | openbsd )
15200
15201 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15202
15203 ;;
15204 esac
15205
15206 case $opsys in
15207 netbsd | openbsd) sound_device="/dev/audio" ;;
15208 *) sound_device="/dev/dsp" ;;
15209 esac
15210
15211
15212 cat >>confdefs.h <<_ACEOF
15213 #define DEFAULT_SOUND_DEVICE "$sound_device"
15214 _ACEOF
15215
15216
15217
15218 case $opsys in
15219 darwin | gnu-linux | gnu-kfreebsd )
15220
15221 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15222
15223 ;;
15224 esac
15225
15226
15227 case $opsys in
15228 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15229
15230 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15231
15232 ;;
15233 esac
15234
15235
15236
15237
15238
15239
15240
15241
15242 case $opsys in
15243 aix4-2 )
15244 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15245
15246 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15247
15248 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15249
15250 ;;
15251
15252 cygwin )
15253 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15254
15255 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15256
15257 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15258
15259 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15260
15261 ;;
15262
15263 darwin )
15264 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15265
15266 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15267
15268 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15269
15270 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15271
15272 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15273
15274 ;;
15275
15276 gnu | openbsd )
15277 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15278
15279 ;;
15280
15281 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15282 if test "x$ac_cv_func_grantpt" = xyes; then
15283
15284 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15285
15286 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15287
15288 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15289
15290 if test "x$ac_cv_func_posix_openpt" = xyes; then
15291 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15292
15293 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15294
15295 elif test "x$ac_cv_func_getpt" = xyes; then
15296 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15297
15298 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15299
15300 else
15301 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15302
15303 fi
15304 else
15305 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15306
15307 fi
15308 ;;
15309
15310 hpux*)
15311 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15312
15313 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15314
15315 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15316
15317 ;;
15318
15319 irix6-5 )
15320 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15321
15322 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15323
15324 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15325
15326 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15327
15328 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15329
15330 ;;
15331
15332 sol2* )
15333 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15334
15335 ;;
15336
15337 unixware )
15338 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15339
15340 ;;
15341 esac
15342
15343
15344 case $opsys in
15345 sol2* | unixware )
15346 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15347
15348 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15349
15350
15351 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15352
15353 ;;
15354 esac
15355
15356
15357
15358
15359 case $opsys in
15360 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15361 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15362
15363 ;;
15364
15365 gnu-linux | gnu-kfreebsd )
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15368 $as_echo_n "checking for signals via characters... " >&6; }
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15371
15372 #include <linux/version.h>
15373 #if LINUX_VERSION_CODE < 0x20400
15374 # error "Linux version too old"
15375 #endif
15376
15377 int
15378 main ()
15379 {
15380
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 if ac_fn_c_try_cpp "$LINENO"; then :
15386 emacs_signals_via_chars=yes
15387 else
15388 emacs_signals_via_chars=no
15389 fi
15390 rm -f conftest.err conftest.$ac_ext
15391
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15393 $as_echo "$emacs_signals_via_chars" >&6; }
15394 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15395
15396 ;;
15397 esac
15398
15399
15400
15401
15402
15403 case $opsys in
15404 gnu)
15405 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15406
15407 ;;
15408
15409 hpux*)
15410 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15411
15412 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15413
15414 ;;
15415 irix6-5)
15416 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15417
15418 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15419
15420 ;;
15421 esac
15422
15423
15424
15425
15426
15427 case $opsys in
15428 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15429 ;;
15430
15431 gnu | freebsd | netbsd | openbsd )
15432
15433 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15434
15435 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15436
15437 ;;
15438
15439 gnu-linux | gnu-kfreebsd )
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15442
15443 #ifndef __i386__
15444 # error "not i386"
15445 #endif
15446
15447 int
15448 main ()
15449 {
15450
15451 ;
15452 return 0;
15453 }
15454 _ACEOF
15455 if ac_fn_c_try_cpp "$LINENO"; then :
15456 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15457
15458 fi
15459 rm -f conftest.err conftest.$ac_ext
15460
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463
15464 #ifndef __ia64__
15465 # error "not ia64"
15466 #endif
15467
15468 int
15469 main ()
15470 {
15471
15472 ;
15473 return 0;
15474 }
15475 _ACEOF
15476 if ac_fn_c_try_cpp "$LINENO"; then :
15477
15478 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15479
15480 fi
15481 rm -f conftest.err conftest.$ac_ext
15482 ;;
15483
15484 hpux*)
15485
15486 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15487
15488 ;;
15489
15490 irix6-5)
15491 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15492
15493 ;;
15494 esac
15495
15496
15497
15498
15499
15500
15501
15502 case $opsys in
15503 aix4-2 | hpux* | unixware)
15504 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15505
15506 ;;
15507
15508 gnu-linux | gnu-kfreebsd )
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511
15512 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15513 || defined __alpha__ || defined __mips__ || defined __s390__ \
15514 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15515 || defined __ia64__ || defined __sh__
15516 /* ok */
15517 #else
15518 # error "setjmp not known to work on this arch"
15519 #endif
15520
15521 int
15522 main ()
15523 {
15524
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_cpp "$LINENO"; then :
15530 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15531
15532 else
15533 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15534
15535 fi
15536 rm -f conftest.err conftest.$ac_ext
15537 ;;
15538 esac
15539
15540
15541 if test x$GCC = xyes; then
15542 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15543
15544 else
15545 case $opsys in
15546 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15547 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15548
15549 ;;
15550 esac
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15553 $as_echo_n "checking for _setjmp... " >&6; }
15554 if test "${emacs_cv_func__setjmp+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 #include <setjmp.h>
15560
15561 int
15562 main ()
15563 {
15564 jmp_buf j;
15565 if (! _setjmp (j))
15566 _longjmp (j, 1);
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 if ac_fn_c_try_link "$LINENO"; then :
15572 emacs_cv_func__setjmp=yes
15573 else
15574 emacs_cv_func__setjmp=no
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15580 $as_echo "$emacs_cv_func__setjmp" >&6; }
15581 if test $emacs_cv_func__setjmp = yes; then
15582
15583 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15584
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15587 $as_echo_n "checking for sigsetjmp... " >&6; }
15588 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 #include <setjmp.h>
15594
15595 int
15596 main ()
15597 {
15598 sigjmp_buf j;
15599 if (! sigsetjmp (j, 1))
15600 siglongjmp (j, 1);
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 emacs_cv_func_sigsetjmp=yes
15607 else
15608 emacs_cv_func_sigsetjmp=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15614 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15615 if test $emacs_cv_func_sigsetjmp = yes; then
15616
15617 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15618
15619 fi
15620 fi
15621
15622 case $opsys in
15623 sol2* | unixware )
15624
15625 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15626
15627 ;;
15628 esac
15629
15630
15631 case $opsys in
15632 hpux* | sol2* )
15633
15634 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15635
15636 ;;
15637 esac
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648 case $opsys in
15649 aix4-2)
15650 $as_echo "#define USG /**/" >>confdefs.h
15651
15652 $as_echo "#define USG5 /**/" >>confdefs.h
15653
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656
15657 #ifndef _AIX
15658 # error "_AIX not defined"
15659 #endif
15660
15661 int
15662 main ()
15663 {
15664
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 if ac_fn_c_try_cpp "$LINENO"; then :
15670
15671 else
15672
15673 $as_echo "#define _AIX /**/" >>confdefs.h
15674
15675 fi
15676 rm -f conftest.err conftest.$ac_ext
15677 ;;
15678
15679 cygwin)
15680
15681 $as_echo "#define CYGWIN 1" >>confdefs.h
15682
15683 ;;
15684
15685 darwin)
15686 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15687
15688 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15689
15690
15691 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15692
15693 ;;
15694
15695 freebsd)
15696 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15697
15698
15699 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15700
15701 ;;
15702
15703 gnu | netbsd | openbsd )
15704 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15705
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708
15709 #ifndef BSD_SYSTEM
15710 # error "BSD_SYSTEM not defined"
15711 #endif
15712
15713 int
15714 main ()
15715 {
15716
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_cpp "$LINENO"; then :
15722
15723 else
15724 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15725
15726 fi
15727 rm -f conftest.err conftest.$ac_ext
15728 ;;
15729
15730 gnu-linux | gnu-kfreebsd )
15731 $as_echo "#define USG /**/" >>confdefs.h
15732
15733
15734 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15735
15736 ;;
15737
15738 hpux*)
15739 $as_echo "#define USG /**/" >>confdefs.h
15740
15741 $as_echo "#define USG5 /**/" >>confdefs.h
15742
15743
15744 $as_echo "#define HPUX /**/" >>confdefs.h
15745
15746 ;;
15747
15748 irix6-5)
15749 $as_echo "#define USG /**/" >>confdefs.h
15750
15751 $as_echo "#define USG5 /**/" >>confdefs.h
15752
15753 $as_echo "#define USG5_4 /**/" >>confdefs.h
15754
15755
15756 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15757
15758 ;;
15759
15760 sol2*)
15761 $as_echo "#define USG /**/" >>confdefs.h
15762
15763 $as_echo "#define USG5 /**/" >>confdefs.h
15764
15765 $as_echo "#define USG5_4 /**/" >>confdefs.h
15766
15767
15768 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15769
15770 ;;
15771
15772 unixware)
15773 $as_echo "#define USG /**/" >>confdefs.h
15774
15775 $as_echo "#define USG5 /**/" >>confdefs.h
15776
15777 $as_echo "#define USG5_4 /**/" >>confdefs.h
15778
15779 ;;
15780 esac
15781
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15783 $as_echo_n "checking for usable FIONREAD... " >&6; }
15784 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 case $opsys in
15788 aix4-2)
15789 emacs_cv_usable_FIONREAD=no
15790 ;;
15791
15792 *)
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <sys/types.h>
15796 #include <sys/ioctl.h>
15797 #ifdef USG5_4
15798 # include <sys/filio.h>
15799 #endif
15800
15801 int
15802 main ()
15803 {
15804 int foo = ioctl (0, FIONREAD, &foo);
15805 ;
15806 return 0;
15807 }
15808 _ACEOF
15809 if ac_fn_c_try_compile "$LINENO"; then :
15810 emacs_cv_usable_FIONREAD=yes
15811 else
15812 emacs_cv_usable_FIONREAD=no
15813 fi
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 ;;
15816 esac
15817 fi
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15819 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15820 if test $emacs_cv_usable_FIONREAD = yes; then
15821
15822 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15823
15824
15825 if test $emacs_broken_SIGIO = no; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15827 $as_echo_n "checking for usable SIGIO... " >&6; }
15828 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 #include <fcntl.h>
15834 #include <signal.h>
15835
15836 int
15837 main ()
15838 {
15839 int foo = SIGIO | F_SETFL | FASYNC;
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 if ac_fn_c_try_compile "$LINENO"; then :
15845 emacs_cv_usable_SIGIO=yes
15846 else
15847 emacs_cv_usable_SIGIO=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15852 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15853 if test $emacs_cv_usable_SIGIO = yes; then
15854
15855 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15856
15857 fi
15858 fi
15859 fi
15860
15861
15862 case $opsys in
15863 cygwin)
15864
15865 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15866
15867 ;;
15868
15869 hpux11)
15870
15871 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15872
15873 ;;
15874
15875 irix6-5)
15876
15877 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15878
15879 ;;
15880
15881 sol2-10)
15882
15883 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15884
15885 ;;
15886 esac
15887
15888 # Set up the CFLAGS for real compilation, so we can substitute it.
15889 CFLAGS="$REAL_CFLAGS"
15890 CPPFLAGS="$REAL_CPPFLAGS"
15891
15892 ## Hack to detect a buggy GCC version.
15893 if test "x$GCC" = xyes \
15894 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15895 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15896 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15897 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15898 fi
15899
15900 version=$PACKAGE_VERSION
15901
15902 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15903
15904 cat >>confdefs.h <<_ACEOF
15905 #define COPYRIGHT "$copyright"
15906 _ACEOF
15907
15908
15909
15910 ### Specify what sort of things we'll be editing into Makefile and config.h.
15911 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15912
15913
15914 ## Unused?
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15938 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15939 ## end of LIBX_BASE, but nothing ever set it.
15940
15941
15942
15943
15944 ## Used in lwlib/Makefile.in.
15945
15946
15947
15948
15949
15950
15951
15952
15953 if test -n "${term_header}"; then
15954
15955 cat >>confdefs.h <<_ACEOF
15956 #define TERM_HEADER "${term_header}"
15957 _ACEOF
15958
15959 fi
15960
15961
15962 cat >>confdefs.h <<_ACEOF
15963 #define EMACS_CONFIGURATION "${canonical}"
15964 _ACEOF
15965
15966
15967 cat >>confdefs.h <<_ACEOF
15968 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15969 _ACEOF
15970
15971
15972
15973 XMENU_OBJ=
15974 XOBJ=
15975 FONT_OBJ=
15976 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15977
15978 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15979
15980 XMENU_OBJ=xmenu.o
15981 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15982 FONT_OBJ=xfont.o
15983 if test "$HAVE_XFT" = "yes"; then
15984 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15985 elif test "$HAVE_FREETYPE" = "yes"; then
15986 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15987 fi
15988
15989 fi
15990
15991
15992
15993
15994 WIDGET_OBJ=
15995 MOTIF_LIBW=
15996 if test "${USE_X_TOOLKIT}" != "none" ; then
15997 WIDGET_OBJ=widget.o
15998
15999 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16000
16001 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16002
16003 $as_echo "#define USE_LUCID 1" >>confdefs.h
16004
16005 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16006
16007 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16008
16009 MOTIF_LIBW=-lXm
16010 case "$opsys" in
16011 gnu-linux)
16012 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16013 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16014 ;;
16015
16016 unixware)
16017 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16018 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16019 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16020 ;;
16021
16022 aix4-2)
16023 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16024 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16025 ;;
16026 esac
16027 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16028 fi
16029 fi
16030
16031
16032 TOOLKIT_LIBW=
16033 case "$USE_X_TOOLKIT" in
16034 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16035 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16036 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16037 esac
16038
16039
16040 if test "$USE_X_TOOLKIT" = "none"; then
16041 LIBXT_OTHER="\$(LIBXSM)"
16042 OLDXMENU_TARGET="really-oldXMenu"
16043 else
16044 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16045 OLDXMENU_TARGET="really-lwlib"
16046 fi
16047
16048
16049 ## The X Menu stuff is present in the X10 distribution, but missing
16050 ## from X11. If we have X10, just use the installed library;
16051 ## otherwise, use our own copy.
16052 if test "${HAVE_X11}" = "yes" ; then
16053
16054 $as_echo "#define HAVE_X11 1" >>confdefs.h
16055
16056
16057 if test "$USE_X_TOOLKIT" = "none"; then
16058 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16059 else
16060 OLDXMENU="\${lwlibdir}/liblw.a"
16061 fi
16062 LIBXMENU="\$(OLDXMENU)"
16063 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16064 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16065 else
16066 ## For a syntactically valid Makefile; not actually used for anything.
16067 ## See comments in src/Makefile.in.
16068 OLDXMENU=nothing
16069 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16070 if test "${HAVE_X_WINDOWS}" = "yes"; then
16071 LIBXMENU="-lXMenu"
16072 else
16073 LIBXMENU=
16074 fi
16075 LIBX_OTHER=
16076 OLDXMENU_DEPS=
16077 fi
16078
16079 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16080 OLDXMENU_TARGET=
16081 OLDXMENU=nothing
16082 LIBXMENU=
16083 OLDXMENU_DEPS=
16084 fi
16085
16086
16087
16088
16089
16090
16091
16092 if test "${HAVE_MENUS}" = "yes" ; then
16093
16094 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16095
16096 fi
16097
16098 if test "${GNU_MALLOC}" = "yes" ; then
16099
16100 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16101
16102 fi
16103
16104 RALLOC_OBJ=
16105 if test "${REL_ALLOC}" = "yes" ; then
16106
16107 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16108
16109
16110 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16111 fi
16112
16113
16114 if test "$opsys" = "cygwin"; then
16115 CYGWIN_OBJ="sheap.o cygw32.o"
16116 ## Cygwin differs because of its unexec().
16117 PRE_ALLOC_OBJ=
16118 POST_ALLOC_OBJ=lastfile.o
16119 else
16120 CYGWIN_OBJ=
16121 PRE_ALLOC_OBJ=lastfile.o
16122 POST_ALLOC_OBJ=
16123 fi
16124
16125
16126
16127
16128 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16129 # it temporarily reverts them to their pre-pkg-config values,
16130 # because gnulib needs to work with both src (which uses the
16131 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16132 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16133 # and it therefore needs to run in an environment where LIBS does not
16134 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16135 # for some package unrelated to lib-src.
16136 SAVE_CFLAGS=$CFLAGS
16137 SAVE_LIBS=$LIBS
16138 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16139 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 LIBC_FATAL_STDERR_=1
16152 export LIBC_FATAL_STDERR_
16153
16154 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16155 # for constant arguments. Useless!
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16157 $as_echo_n "checking for working alloca.h... " >&6; }
16158 if test "${ac_cv_working_alloca_h+set}" = set; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #include <alloca.h>
16164 int
16165 main ()
16166 {
16167 char *p = (char *) alloca (2 * sizeof (int));
16168 if (p) return 0;
16169 ;
16170 return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174 ac_cv_working_alloca_h=yes
16175 else
16176 ac_cv_working_alloca_h=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16182 $as_echo "$ac_cv_working_alloca_h" >&6; }
16183 if test $ac_cv_working_alloca_h = yes; then
16184
16185 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16186
16187 fi
16188
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16190 $as_echo_n "checking for alloca... " >&6; }
16191 if test "${ac_cv_func_alloca_works+set}" = set; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 #ifdef __GNUC__
16197 # define alloca __builtin_alloca
16198 #else
16199 # ifdef _MSC_VER
16200 # include <malloc.h>
16201 # define alloca _alloca
16202 # else
16203 # ifdef HAVE_ALLOCA_H
16204 # include <alloca.h>
16205 # else
16206 # ifdef _AIX
16207 #pragma alloca
16208 # else
16209 # ifndef alloca /* predefined by HP cc +Olibcalls */
16210 char *alloca ();
16211 # endif
16212 # endif
16213 # endif
16214 # endif
16215 #endif
16216
16217 int
16218 main ()
16219 {
16220 char *p = (char *) alloca (1);
16221 if (p) return 0;
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_link "$LINENO"; then :
16227 ac_cv_func_alloca_works=yes
16228 else
16229 ac_cv_func_alloca_works=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 fi
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16235 $as_echo "$ac_cv_func_alloca_works" >&6; }
16236
16237 if test $ac_cv_func_alloca_works = yes; then
16238
16239 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16240
16241 else
16242 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16243 # that cause trouble. Some versions do not even contain alloca or
16244 # contain a buggy version. If you still want to use their alloca,
16245 # use ar to extract alloca.o from them instead of compiling alloca.c.
16246
16247
16248
16249
16250
16251 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16252
16253 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16254
16255
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16257 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16258 if test "${ac_cv_os_cray+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
16260 else
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #if defined CRAY && ! defined CRAY2
16264 webecray
16265 #else
16266 wenotbecray
16267 #endif
16268
16269 _ACEOF
16270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16271 $EGREP "webecray" >/dev/null 2>&1; then :
16272 ac_cv_os_cray=yes
16273 else
16274 ac_cv_os_cray=no
16275 fi
16276 rm -f conftest*
16277
16278 fi
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16280 $as_echo "$ac_cv_os_cray" >&6; }
16281 if test $ac_cv_os_cray = yes; then
16282 for ac_func in _getb67 GETB67 getb67; do
16283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16285 eval as_val=\$$as_ac_var
16286 if test "x$as_val" = x""yes; then :
16287
16288 cat >>confdefs.h <<_ACEOF
16289 #define CRAY_STACKSEG_END $ac_func
16290 _ACEOF
16291
16292 break
16293 fi
16294
16295 done
16296 fi
16297
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16299 $as_echo_n "checking stack direction for C alloca... " >&6; }
16300 if test "${ac_cv_c_stack_direction+set}" = set; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 if test "$cross_compiling" = yes; then :
16304 ac_cv_c_stack_direction=0
16305 else
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 $ac_includes_default
16309 int
16310 find_stack_direction (int *addr, int depth)
16311 {
16312 int dir, dummy = 0;
16313 if (! addr)
16314 addr = &dummy;
16315 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16316 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16317 return dir + dummy;
16318 }
16319
16320 int
16321 main (int argc, char **argv)
16322 {
16323 return find_stack_direction (0, argc + !argv + 20) < 0;
16324 }
16325 _ACEOF
16326 if ac_fn_c_try_run "$LINENO"; then :
16327 ac_cv_c_stack_direction=1
16328 else
16329 ac_cv_c_stack_direction=-1
16330 fi
16331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16332 conftest.$ac_objext conftest.beam conftest.$ac_ext
16333 fi
16334
16335 fi
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16337 $as_echo "$ac_cv_c_stack_direction" >&6; }
16338 cat >>confdefs.h <<_ACEOF
16339 #define STACK_DIRECTION $ac_cv_c_stack_direction
16340 _ACEOF
16341
16342
16343 fi
16344
16345
16346
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16349 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16350 if test "${ac_cv_c_bigendian+set}" = set; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 ac_cv_c_bigendian=unknown
16354 # See if we're dealing with a universal compiler.
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16357 #ifndef __APPLE_CC__
16358 not a universal capable compiler
16359 #endif
16360 typedef int dummy;
16361
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364
16365 # Check for potential -arch flags. It is not universal unless
16366 # there are at least two -arch flags with different values.
16367 ac_arch=
16368 ac_prev=
16369 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16370 if test -n "$ac_prev"; then
16371 case $ac_word in
16372 i?86 | x86_64 | ppc | ppc64)
16373 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16374 ac_arch=$ac_word
16375 else
16376 ac_cv_c_bigendian=universal
16377 break
16378 fi
16379 ;;
16380 esac
16381 ac_prev=
16382 elif test "x$ac_word" = "x-arch"; then
16383 ac_prev=arch
16384 fi
16385 done
16386 fi
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 if test $ac_cv_c_bigendian = unknown; then
16389 # See if sys/param.h defines the BYTE_ORDER macro.
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <sys/types.h>
16393 #include <sys/param.h>
16394
16395 int
16396 main ()
16397 {
16398 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16399 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16400 && LITTLE_ENDIAN)
16401 bogus endian macros
16402 #endif
16403
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_compile "$LINENO"; then :
16409 # It does; now see whether it defined to BIG_ENDIAN or not.
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <sys/types.h>
16413 #include <sys/param.h>
16414
16415 int
16416 main ()
16417 {
16418 #if BYTE_ORDER != BIG_ENDIAN
16419 not big endian
16420 #endif
16421
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 if ac_fn_c_try_compile "$LINENO"; then :
16427 ac_cv_c_bigendian=yes
16428 else
16429 ac_cv_c_bigendian=no
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 if test $ac_cv_c_bigendian = unknown; then
16436 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 #include <limits.h>
16440
16441 int
16442 main ()
16443 {
16444 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16445 bogus endian macros
16446 #endif
16447
16448 ;
16449 return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_compile "$LINENO"; then :
16453 # It does; now see whether it defined to _BIG_ENDIAN or not.
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #include <limits.h>
16457
16458 int
16459 main ()
16460 {
16461 #ifndef _BIG_ENDIAN
16462 not big endian
16463 #endif
16464
16465 ;
16466 return 0;
16467 }
16468 _ACEOF
16469 if ac_fn_c_try_compile "$LINENO"; then :
16470 ac_cv_c_bigendian=yes
16471 else
16472 ac_cv_c_bigendian=no
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477 fi
16478 if test $ac_cv_c_bigendian = unknown; then
16479 # Compile a test program.
16480 if test "$cross_compiling" = yes; then :
16481 # Try to guess by grepping values from an object file.
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 short int ascii_mm[] =
16485 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16486 short int ascii_ii[] =
16487 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16488 int use_ascii (int i) {
16489 return ascii_mm[i] + ascii_ii[i];
16490 }
16491 short int ebcdic_ii[] =
16492 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16493 short int ebcdic_mm[] =
16494 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16495 int use_ebcdic (int i) {
16496 return ebcdic_mm[i] + ebcdic_ii[i];
16497 }
16498 extern int foo;
16499
16500 int
16501 main ()
16502 {
16503 return use_ascii (foo) == use_ebcdic (foo);
16504 ;
16505 return 0;
16506 }
16507 _ACEOF
16508 if ac_fn_c_try_compile "$LINENO"; then :
16509 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16510 ac_cv_c_bigendian=yes
16511 fi
16512 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16513 if test "$ac_cv_c_bigendian" = unknown; then
16514 ac_cv_c_bigendian=no
16515 else
16516 # finding both strings is unlikely to happen, but who knows?
16517 ac_cv_c_bigendian=unknown
16518 fi
16519 fi
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 else
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 $ac_includes_default
16526 int
16527 main ()
16528 {
16529
16530 /* Are we little or big endian? From Harbison&Steele. */
16531 union
16532 {
16533 long int l;
16534 char c[sizeof (long int)];
16535 } u;
16536 u.l = 1;
16537 return u.c[sizeof (long int) - 1] == 1;
16538
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 if ac_fn_c_try_run "$LINENO"; then :
16544 ac_cv_c_bigendian=no
16545 else
16546 ac_cv_c_bigendian=yes
16547 fi
16548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16549 conftest.$ac_objext conftest.beam conftest.$ac_ext
16550 fi
16551
16552 fi
16553 fi
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16555 $as_echo "$ac_cv_c_bigendian" >&6; }
16556 case $ac_cv_c_bigendian in #(
16557 yes)
16558 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16559 ;; #(
16560 no)
16561 ;; #(
16562 universal)
16563
16564 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16565
16566 ;; #(
16567 *)
16568 as_fn_error "unknown endianness
16569 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16570 esac
16571
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16574 $as_echo_n "checking for inline... " >&6; }
16575 if test "${ac_cv_c_inline+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 ac_cv_c_inline=no
16579 for ac_kw in inline __inline__ __inline; do
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #ifndef __cplusplus
16583 typedef int foo_t;
16584 static $ac_kw foo_t static_foo () {return 0; }
16585 $ac_kw foo_t foo () {return 0; }
16586 #endif
16587
16588 _ACEOF
16589 if ac_fn_c_try_compile "$LINENO"; then :
16590 ac_cv_c_inline=$ac_kw
16591 fi
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 test "$ac_cv_c_inline" != no && break
16594 done
16595
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16598 $as_echo "$ac_cv_c_inline" >&6; }
16599
16600 case $ac_cv_c_inline in
16601 inline | yes) ;;
16602 *)
16603 case $ac_cv_c_inline in
16604 no) ac_val=;;
16605 *) ac_val=$ac_cv_c_inline;;
16606 esac
16607 cat >>confdefs.h <<_ACEOF
16608 #ifndef __cplusplus
16609 #define inline $ac_val
16610 #endif
16611 _ACEOF
16612 ;;
16613 esac
16614
16615
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16617 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16618 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16619 $as_echo_n "(cached) " >&6
16620 else
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 /* On HP-UX before 11.23, strtold returns a struct instead of
16624 long double. Reject implementations like that, by requiring
16625 compatibility with the C99 prototype. */
16626 #include <stdlib.h>
16627 static long double (*p) (char const *, char **) = strtold;
16628 static long double
16629 test (char const *nptr, char **endptr)
16630 {
16631 long double r;
16632 r = strtold (nptr, endptr);
16633 return r;
16634 }
16635 int
16636 main ()
16637 {
16638 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16639 ;
16640 return 0;
16641 }
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 gl_cv_func_c99_strtold=yes
16645 else
16646 gl_cv_func_c99_strtold=no
16647 fi
16648 rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16650 fi
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16652 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16653 if test $gl_cv_func_c99_strtold = yes; then
16654
16655 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16656
16657 fi
16658
16659
16660 GNULIB_CHDIR=0;
16661 GNULIB_CHOWN=0;
16662 GNULIB_CLOSE=0;
16663 GNULIB_DUP=0;
16664 GNULIB_DUP2=0;
16665 GNULIB_DUP3=0;
16666 GNULIB_ENVIRON=0;
16667 GNULIB_EUIDACCESS=0;
16668 GNULIB_FACCESSAT=0;
16669 GNULIB_FCHDIR=0;
16670 GNULIB_FCHOWNAT=0;
16671 GNULIB_FDATASYNC=0;
16672 GNULIB_FSYNC=0;
16673 GNULIB_FTRUNCATE=0;
16674 GNULIB_GETCWD=0;
16675 GNULIB_GETDOMAINNAME=0;
16676 GNULIB_GETDTABLESIZE=0;
16677 GNULIB_GETGROUPS=0;
16678 GNULIB_GETHOSTNAME=0;
16679 GNULIB_GETLOGIN=0;
16680 GNULIB_GETLOGIN_R=0;
16681 GNULIB_GETPAGESIZE=0;
16682 GNULIB_GETUSERSHELL=0;
16683 GNULIB_GROUP_MEMBER=0;
16684 GNULIB_ISATTY=0;
16685 GNULIB_LCHOWN=0;
16686 GNULIB_LINK=0;
16687 GNULIB_LINKAT=0;
16688 GNULIB_LSEEK=0;
16689 GNULIB_PIPE=0;
16690 GNULIB_PIPE2=0;
16691 GNULIB_PREAD=0;
16692 GNULIB_PWRITE=0;
16693 GNULIB_READ=0;
16694 GNULIB_READLINK=0;
16695 GNULIB_READLINKAT=0;
16696 GNULIB_RMDIR=0;
16697 GNULIB_SETHOSTNAME=0;
16698 GNULIB_SLEEP=0;
16699 GNULIB_SYMLINK=0;
16700 GNULIB_SYMLINKAT=0;
16701 GNULIB_TTYNAME_R=0;
16702 GNULIB_UNISTD_H_NONBLOCKING=0;
16703 GNULIB_UNISTD_H_SIGPIPE=0;
16704 GNULIB_UNLINK=0;
16705 GNULIB_UNLINKAT=0;
16706 GNULIB_USLEEP=0;
16707 GNULIB_WRITE=0;
16708 HAVE_CHOWN=1;
16709 HAVE_DUP2=1;
16710 HAVE_DUP3=1;
16711 HAVE_EUIDACCESS=1;
16712 HAVE_FACCESSAT=1;
16713 HAVE_FCHDIR=1;
16714 HAVE_FCHOWNAT=1;
16715 HAVE_FDATASYNC=1;
16716 HAVE_FSYNC=1;
16717 HAVE_FTRUNCATE=1;
16718 HAVE_GETDTABLESIZE=1;
16719 HAVE_GETGROUPS=1;
16720 HAVE_GETHOSTNAME=1;
16721 HAVE_GETLOGIN=1;
16722 HAVE_GETPAGESIZE=1;
16723 HAVE_GROUP_MEMBER=1;
16724 HAVE_LCHOWN=1;
16725 HAVE_LINK=1;
16726 HAVE_LINKAT=1;
16727 HAVE_PIPE=1;
16728 HAVE_PIPE2=1;
16729 HAVE_PREAD=1;
16730 HAVE_PWRITE=1;
16731 HAVE_READLINK=1;
16732 HAVE_READLINKAT=1;
16733 HAVE_SETHOSTNAME=1;
16734 HAVE_SLEEP=1;
16735 HAVE_SYMLINK=1;
16736 HAVE_SYMLINKAT=1;
16737 HAVE_UNLINKAT=1;
16738 HAVE_USLEEP=1;
16739 HAVE_DECL_ENVIRON=1;
16740 HAVE_DECL_FCHDIR=1;
16741 HAVE_DECL_FDATASYNC=1;
16742 HAVE_DECL_GETDOMAINNAME=1;
16743 HAVE_DECL_GETLOGIN_R=1;
16744 HAVE_DECL_GETPAGESIZE=1;
16745 HAVE_DECL_GETUSERSHELL=1;
16746 HAVE_DECL_SETHOSTNAME=1;
16747 HAVE_DECL_TTYNAME_R=1;
16748 HAVE_OS_H=0;
16749 HAVE_SYS_PARAM_H=0;
16750 REPLACE_CHOWN=0;
16751 REPLACE_CLOSE=0;
16752 REPLACE_DUP=0;
16753 REPLACE_DUP2=0;
16754 REPLACE_FCHOWNAT=0;
16755 REPLACE_FTRUNCATE=0;
16756 REPLACE_GETCWD=0;
16757 REPLACE_GETDOMAINNAME=0;
16758 REPLACE_GETLOGIN_R=0;
16759 REPLACE_GETGROUPS=0;
16760 REPLACE_GETPAGESIZE=0;
16761 REPLACE_ISATTY=0;
16762 REPLACE_LCHOWN=0;
16763 REPLACE_LINK=0;
16764 REPLACE_LINKAT=0;
16765 REPLACE_LSEEK=0;
16766 REPLACE_PREAD=0;
16767 REPLACE_PWRITE=0;
16768 REPLACE_READ=0;
16769 REPLACE_READLINK=0;
16770 REPLACE_RMDIR=0;
16771 REPLACE_SLEEP=0;
16772 REPLACE_SYMLINK=0;
16773 REPLACE_TTYNAME_R=0;
16774 REPLACE_UNLINK=0;
16775 REPLACE_UNLINKAT=0;
16776 REPLACE_USLEEP=0;
16777 REPLACE_WRITE=0;
16778 UNISTD_H_HAVE_WINSOCK2_H=0;
16779 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16790 $as_echo_n "checking if environ is properly declared... " >&6; }
16791 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 #if HAVE_UNISTD_H
16798 #include <unistd.h>
16799 #endif
16800 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16801 #include <stdlib.h>
16802
16803 extern struct { int foo; } environ;
16804 int
16805 main ()
16806 {
16807 environ.foo = 1;
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813 gt_cv_var_environ_declaration=no
16814 else
16815 gt_cv_var_environ_declaration=yes
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 fi
16819
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16821 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16822 if test $gt_cv_var_environ_declaration = yes; then
16823
16824 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16825
16826 fi
16827
16828
16829 if test $gt_cv_var_environ_declaration != yes; then
16830 HAVE_DECL_ENVIRON=0
16831 fi
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842 GNULIB_FCNTL=0;
16843 GNULIB_NONBLOCKING=0;
16844 GNULIB_OPEN=0;
16845 GNULIB_OPENAT=0;
16846 HAVE_FCNTL=1;
16847 HAVE_OPENAT=1;
16848 REPLACE_FCNTL=0;
16849 REPLACE_OPEN=0;
16850 REPLACE_OPENAT=0;
16851
16852
16853
16854
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16856 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16857 if test "${gl_cv_have_include_next+set}" = set; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 rm -rf conftestd1a conftestd1b conftestd2
16861 mkdir conftestd1a conftestd1b conftestd2
16862 cat <<EOF > conftestd1a/conftest.h
16863 #define DEFINED_IN_CONFTESTD1
16864 #include_next <conftest.h>
16865 #ifdef DEFINED_IN_CONFTESTD2
16866 int foo;
16867 #else
16868 #error "include_next doesn't work"
16869 #endif
16870 EOF
16871 cat <<EOF > conftestd1b/conftest.h
16872 #define DEFINED_IN_CONFTESTD1
16873 #include <stdio.h>
16874 #include_next <conftest.h>
16875 #ifdef DEFINED_IN_CONFTESTD2
16876 int foo;
16877 #else
16878 #error "include_next doesn't work"
16879 #endif
16880 EOF
16881 cat <<EOF > conftestd2/conftest.h
16882 #ifndef DEFINED_IN_CONFTESTD1
16883 #error "include_next test doesn't work"
16884 #endif
16885 #define DEFINED_IN_CONFTESTD2
16886 EOF
16887 gl_save_CPPFLAGS="$CPPFLAGS"
16888 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #include <conftest.h>
16892 _ACEOF
16893 if ac_fn_c_try_compile "$LINENO"; then :
16894 gl_cv_have_include_next=yes
16895 else
16896 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899 #include <conftest.h>
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"; then :
16902 gl_cv_have_include_next=buggy
16903 else
16904 gl_cv_have_include_next=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907
16908 fi
16909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910 CPPFLAGS="$gl_save_CPPFLAGS"
16911 rm -rf conftestd1a conftestd1b conftestd2
16912
16913 fi
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16915 $as_echo "$gl_cv_have_include_next" >&6; }
16916 PRAGMA_SYSTEM_HEADER=
16917 if test $gl_cv_have_include_next = yes; then
16918 INCLUDE_NEXT=include_next
16919 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16920 if test -n "$GCC"; then
16921 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16922 fi
16923 else
16924 if test $gl_cv_have_include_next = buggy; then
16925 INCLUDE_NEXT=include
16926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16927 else
16928 INCLUDE_NEXT=include
16929 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16930 fi
16931 fi
16932
16933
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16936 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16937 if test "${gl_cv_pragma_columns+set}" = set; then :
16938 $as_echo_n "(cached) " >&6
16939 else
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942
16943 #ifdef __TANDEM
16944 choke me
16945 #endif
16946
16947 _ACEOF
16948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16949 $EGREP "choke me" >/dev/null 2>&1; then :
16950 gl_cv_pragma_columns=yes
16951 else
16952 gl_cv_pragma_columns=no
16953 fi
16954 rm -f conftest*
16955
16956
16957 fi
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16959 $as_echo "$gl_cv_pragma_columns" >&6; }
16960 if test $gl_cv_pragma_columns = yes; then
16961 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16962 else
16963 PRAGMA_COLUMNS=
16964 fi
16965
16966
16967 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16968 if test "x$ac_cv_type_mode_t" = x""yes; then :
16969
16970 else
16971
16972 cat >>confdefs.h <<_ACEOF
16973 #define mode_t int
16974 _ACEOF
16975
16976 fi
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16979 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16980 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16985
16986 #include <sys/types.h>
16987 #include <sys/stat.h>
16988 int
16989 main ()
16990 {
16991 struct stat s; s.st_dm_mode;
16992 ;
16993 return 0;
16994 }
16995 _ACEOF
16996 if ac_fn_c_try_compile "$LINENO"; then :
16997 ac_cv_struct_st_dm_mode=yes
16998 else
16999 ac_cv_struct_st_dm_mode=no
17000 fi
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002 fi
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17004 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17005
17006 if test $ac_cv_struct_st_dm_mode = yes; then
17007
17008 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17009
17010 fi
17011
17012
17013 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17014 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17015 ac_have_decl=1
17016 else
17017 ac_have_decl=0
17018 fi
17019
17020 cat >>confdefs.h <<_ACEOF
17021 #define HAVE_DECL_STRMODE $ac_have_decl
17022 _ACEOF
17023
17024
17025
17026
17027
17028
17029 GNULIB__EXIT=0;
17030 GNULIB_ATOLL=0;
17031 GNULIB_CALLOC_POSIX=0;
17032 GNULIB_CANONICALIZE_FILE_NAME=0;
17033 GNULIB_GETLOADAVG=0;
17034 GNULIB_GETSUBOPT=0;
17035 GNULIB_GRANTPT=0;
17036 GNULIB_MALLOC_POSIX=0;
17037 GNULIB_MBTOWC=0;
17038 GNULIB_MKDTEMP=0;
17039 GNULIB_MKOSTEMP=0;
17040 GNULIB_MKOSTEMPS=0;
17041 GNULIB_MKSTEMP=0;
17042 GNULIB_MKSTEMPS=0;
17043 GNULIB_POSIX_OPENPT=0;
17044 GNULIB_PTSNAME=0;
17045 GNULIB_PTSNAME_R=0;
17046 GNULIB_PUTENV=0;
17047 GNULIB_RANDOM=0;
17048 GNULIB_RANDOM_R=0;
17049 GNULIB_REALLOC_POSIX=0;
17050 GNULIB_REALPATH=0;
17051 GNULIB_RPMATCH=0;
17052 GNULIB_SETENV=0;
17053 GNULIB_STRTOD=0;
17054 GNULIB_STRTOLL=0;
17055 GNULIB_STRTOULL=0;
17056 GNULIB_SYSTEM_POSIX=0;
17057 GNULIB_UNLOCKPT=0;
17058 GNULIB_UNSETENV=0;
17059 GNULIB_WCTOMB=0;
17060 HAVE__EXIT=1;
17061 HAVE_ATOLL=1;
17062 HAVE_CANONICALIZE_FILE_NAME=1;
17063 HAVE_DECL_GETLOADAVG=1;
17064 HAVE_GETSUBOPT=1;
17065 HAVE_GRANTPT=1;
17066 HAVE_MKDTEMP=1;
17067 HAVE_MKOSTEMP=1;
17068 HAVE_MKOSTEMPS=1;
17069 HAVE_MKSTEMP=1;
17070 HAVE_MKSTEMPS=1;
17071 HAVE_POSIX_OPENPT=1;
17072 HAVE_PTSNAME=1;
17073 HAVE_PTSNAME_R=1;
17074 HAVE_RANDOM=1;
17075 HAVE_RANDOM_H=1;
17076 HAVE_RANDOM_R=1;
17077 HAVE_REALPATH=1;
17078 HAVE_RPMATCH=1;
17079 HAVE_SETENV=1;
17080 HAVE_DECL_SETENV=1;
17081 HAVE_STRTOD=1;
17082 HAVE_STRTOLL=1;
17083 HAVE_STRTOULL=1;
17084 HAVE_STRUCT_RANDOM_DATA=1;
17085 HAVE_SYS_LOADAVG_H=0;
17086 HAVE_UNLOCKPT=1;
17087 HAVE_DECL_UNSETENV=1;
17088 REPLACE_CALLOC=0;
17089 REPLACE_CANONICALIZE_FILE_NAME=0;
17090 REPLACE_MALLOC=0;
17091 REPLACE_MBTOWC=0;
17092 REPLACE_MKSTEMP=0;
17093 REPLACE_PTSNAME=0;
17094 REPLACE_PTSNAME_R=0;
17095 REPLACE_PUTENV=0;
17096 REPLACE_RANDOM_R=0;
17097 REPLACE_REALLOC=0;
17098 REPLACE_REALPATH=0;
17099 REPLACE_SETENV=0;
17100 REPLACE_STRTOD=0;
17101 REPLACE_UNSETENV=0;
17102 REPLACE_WCTOMB=0;
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119 if test $gl_cv_have_include_next = yes; then
17120 gl_cv_next_getopt_h='<'getopt.h'>'
17121 else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17123 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17124 if test "${gl_cv_next_getopt_h+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127
17128 if test $ac_cv_header_getopt_h = yes; then
17129
17130
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 #include <getopt.h>
17134
17135 _ACEOF
17136 case "$host_os" in
17137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17138 *) gl_absname_cpp="$ac_cpp" ;;
17139 esac
17140
17141 case "$host_os" in
17142 mingw*)
17143 gl_dirsep_regex='[/\\]'
17144 ;;
17145 *)
17146 gl_dirsep_regex='\/'
17147 ;;
17148 esac
17149 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17150
17151 gl_header_literal_regex=`echo 'getopt.h' \
17152 | sed -e "$gl_make_literal_regex_sed"`
17153 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17154 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17155 s|^/[^/]|//&|
17156 p
17157 q
17158 }'
17159 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17160 sed -n "$gl_absolute_header_sed"`'"'
17161 else
17162 gl_cv_next_getopt_h='<'getopt.h'>'
17163 fi
17164
17165
17166 fi
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17168 $as_echo "$gl_cv_next_getopt_h" >&6; }
17169 fi
17170 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17171
17172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17174 gl_next_as_first_directive='<'getopt.h'>'
17175 else
17176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17177 gl_next_as_first_directive=$gl_cv_next_getopt_h
17178 fi
17179 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17180
17181
17182
17183
17184 if test $ac_cv_header_getopt_h = yes; then
17185 HAVE_GETOPT_H=1
17186 else
17187 HAVE_GETOPT_H=0
17188 fi
17189
17190
17191 gl_replace_getopt=
17192
17193 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17194 for ac_header in getopt.h
17195 do :
17196 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17197 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_GETOPT_H 1
17200 _ACEOF
17201
17202 else
17203 gl_replace_getopt=yes
17204 fi
17205
17206 done
17207
17208 fi
17209
17210 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17211 for ac_func in getopt_long_only
17212 do :
17213 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17214 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17215 cat >>confdefs.h <<_ACEOF
17216 #define HAVE_GETOPT_LONG_ONLY 1
17217 _ACEOF
17218
17219 else
17220 gl_replace_getopt=yes
17221 fi
17222 done
17223
17224 fi
17225
17226 if test -z "$gl_replace_getopt"; then
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17228 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17229 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17230 $as_echo_n "(cached) " >&6
17231 else
17232
17233 if test $cross_compiling = no; then
17234 if test "$cross_compiling" = yes; then :
17235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17237 as_fn_error "cannot run test program while cross compiling
17238 See \`config.log' for more details." "$LINENO" 5; }
17239 else
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17242
17243 #include <unistd.h>
17244 #include <stdlib.h>
17245 #include <string.h>
17246
17247 int
17248 main ()
17249 {
17250 static char program[] = "program";
17251 static char a[] = "-a";
17252 static char foo[] = "foo";
17253 static char bar[] = "bar";
17254 char *argv[] = { program, a, foo, bar, NULL };
17255 int c;
17256
17257 c = getopt (4, argv, "ab");
17258 if (!(c == 'a'))
17259 return 1;
17260 c = getopt (4, argv, "ab");
17261 if (!(c == -1))
17262 return 2;
17263 if (!(optind == 2))
17264 return 3;
17265 return 0;
17266 }
17267
17268 _ACEOF
17269 if ac_fn_c_try_run "$LINENO"; then :
17270 gl_cv_func_getopt_posix=maybe
17271 else
17272 gl_cv_func_getopt_posix=no
17273 fi
17274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17275 conftest.$ac_objext conftest.beam conftest.$ac_ext
17276 fi
17277
17278 if test $gl_cv_func_getopt_posix = maybe; then
17279 if test "$cross_compiling" = yes; then :
17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17282 as_fn_error "cannot run test program while cross compiling
17283 See \`config.log' for more details." "$LINENO" 5; }
17284 else
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17287
17288 #include <unistd.h>
17289 #include <stdlib.h>
17290 #include <string.h>
17291
17292 int
17293 main ()
17294 {
17295 static char program[] = "program";
17296 static char donald[] = "donald";
17297 static char p[] = "-p";
17298 static char billy[] = "billy";
17299 static char duck[] = "duck";
17300 static char a[] = "-a";
17301 static char bar[] = "bar";
17302 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17303 int c;
17304
17305 c = getopt (7, argv, "+abp:q:");
17306 if (!(c == -1))
17307 return 4;
17308 if (!(strcmp (argv[0], "program") == 0))
17309 return 5;
17310 if (!(strcmp (argv[1], "donald") == 0))
17311 return 6;
17312 if (!(strcmp (argv[2], "-p") == 0))
17313 return 7;
17314 if (!(strcmp (argv[3], "billy") == 0))
17315 return 8;
17316 if (!(strcmp (argv[4], "duck") == 0))
17317 return 9;
17318 if (!(strcmp (argv[5], "-a") == 0))
17319 return 10;
17320 if (!(strcmp (argv[6], "bar") == 0))
17321 return 11;
17322 if (!(optind == 1))
17323 return 12;
17324 return 0;
17325 }
17326
17327 _ACEOF
17328 if ac_fn_c_try_run "$LINENO"; then :
17329 gl_cv_func_getopt_posix=maybe
17330 else
17331 gl_cv_func_getopt_posix=no
17332 fi
17333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17334 conftest.$ac_objext conftest.beam conftest.$ac_ext
17335 fi
17336
17337 fi
17338 if test $gl_cv_func_getopt_posix = maybe; then
17339 if test "$cross_compiling" = yes; then :
17340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17342 as_fn_error "cannot run test program while cross compiling
17343 See \`config.log' for more details." "$LINENO" 5; }
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347
17348 #include <unistd.h>
17349 #include <stdlib.h>
17350 #include <string.h>
17351
17352 int
17353 main ()
17354 {
17355 static char program[] = "program";
17356 static char ab[] = "-ab";
17357 char *argv[3] = { program, ab, NULL };
17358 if (getopt (2, argv, "ab:") != 'a')
17359 return 13;
17360 if (getopt (2, argv, "ab:") != '?')
17361 return 14;
17362 if (optopt != 'b')
17363 return 15;
17364 if (optind != 2)
17365 return 16;
17366 return 0;
17367 }
17368
17369 _ACEOF
17370 if ac_fn_c_try_run "$LINENO"; then :
17371 gl_cv_func_getopt_posix=yes
17372 else
17373 gl_cv_func_getopt_posix=no
17374 fi
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17376 conftest.$ac_objext conftest.beam conftest.$ac_ext
17377 fi
17378
17379 fi
17380 else
17381 case "$host_os" in
17382 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17383 *) gl_cv_func_getopt_posix="guessing yes";;
17384 esac
17385 fi
17386
17387 fi
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17389 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17390 case "$gl_cv_func_getopt_posix" in
17391 *no) gl_replace_getopt=yes ;;
17392 esac
17393 fi
17394
17395 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17397 $as_echo_n "checking for working GNU getopt function... " >&6; }
17398 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17399 $as_echo_n "(cached) " >&6
17400 else
17401 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17402 # optstring is necessary for programs like m4 that have POSIX-mandated
17403 # semantics for supporting options interspersed with files.
17404 # Also, since getopt_long is a GNU extension, we require optind=0.
17405 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17406 # so take care to revert to the correct (non-)export state.
17407 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17408 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17409 xx) gl_had_POSIXLY_CORRECT=exported ;;
17410 x) gl_had_POSIXLY_CORRECT=yes ;;
17411 *) gl_had_POSIXLY_CORRECT= ;;
17412 esac
17413 POSIXLY_CORRECT=1
17414 export POSIXLY_CORRECT
17415 if test "$cross_compiling" = yes; then :
17416 gl_cv_func_getopt_gnu="guessing no"
17417
17418 else
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 #include <getopt.h>
17422 #include <stddef.h>
17423 #include <string.h>
17424
17425 #include <stdlib.h>
17426 #if defined __MACH__ && defined __APPLE__
17427 /* Avoid a crash on Mac OS X. */
17428 #include <mach/mach.h>
17429 #include <mach/mach_error.h>
17430 #include <mach/thread_status.h>
17431 #include <mach/exception.h>
17432 #include <mach/task.h>
17433 #include <pthread.h>
17434 /* The exception port on which our thread listens. */
17435 static mach_port_t our_exception_port;
17436 /* The main function of the thread listening for exceptions of type
17437 EXC_BAD_ACCESS. */
17438 static void *
17439 mach_exception_thread (void *arg)
17440 {
17441 /* Buffer for a message to be received. */
17442 struct {
17443 mach_msg_header_t head;
17444 mach_msg_body_t msgh_body;
17445 char data[1024];
17446 } msg;
17447 mach_msg_return_t retval;
17448 /* Wait for a message on the exception port. */
17449 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17450 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17451 if (retval != MACH_MSG_SUCCESS)
17452 abort ();
17453 exit (1);
17454 }
17455 static void
17456 nocrash_init (void)
17457 {
17458 mach_port_t self = mach_task_self ();
17459 /* Allocate a port on which the thread shall listen for exceptions. */
17460 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17461 == KERN_SUCCESS) {
17462 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17463 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17464 MACH_MSG_TYPE_MAKE_SEND)
17465 == KERN_SUCCESS) {
17466 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17467 for us. */
17468 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17469 /* Create the thread listening on the exception port. */
17470 pthread_attr_t attr;
17471 pthread_t thread;
17472 if (pthread_attr_init (&attr) == 0
17473 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17474 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17475 pthread_attr_destroy (&attr);
17476 /* Replace the exception port info for these exceptions with our own.
17477 Note that we replace the exception port for the entire task, not only
17478 for a particular thread. This has the effect that when our exception
17479 port gets the message, the thread specific exception port has already
17480 been asked, and we don't need to bother about it.
17481 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17482 task_set_exception_ports (self, mask, our_exception_port,
17483 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17484 }
17485 }
17486 }
17487 }
17488 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17489 /* Avoid a crash on native Windows. */
17490 #define WIN32_LEAN_AND_MEAN
17491 #include <windows.h>
17492 #include <winerror.h>
17493 static LONG WINAPI
17494 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17495 {
17496 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17497 {
17498 case EXCEPTION_ACCESS_VIOLATION:
17499 case EXCEPTION_IN_PAGE_ERROR:
17500 case EXCEPTION_STACK_OVERFLOW:
17501 case EXCEPTION_GUARD_PAGE:
17502 case EXCEPTION_PRIV_INSTRUCTION:
17503 case EXCEPTION_ILLEGAL_INSTRUCTION:
17504 case EXCEPTION_DATATYPE_MISALIGNMENT:
17505 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17506 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17507 exit (1);
17508 }
17509 return EXCEPTION_CONTINUE_SEARCH;
17510 }
17511 static void
17512 nocrash_init (void)
17513 {
17514 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17515 }
17516 #else
17517 /* Avoid a crash on POSIX systems. */
17518 #include <signal.h>
17519 /* A POSIX signal handler. */
17520 static void
17521 exception_handler (int sig)
17522 {
17523 exit (1);
17524 }
17525 static void
17526 nocrash_init (void)
17527 {
17528 #ifdef SIGSEGV
17529 signal (SIGSEGV, exception_handler);
17530 #endif
17531 #ifdef SIGBUS
17532 signal (SIGBUS, exception_handler);
17533 #endif
17534 }
17535 #endif
17536
17537
17538 int
17539 main ()
17540 {
17541
17542 int result = 0;
17543
17544 nocrash_init();
17545
17546 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17547 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17548 OSF/1 5.1, Solaris 10. */
17549 {
17550 static char conftest[] = "conftest";
17551 static char plus[] = "-+";
17552 char *argv[3] = { conftest, plus, NULL };
17553 opterr = 0;
17554 if (getopt (2, argv, "+a") != '?')
17555 result |= 1;
17556 }
17557 /* This code succeeds on glibc 2.8, mingw,
17558 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17559 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17560 {
17561 static char program[] = "program";
17562 static char p[] = "-p";
17563 static char foo[] = "foo";
17564 static char bar[] = "bar";
17565 char *argv[] = { program, p, foo, bar, NULL };
17566
17567 optind = 1;
17568 if (getopt (4, argv, "p::") != 'p')
17569 result |= 2;
17570 else if (optarg != NULL)
17571 result |= 4;
17572 else if (getopt (4, argv, "p::") != -1)
17573 result |= 6;
17574 else if (optind != 2)
17575 result |= 8;
17576 }
17577 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17578 {
17579 static char program[] = "program";
17580 static char foo[] = "foo";
17581 static char p[] = "-p";
17582 char *argv[] = { program, foo, p, NULL };
17583 optind = 0;
17584 if (getopt (3, argv, "-p") != 1)
17585 result |= 16;
17586 else if (getopt (3, argv, "-p") != 'p')
17587 result |= 16;
17588 }
17589 /* This code fails on glibc 2.11. */
17590 {
17591 static char program[] = "program";
17592 static char b[] = "-b";
17593 static char a[] = "-a";
17594 char *argv[] = { program, b, a, NULL };
17595 optind = opterr = 0;
17596 if (getopt (3, argv, "+:a:b") != 'b')
17597 result |= 32;
17598 else if (getopt (3, argv, "+:a:b") != ':')
17599 result |= 32;
17600 }
17601 /* This code dumps core on glibc 2.14. */
17602 {
17603 static char program[] = "program";
17604 static char w[] = "-W";
17605 static char dummy[] = "dummy";
17606 char *argv[] = { program, w, dummy, NULL };
17607 optind = opterr = 1;
17608 if (getopt (3, argv, "W;") != 'W')
17609 result |= 64;
17610 }
17611 return result;
17612
17613 ;
17614 return 0;
17615 }
17616 _ACEOF
17617 if ac_fn_c_try_run "$LINENO"; then :
17618 gl_cv_func_getopt_gnu=yes
17619 else
17620 gl_cv_func_getopt_gnu=no
17621 fi
17622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17623 conftest.$ac_objext conftest.beam conftest.$ac_ext
17624 fi
17625
17626 case $gl_had_POSIXLY_CORRECT in
17627 exported) ;;
17628 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17629 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17630 esac
17631
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17634 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17635 if test "$gl_cv_func_getopt_gnu" != yes; then
17636 gl_replace_getopt=yes
17637 else
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17639 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17640 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643 if test "$cross_compiling" = yes; then :
17644 case "$host_os" in
17645 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17646 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17647 esac
17648
17649 else
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17652 #include <getopt.h>
17653 #include <stddef.h>
17654 #include <string.h>
17655
17656 int
17657 main ()
17658 {
17659 static const struct option long_options[] =
17660 {
17661 { "xtremely-",no_argument, NULL, 1003 },
17662 { "xtra", no_argument, NULL, 1001 },
17663 { "xtreme", no_argument, NULL, 1002 },
17664 { "xtremely", no_argument, NULL, 1003 },
17665 { NULL, 0, NULL, 0 }
17666 };
17667 /* This code fails on OpenBSD 5.0. */
17668 {
17669 static char program[] = "program";
17670 static char xtremel[] = "--xtremel";
17671 char *argv[] = { program, xtremel, NULL };
17672 int option_index;
17673 optind = 1; opterr = 0;
17674 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17675 return 1;
17676 }
17677 return 0;
17678
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_run "$LINENO"; then :
17684 gl_cv_func_getopt_long_gnu=yes
17685 else
17686 gl_cv_func_getopt_long_gnu=no
17687 fi
17688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17689 conftest.$ac_objext conftest.beam conftest.$ac_ext
17690 fi
17691
17692
17693 fi
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17695 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17696 case "$gl_cv_func_getopt_long_gnu" in
17697 *yes) ;;
17698 *) gl_replace_getopt=yes ;;
17699 esac
17700 fi
17701 fi
17702
17703
17704
17705
17706
17707
17708 REPLACE_GETOPT=0
17709 if test -n "$gl_replace_getopt"; then
17710 REPLACE_GETOPT=1
17711 fi
17712
17713 if test $REPLACE_GETOPT = 1; then
17714
17715 GETOPT_H=getopt.h
17716
17717 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17718
17719
17720
17721 fi
17722
17723 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17724 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17725 ac_have_decl=1
17726 else
17727 ac_have_decl=0
17728 fi
17729
17730 cat >>confdefs.h <<_ACEOF
17731 #define HAVE_DECL_GETENV $ac_have_decl
17732 _ACEOF
17733
17734 :
17735
17736
17737
17738
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17740 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17741 if test "${ac_cv_c_restrict+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17743 else
17744 ac_cv_c_restrict=no
17745 # The order here caters to the fact that C++ does not require restrict.
17746 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17749 typedef int * int_ptr;
17750 int foo (int_ptr $ac_kw ip) {
17751 return ip[0];
17752 }
17753 int
17754 main ()
17755 {
17756 int s[1];
17757 int * $ac_kw t = s;
17758 t[0] = 0;
17759 return foo(t)
17760 ;
17761 return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_compile "$LINENO"; then :
17765 ac_cv_c_restrict=$ac_kw
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 test "$ac_cv_c_restrict" != no && break
17769 done
17770
17771 fi
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17773 $as_echo "$ac_cv_c_restrict" >&6; }
17774
17775 case $ac_cv_c_restrict in
17776 restrict) ;;
17777 no) $as_echo "#define restrict /**/" >>confdefs.h
17778 ;;
17779 *) cat >>confdefs.h <<_ACEOF
17780 #define restrict $ac_cv_c_restrict
17781 _ACEOF
17782 ;;
17783 esac
17784
17785
17786 GNULIB_GETTIMEOFDAY=0;
17787 HAVE_GETTIMEOFDAY=1;
17788 HAVE_STRUCT_TIMEVAL=1;
17789 HAVE_SYS_TIME_H=1;
17790 REPLACE_GETTIMEOFDAY=0;
17791 REPLACE_STRUCT_TIMEVAL=0;
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808 if test $gl_cv_have_include_next = yes; then
17809 gl_cv_next_sys_time_h='<'sys/time.h'>'
17810 else
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17812 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17813 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816
17817 if test $ac_cv_header_sys_time_h = yes; then
17818
17819
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822 #include <sys/time.h>
17823
17824 _ACEOF
17825 case "$host_os" in
17826 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17827 *) gl_absname_cpp="$ac_cpp" ;;
17828 esac
17829
17830 case "$host_os" in
17831 mingw*)
17832 gl_dirsep_regex='[/\\]'
17833 ;;
17834 *)
17835 gl_dirsep_regex='\/'
17836 ;;
17837 esac
17838 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17839
17840 gl_header_literal_regex=`echo 'sys/time.h' \
17841 | sed -e "$gl_make_literal_regex_sed"`
17842 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17843 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17844 s|^/[^/]|//&|
17845 p
17846 q
17847 }'
17848 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17849 sed -n "$gl_absolute_header_sed"`'"'
17850 else
17851 gl_cv_next_sys_time_h='<'sys/time.h'>'
17852 fi
17853
17854
17855 fi
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17857 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17858 fi
17859 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17860
17861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17863 gl_next_as_first_directive='<'sys/time.h'>'
17864 else
17865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17866 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17867 fi
17868 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17869
17870
17871
17872
17873
17874 if test $ac_cv_header_sys_time_h != yes; then
17875 HAVE_SYS_TIME_H=0
17876 fi
17877
17878
17879
17880
17881
17882 if test $ac_cv_header_sys_socket_h != yes; then
17883 for ac_header in winsock2.h
17884 do :
17885 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17886 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_WINSOCK2_H 1
17889 _ACEOF
17890
17891 fi
17892
17893 done
17894
17895 fi
17896 if test "$ac_cv_header_winsock2_h" = yes; then
17897 HAVE_WINSOCK2_H=1
17898 UNISTD_H_HAVE_WINSOCK2_H=1
17899 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17900 else
17901 HAVE_WINSOCK2_H=0
17902 fi
17903
17904
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17906 $as_echo_n "checking for struct timeval... " >&6; }
17907 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912 #if HAVE_SYS_TIME_H
17913 #include <sys/time.h>
17914 #endif
17915 #include <time.h>
17916 #if HAVE_WINSOCK2_H
17917 # include <winsock2.h>
17918 #endif
17919
17920 int
17921 main ()
17922 {
17923 static struct timeval x; x.tv_sec = x.tv_usec;
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 if ac_fn_c_try_compile "$LINENO"; then :
17929 gl_cv_sys_struct_timeval=yes
17930 else
17931 gl_cv_sys_struct_timeval=no
17932 fi
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17937 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17938 if test $gl_cv_sys_struct_timeval != yes; then
17939 HAVE_STRUCT_TIMEVAL=0
17940 else
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17942 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17943 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17944 $as_echo_n "(cached) " >&6
17945 else
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17948 #if HAVE_SYS_TIME_H
17949 #include <sys/time.h>
17950 #endif
17951 #include <time.h>
17952 #if HAVE_WINSOCK2_H
17953 # include <winsock2.h>
17954 #endif
17955
17956 int
17957 main ()
17958 {
17959 static struct timeval x;
17960 typedef int verify_tv_sec_type[
17961 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17962 ];
17963
17964 ;
17965 return 0;
17966 }
17967 _ACEOF
17968 if ac_fn_c_try_compile "$LINENO"; then :
17969 gl_cv_sys_struct_timeval_tv_sec=yes
17970 else
17971 gl_cv_sys_struct_timeval_tv_sec=no
17972 fi
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17974
17975 fi
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17977 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17978 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17979 REPLACE_STRUCT_TIMEVAL=1
17980 fi
17981 fi
17982
17983
17984
17985
17986
17987
17988
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17990 $as_echo_n "checking for unsigned long long int... " >&6; }
17991 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17992 $as_echo_n "(cached) " >&6
17993 else
17994 ac_cv_type_unsigned_long_long_int=yes
17995 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998
17999 /* For now, do not test the preprocessor; as of 2007 there are too many
18000 implementations with broken preprocessors. Perhaps this can
18001 be revisited in 2012. In the meantime, code should not expect
18002 #if to work with literals wider than 32 bits. */
18003 /* Test literals. */
18004 long long int ll = 9223372036854775807ll;
18005 long long int nll = -9223372036854775807LL;
18006 unsigned long long int ull = 18446744073709551615ULL;
18007 /* Test constant expressions. */
18008 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18009 ? 1 : -1)];
18010 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18011 ? 1 : -1)];
18012 int i = 63;
18013 int
18014 main ()
18015 {
18016 /* Test availability of runtime routines for shift and division. */
18017 long long int llmax = 9223372036854775807ll;
18018 unsigned long long int ullmax = 18446744073709551615ull;
18019 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18020 | (llmax / ll) | (llmax % ll)
18021 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18022 | (ullmax / ull) | (ullmax % ull));
18023 ;
18024 return 0;
18025 }
18026
18027 _ACEOF
18028 if ac_fn_c_try_link "$LINENO"; then :
18029
18030 else
18031 ac_cv_type_unsigned_long_long_int=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18035 fi
18036 fi
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18038 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18039 if test $ac_cv_type_unsigned_long_long_int = yes; then
18040
18041 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18042
18043 fi
18044
18045
18046
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18048 $as_echo_n "checking for long long int... " >&6; }
18049 if test "${ac_cv_type_long_long_int+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 ac_cv_type_long_long_int=yes
18053 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18054 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18055 if test $ac_cv_type_long_long_int = yes; then
18056 if test "$cross_compiling" = yes; then :
18057 :
18058 else
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <limits.h>
18062 #ifndef LLONG_MAX
18063 # define HALF \
18064 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18065 # define LLONG_MAX (HALF - 1 + HALF)
18066 #endif
18067 int
18068 main ()
18069 {
18070 long long int n = 1;
18071 int i;
18072 for (i = 0; ; i++)
18073 {
18074 long long int m = n << i;
18075 if (m >> i != n)
18076 return 1;
18077 if (LLONG_MAX / 2 < m)
18078 break;
18079 }
18080 return 0;
18081 ;
18082 return 0;
18083 }
18084 _ACEOF
18085 if ac_fn_c_try_run "$LINENO"; then :
18086
18087 else
18088 ac_cv_type_long_long_int=no
18089 fi
18090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18091 conftest.$ac_objext conftest.beam conftest.$ac_ext
18092 fi
18093
18094 fi
18095 fi
18096 fi
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18098 $as_echo "$ac_cv_type_long_long_int" >&6; }
18099 if test $ac_cv_type_long_long_int = yes; then
18100
18101 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18102
18103 fi
18104
18105
18106
18107
18108
18109
18110 gl_cv_c_multiarch=no
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #ifndef __APPLE_CC__
18114 not a universal capable compiler
18115 #endif
18116 typedef int dummy;
18117
18118 _ACEOF
18119 if ac_fn_c_try_compile "$LINENO"; then :
18120
18121 arch=
18122 prev=
18123 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18124 if test -n "$prev"; then
18125 case $word in
18126 i?86 | x86_64 | ppc | ppc64)
18127 if test -z "$arch" || test "$arch" = "$word"; then
18128 arch="$word"
18129 else
18130 gl_cv_c_multiarch=yes
18131 fi
18132 ;;
18133 esac
18134 prev=
18135 else
18136 if test "x$word" = "x-arch"; then
18137 prev=arch
18138 fi
18139 fi
18140 done
18141
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 if test $gl_cv_c_multiarch = yes; then
18145 APPLE_UNIVERSAL_BUILD=1
18146 else
18147 APPLE_UNIVERSAL_BUILD=0
18148 fi
18149
18150
18151
18152
18153
18154 if test $ac_cv_type_long_long_int = yes; then
18155 HAVE_LONG_LONG_INT=1
18156 else
18157 HAVE_LONG_LONG_INT=0
18158 fi
18159
18160
18161 if test $ac_cv_type_unsigned_long_long_int = yes; then
18162 HAVE_UNSIGNED_LONG_LONG_INT=1
18163 else
18164 HAVE_UNSIGNED_LONG_LONG_INT=0
18165 fi
18166
18167
18168
18169 if test $ac_cv_header_wchar_h = yes; then
18170 HAVE_WCHAR_H=1
18171 else
18172 HAVE_WCHAR_H=0
18173 fi
18174
18175
18176 if test $ac_cv_header_inttypes_h = yes; then
18177 HAVE_INTTYPES_H=1
18178 else
18179 HAVE_INTTYPES_H=0
18180 fi
18181
18182
18183 if test $ac_cv_header_sys_types_h = yes; then
18184 HAVE_SYS_TYPES_H=1
18185 else
18186 HAVE_SYS_TYPES_H=0
18187 fi
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199 if test $gl_cv_have_include_next = yes; then
18200 gl_cv_next_stdint_h='<'stdint.h'>'
18201 else
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18203 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18204 if test "${gl_cv_next_stdint_h+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207
18208 if test $ac_cv_header_stdint_h = yes; then
18209
18210
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213 #include <stdint.h>
18214
18215 _ACEOF
18216 case "$host_os" in
18217 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18218 *) gl_absname_cpp="$ac_cpp" ;;
18219 esac
18220
18221 case "$host_os" in
18222 mingw*)
18223 gl_dirsep_regex='[/\\]'
18224 ;;
18225 *)
18226 gl_dirsep_regex='\/'
18227 ;;
18228 esac
18229 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18230
18231 gl_header_literal_regex=`echo 'stdint.h' \
18232 | sed -e "$gl_make_literal_regex_sed"`
18233 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18234 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18235 s|^/[^/]|//&|
18236 p
18237 q
18238 }'
18239 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18240 sed -n "$gl_absolute_header_sed"`'"'
18241 else
18242 gl_cv_next_stdint_h='<'stdint.h'>'
18243 fi
18244
18245
18246 fi
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18248 $as_echo "$gl_cv_next_stdint_h" >&6; }
18249 fi
18250 NEXT_STDINT_H=$gl_cv_next_stdint_h
18251
18252 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18254 gl_next_as_first_directive='<'stdint.h'>'
18255 else
18256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18257 gl_next_as_first_directive=$gl_cv_next_stdint_h
18258 fi
18259 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18260
18261
18262
18263
18264 if test $ac_cv_header_stdint_h = yes; then
18265 HAVE_STDINT_H=1
18266 else
18267 HAVE_STDINT_H=0
18268 fi
18269
18270
18271 if test $ac_cv_header_stdint_h = yes; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18273 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18274 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 gl_cv_header_working_stdint_h=no
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280
18281
18282 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18283 #include <stdint.h>
18284 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18285 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18286 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18287 #endif
18288
18289
18290 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18291 included before <wchar.h>. */
18292 #include <stddef.h>
18293 #include <signal.h>
18294 #if HAVE_WCHAR_H
18295 # include <stdio.h>
18296 # include <time.h>
18297 # include <wchar.h>
18298 #endif
18299
18300
18301 #ifdef INT8_MAX
18302 int8_t a1 = INT8_MAX;
18303 int8_t a1min = INT8_MIN;
18304 #endif
18305 #ifdef INT16_MAX
18306 int16_t a2 = INT16_MAX;
18307 int16_t a2min = INT16_MIN;
18308 #endif
18309 #ifdef INT32_MAX
18310 int32_t a3 = INT32_MAX;
18311 int32_t a3min = INT32_MIN;
18312 #endif
18313 #ifdef INT64_MAX
18314 int64_t a4 = INT64_MAX;
18315 int64_t a4min = INT64_MIN;
18316 #endif
18317 #ifdef UINT8_MAX
18318 uint8_t b1 = UINT8_MAX;
18319 #else
18320 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18321 #endif
18322 #ifdef UINT16_MAX
18323 uint16_t b2 = UINT16_MAX;
18324 #endif
18325 #ifdef UINT32_MAX
18326 uint32_t b3 = UINT32_MAX;
18327 #endif
18328 #ifdef UINT64_MAX
18329 uint64_t b4 = UINT64_MAX;
18330 #endif
18331 int_least8_t c1 = INT8_C (0x7f);
18332 int_least8_t c1max = INT_LEAST8_MAX;
18333 int_least8_t c1min = INT_LEAST8_MIN;
18334 int_least16_t c2 = INT16_C (0x7fff);
18335 int_least16_t c2max = INT_LEAST16_MAX;
18336 int_least16_t c2min = INT_LEAST16_MIN;
18337 int_least32_t c3 = INT32_C (0x7fffffff);
18338 int_least32_t c3max = INT_LEAST32_MAX;
18339 int_least32_t c3min = INT_LEAST32_MIN;
18340 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18341 int_least64_t c4max = INT_LEAST64_MAX;
18342 int_least64_t c4min = INT_LEAST64_MIN;
18343 uint_least8_t d1 = UINT8_C (0xff);
18344 uint_least8_t d1max = UINT_LEAST8_MAX;
18345 uint_least16_t d2 = UINT16_C (0xffff);
18346 uint_least16_t d2max = UINT_LEAST16_MAX;
18347 uint_least32_t d3 = UINT32_C (0xffffffff);
18348 uint_least32_t d3max = UINT_LEAST32_MAX;
18349 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18350 uint_least64_t d4max = UINT_LEAST64_MAX;
18351 int_fast8_t e1 = INT_FAST8_MAX;
18352 int_fast8_t e1min = INT_FAST8_MIN;
18353 int_fast16_t e2 = INT_FAST16_MAX;
18354 int_fast16_t e2min = INT_FAST16_MIN;
18355 int_fast32_t e3 = INT_FAST32_MAX;
18356 int_fast32_t e3min = INT_FAST32_MIN;
18357 int_fast64_t e4 = INT_FAST64_MAX;
18358 int_fast64_t e4min = INT_FAST64_MIN;
18359 uint_fast8_t f1 = UINT_FAST8_MAX;
18360 uint_fast16_t f2 = UINT_FAST16_MAX;
18361 uint_fast32_t f3 = UINT_FAST32_MAX;
18362 uint_fast64_t f4 = UINT_FAST64_MAX;
18363 #ifdef INTPTR_MAX
18364 intptr_t g = INTPTR_MAX;
18365 intptr_t gmin = INTPTR_MIN;
18366 #endif
18367 #ifdef UINTPTR_MAX
18368 uintptr_t h = UINTPTR_MAX;
18369 #endif
18370 intmax_t i = INTMAX_MAX;
18371 uintmax_t j = UINTMAX_MAX;
18372
18373 #include <limits.h> /* for CHAR_BIT */
18374 #define TYPE_MINIMUM(t) \
18375 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18376 #define TYPE_MAXIMUM(t) \
18377 ((t) ((t) 0 < (t) -1 \
18378 ? (t) -1 \
18379 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18380 struct s {
18381 int check_PTRDIFF:
18382 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18383 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18384 ? 1 : -1;
18385 /* Detect bug in FreeBSD 6.0 / ia64. */
18386 int check_SIG_ATOMIC:
18387 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18388 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18389 ? 1 : -1;
18390 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18391 int check_WCHAR:
18392 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18393 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18394 ? 1 : -1;
18395 /* Detect bug in mingw. */
18396 int check_WINT:
18397 WINT_MIN == TYPE_MINIMUM (wint_t)
18398 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18399 ? 1 : -1;
18400
18401 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18402 int check_UINT8_C:
18403 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18404 int check_UINT16_C:
18405 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18406
18407 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18408 #ifdef UINT8_MAX
18409 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18410 #endif
18411 #ifdef UINT16_MAX
18412 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18413 #endif
18414 #ifdef UINT32_MAX
18415 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18416 #endif
18417 #ifdef UINT64_MAX
18418 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18419 #endif
18420 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18421 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18422 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18423 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18424 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18425 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18426 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18427 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18428 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18429 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18430 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18431 };
18432
18433 int
18434 main ()
18435 {
18436
18437 ;
18438 return 0;
18439 }
18440 _ACEOF
18441 if ac_fn_c_try_compile "$LINENO"; then :
18442 if test "$cross_compiling" = yes; then :
18443 gl_cv_header_working_stdint_h=yes
18444
18445 else
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448
18449
18450 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18451 #include <stdint.h>
18452
18453
18454 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18455 included before <wchar.h>. */
18456 #include <stddef.h>
18457 #include <signal.h>
18458 #if HAVE_WCHAR_H
18459 # include <stdio.h>
18460 # include <time.h>
18461 # include <wchar.h>
18462 #endif
18463
18464
18465 #include <stdio.h>
18466 #include <string.h>
18467 #define MVAL(macro) MVAL1(macro)
18468 #define MVAL1(expression) #expression
18469 static const char *macro_values[] =
18470 {
18471 #ifdef INT8_MAX
18472 MVAL (INT8_MAX),
18473 #endif
18474 #ifdef INT16_MAX
18475 MVAL (INT16_MAX),
18476 #endif
18477 #ifdef INT32_MAX
18478 MVAL (INT32_MAX),
18479 #endif
18480 #ifdef INT64_MAX
18481 MVAL (INT64_MAX),
18482 #endif
18483 #ifdef UINT8_MAX
18484 MVAL (UINT8_MAX),
18485 #endif
18486 #ifdef UINT16_MAX
18487 MVAL (UINT16_MAX),
18488 #endif
18489 #ifdef UINT32_MAX
18490 MVAL (UINT32_MAX),
18491 #endif
18492 #ifdef UINT64_MAX
18493 MVAL (UINT64_MAX),
18494 #endif
18495 NULL
18496 };
18497
18498 int
18499 main ()
18500 {
18501
18502 const char **mv;
18503 for (mv = macro_values; *mv != NULL; mv++)
18504 {
18505 const char *value = *mv;
18506 /* Test whether it looks like a cast expression. */
18507 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18508 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18509 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18510 || strncmp (value, "((int)"/*)*/, 6) == 0
18511 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18512 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18513 return mv - macro_values + 1;
18514 }
18515 return 0;
18516
18517 ;
18518 return 0;
18519 }
18520 _ACEOF
18521 if ac_fn_c_try_run "$LINENO"; then :
18522 gl_cv_header_working_stdint_h=yes
18523 fi
18524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18525 conftest.$ac_objext conftest.beam conftest.$ac_ext
18526 fi
18527
18528
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531
18532 fi
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18534 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18535 fi
18536 if test "$gl_cv_header_working_stdint_h" = yes; then
18537 STDINT_H=
18538 else
18539 for ac_header in sys/inttypes.h sys/bitypes.h
18540 do :
18541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18543 eval as_val=\$$as_ac_Header
18544 if test "x$as_val" = x""yes; then :
18545 cat >>confdefs.h <<_ACEOF
18546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18547 _ACEOF
18548
18549 fi
18550
18551 done
18552
18553 if test $ac_cv_header_sys_inttypes_h = yes; then
18554 HAVE_SYS_INTTYPES_H=1
18555 else
18556 HAVE_SYS_INTTYPES_H=0
18557 fi
18558
18559 if test $ac_cv_header_sys_bitypes_h = yes; then
18560 HAVE_SYS_BITYPES_H=1
18561 else
18562 HAVE_SYS_BITYPES_H=0
18563 fi
18564
18565
18566
18567
18568 if test $APPLE_UNIVERSAL_BUILD = 0; then
18569
18570
18571 for gltype in ptrdiff_t size_t ; do
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18573 $as_echo_n "checking for bit size of $gltype... " >&6; }
18574 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18578 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18579 included before <wchar.h>. */
18580 #include <stddef.h>
18581 #include <signal.h>
18582 #if HAVE_WCHAR_H
18583 # include <stdio.h>
18584 # include <time.h>
18585 # include <wchar.h>
18586 #endif
18587
18588 #include <limits.h>"; then :
18589
18590 else
18591 result=unknown
18592 fi
18593
18594 eval gl_cv_bitsizeof_${gltype}=\$result
18595
18596 fi
18597 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18599 $as_echo "$ac_res" >&6; }
18600 eval result=\$gl_cv_bitsizeof_${gltype}
18601 if test $result = unknown; then
18602 result=0
18603 fi
18604 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18605 cat >>confdefs.h <<_ACEOF
18606 #define BITSIZEOF_${GLTYPE} $result
18607 _ACEOF
18608
18609 eval BITSIZEOF_${GLTYPE}=\$result
18610 done
18611
18612
18613 fi
18614
18615
18616 for gltype in sig_atomic_t wchar_t wint_t ; do
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18618 $as_echo_n "checking for bit size of $gltype... " >&6; }
18619 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18622 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18624 included before <wchar.h>. */
18625 #include <stddef.h>
18626 #include <signal.h>
18627 #if HAVE_WCHAR_H
18628 # include <stdio.h>
18629 # include <time.h>
18630 # include <wchar.h>
18631 #endif
18632
18633 #include <limits.h>"; then :
18634
18635 else
18636 result=unknown
18637 fi
18638
18639 eval gl_cv_bitsizeof_${gltype}=\$result
18640
18641 fi
18642 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18644 $as_echo "$ac_res" >&6; }
18645 eval result=\$gl_cv_bitsizeof_${gltype}
18646 if test $result = unknown; then
18647 result=0
18648 fi
18649 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18650 cat >>confdefs.h <<_ACEOF
18651 #define BITSIZEOF_${GLTYPE} $result
18652 _ACEOF
18653
18654 eval BITSIZEOF_${GLTYPE}=\$result
18655 done
18656
18657
18658
18659
18660 for gltype in sig_atomic_t wchar_t wint_t ; do
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18662 $as_echo_n "checking whether $gltype is signed... " >&6; }
18663 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668
18669 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18670 included before <wchar.h>. */
18671 #include <stddef.h>
18672 #include <signal.h>
18673 #if HAVE_WCHAR_H
18674 # include <stdio.h>
18675 # include <time.h>
18676 # include <wchar.h>
18677 #endif
18678
18679 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18680 int
18681 main ()
18682 {
18683
18684 ;
18685 return 0;
18686 }
18687 _ACEOF
18688 if ac_fn_c_try_compile "$LINENO"; then :
18689 result=yes
18690 else
18691 result=no
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18694 eval gl_cv_type_${gltype}_signed=\$result
18695
18696 fi
18697 eval ac_res=\$gl_cv_type_${gltype}_signed
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18699 $as_echo "$ac_res" >&6; }
18700 eval result=\$gl_cv_type_${gltype}_signed
18701 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18702 if test "$result" = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_SIGNED_${GLTYPE} 1
18705 _ACEOF
18706
18707 eval HAVE_SIGNED_${GLTYPE}=1
18708 else
18709 eval HAVE_SIGNED_${GLTYPE}=0
18710 fi
18711 done
18712
18713
18714 gl_cv_type_ptrdiff_t_signed=yes
18715 gl_cv_type_size_t_signed=no
18716 if test $APPLE_UNIVERSAL_BUILD = 0; then
18717
18718
18719 for gltype in ptrdiff_t size_t ; do
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18721 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18722 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 eval gl_cv_type_${gltype}_suffix=no
18726 eval result=\$gl_cv_type_${gltype}_signed
18727 if test "$result" = yes; then
18728 glsufu=
18729 else
18730 glsufu=u
18731 fi
18732 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18733 case $glsuf in
18734 '') gltype1='int';;
18735 l) gltype1='long int';;
18736 ll) gltype1='long long int';;
18737 i64) gltype1='__int64';;
18738 u) gltype1='unsigned int';;
18739 ul) gltype1='unsigned long int';;
18740 ull) gltype1='unsigned long long int';;
18741 ui64)gltype1='unsigned __int64';;
18742 esac
18743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h. */
18745
18746 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18747 included before <wchar.h>. */
18748 #include <stddef.h>
18749 #include <signal.h>
18750 #if HAVE_WCHAR_H
18751 # include <stdio.h>
18752 # include <time.h>
18753 # include <wchar.h>
18754 #endif
18755
18756 extern $gltype foo;
18757 extern $gltype1 foo;
18758 int
18759 main ()
18760 {
18761
18762 ;
18763 return 0;
18764 }
18765 _ACEOF
18766 if ac_fn_c_try_compile "$LINENO"; then :
18767 eval gl_cv_type_${gltype}_suffix=\$glsuf
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 eval result=\$gl_cv_type_${gltype}_suffix
18771 test "$result" != no && break
18772 done
18773 fi
18774 eval ac_res=\$gl_cv_type_${gltype}_suffix
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18776 $as_echo "$ac_res" >&6; }
18777 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18778 eval result=\$gl_cv_type_${gltype}_suffix
18779 test "$result" = no && result=
18780 eval ${GLTYPE}_SUFFIX=\$result
18781 cat >>confdefs.h <<_ACEOF
18782 #define ${GLTYPE}_SUFFIX $result
18783 _ACEOF
18784
18785 done
18786
18787
18788 fi
18789
18790
18791 for gltype in sig_atomic_t wchar_t wint_t ; do
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18793 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18794 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18795 $as_echo_n "(cached) " >&6
18796 else
18797 eval gl_cv_type_${gltype}_suffix=no
18798 eval result=\$gl_cv_type_${gltype}_signed
18799 if test "$result" = yes; then
18800 glsufu=
18801 else
18802 glsufu=u
18803 fi
18804 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18805 case $glsuf in
18806 '') gltype1='int';;
18807 l) gltype1='long int';;
18808 ll) gltype1='long long int';;
18809 i64) gltype1='__int64';;
18810 u) gltype1='unsigned int';;
18811 ul) gltype1='unsigned long int';;
18812 ull) gltype1='unsigned long long int';;
18813 ui64)gltype1='unsigned __int64';;
18814 esac
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817
18818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18819 included before <wchar.h>. */
18820 #include <stddef.h>
18821 #include <signal.h>
18822 #if HAVE_WCHAR_H
18823 # include <stdio.h>
18824 # include <time.h>
18825 # include <wchar.h>
18826 #endif
18827
18828 extern $gltype foo;
18829 extern $gltype1 foo;
18830 int
18831 main ()
18832 {
18833
18834 ;
18835 return 0;
18836 }
18837 _ACEOF
18838 if ac_fn_c_try_compile "$LINENO"; then :
18839 eval gl_cv_type_${gltype}_suffix=\$glsuf
18840 fi
18841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18842 eval result=\$gl_cv_type_${gltype}_suffix
18843 test "$result" != no && break
18844 done
18845 fi
18846 eval ac_res=\$gl_cv_type_${gltype}_suffix
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18848 $as_echo "$ac_res" >&6; }
18849 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18850 eval result=\$gl_cv_type_${gltype}_suffix
18851 test "$result" = no && result=
18852 eval ${GLTYPE}_SUFFIX=\$result
18853 cat >>confdefs.h <<_ACEOF
18854 #define ${GLTYPE}_SUFFIX $result
18855 _ACEOF
18856
18857 done
18858
18859
18860
18861 if test $BITSIZEOF_WINT_T -lt 32; then
18862 BITSIZEOF_WINT_T=32
18863 fi
18864
18865 STDINT_H=stdint.h
18866 fi
18867
18868 if test -n "$STDINT_H"; then
18869 GL_GENERATE_STDINT_H_TRUE=
18870 GL_GENERATE_STDINT_H_FALSE='#'
18871 else
18872 GL_GENERATE_STDINT_H_TRUE='#'
18873 GL_GENERATE_STDINT_H_FALSE=
18874 fi
18875
18876
18877
18878
18879
18880 GNULIB_IMAXABS=0;
18881 GNULIB_IMAXDIV=0;
18882 GNULIB_STRTOIMAX=0;
18883 GNULIB_STRTOUMAX=0;
18884 HAVE_DECL_IMAXABS=1;
18885 HAVE_DECL_IMAXDIV=1;
18886 HAVE_DECL_STRTOIMAX=1;
18887 HAVE_DECL_STRTOUMAX=1;
18888 REPLACE_STRTOIMAX=0;
18889 INT32_MAX_LT_INTMAX_MAX=1;
18890 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18891 PRI_MACROS_BROKEN=0;
18892 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18893 UINT32_MAX_LT_UINTMAX_MAX=1;
18894 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910 if test $gl_cv_have_include_next = yes; then
18911 gl_cv_next_inttypes_h='<'inttypes.h'>'
18912 else
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18914 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18915 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18916 $as_echo_n "(cached) " >&6
18917 else
18918
18919 if test $ac_cv_header_inttypes_h = yes; then
18920
18921
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924 #include <inttypes.h>
18925
18926 _ACEOF
18927 case "$host_os" in
18928 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18929 *) gl_absname_cpp="$ac_cpp" ;;
18930 esac
18931
18932 case "$host_os" in
18933 mingw*)
18934 gl_dirsep_regex='[/\\]'
18935 ;;
18936 *)
18937 gl_dirsep_regex='\/'
18938 ;;
18939 esac
18940 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18941
18942 gl_header_literal_regex=`echo 'inttypes.h' \
18943 | sed -e "$gl_make_literal_regex_sed"`
18944 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18946 s|^/[^/]|//&|
18947 p
18948 q
18949 }'
18950 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18951 sed -n "$gl_absolute_header_sed"`'"'
18952 else
18953 gl_cv_next_inttypes_h='<'inttypes.h'>'
18954 fi
18955
18956
18957 fi
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18959 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18960 fi
18961 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18962
18963 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18965 gl_next_as_first_directive='<'inttypes.h'>'
18966 else
18967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18968 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18969 fi
18970 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982 case "$host_os" in
18983 mingw*)
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18985 $as_echo_n "checking for 64-bit off_t... " >&6; }
18986 if test "${gl_cv_type_off_t_64+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
18988 else
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991 #include <sys/types.h>
18992 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18993
18994 int
18995 main ()
18996 {
18997
18998 ;
18999 return 0;
19000 }
19001 _ACEOF
19002 if ac_fn_c_try_compile "$LINENO"; then :
19003 gl_cv_type_off_t_64=yes
19004 else
19005 gl_cv_type_off_t_64=no
19006 fi
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008
19009 fi
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19011 $as_echo "$gl_cv_type_off_t_64" >&6; }
19012 if test $gl_cv_type_off_t_64 = no; then
19013 WINDOWS_64_BIT_OFF_T=1
19014 else
19015 WINDOWS_64_BIT_OFF_T=0
19016 fi
19017 WINDOWS_64_BIT_ST_SIZE=1
19018 ;;
19019 *)
19020 WINDOWS_64_BIT_OFF_T=0
19021 WINDOWS_64_BIT_ST_SIZE=0
19022 ;;
19023 esac
19024
19025
19026 GNULIB_FCHMODAT=0;
19027 GNULIB_FSTAT=0;
19028 GNULIB_FSTATAT=0;
19029 GNULIB_FUTIMENS=0;
19030 GNULIB_LCHMOD=0;
19031 GNULIB_LSTAT=0;
19032 GNULIB_MKDIRAT=0;
19033 GNULIB_MKFIFO=0;
19034 GNULIB_MKFIFOAT=0;
19035 GNULIB_MKNOD=0;
19036 GNULIB_MKNODAT=0;
19037 GNULIB_STAT=0;
19038 GNULIB_UTIMENSAT=0;
19039 HAVE_FCHMODAT=1;
19040 HAVE_FSTATAT=1;
19041 HAVE_FUTIMENS=1;
19042 HAVE_LCHMOD=1;
19043 HAVE_LSTAT=1;
19044 HAVE_MKDIRAT=1;
19045 HAVE_MKFIFO=1;
19046 HAVE_MKFIFOAT=1;
19047 HAVE_MKNOD=1;
19048 HAVE_MKNODAT=1;
19049 HAVE_UTIMENSAT=1;
19050 REPLACE_FSTAT=0;
19051 REPLACE_FSTATAT=0;
19052 REPLACE_FUTIMENS=0;
19053 REPLACE_LSTAT=0;
19054 REPLACE_MKDIR=0;
19055 REPLACE_MKFIFO=0;
19056 REPLACE_MKNOD=0;
19057 REPLACE_STAT=0;
19058 REPLACE_UTIMENSAT=0;
19059
19060
19061
19062
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19064 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19065 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 rm -f conftest.sym conftest.file
19069 echo >conftest.file
19070 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19071 if test "$cross_compiling" = yes; then :
19072 case "$host_os" in
19073 # Guess yes on glibc systems.
19074 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19075 # If we don't know, assume the worst.
19076 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19077 esac
19078
19079 else
19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h. */
19082 $ac_includes_default
19083 int
19084 main ()
19085 {
19086 struct stat sbuf;
19087 /* Linux will dereference the symlink and fail, as required by
19088 POSIX. That is better in the sense that it means we will not
19089 have to compile and use the lstat wrapper. */
19090 return lstat ("conftest.sym/", &sbuf) == 0;
19091
19092 ;
19093 return 0;
19094 }
19095 _ACEOF
19096 if ac_fn_c_try_run "$LINENO"; then :
19097 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19098 else
19099 gl_cv_func_lstat_dereferences_slashed_symlink=no
19100 fi
19101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19102 conftest.$ac_objext conftest.beam conftest.$ac_ext
19103 fi
19104
19105 else
19106 # If the 'ln -s' command failed, then we probably don't even
19107 # have an lstat function.
19108 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19109 fi
19110 rm -f conftest.sym conftest.file
19111
19112 fi
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19114 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19115 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19116 *yes)
19117
19118 cat >>confdefs.h <<_ACEOF
19119 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19120 _ACEOF
19121
19122 ;;
19123 esac
19124
19125
19126 GNULIB_MKTIME=0;
19127 GNULIB_NANOSLEEP=0;
19128 GNULIB_STRPTIME=0;
19129 GNULIB_TIMEGM=0;
19130 GNULIB_TIME_R=0;
19131 HAVE_DECL_LOCALTIME_R=1;
19132 HAVE_NANOSLEEP=1;
19133 HAVE_STRPTIME=1;
19134 HAVE_TIMEGM=1;
19135 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19136 REPLACE_MKTIME=GNULIB_PORTCHECK;
19137 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19138 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19139
19140
19141
19142
19143 GNULIB_PSELECT=0;
19144 GNULIB_SELECT=0;
19145 HAVE_PSELECT=1;
19146 REPLACE_PSELECT=0;
19147 REPLACE_SELECT=0;
19148
19149
19150
19151
19152
19153
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19155 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19156 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <sys/select.h>
19163 int
19164 main ()
19165 {
19166 struct timeval b;
19167 ;
19168 return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_compile "$LINENO"; then :
19172 gl_cv_header_sys_select_h_selfcontained=yes
19173 else
19174 gl_cv_header_sys_select_h_selfcontained=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <sys/select.h>
19181 int
19182 main ()
19183 {
19184 int memset; int bzero;
19185 ;
19186 return 0;
19187 }
19188
19189 _ACEOF
19190 if ac_fn_c_try_compile "$LINENO"; then :
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193 #include <sys/select.h>
19194 int
19195 main ()
19196 {
19197
19198 #undef memset
19199 #define memset nonexistent_memset
19200 extern
19201 #ifdef __cplusplus
19202 "C"
19203 #endif
19204 void *memset (void *, int, unsigned long);
19205 #undef bzero
19206 #define bzero nonexistent_bzero
19207 extern
19208 #ifdef __cplusplus
19209 "C"
19210 #endif
19211 void bzero (void *, unsigned long);
19212 fd_set fds;
19213 FD_ZERO (&fds);
19214
19215 ;
19216 return 0;
19217 }
19218
19219 _ACEOF
19220 if ac_fn_c_try_link "$LINENO"; then :
19221
19222 else
19223 gl_cv_header_sys_select_h_selfcontained=no
19224 fi
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19227
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 fi
19231
19232 fi
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19234 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244 if test $gl_cv_have_include_next = yes; then
19245 gl_cv_next_sys_select_h='<'sys/select.h'>'
19246 else
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19248 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19249 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19250 $as_echo_n "(cached) " >&6
19251 else
19252
19253 if test $ac_cv_header_sys_select_h = yes; then
19254
19255
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 #include <sys/select.h>
19259
19260 _ACEOF
19261 case "$host_os" in
19262 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19263 *) gl_absname_cpp="$ac_cpp" ;;
19264 esac
19265
19266 case "$host_os" in
19267 mingw*)
19268 gl_dirsep_regex='[/\\]'
19269 ;;
19270 *)
19271 gl_dirsep_regex='\/'
19272 ;;
19273 esac
19274 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19275
19276 gl_header_literal_regex=`echo 'sys/select.h' \
19277 | sed -e "$gl_make_literal_regex_sed"`
19278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19280 s|^/[^/]|//&|
19281 p
19282 q
19283 }'
19284 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19285 sed -n "$gl_absolute_header_sed"`'"'
19286 else
19287 gl_cv_next_sys_select_h='<'sys/select.h'>'
19288 fi
19289
19290
19291 fi
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19293 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19294 fi
19295 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19296
19297 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19299 gl_next_as_first_directive='<'sys/select.h'>'
19300 else
19301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19302 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19303 fi
19304 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19305
19306
19307
19308
19309 if test $ac_cv_header_sys_select_h = yes; then
19310 HAVE_SYS_SELECT_H=1
19311 else
19312 HAVE_SYS_SELECT_H=0
19313 fi
19314
19315
19316
19317
19318
19319 if test $ac_cv_header_sys_socket_h != yes; then
19320 for ac_header in winsock2.h
19321 do :
19322 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19323 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19324 cat >>confdefs.h <<_ACEOF
19325 #define HAVE_WINSOCK2_H 1
19326 _ACEOF
19327
19328 fi
19329
19330 done
19331
19332 fi
19333 if test "$ac_cv_header_winsock2_h" = yes; then
19334 HAVE_WINSOCK2_H=1
19335 UNISTD_H_HAVE_WINSOCK2_H=1
19336 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19337 else
19338 HAVE_WINSOCK2_H=0
19339 fi
19340
19341
19342
19343
19344
19345
19346
19347
19348 GNULIB_PTHREAD_SIGMASK=0;
19349 GNULIB_RAISE=0;
19350 GNULIB_SIGNAL_H_SIGPIPE=0;
19351 GNULIB_SIGPROCMASK=0;
19352 GNULIB_SIGACTION=0;
19353 HAVE_POSIX_SIGNALBLOCKING=1;
19354 HAVE_PTHREAD_SIGMASK=1;
19355 HAVE_RAISE=1;
19356 HAVE_SIGSET_T=1;
19357 HAVE_SIGINFO_T=1;
19358 HAVE_SIGACTION=1;
19359 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19360
19361 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19362
19363 HAVE_SIGHANDLER_T=1;
19364 REPLACE_PTHREAD_SIGMASK=0;
19365 REPLACE_RAISE=0;
19366
19367
19368
19369
19370
19371
19372
19373 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19374 #include <signal.h>
19375 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19376 #include <sys/types.h>
19377
19378 "
19379 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19380
19381 cat >>confdefs.h <<_ACEOF
19382 #define HAVE_SIGSET_T 1
19383 _ACEOF
19384
19385 gl_cv_type_sigset_t=yes
19386 else
19387 gl_cv_type_sigset_t=no
19388 fi
19389
19390 if test $gl_cv_type_sigset_t != yes; then
19391 HAVE_SIGSET_T=0
19392 fi
19393
19394
19395
19396 if test $ac_cv_header_sys_socket_h = no; then
19397 for ac_header in ws2tcpip.h
19398 do :
19399 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19400 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19401 cat >>confdefs.h <<_ACEOF
19402 #define HAVE_WS2TCPIP_H 1
19403 _ACEOF
19404
19405 fi
19406
19407 done
19408
19409 fi
19410
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19412 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19413 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19415 else
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19418
19419 #include <stdbool.h>
19420 #ifndef bool
19421 "error: bool is not defined"
19422 #endif
19423 #ifndef false
19424 "error: false is not defined"
19425 #endif
19426 #if false
19427 "error: false is not 0"
19428 #endif
19429 #ifndef true
19430 "error: true is not defined"
19431 #endif
19432 #if true != 1
19433 "error: true is not 1"
19434 #endif
19435 #ifndef __bool_true_false_are_defined
19436 "error: __bool_true_false_are_defined is not defined"
19437 #endif
19438
19439 struct s { _Bool s: 1; _Bool t; } s;
19440
19441 char a[true == 1 ? 1 : -1];
19442 char b[false == 0 ? 1 : -1];
19443 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19444 char d[(bool) 0.5 == true ? 1 : -1];
19445 /* See body of main program for 'e'. */
19446 char f[(_Bool) 0.0 == false ? 1 : -1];
19447 char g[true];
19448 char h[sizeof (_Bool)];
19449 char i[sizeof s.t];
19450 enum { j = false, k = true, l = false * true, m = true * 256 };
19451 /* The following fails for
19452 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19453 _Bool n[m];
19454 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19455 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19456 /* Catch a bug in an HP-UX C compiler. See
19457 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19458 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19459 */
19460 _Bool q = true;
19461 _Bool *pq = &q;
19462
19463 int
19464 main ()
19465 {
19466
19467 bool e = &s;
19468 *pq |= q;
19469 *pq |= ! q;
19470 /* Refer to every declared value, to avoid compiler optimizations. */
19471 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19472 + !m + !n + !o + !p + !q + !pq);
19473
19474 ;
19475 return 0;
19476 }
19477 _ACEOF
19478 if ac_fn_c_try_compile "$LINENO"; then :
19479 ac_cv_header_stdbool_h=yes
19480 else
19481 ac_cv_header_stdbool_h=no
19482 fi
19483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484 fi
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19486 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19487 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19488 if test "x$ac_cv_type__Bool" = x""yes; then :
19489
19490 cat >>confdefs.h <<_ACEOF
19491 #define HAVE__BOOL 1
19492 _ACEOF
19493
19494
19495 fi
19496
19497
19498
19499 REPLACE_NULL=0;
19500 HAVE_WCHAR_T=1;
19501
19502
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19504 $as_echo_n "checking for wchar_t... " >&6; }
19505 if test "${gt_cv_c_wchar_t+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 #include <stddef.h>
19511 wchar_t foo = (wchar_t)'\0';
19512 int
19513 main ()
19514 {
19515
19516 ;
19517 return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_compile "$LINENO"; then :
19521 gt_cv_c_wchar_t=yes
19522 else
19523 gt_cv_c_wchar_t=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 fi
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19528 $as_echo "$gt_cv_c_wchar_t" >&6; }
19529 if test $gt_cv_c_wchar_t = yes; then
19530
19531 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19532
19533 fi
19534
19535
19536 GNULIB_DPRINTF=0;
19537 GNULIB_FCLOSE=0;
19538 GNULIB_FDOPEN=0;
19539 GNULIB_FFLUSH=0;
19540 GNULIB_FGETC=0;
19541 GNULIB_FGETS=0;
19542 GNULIB_FOPEN=0;
19543 GNULIB_FPRINTF=0;
19544 GNULIB_FPRINTF_POSIX=0;
19545 GNULIB_FPURGE=0;
19546 GNULIB_FPUTC=0;
19547 GNULIB_FPUTS=0;
19548 GNULIB_FREAD=0;
19549 GNULIB_FREOPEN=0;
19550 GNULIB_FSCANF=0;
19551 GNULIB_FSEEK=0;
19552 GNULIB_FSEEKO=0;
19553 GNULIB_FTELL=0;
19554 GNULIB_FTELLO=0;
19555 GNULIB_FWRITE=0;
19556 GNULIB_GETC=0;
19557 GNULIB_GETCHAR=0;
19558 GNULIB_GETDELIM=0;
19559 GNULIB_GETLINE=0;
19560 GNULIB_OBSTACK_PRINTF=0;
19561 GNULIB_OBSTACK_PRINTF_POSIX=0;
19562 GNULIB_PCLOSE=0;
19563 GNULIB_PERROR=0;
19564 GNULIB_POPEN=0;
19565 GNULIB_PRINTF=0;
19566 GNULIB_PRINTF_POSIX=0;
19567 GNULIB_PUTC=0;
19568 GNULIB_PUTCHAR=0;
19569 GNULIB_PUTS=0;
19570 GNULIB_REMOVE=0;
19571 GNULIB_RENAME=0;
19572 GNULIB_RENAMEAT=0;
19573 GNULIB_SCANF=0;
19574 GNULIB_SNPRINTF=0;
19575 GNULIB_SPRINTF_POSIX=0;
19576 GNULIB_STDIO_H_NONBLOCKING=0;
19577 GNULIB_STDIO_H_SIGPIPE=0;
19578 GNULIB_TMPFILE=0;
19579 GNULIB_VASPRINTF=0;
19580 GNULIB_VFSCANF=0;
19581 GNULIB_VSCANF=0;
19582 GNULIB_VDPRINTF=0;
19583 GNULIB_VFPRINTF=0;
19584 GNULIB_VFPRINTF_POSIX=0;
19585 GNULIB_VPRINTF=0;
19586 GNULIB_VPRINTF_POSIX=0;
19587 GNULIB_VSNPRINTF=0;
19588 GNULIB_VSPRINTF_POSIX=0;
19589 HAVE_DECL_FPURGE=1;
19590 HAVE_DECL_FSEEKO=1;
19591 HAVE_DECL_FTELLO=1;
19592 HAVE_DECL_GETDELIM=1;
19593 HAVE_DECL_GETLINE=1;
19594 HAVE_DECL_OBSTACK_PRINTF=1;
19595 HAVE_DECL_SNPRINTF=1;
19596 HAVE_DECL_VSNPRINTF=1;
19597 HAVE_DPRINTF=1;
19598 HAVE_FSEEKO=1;
19599 HAVE_FTELLO=1;
19600 HAVE_PCLOSE=1;
19601 HAVE_POPEN=1;
19602 HAVE_RENAMEAT=1;
19603 HAVE_VASPRINTF=1;
19604 HAVE_VDPRINTF=1;
19605 REPLACE_DPRINTF=0;
19606 REPLACE_FCLOSE=0;
19607 REPLACE_FDOPEN=0;
19608 REPLACE_FFLUSH=0;
19609 REPLACE_FOPEN=0;
19610 REPLACE_FPRINTF=0;
19611 REPLACE_FPURGE=0;
19612 REPLACE_FREOPEN=0;
19613 REPLACE_FSEEK=0;
19614 REPLACE_FSEEKO=0;
19615 REPLACE_FTELL=0;
19616 REPLACE_FTELLO=0;
19617 REPLACE_GETDELIM=0;
19618 REPLACE_GETLINE=0;
19619 REPLACE_OBSTACK_PRINTF=0;
19620 REPLACE_PERROR=0;
19621 REPLACE_POPEN=0;
19622 REPLACE_PRINTF=0;
19623 REPLACE_REMOVE=0;
19624 REPLACE_RENAME=0;
19625 REPLACE_RENAMEAT=0;
19626 REPLACE_SNPRINTF=0;
19627 REPLACE_SPRINTF=0;
19628 REPLACE_STDIO_READ_FUNCS=0;
19629 REPLACE_STDIO_WRITE_FUNCS=0;
19630 REPLACE_TMPFILE=0;
19631 REPLACE_VASPRINTF=0;
19632 REPLACE_VDPRINTF=0;
19633 REPLACE_VFPRINTF=0;
19634 REPLACE_VPRINTF=0;
19635 REPLACE_VSNPRINTF=0;
19636 REPLACE_VSPRINTF=0;
19637
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19639 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19640 if test "${ac_cv_struct_tm+set}" = set; then :
19641 $as_echo_n "(cached) " >&6
19642 else
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #include <sys/types.h>
19646 #include <time.h>
19647
19648 int
19649 main ()
19650 {
19651 struct tm tm;
19652 int *p = &tm.tm_sec;
19653 return !p;
19654 ;
19655 return 0;
19656 }
19657 _ACEOF
19658 if ac_fn_c_try_compile "$LINENO"; then :
19659 ac_cv_struct_tm=time.h
19660 else
19661 ac_cv_struct_tm=sys/time.h
19662 fi
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19666 $as_echo "$ac_cv_struct_tm" >&6; }
19667 if test $ac_cv_struct_tm = sys/time.h; then
19668
19669 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19670
19671 fi
19672
19673 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19674 #include <$ac_cv_struct_tm>
19675
19676 "
19677 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19678
19679 cat >>confdefs.h <<_ACEOF
19680 #define HAVE_STRUCT_TM_TM_ZONE 1
19681 _ACEOF
19682
19683
19684 fi
19685
19686 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19687
19688 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19689
19690 else
19691 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19692 "
19693 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19694 ac_have_decl=1
19695 else
19696 ac_have_decl=0
19697 fi
19698
19699 cat >>confdefs.h <<_ACEOF
19700 #define HAVE_DECL_TZNAME $ac_have_decl
19701 _ACEOF
19702
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19704 $as_echo_n "checking for tzname... " >&6; }
19705 if test "${ac_cv_var_tzname+set}" = set; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710 #include <time.h>
19711 #if !HAVE_DECL_TZNAME
19712 extern char *tzname[];
19713 #endif
19714
19715 int
19716 main ()
19717 {
19718 return tzname[0][0];
19719 ;
19720 return 0;
19721 }
19722 _ACEOF
19723 if ac_fn_c_try_link "$LINENO"; then :
19724 ac_cv_var_tzname=yes
19725 else
19726 ac_cv_var_tzname=no
19727 fi
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 fi
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19732 $as_echo "$ac_cv_var_tzname" >&6; }
19733 if test $ac_cv_var_tzname = yes; then
19734
19735 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19736
19737 fi
19738 fi
19739
19740
19741 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19742 "
19743 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19744
19745 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19746
19747 fi
19748
19749
19750
19751
19752 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19753 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19754 ac_have_decl=1
19755 else
19756 ac_have_decl=0
19757 fi
19758
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19761 _ACEOF
19762
19763
19764
19765 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19766 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19767 ac_have_decl=1
19768 else
19769 ac_have_decl=0
19770 fi
19771
19772 cat >>confdefs.h <<_ACEOF
19773 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19774 _ACEOF
19775
19776
19777
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19779 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19780 if test "${ac_cv_header_stat_broken+set}" = set; then :
19781 $as_echo_n "(cached) " >&6
19782 else
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19785 #include <sys/types.h>
19786 #include <sys/stat.h>
19787
19788 #if defined S_ISBLK && defined S_IFDIR
19789 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19790 #endif
19791
19792 #if defined S_ISBLK && defined S_IFCHR
19793 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19794 #endif
19795
19796 #if defined S_ISLNK && defined S_IFREG
19797 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19798 #endif
19799
19800 #if defined S_ISSOCK && defined S_IFREG
19801 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19802 #endif
19803
19804 _ACEOF
19805 if ac_fn_c_try_compile "$LINENO"; then :
19806 ac_cv_header_stat_broken=no
19807 else
19808 ac_cv_header_stat_broken=yes
19809 fi
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 fi
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19813 $as_echo "$ac_cv_header_stat_broken" >&6; }
19814 if test $ac_cv_header_stat_broken = yes; then
19815
19816 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19817
19818 fi
19819
19820
19821
19822
19823
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19825 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19826 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19831 #include <time.h>
19832
19833 int
19834 main ()
19835 {
19836 static struct timespec x; x.tv_sec = x.tv_nsec;
19837 ;
19838 return 0;
19839 }
19840 _ACEOF
19841 if ac_fn_c_try_compile "$LINENO"; then :
19842 gl_cv_sys_struct_timespec_in_time_h=yes
19843 else
19844 gl_cv_sys_struct_timespec_in_time_h=no
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 fi
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19849 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19850
19851 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19852 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19853 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19854 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19855 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19856 else
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19858 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19859 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864 #include <sys/time.h>
19865
19866 int
19867 main ()
19868 {
19869 static struct timespec x; x.tv_sec = x.tv_nsec;
19870 ;
19871 return 0;
19872 }
19873 _ACEOF
19874 if ac_fn_c_try_compile "$LINENO"; then :
19875 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19876 else
19877 gl_cv_sys_struct_timespec_in_sys_time_h=no
19878 fi
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 fi
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19882 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19883 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19884 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19885 else
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19887 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19888 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19889 $as_echo_n "(cached) " >&6
19890 else
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <pthread.h>
19894
19895 int
19896 main ()
19897 {
19898 static struct timespec x; x.tv_sec = x.tv_nsec;
19899 ;
19900 return 0;
19901 }
19902 _ACEOF
19903 if ac_fn_c_try_compile "$LINENO"; then :
19904 gl_cv_sys_struct_timespec_in_pthread_h=yes
19905 else
19906 gl_cv_sys_struct_timespec_in_pthread_h=no
19907 fi
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 fi
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19911 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19912 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19913 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19914 fi
19915 fi
19916 fi
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932 if test $gl_cv_have_include_next = yes; then
19933 gl_cv_next_time_h='<'time.h'>'
19934 else
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19936 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19937 if test "${gl_cv_next_time_h+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19939 else
19940
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19943 #include <time.h>
19944
19945 _ACEOF
19946 case "$host_os" in
19947 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19948 *) gl_absname_cpp="$ac_cpp" ;;
19949 esac
19950
19951 case "$host_os" in
19952 mingw*)
19953 gl_dirsep_regex='[/\\]'
19954 ;;
19955 *)
19956 gl_dirsep_regex='\/'
19957 ;;
19958 esac
19959 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19960
19961 gl_header_literal_regex=`echo 'time.h' \
19962 | sed -e "$gl_make_literal_regex_sed"`
19963 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19964 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19965 s|^/[^/]|//&|
19966 p
19967 q
19968 }'
19969 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19970 sed -n "$gl_absolute_header_sed"`'"'
19971
19972
19973 fi
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19975 $as_echo "$gl_cv_next_time_h" >&6; }
19976 fi
19977 NEXT_TIME_H=$gl_cv_next_time_h
19978
19979 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19981 gl_next_as_first_directive='<'time.h'>'
19982 else
19983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19984 gl_next_as_first_directive=$gl_cv_next_time_h
19985 fi
19986 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20003 $as_echo_n "checking whether the utimes function works... " >&6; }
20004 if test "${gl_cv_func_working_utimes+set}" = set; then :
20005 $as_echo_n "(cached) " >&6
20006 else
20007
20008 if test "$cross_compiling" = yes; then :
20009 gl_cv_func_working_utimes=no
20010 else
20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h. */
20013
20014 #include <sys/types.h>
20015 #include <sys/stat.h>
20016 #include <fcntl.h>
20017 #include <sys/time.h>
20018 #include <time.h>
20019 #include <unistd.h>
20020 #include <stdlib.h>
20021 #include <stdio.h>
20022 #include <utime.h>
20023
20024 static int
20025 inorder (time_t a, time_t b, time_t c)
20026 {
20027 return a <= b && b <= c;
20028 }
20029
20030 int
20031 main ()
20032 {
20033 int result = 0;
20034 char const *file = "conftest.utimes";
20035 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20036
20037 /* Test whether utimes() essentially works. */
20038 {
20039 struct stat sbuf;
20040 FILE *f = fopen (file, "w");
20041 if (f == NULL)
20042 result |= 1;
20043 else if (fclose (f) != 0)
20044 result |= 1;
20045 else if (utimes (file, timeval) != 0)
20046 result |= 2;
20047 else if (lstat (file, &sbuf) != 0)
20048 result |= 1;
20049 else if (!(sbuf.st_atime == timeval[0].tv_sec
20050 && sbuf.st_mtime == timeval[1].tv_sec))
20051 result |= 4;
20052 if (unlink (file) != 0)
20053 result |= 1;
20054 }
20055
20056 /* Test whether utimes() with a NULL argument sets the file's timestamp
20057 to the current time. Use 'fstat' as well as 'time' to
20058 determine the "current" time, to accommodate NFS file systems
20059 if there is a time skew between the host and the NFS server. */
20060 {
20061 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20062 if (fd < 0)
20063 result |= 1;
20064 else
20065 {
20066 time_t t0, t2;
20067 struct stat st0, st1, st2;
20068 if (time (&t0) == (time_t) -1)
20069 result |= 1;
20070 else if (fstat (fd, &st0) != 0)
20071 result |= 1;
20072 else if (utimes (file, timeval) != 0)
20073 result |= 2;
20074 else if (utimes (file, NULL) != 0)
20075 result |= 8;
20076 else if (fstat (fd, &st1) != 0)
20077 result |= 1;
20078 else if (write (fd, "\n", 1) != 1)
20079 result |= 1;
20080 else if (fstat (fd, &st2) != 0)
20081 result |= 1;
20082 else if (time (&t2) == (time_t) -1)
20083 result |= 1;
20084 else
20085 {
20086 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20087 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20088 if (! (st1.st_atime == st1.st_mtime))
20089 result |= 16;
20090 if (! (m_ok_POSIX || m_ok_NFS))
20091 result |= 32;
20092 }
20093 if (close (fd) != 0)
20094 result |= 1;
20095 }
20096 if (unlink (file) != 0)
20097 result |= 1;
20098 }
20099
20100 /* Test whether utimes() with a NULL argument works on read-only files. */
20101 {
20102 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20103 if (fd < 0)
20104 result |= 1;
20105 else if (close (fd) != 0)
20106 result |= 1;
20107 else if (utimes (file, NULL) != 0)
20108 result |= 64;
20109 if (unlink (file) != 0)
20110 result |= 1;
20111 }
20112
20113 return result;
20114 }
20115
20116 _ACEOF
20117 if ac_fn_c_try_run "$LINENO"; then :
20118 gl_cv_func_working_utimes=yes
20119 else
20120 gl_cv_func_working_utimes=no
20121 fi
20122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20123 conftest.$ac_objext conftest.beam conftest.$ac_ext
20124 fi
20125
20126 fi
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20128 $as_echo "$gl_cv_func_working_utimes" >&6; }
20129
20130 if test $gl_cv_func_working_utimes = yes; then
20131
20132 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20133
20134 fi
20135
20136
20137
20138
20139
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20141 $as_echo_n "checking for struct utimbuf... " >&6; }
20142 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20143 $as_echo_n "(cached) " >&6
20144 else
20145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20147 #if HAVE_SYS_TIME_H
20148 #include <sys/time.h>
20149 #endif
20150 #include <time.h>
20151 #ifdef HAVE_UTIME_H
20152 #include <utime.h>
20153 #endif
20154
20155 int
20156 main ()
20157 {
20158 static struct utimbuf x; x.actime = x.modtime;
20159 ;
20160 return 0;
20161 }
20162 _ACEOF
20163 if ac_fn_c_try_compile "$LINENO"; then :
20164 gl_cv_sys_struct_utimbuf=yes
20165 else
20166 gl_cv_sys_struct_utimbuf=no
20167 fi
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 fi
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20171 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20172
20173 if test $gl_cv_sys_struct_utimbuf = yes; then
20174
20175 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20176
20177 fi
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20190 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20191 if test "${ac_cv_type_getgroups+set}" = set; then :
20192 $as_echo_n "(cached) " >&6
20193 else
20194 if test "$cross_compiling" = yes; then :
20195 ac_cv_type_getgroups=cross
20196 else
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199 /* Thanks to Mike Rendell for this test. */
20200 $ac_includes_default
20201 #define NGID 256
20202 #undef MAX
20203 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20204
20205 int
20206 main ()
20207 {
20208 gid_t gidset[NGID];
20209 int i, n;
20210 union { gid_t gval; long int lval; } val;
20211
20212 val.lval = -1;
20213 for (i = 0; i < NGID; i++)
20214 gidset[i] = val.gval;
20215 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20216 gidset);
20217 /* Exit non-zero if getgroups seems to require an array of ints. This
20218 happens when gid_t is short int but getgroups modifies an array
20219 of ints. */
20220 return n > 0 && gidset[n] != val.gval;
20221 }
20222 _ACEOF
20223 if ac_fn_c_try_run "$LINENO"; then :
20224 ac_cv_type_getgroups=gid_t
20225 else
20226 ac_cv_type_getgroups=int
20227 fi
20228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20229 conftest.$ac_objext conftest.beam conftest.$ac_ext
20230 fi
20231
20232 if test $ac_cv_type_getgroups = cross; then
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h. */
20235 #include <unistd.h>
20236
20237 _ACEOF
20238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20239 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20240 ac_cv_type_getgroups=gid_t
20241 else
20242 ac_cv_type_getgroups=int
20243 fi
20244 rm -f conftest*
20245
20246 fi
20247 fi
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20249 $as_echo "$ac_cv_type_getgroups" >&6; }
20250
20251 cat >>confdefs.h <<_ACEOF
20252 #define GETGROUPS_T $ac_cv_type_getgroups
20253 _ACEOF
20254
20255
20256
20257
20258 if false; then
20259 GL_COND_LIBTOOL_TRUE=
20260 GL_COND_LIBTOOL_FALSE='#'
20261 else
20262 GL_COND_LIBTOOL_TRUE='#'
20263 GL_COND_LIBTOOL_FALSE=
20264 fi
20265
20266 gl_cond_libtool=false
20267 gl_libdeps=
20268 gl_ltlibdeps=
20269 gl_m4_base='m4'
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279 gl_source_base='lib'
20280
20281
20282 if test $ac_cv_func_alloca_works = no; then
20283 :
20284 fi
20285
20286 # Define an additional variable used in the Makefile substitution.
20287 if test $ac_cv_working_alloca_h = yes; then
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20289 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20290 if test "${gl_cv_rpl_alloca+set}" = set; then :
20291 $as_echo_n "(cached) " >&6
20292 else
20293
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296
20297 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20298 Need own alloca
20299 #endif
20300
20301 _ACEOF
20302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20303 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20304 gl_cv_rpl_alloca=yes
20305 else
20306 gl_cv_rpl_alloca=no
20307 fi
20308 rm -f conftest*
20309
20310
20311 fi
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20313 $as_echo "$gl_cv_rpl_alloca" >&6; }
20314 if test $gl_cv_rpl_alloca = yes; then
20315
20316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20317
20318 ALLOCA_H=alloca.h
20319 else
20320 ALLOCA_H=
20321 fi
20322 else
20323 ALLOCA_H=alloca.h
20324 fi
20325
20326 if test -n "$ALLOCA_H"; then
20327 GL_GENERATE_ALLOCA_H_TRUE=
20328 GL_GENERATE_ALLOCA_H_FALSE='#'
20329 else
20330 GL_GENERATE_ALLOCA_H_TRUE='#'
20331 GL_GENERATE_ALLOCA_H_FALSE=
20332 fi
20333
20334
20335
20336
20337
20338
20339 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20340 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20341
20342 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20343 # programs in the package would end up linked with that potentially-shared
20344 # library, inducing unnecessary run-time overhead.
20345 LIB_CLOCK_GETTIME=
20346
20347 gl_saved_libs=$LIBS
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20349 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20350 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20352 else
20353 ac_func_search_save_LIBS=$LIBS
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char clock_gettime ();
20364 int
20365 main ()
20366 {
20367 return clock_gettime ();
20368 ;
20369 return 0;
20370 }
20371 _ACEOF
20372 for ac_lib in '' rt posix4; do
20373 if test -z "$ac_lib"; then
20374 ac_res="none required"
20375 else
20376 ac_res=-l$ac_lib
20377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20378 fi
20379 if ac_fn_c_try_link "$LINENO"; then :
20380 ac_cv_search_clock_gettime=$ac_res
20381 fi
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext
20384 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20385 break
20386 fi
20387 done
20388 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20389
20390 else
20391 ac_cv_search_clock_gettime=no
20392 fi
20393 rm conftest.$ac_ext
20394 LIBS=$ac_func_search_save_LIBS
20395 fi
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20397 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20398 ac_res=$ac_cv_search_clock_gettime
20399 if test "$ac_res" != no; then :
20400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20401 test "$ac_cv_search_clock_gettime" = "none required" ||
20402 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20403 fi
20404
20405 for ac_func in clock_gettime clock_settime
20406 do :
20407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20409 eval as_val=\$$as_ac_var
20410 if test "x$as_val" = x""yes; then :
20411 cat >>confdefs.h <<_ACEOF
20412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20413 _ACEOF
20414
20415 fi
20416 done
20417
20418 LIBS=$gl_saved_libs
20419
20420
20421 :
20422
20423
20424
20425 cat >>confdefs.h <<_ACEOF
20426 #define GNULIB_CLOSE_STREAM 1
20427 _ACEOF
20428
20429
20430
20431
20432
20433 :
20434
20435
20436
20437
20438 :
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20455
20456
20457 if test $HAVE_DUP2 = 1; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20459 $as_echo_n "checking whether dup2 works... " >&6; }
20460 if test "${gl_cv_func_dup2_works+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 if test "$cross_compiling" = yes; then :
20464 case "$host_os" in
20465 mingw*) # on this platform, dup2 always returns 0 for success
20466 gl_cv_func_dup2_works="guessing no" ;;
20467 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20468 gl_cv_func_dup2_works="guessing no" ;;
20469 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20470 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20471 gl_cv_func_dup2_works="guessing no" ;;
20472 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20473 gl_cv_func_dup2_works="guessing no" ;;
20474 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20475 gl_cv_func_dup2_works="guessing no" ;;
20476 *) gl_cv_func_dup2_works="guessing yes" ;;
20477 esac
20478 else
20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20481
20482 #include <unistd.h>
20483 #include <fcntl.h>
20484 #include <errno.h>
20485 int
20486 main ()
20487 {
20488 int result = 0;
20489 #ifdef FD_CLOEXEC
20490 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20491 result |= 1;
20492 #endif
20493 if (dup2 (1, 1) == 0)
20494 result |= 2;
20495 #ifdef FD_CLOEXEC
20496 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20497 result |= 4;
20498 #endif
20499 close (0);
20500 if (dup2 (0, 0) != -1)
20501 result |= 8;
20502 /* Many gnulib modules require POSIX conformance of EBADF. */
20503 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20504 result |= 16;
20505 return result;
20506
20507 ;
20508 return 0;
20509 }
20510
20511 _ACEOF
20512 if ac_fn_c_try_run "$LINENO"; then :
20513 gl_cv_func_dup2_works=yes
20514 else
20515 gl_cv_func_dup2_works=no
20516 fi
20517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20518 conftest.$ac_objext conftest.beam conftest.$ac_ext
20519 fi
20520
20521
20522 fi
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20524 $as_echo "$gl_cv_func_dup2_works" >&6; }
20525 case "$gl_cv_func_dup2_works" in
20526 *yes) ;;
20527 *)
20528 REPLACE_DUP2=1
20529 ;;
20530 esac
20531 fi
20532
20533
20534 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20535
20536
20537
20538
20539
20540
20541
20542
20543 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20544
20545
20546 fi
20547
20548
20549
20550
20551
20552 GNULIB_DUP2=1
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564 GNULIB_ENVIRON=1
20565
20566
20567
20568
20569
20570
20571
20572
20573 LIB_EXECINFO=''
20574 EXECINFO_H='execinfo.h'
20575
20576 if test $ac_cv_header_execinfo_h = yes; then
20577 gl_saved_libs=$LIBS
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20579 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20580 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20581 $as_echo_n "(cached) " >&6
20582 else
20583 ac_func_search_save_LIBS=$LIBS
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char backtrace_symbols_fd ();
20594 int
20595 main ()
20596 {
20597 return backtrace_symbols_fd ();
20598 ;
20599 return 0;
20600 }
20601 _ACEOF
20602 for ac_lib in '' execinfo; do
20603 if test -z "$ac_lib"; then
20604 ac_res="none required"
20605 else
20606 ac_res=-l$ac_lib
20607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20608 fi
20609 if ac_fn_c_try_link "$LINENO"; then :
20610 ac_cv_search_backtrace_symbols_fd=$ac_res
20611 fi
20612 rm -f core conftest.err conftest.$ac_objext \
20613 conftest$ac_exeext
20614 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20615 break
20616 fi
20617 done
20618 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20619
20620 else
20621 ac_cv_search_backtrace_symbols_fd=no
20622 fi
20623 rm conftest.$ac_ext
20624 LIBS=$ac_func_search_save_LIBS
20625 fi
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20627 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20628 ac_res=$ac_cv_search_backtrace_symbols_fd
20629 if test "$ac_res" != no; then :
20630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20631 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20632 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20633 fi
20634
20635 LIBS=$gl_saved_libs
20636 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20637 fi
20638
20639 if test -n "$EXECINFO_H"; then
20640
20641
20642
20643
20644
20645
20646
20647
20648 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20649
20650 fi
20651
20652
20653
20654 if test -n "$EXECINFO_H"; then
20655 GL_GENERATE_EXECINFO_H_TRUE=
20656 GL_GENERATE_EXECINFO_H_FALSE='#'
20657 else
20658 GL_GENERATE_EXECINFO_H_TRUE='#'
20659 GL_GENERATE_EXECINFO_H_FALSE=
20660 fi
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670 if test $ac_cv_func_faccessat = no; then
20671 HAVE_FACCESSAT=0
20672 fi
20673
20674 if test $HAVE_FACCESSAT = 0; then
20675
20676
20677
20678
20679
20680
20681
20682
20683 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20684
20685
20686 for ac_func in access
20687 do :
20688 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20689 if test "x$ac_cv_func_access" = x""yes; then :
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_ACCESS 1
20692 _ACEOF
20693
20694 fi
20695 done
20696
20697
20698 fi
20699
20700
20701 cat >>confdefs.h <<_ACEOF
20702 #define GNULIB_FACCESSAT 1
20703 _ACEOF
20704
20705
20706
20707
20708
20709
20710
20711 GNULIB_FACCESSAT=1
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728 if test $gl_cv_have_include_next = yes; then
20729 gl_cv_next_fcntl_h='<'fcntl.h'>'
20730 else
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20732 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20733 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20734 $as_echo_n "(cached) " >&6
20735 else
20736
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20739 #include <fcntl.h>
20740
20741 _ACEOF
20742 case "$host_os" in
20743 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20744 *) gl_absname_cpp="$ac_cpp" ;;
20745 esac
20746
20747 case "$host_os" in
20748 mingw*)
20749 gl_dirsep_regex='[/\\]'
20750 ;;
20751 *)
20752 gl_dirsep_regex='\/'
20753 ;;
20754 esac
20755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20756
20757 gl_header_literal_regex=`echo 'fcntl.h' \
20758 | sed -e "$gl_make_literal_regex_sed"`
20759 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20760 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20761 s|^/[^/]|//&|
20762 p
20763 q
20764 }'
20765 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20766 sed -n "$gl_absolute_header_sed"`'"'
20767
20768
20769 fi
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20771 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20772 fi
20773 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20774
20775 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20777 gl_next_as_first_directive='<'fcntl.h'>'
20778 else
20779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20780 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20781 fi
20782 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801 fp_headers='
20802 # include <stdio.h>
20803 # if HAVE_STDIO_EXT_H
20804 # include <stdio_ext.h>
20805 # endif
20806 '
20807 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20808 "
20809 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20810 ac_have_decl=1
20811 else
20812 ac_have_decl=0
20813 fi
20814
20815 cat >>confdefs.h <<_ACEOF
20816 #define HAVE_DECL___FPENDING $ac_have_decl
20817 _ACEOF
20818
20819
20820 if test $ac_cv_func___fpending = no; then
20821
20822
20823
20824
20825
20826
20827
20828
20829 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20830
20831
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20833 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20834 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837
20838 for ac_expr in \
20839 \
20840 '# glibc2' \
20841 'fp->_IO_write_ptr - fp->_IO_write_base' \
20842 \
20843 '# traditional Unix' \
20844 'fp->_ptr - fp->_base' \
20845 \
20846 '# BSD' \
20847 'fp->_p - fp->_bf._base' \
20848 \
20849 '# SCO, Unixware' \
20850 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20851 \
20852 '# QNX' \
20853 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20854 \
20855 '# old glibc?' \
20856 'fp->__bufp - fp->__buffer' \
20857 \
20858 '# old glibc iostream?' \
20859 'fp->_pptr - fp->_pbase' \
20860 \
20861 '# emx+gcc' \
20862 'fp->_ptr - fp->_buffer' \
20863 \
20864 '# Minix' \
20865 'fp->_ptr - fp->_buf' \
20866 \
20867 '# Plan9' \
20868 'fp->wp - fp->buf' \
20869 \
20870 '# VMS' \
20871 '(*fp)->_ptr - (*fp)->_base' \
20872 \
20873 '# e.g., DGUX R4.11; the info is not available' \
20874 1 \
20875 ; do
20876
20877 # Skip each embedded comment.
20878 case "$ac_expr" in '#'*) continue;; esac
20879
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882 #include <stdio.h>
20883 int
20884 main ()
20885 {
20886 FILE *fp = stdin; (void) ($ac_expr);
20887 ;
20888 return 0;
20889 }
20890 _ACEOF
20891 if ac_fn_c_try_compile "$LINENO"; then :
20892 fp_done=yes
20893
20894 fi
20895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20896 test "$fp_done" = yes && break
20897 done
20898
20899 ac_cv_sys_pending_output_n_bytes=$ac_expr
20900
20901
20902 fi
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20904 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20905
20906 cat >>confdefs.h <<_ACEOF
20907 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20908 _ACEOF
20909
20910
20911 fi
20912
20913
20914 # Persuade glibc <stdlib.h> to declare getloadavg().
20915
20916
20917 gl_save_LIBS=$LIBS
20918
20919 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20920 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20921 HAVE_GETLOADAVG=1
20922 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20923 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20924
20925 else
20926 gl_func_getloadavg_done=no
20927
20928 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20929 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20930 # to get the right answer into the cache.
20931 # For kstat on solaris, we need to test for libelf and libkvm to force the
20932 # definition of SVR4 below.
20933 if test $gl_func_getloadavg_done = no; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20935 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20936 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20937 $as_echo_n "(cached) " >&6
20938 else
20939 ac_check_lib_save_LIBS=$LIBS
20940 LIBS="-lelf $LIBS"
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943
20944 /* Override any GCC internal prototype to avoid an error.
20945 Use char because int might match the return type of a GCC
20946 builtin and then its argument prototype would still apply. */
20947 #ifdef __cplusplus
20948 extern "C"
20949 #endif
20950 char elf_begin ();
20951 int
20952 main ()
20953 {
20954 return elf_begin ();
20955 ;
20956 return 0;
20957 }
20958 _ACEOF
20959 if ac_fn_c_try_link "$LINENO"; then :
20960 ac_cv_lib_elf_elf_begin=yes
20961 else
20962 ac_cv_lib_elf_elf_begin=no
20963 fi
20964 rm -f core conftest.err conftest.$ac_objext \
20965 conftest$ac_exeext conftest.$ac_ext
20966 LIBS=$ac_check_lib_save_LIBS
20967 fi
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20969 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20970 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20971 LIBS="-lelf $LIBS"
20972 fi
20973
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20975 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20976 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lkvm $LIBS"
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983
20984 /* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20987 #ifdef __cplusplus
20988 extern "C"
20989 #endif
20990 char kvm_open ();
20991 int
20992 main ()
20993 {
20994 return kvm_open ();
20995 ;
20996 return 0;
20997 }
20998 _ACEOF
20999 if ac_fn_c_try_link "$LINENO"; then :
21000 ac_cv_lib_kvm_kvm_open=yes
21001 else
21002 ac_cv_lib_kvm_kvm_open=no
21003 fi
21004 rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21006 LIBS=$ac_check_lib_save_LIBS
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21009 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21010 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21011 LIBS="-lkvm $LIBS"
21012 fi
21013
21014 # Check for the 4.4BSD definition of getloadavg.
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21016 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21017 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21018 $as_echo_n "(cached) " >&6
21019 else
21020 ac_check_lib_save_LIBS=$LIBS
21021 LIBS="-lutil $LIBS"
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21024
21025 /* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 char getloadavg ();
21032 int
21033 main ()
21034 {
21035 return getloadavg ();
21036 ;
21037 return 0;
21038 }
21039 _ACEOF
21040 if ac_fn_c_try_link "$LINENO"; then :
21041 ac_cv_lib_util_getloadavg=yes
21042 else
21043 ac_cv_lib_util_getloadavg=no
21044 fi
21045 rm -f core conftest.err conftest.$ac_objext \
21046 conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21048 fi
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21050 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21051 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21052 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21053 fi
21054
21055 fi
21056
21057 if test $gl_func_getloadavg_done = no; then
21058 # There is a commonly available library for RS/6000 AIX.
21059 # Since it is not a standard part of AIX, it might be installed locally.
21060 gl_getloadavg_LIBS=$LIBS
21061 LIBS="-L/usr/local/lib $LIBS"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21063 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21064 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21065 $as_echo_n "(cached) " >&6
21066 else
21067 ac_check_lib_save_LIBS=$LIBS
21068 LIBS="-lgetloadavg $LIBS"
21069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21071
21072 /* Override any GCC internal prototype to avoid an error.
21073 Use char because int might match the return type of a GCC
21074 builtin and then its argument prototype would still apply. */
21075 #ifdef __cplusplus
21076 extern "C"
21077 #endif
21078 char getloadavg ();
21079 int
21080 main ()
21081 {
21082 return getloadavg ();
21083 ;
21084 return 0;
21085 }
21086 _ACEOF
21087 if ac_fn_c_try_link "$LINENO"; then :
21088 ac_cv_lib_getloadavg_getloadavg=yes
21089 else
21090 ac_cv_lib_getloadavg_getloadavg=no
21091 fi
21092 rm -f core conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21094 LIBS=$ac_check_lib_save_LIBS
21095 fi
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21097 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21098 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21099 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21100 else
21101 LIBS=$gl_getloadavg_LIBS
21102 fi
21103
21104 fi
21105
21106 # Set up the replacement function if necessary.
21107 if test $gl_func_getloadavg_done = no; then
21108 HAVE_GETLOADAVG=0
21109
21110 # Solaris has libkstat which does not require root.
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21112 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21113 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21115 else
21116 ac_check_lib_save_LIBS=$LIBS
21117 LIBS="-lkstat $LIBS"
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21120
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21124 #ifdef __cplusplus
21125 extern "C"
21126 #endif
21127 char kstat_open ();
21128 int
21129 main ()
21130 {
21131 return kstat_open ();
21132 ;
21133 return 0;
21134 }
21135 _ACEOF
21136 if ac_fn_c_try_link "$LINENO"; then :
21137 ac_cv_lib_kstat_kstat_open=yes
21138 else
21139 ac_cv_lib_kstat_kstat_open=no
21140 fi
21141 rm -f core conftest.err conftest.$ac_objext \
21142 conftest$ac_exeext conftest.$ac_ext
21143 LIBS=$ac_check_lib_save_LIBS
21144 fi
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21146 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21147 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21148 cat >>confdefs.h <<_ACEOF
21149 #define HAVE_LIBKSTAT 1
21150 _ACEOF
21151
21152 LIBS="-lkstat $LIBS"
21153
21154 fi
21155
21156 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21157
21158 # AIX has libperfstat which does not require root
21159 if test $gl_func_getloadavg_done = no; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21161 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21162 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21164 else
21165 ac_check_lib_save_LIBS=$LIBS
21166 LIBS="-lperfstat $LIBS"
21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21169
21170 /* Override any GCC internal prototype to avoid an error.
21171 Use char because int might match the return type of a GCC
21172 builtin and then its argument prototype would still apply. */
21173 #ifdef __cplusplus
21174 extern "C"
21175 #endif
21176 char perfstat_cpu_total ();
21177 int
21178 main ()
21179 {
21180 return perfstat_cpu_total ();
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 if ac_fn_c_try_link "$LINENO"; then :
21186 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21187 else
21188 ac_cv_lib_perfstat_perfstat_cpu_total=no
21189 fi
21190 rm -f core conftest.err conftest.$ac_objext \
21191 conftest$ac_exeext conftest.$ac_ext
21192 LIBS=$ac_check_lib_save_LIBS
21193 fi
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21195 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21196 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21197 cat >>confdefs.h <<_ACEOF
21198 #define HAVE_LIBPERFSTAT 1
21199 _ACEOF
21200
21201 LIBS="-lperfstat $LIBS"
21202
21203 fi
21204
21205 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21206 fi
21207
21208 if test $gl_func_getloadavg_done = no; then
21209 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21210 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21211 gl_func_getloadavg_done=yes
21212
21213 $as_echo "#define DGUX 1" >>confdefs.h
21214
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21216 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21217 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21218 $as_echo_n "(cached) " >&6
21219 else
21220 ac_check_lib_save_LIBS=$LIBS
21221 LIBS="-ldgc $LIBS"
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224
21225 /* Override any GCC internal prototype to avoid an error.
21226 Use char because int might match the return type of a GCC
21227 builtin and then its argument prototype would still apply. */
21228 #ifdef __cplusplus
21229 extern "C"
21230 #endif
21231 char dg_sys_info ();
21232 int
21233 main ()
21234 {
21235 return dg_sys_info ();
21236 ;
21237 return 0;
21238 }
21239 _ACEOF
21240 if ac_fn_c_try_link "$LINENO"; then :
21241 ac_cv_lib_dgc_dg_sys_info=yes
21242 else
21243 ac_cv_lib_dgc_dg_sys_info=no
21244 fi
21245 rm -f core conftest.err conftest.$ac_objext \
21246 conftest$ac_exeext conftest.$ac_ext
21247 LIBS=$ac_check_lib_save_LIBS
21248 fi
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21250 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21251 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21252 cat >>confdefs.h <<_ACEOF
21253 #define HAVE_LIBDGC 1
21254 _ACEOF
21255
21256 LIBS="-ldgc $LIBS"
21257
21258 fi
21259
21260 fi
21261
21262
21263 fi
21264 fi
21265 fi
21266
21267
21268 if test "x$gl_save_LIBS" = x; then
21269 GETLOADAVG_LIBS=$LIBS
21270 else
21271 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21272 fi
21273 LIBS=$gl_save_LIBS
21274
21275
21276 # Test whether the system declares getloadavg. Solaris has the function
21277 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21278 for ac_header in sys/loadavg.h
21279 do :
21280 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21281 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21282 cat >>confdefs.h <<_ACEOF
21283 #define HAVE_SYS_LOADAVG_H 1
21284 _ACEOF
21285
21286 fi
21287
21288 done
21289
21290 if test $ac_cv_header_sys_loadavg_h = yes; then
21291 HAVE_SYS_LOADAVG_H=1
21292 else
21293 HAVE_SYS_LOADAVG_H=0
21294 fi
21295 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21296 # include <sys/loadavg.h>
21297 #endif
21298 #include <stdlib.h>
21299 "
21300 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21301
21302 else
21303 HAVE_DECL_GETLOADAVG=0
21304 fi
21305
21306
21307 if test $HAVE_GETLOADAVG = 0; then
21308
21309
21310
21311
21312
21313
21314
21315
21316 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21317
21318
21319 # Figure out what our getloadavg.c needs.
21320
21321
21322
21323 # On HPUX9, an unprivileged user can get load averages this way.
21324 if test $gl_func_getloadavg_done = no; then
21325 for ac_func in pstat_getdynamic
21326 do :
21327 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21328 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_PSTAT_GETDYNAMIC 1
21331 _ACEOF
21332 gl_func_getloadavg_done=yes
21333 fi
21334 done
21335
21336 fi
21337
21338 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21339 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21340 # Irix 4.0.5F has the header but not the library.
21341 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21342 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21343 gl_func_getloadavg_done=yes
21344
21345 $as_echo "#define SVR4 1" >>confdefs.h
21346
21347 fi
21348
21349 if test $gl_func_getloadavg_done = no; then
21350 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21351 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21352 gl_func_getloadavg_done=yes
21353
21354 $as_echo "#define UMAX 1" >>confdefs.h
21355
21356
21357 $as_echo "#define UMAX4_3 1" >>confdefs.h
21358
21359 fi
21360
21361
21362 fi
21363
21364 if test $gl_func_getloadavg_done = no; then
21365 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21366 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21367 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21368
21369 fi
21370
21371
21372 fi
21373
21374 if test $gl_func_getloadavg_done = no; then
21375 for ac_header in mach/mach.h
21376 do :
21377 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21378 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21379 cat >>confdefs.h <<_ACEOF
21380 #define HAVE_MACH_MACH_H 1
21381 _ACEOF
21382
21383 fi
21384
21385 done
21386
21387 fi
21388
21389 for ac_header in nlist.h
21390 do :
21391 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21392 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_NLIST_H 1
21395 _ACEOF
21396 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21397 "
21398 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21399
21400 cat >>confdefs.h <<_ACEOF
21401 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21402 _ACEOF
21403
21404
21405 fi
21406
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21409 #include <nlist.h>
21410 int
21411 main ()
21412 {
21413 struct nlist x;
21414 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21415 x.n_un.n_name = "";
21416 #else
21417 x.n_name = "";
21418 #endif
21419 ;
21420 return 0;
21421 }
21422 _ACEOF
21423 if ac_fn_c_try_link "$LINENO"; then :
21424
21425 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21426
21427 fi
21428 rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21430
21431 fi
21432
21433 done
21434
21435 fi
21436
21437
21438
21439
21440
21441 GNULIB_GETLOADAVG=1
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452 if test $REPLACE_GETOPT = 1; then
21453
21454
21455
21456
21457
21458
21459
21460
21461 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21472
21473
21474
21475
21476 GNULIB_GL_UNISTD_H_GETOPT=1
21477 fi
21478
21479
21480
21481
21482
21483
21484
21485 REPLACE_GETOPT=0
21486 if test -n "$gl_replace_getopt"; then
21487 REPLACE_GETOPT=1
21488 fi
21489
21490 if test $REPLACE_GETOPT = 1; then
21491
21492 GETOPT_H=getopt.h
21493
21494 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21495
21496
21497
21498 fi
21499
21500 if test $REPLACE_GETOPT = 1; then
21501
21502
21503
21504
21505
21506
21507
21508
21509 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21520
21521
21522
21523
21524 GNULIB_GL_UNISTD_H_GETOPT=1
21525 fi
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538 gl_gettimeofday_timezone=void
21539 if test $ac_cv_func_gettimeofday != yes; then
21540 HAVE_GETTIMEOFDAY=0
21541 else
21542
21543
21544
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21546 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21547 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21549 else
21550 if test "$cross_compiling" = yes; then :
21551 # When cross-compiling:
21552 case "$host_os" in
21553 # Guess all is fine on glibc systems.
21554 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21555 # If we don't know, assume the worst.
21556 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21557 esac
21558
21559 else
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21562 #include <string.h>
21563 #include <sys/time.h>
21564 #include <time.h>
21565 #include <stdlib.h>
21566
21567 int
21568 main ()
21569 {
21570
21571 time_t t = 0;
21572 struct tm *lt;
21573 struct tm saved_lt;
21574 struct timeval tv;
21575 lt = localtime (&t);
21576 saved_lt = *lt;
21577 gettimeofday (&tv, NULL);
21578 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21579
21580 ;
21581 return 0;
21582 }
21583 _ACEOF
21584 if ac_fn_c_try_run "$LINENO"; then :
21585 gl_cv_func_gettimeofday_clobber=no
21586 else
21587 gl_cv_func_gettimeofday_clobber=yes
21588 fi
21589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21590 conftest.$ac_objext conftest.beam conftest.$ac_ext
21591 fi
21592
21593 fi
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21595 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21596
21597 case "$gl_cv_func_gettimeofday_clobber" in
21598 *yes)
21599 REPLACE_GETTIMEOFDAY=1
21600
21601
21602 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21603
21604
21605 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21606
21607
21608
21609 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21610
21611 ;;
21612 esac
21613
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21615 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21616 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21618 else
21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21621 #include <sys/time.h>
21622 struct timeval c;
21623 int gettimeofday (struct timeval *restrict, void *restrict);
21624
21625 int
21626 main ()
21627 {
21628 /* glibc uses struct timezone * rather than the POSIX void *
21629 if _GNU_SOURCE is defined. However, since the only portable
21630 use of gettimeofday uses NULL as the second parameter, and
21631 since the glibc definition is actually more typesafe, it is
21632 not worth wrapping this to get a compliant signature. */
21633 int (*f) (struct timeval *restrict, void *restrict)
21634 = gettimeofday;
21635 int x = f (&c, 0);
21636 return !(x | c.tv_sec | c.tv_usec);
21637
21638 ;
21639 return 0;
21640 }
21641 _ACEOF
21642 if ac_fn_c_try_compile "$LINENO"; then :
21643 gl_cv_func_gettimeofday_posix_signature=yes
21644 else
21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21647 #include <sys/time.h>
21648 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21649
21650 int
21651 main ()
21652 {
21653
21654 ;
21655 return 0;
21656 }
21657 _ACEOF
21658 if ac_fn_c_try_compile "$LINENO"; then :
21659 gl_cv_func_gettimeofday_posix_signature=almost
21660 else
21661 gl_cv_func_gettimeofday_posix_signature=no
21662 fi
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 fi
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 fi
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21668 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21669 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21670 gl_gettimeofday_timezone='struct timezone'
21671 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21672 REPLACE_GETTIMEOFDAY=1
21673 fi
21674 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21675 REPLACE_GETTIMEOFDAY=1
21676 fi
21677
21678 fi
21679
21680 cat >>confdefs.h <<_ACEOF
21681 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21682 _ACEOF
21683
21684
21685 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21686
21687
21688
21689
21690
21691
21692
21693
21694 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21695
21696
21697 for ac_header in sys/timeb.h
21698 do :
21699 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21700 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21701 cat >>confdefs.h <<_ACEOF
21702 #define HAVE_SYS_TIMEB_H 1
21703 _ACEOF
21704
21705 fi
21706
21707 done
21708
21709 for ac_func in _ftime
21710 do :
21711 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21712 if test "x$ac_cv_func__ftime" = x""yes; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE__FTIME 1
21715 _ACEOF
21716
21717 fi
21718 done
21719
21720
21721 fi
21722
21723
21724
21725
21726
21727 GNULIB_GETTIMEOFDAY=1
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738 if test $ac_cv_func_lstat = yes; then
21739
21740 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21741 *no)
21742 REPLACE_LSTAT=1
21743 ;;
21744 esac
21745 else
21746 HAVE_LSTAT=0
21747 fi
21748
21749 if test $REPLACE_LSTAT = 1; then
21750
21751
21752
21753
21754
21755
21756
21757
21758 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21759
21760
21761
21762 :
21763
21764 fi
21765
21766
21767
21768
21769
21770 GNULIB_LSTAT=1
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782 if test $APPLE_UNIVERSAL_BUILD = 1; then
21783 # A universal build on Apple Mac OS X platforms.
21784 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21785 # But we need a configuration result that is valid in both modes.
21786 gl_cv_func_working_mktime=no
21787 fi
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21789 $as_echo_n "checking for working mktime... " >&6; }
21790 if test "${gl_cv_func_working_mktime+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 if test "$cross_compiling" = yes; then :
21794 gl_cv_func_working_mktime=no
21795 else
21796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21798 /* Test program from Paul Eggert and Tony Leneis. */
21799 #include <limits.h>
21800 #include <stdlib.h>
21801 #include <time.h>
21802
21803 #ifdef HAVE_UNISTD_H
21804 # include <unistd.h>
21805 #endif
21806
21807 #ifndef HAVE_ALARM
21808 # define alarm(X) /* empty */
21809 #endif
21810
21811 /* Work around redefinition to rpl_putenv by other config tests. */
21812 #undef putenv
21813
21814 static time_t time_t_max;
21815 static time_t time_t_min;
21816
21817 /* Values we'll use to set the TZ environment variable. */
21818 static char *tz_strings[] = {
21819 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21820 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21821 };
21822 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21823
21824 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21825 Based on a problem report from Andreas Jaeger. */
21826 static int
21827 spring_forward_gap ()
21828 {
21829 /* glibc (up to about 1998-10-07) failed this test. */
21830 struct tm tm;
21831
21832 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21833 instead of "TZ=America/Vancouver" in order to detect the bug even
21834 on systems that don't support the Olson extension, or don't have the
21835 full zoneinfo tables installed. */
21836 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21837
21838 tm.tm_year = 98;
21839 tm.tm_mon = 3;
21840 tm.tm_mday = 5;
21841 tm.tm_hour = 2;
21842 tm.tm_min = 0;
21843 tm.tm_sec = 0;
21844 tm.tm_isdst = -1;
21845 return mktime (&tm) != (time_t) -1;
21846 }
21847
21848 static int
21849 mktime_test1 (time_t now)
21850 {
21851 struct tm *lt;
21852 return ! (lt = localtime (&now)) || mktime (lt) == now;
21853 }
21854
21855 static int
21856 mktime_test (time_t now)
21857 {
21858 return (mktime_test1 (now)
21859 && mktime_test1 ((time_t) (time_t_max - now))
21860 && mktime_test1 ((time_t) (time_t_min + now)));
21861 }
21862
21863 static int
21864 irix_6_4_bug ()
21865 {
21866 /* Based on code from Ariel Faigon. */
21867 struct tm tm;
21868 tm.tm_year = 96;
21869 tm.tm_mon = 3;
21870 tm.tm_mday = 0;
21871 tm.tm_hour = 0;
21872 tm.tm_min = 0;
21873 tm.tm_sec = 0;
21874 tm.tm_isdst = -1;
21875 mktime (&tm);
21876 return tm.tm_mon == 2 && tm.tm_mday == 31;
21877 }
21878
21879 static int
21880 bigtime_test (int j)
21881 {
21882 struct tm tm;
21883 time_t now;
21884 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21885 now = mktime (&tm);
21886 if (now != (time_t) -1)
21887 {
21888 struct tm *lt = localtime (&now);
21889 if (! (lt
21890 && lt->tm_year == tm.tm_year
21891 && lt->tm_mon == tm.tm_mon
21892 && lt->tm_mday == tm.tm_mday
21893 && lt->tm_hour == tm.tm_hour
21894 && lt->tm_min == tm.tm_min
21895 && lt->tm_sec == tm.tm_sec
21896 && lt->tm_yday == tm.tm_yday
21897 && lt->tm_wday == tm.tm_wday
21898 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21899 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21900 return 0;
21901 }
21902 return 1;
21903 }
21904
21905 static int
21906 year_2050_test ()
21907 {
21908 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21909 ignoring leap seconds. */
21910 unsigned long int answer = 2527315200UL;
21911
21912 struct tm tm;
21913 time_t t;
21914 tm.tm_year = 2050 - 1900;
21915 tm.tm_mon = 2 - 1;
21916 tm.tm_mday = 1;
21917 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21918 tm.tm_isdst = -1;
21919
21920 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21921 instead of "TZ=America/Vancouver" in order to detect the bug even
21922 on systems that don't support the Olson extension, or don't have the
21923 full zoneinfo tables installed. */
21924 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21925
21926 t = mktime (&tm);
21927
21928 /* Check that the result is either a failure, or close enough
21929 to the correct answer that we can assume the discrepancy is
21930 due to leap seconds. */
21931 return (t == (time_t) -1
21932 || (0 < t && answer - 120 <= t && t <= answer + 120));
21933 }
21934
21935 int
21936 main ()
21937 {
21938 int result = 0;
21939 time_t t, delta;
21940 int i, j;
21941 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21942 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21943
21944 /* This test makes some buggy mktime implementations loop.
21945 Give up after 60 seconds; a mktime slower than that
21946 isn't worth using anyway. */
21947 alarm (60);
21948
21949 time_t_max = (! time_t_signed
21950 ? (time_t) -1
21951 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21952 * 2 + 1));
21953 time_t_min = (! time_t_signed
21954 ? (time_t) 0
21955 : time_t_signed_magnitude
21956 ? ~ (time_t) 0
21957 : ~ time_t_max);
21958
21959 delta = time_t_max / 997; /* a suitable prime number */
21960 for (i = 0; i < N_STRINGS; i++)
21961 {
21962 if (tz_strings[i])
21963 putenv (tz_strings[i]);
21964
21965 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21966 if (! mktime_test (t))
21967 result |= 1;
21968 if ((result & 2) == 0
21969 && ! (mktime_test ((time_t) 1)
21970 && mktime_test ((time_t) (60 * 60))
21971 && mktime_test ((time_t) (60 * 60 * 24))))
21972 result |= 2;
21973
21974 for (j = 1; (result & 4) == 0; j <<= 1)
21975 {
21976 if (! bigtime_test (j))
21977 result |= 4;
21978 if (INT_MAX / 2 < j)
21979 break;
21980 }
21981 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21982 result |= 8;
21983 }
21984 if (! irix_6_4_bug ())
21985 result |= 16;
21986 if (! spring_forward_gap ())
21987 result |= 32;
21988 if (! year_2050_test ())
21989 result |= 64;
21990 return result;
21991 }
21992 _ACEOF
21993 if ac_fn_c_try_run "$LINENO"; then :
21994 gl_cv_func_working_mktime=yes
21995 else
21996 gl_cv_func_working_mktime=no
21997 fi
21998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21999 conftest.$ac_objext conftest.beam conftest.$ac_ext
22000 fi
22001
22002
22003 fi
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22005 $as_echo "$gl_cv_func_working_mktime" >&6; }
22006
22007 if test $gl_cv_func_working_mktime = no; then
22008 REPLACE_MKTIME=1
22009 else
22010 REPLACE_MKTIME=0
22011 fi
22012
22013 if test $REPLACE_MKTIME = 1; then
22014
22015
22016
22017
22018
22019
22020
22021
22022 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22023
22024 :
22025 fi
22026
22027
22028
22029
22030
22031 GNULIB_MKTIME=1
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043 if test $ac_cv_func_pselect = yes; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22045 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22046 if test "${gl_cv_sig_pselect+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22048 else
22049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22050 /* end confdefs.h. */
22051 #include <sys/select.h>
22052
22053 int
22054 main ()
22055 {
22056 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22057 struct timespec const *restrict,
22058 sigset_t const *restrict) = pselect;
22059 return !p;
22060 ;
22061 return 0;
22062 }
22063 _ACEOF
22064 if ac_fn_c_try_link "$LINENO"; then :
22065 gl_cv_sig_pselect=yes
22066 else
22067 gl_cv_sig_pselect=no
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext \
22070 conftest$ac_exeext conftest.$ac_ext
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22073 $as_echo "$gl_cv_sig_pselect" >&6; }
22074
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22076 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22077 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22078 $as_echo_n "(cached) " >&6
22079 else
22080
22081 if test "$cross_compiling" = yes; then :
22082
22083 case "$host_os" in
22084 # Guess yes on glibc systems.
22085 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22086 # If we don't know, assume the worst.
22087 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22088 esac
22089
22090 else
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093
22094 #include <sys/types.h>
22095 #include <sys/time.h>
22096 #if HAVE_SYS_SELECT_H
22097 # include <sys/select.h>
22098 #endif
22099 #include <unistd.h>
22100 #include <errno.h>
22101
22102 int
22103 main ()
22104 {
22105
22106 fd_set set;
22107 dup2(0, 16);
22108 FD_ZERO(&set);
22109 FD_SET(16, &set);
22110 close(16);
22111 struct timespec timeout;
22112 timeout.tv_sec = 0;
22113 timeout.tv_nsec = 5000;
22114 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22115
22116 ;
22117 return 0;
22118 }
22119 _ACEOF
22120 if ac_fn_c_try_run "$LINENO"; then :
22121 gl_cv_func_pselect_detects_ebadf=yes
22122 else
22123 gl_cv_func_pselect_detects_ebadf=no
22124 fi
22125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22126 conftest.$ac_objext conftest.beam conftest.$ac_ext
22127 fi
22128
22129
22130 fi
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22132 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22133 case $gl_cv_func_pselect_detects_ebadf in
22134 *yes) ;;
22135 *) REPLACE_PSELECT=1 ;;
22136 esac
22137 fi
22138
22139 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22140 REPLACE_PSELECT=1
22141 fi
22142
22143 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22144
22145
22146
22147
22148
22149
22150
22151
22152 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22153
22154 fi
22155
22156
22157
22158
22159
22160 GNULIB_PSELECT=1
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170 LIB_PTHREAD_SIGMASK=
22171
22172
22173
22174
22175 if test "$gl_threads_api" = posix; then
22176 if test $ac_cv_func_pthread_sigmask = yes; then
22177 :
22178 else
22179 if test -n "$LIBMULTITHREAD"; then
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22181 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22182 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22183 $as_echo_n "(cached) " >&6
22184 else
22185 gl_save_LIBS="$LIBS"
22186 LIBS="$LIBS $LIBMULTITHREAD"
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189 #include <pthread.h>
22190 #include <signal.h>
22191
22192 int
22193 main ()
22194 {
22195 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22196 ;
22197 return 0;
22198 }
22199
22200 _ACEOF
22201 if ac_fn_c_try_link "$LINENO"; then :
22202 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22203 else
22204 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22205 fi
22206 rm -f core conftest.err conftest.$ac_objext \
22207 conftest$ac_exeext conftest.$ac_ext
22208 LIBS="$gl_save_LIBS"
22209
22210 fi
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22212 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22213 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22214 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22215 else
22216 HAVE_PTHREAD_SIGMASK=0
22217 fi
22218 else
22219 HAVE_PTHREAD_SIGMASK=0
22220 fi
22221 fi
22222 else
22223 if test $ac_cv_func_pthread_sigmask = yes; then
22224 REPLACE_PTHREAD_SIGMASK=1
22225 else
22226 HAVE_PTHREAD_SIGMASK=0
22227 fi
22228 fi
22229
22230
22231
22232
22233 if test $HAVE_PTHREAD_SIGMASK = 1; then
22234
22235
22236 if test -z "$LIB_PTHREAD_SIGMASK"; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22238 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22239 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22241 else
22242
22243 if test "$cross_compiling" = yes; then :
22244
22245 case "$host_os" in
22246 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22247 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22248 *)
22249 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22250 esac
22251
22252 else
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22255
22256 #include <pthread.h>
22257 #include <signal.h>
22258 #include <stddef.h>
22259 int main ()
22260 {
22261 sigset_t set;
22262 sigemptyset (&set);
22263 return pthread_sigmask (1729, &set, NULL) != 0;
22264 }
22265 _ACEOF
22266 if ac_fn_c_try_run "$LINENO"; then :
22267 gl_cv_func_pthread_sigmask_in_libc_works=no
22268 else
22269 gl_cv_func_pthread_sigmask_in_libc_works=yes
22270 fi
22271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22272 conftest.$ac_objext conftest.beam conftest.$ac_ext
22273 fi
22274
22275
22276 fi
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22278 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22279 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22280 *no)
22281 REPLACE_PTHREAD_SIGMASK=1
22282
22283 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22284
22285 ;;
22286 esac
22287 fi
22288
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22290 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22291 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22292 $as_echo_n "(cached) " >&6
22293 else
22294
22295 gl_save_LIBS="$LIBS"
22296 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22297 if test "$cross_compiling" = yes; then :
22298 case "$host_os" in
22299 cygwin*)
22300 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22301 *)
22302 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22303 esac
22304
22305 else
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308
22309 #include <pthread.h>
22310 #include <signal.h>
22311 #include <stddef.h>
22312 int main ()
22313 {
22314 sigset_t set;
22315 sigemptyset (&set);
22316 if (pthread_sigmask (1729, &set, NULL) == -1)
22317 return 1;
22318 return 0;
22319 }
22320 _ACEOF
22321 if ac_fn_c_try_run "$LINENO"; then :
22322 gl_cv_func_pthread_sigmask_return_works=yes
22323 else
22324 gl_cv_func_pthread_sigmask_return_works=no
22325 fi
22326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22327 conftest.$ac_objext conftest.beam conftest.$ac_ext
22328 fi
22329
22330 LIBS="$gl_save_LIBS"
22331
22332 fi
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22334 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22335 case "$gl_cv_func_pthread_sigmask_return_works" in
22336 *no)
22337 REPLACE_PTHREAD_SIGMASK=1
22338
22339 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22340
22341 ;;
22342 esac
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22345 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22346 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22348 else
22349
22350 case "$host_os" in
22351 irix*)
22352 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22353 *)
22354 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22355 esac
22356 gl_save_LIBS="$LIBS"
22357 LIBS="$LIBS $LIBMULTITHREAD"
22358 if test "$cross_compiling" = yes; then :
22359 :
22360 else
22361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22363
22364 #include <pthread.h>
22365 #include <signal.h>
22366 #include <stdio.h>
22367 #include <stdlib.h>
22368 #include <unistd.h>
22369 static volatile int sigint_occurred;
22370 static void
22371 sigint_handler (int sig)
22372 {
22373 sigint_occurred++;
22374 }
22375 int main ()
22376 {
22377 sigset_t set;
22378 int pid = getpid ();
22379 char command[80];
22380 signal (SIGINT, sigint_handler);
22381 sigemptyset (&set);
22382 sigaddset (&set, SIGINT);
22383 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22384 return 1;
22385 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22386 if (!(system (command) == 0))
22387 return 2;
22388 sleep (2);
22389 if (!(sigint_occurred == 0))
22390 return 3;
22391 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22392 return 4;
22393 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22394 return 5;
22395 return 0;
22396 }
22397 _ACEOF
22398 if ac_fn_c_try_run "$LINENO"; then :
22399 :
22400 else
22401 gl_cv_func_pthread_sigmask_unblock_works=no
22402 fi
22403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22404 conftest.$ac_objext conftest.beam conftest.$ac_ext
22405 fi
22406
22407 LIBS="$gl_save_LIBS"
22408
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22411 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22412 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22413 *no)
22414 REPLACE_PTHREAD_SIGMASK=1
22415
22416 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22417
22418 ;;
22419 esac
22420 fi
22421
22422 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22423
22424
22425
22426
22427
22428
22429
22430
22431 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22432
22433
22434 if test $HAVE_PTHREAD_SIGMASK = 1; then
22435
22436 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22437
22438 fi
22439
22440 fi
22441
22442
22443
22444
22445
22446 GNULIB_PTHREAD_SIGMASK=1
22447
22448
22449
22450
22451
22452
22453
22454
22455 if test $ac_cv_func_readlink = no; then
22456 HAVE_READLINK=0
22457 else
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22459 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22460 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22465 #include <unistd.h>
22466 /* Cause compilation failure if original declaration has wrong type. */
22467 ssize_t readlink (const char *, char *, size_t);
22468 int
22469 main ()
22470 {
22471
22472 ;
22473 return 0;
22474 }
22475 _ACEOF
22476 if ac_fn_c_try_compile "$LINENO"; then :
22477 gl_cv_decl_readlink_works=yes
22478 else
22479 gl_cv_decl_readlink_works=no
22480 fi
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22484 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22486 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22487 if test "${gl_cv_func_readlink_works+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 # We have readlink, so assume ln -s works.
22491 ln -s conftest.no-such conftest.link
22492 ln -s conftest.link conftest.lnk2
22493 if test "$cross_compiling" = yes; then :
22494 case "$host_os" in
22495 # Guess yes on glibc systems.
22496 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22497 # If we don't know, assume the worst.
22498 *) gl_cv_func_readlink_works="guessing no" ;;
22499 esac
22500
22501 else
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22504 #include <unistd.h>
22505
22506 int
22507 main ()
22508 {
22509 char buf[20];
22510 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22511 ;
22512 return 0;
22513 }
22514 _ACEOF
22515 if ac_fn_c_try_run "$LINENO"; then :
22516 gl_cv_func_readlink_works=yes
22517 else
22518 gl_cv_func_readlink_works=no
22519 fi
22520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22521 conftest.$ac_objext conftest.beam conftest.$ac_ext
22522 fi
22523
22524 rm -f conftest.link conftest.lnk2
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22527 $as_echo "$gl_cv_func_readlink_works" >&6; }
22528 case "$gl_cv_func_readlink_works" in
22529 *yes)
22530 if test "$gl_cv_decl_readlink_works" != yes; then
22531 REPLACE_READLINK=1
22532 fi
22533 ;;
22534 *)
22535
22536 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22537
22538 REPLACE_READLINK=1
22539 ;;
22540 esac
22541 fi
22542
22543 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22544
22545
22546
22547
22548
22549
22550
22551
22552 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22553
22554
22555 :
22556
22557 fi
22558
22559
22560
22561
22562
22563 GNULIB_READLINK=1
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580 if test $gl_cv_have_include_next = yes; then
22581 gl_cv_next_signal_h='<'signal.h'>'
22582 else
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22584 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22585 if test "${gl_cv_next_signal_h+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22591 #include <signal.h>
22592
22593 _ACEOF
22594 case "$host_os" in
22595 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22596 *) gl_absname_cpp="$ac_cpp" ;;
22597 esac
22598
22599 case "$host_os" in
22600 mingw*)
22601 gl_dirsep_regex='[/\\]'
22602 ;;
22603 *)
22604 gl_dirsep_regex='\/'
22605 ;;
22606 esac
22607 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22608
22609 gl_header_literal_regex=`echo 'signal.h' \
22610 | sed -e "$gl_make_literal_regex_sed"`
22611 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22613 s|^/[^/]|//&|
22614 p
22615 q
22616 }'
22617 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22618 sed -n "$gl_absolute_header_sed"`'"'
22619
22620
22621 fi
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22623 $as_echo "$gl_cv_next_signal_h" >&6; }
22624 fi
22625 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22626
22627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22629 gl_next_as_first_directive='<'signal.h'>'
22630 else
22631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22632 gl_next_as_first_directive=$gl_cv_next_signal_h
22633 fi
22634 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22635
22636
22637
22638
22639
22640 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22641 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22642 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22643 #include <signal.h>
22644
22645 "
22646 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22647
22648 else
22649 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22650 fi
22651
22652
22653
22654
22655
22656
22657
22658 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22659 #include <signal.h>
22660
22661 "
22662 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22663
22664 else
22665 HAVE_SIGHANDLER_T=0
22666 fi
22667
22668
22669
22670
22671 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22672 /* <sys/types.h> is not needed according to POSIX, but the
22673 <sys/socket.h> in i386-unknown-freebsd4.10 and
22674 powerpc-apple-darwin5.5 required it. */
22675 #include <sys/types.h>
22676 #if HAVE_SYS_SOCKET_H
22677 # include <sys/socket.h>
22678 #elif HAVE_WS2TCPIP_H
22679 # include <ws2tcpip.h>
22680 #endif
22681
22682 "
22683 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22684
22685 else
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22687 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22688 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 # Systems have either "struct sockaddr *" or
22692 # "void *" as the second argument to getpeername
22693 gl_cv_socklen_t_equiv=
22694 for arg2 in "struct sockaddr" void; do
22695 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697 /* end confdefs.h. */
22698 #include <sys/types.h>
22699 #include <sys/socket.h>
22700
22701 int getpeername (int, $arg2 *, $t *);
22702 int
22703 main ()
22704 {
22705 $t len;
22706 getpeername (0, 0, &len);
22707 ;
22708 return 0;
22709 }
22710 _ACEOF
22711 if ac_fn_c_try_compile "$LINENO"; then :
22712 gl_cv_socklen_t_equiv="$t"
22713 fi
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 test "$gl_cv_socklen_t_equiv" != "" && break
22716 done
22717 test "$gl_cv_socklen_t_equiv" != "" && break
22718 done
22719
22720 fi
22721
22722 if test "$gl_cv_socklen_t_equiv" = ""; then
22723 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22724 fi
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22726 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22727
22728 cat >>confdefs.h <<_ACEOF
22729 #define socklen_t $gl_cv_socklen_t_equiv
22730 _ACEOF
22731
22732 fi
22733
22734
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22736 $as_echo_n "checking for ssize_t... " >&6; }
22737 if test "${gt_cv_ssize_t+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22739 else
22740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741 /* end confdefs.h. */
22742 #include <sys/types.h>
22743 int
22744 main ()
22745 {
22746 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22747 return !x;
22748 ;
22749 return 0;
22750 }
22751 _ACEOF
22752 if ac_fn_c_try_compile "$LINENO"; then :
22753 gt_cv_ssize_t=yes
22754 else
22755 gt_cv_ssize_t=no
22756 fi
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22760 $as_echo "$gt_cv_ssize_t" >&6; }
22761 if test $gt_cv_ssize_t = no; then
22762
22763 $as_echo "#define ssize_t int" >>confdefs.h
22764
22765 fi
22766
22767
22768
22769
22770
22771 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22772 #include <sys/stat.h>
22773 "
22774 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22775
22776 cat >>confdefs.h <<_ACEOF
22777 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22778 _ACEOF
22779
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22781 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22782 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22784 else
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22787
22788 #include <sys/types.h>
22789 #include <sys/stat.h>
22790 #if HAVE_SYS_TIME_H
22791 # include <sys/time.h>
22792 #endif
22793 #include <time.h>
22794 struct timespec ts;
22795 struct stat st;
22796
22797 int
22798 main ()
22799 {
22800
22801 st.st_atim = ts;
22802
22803 ;
22804 return 0;
22805 }
22806 _ACEOF
22807 if ac_fn_c_try_compile "$LINENO"; then :
22808 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22809 else
22810 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22811 fi
22812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 fi
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22815 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22816 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22817
22818 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22819
22820 fi
22821 else
22822 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
22823 #include <sys/stat.h>
22824 "
22825 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22826
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22829 _ACEOF
22830
22831
22832 else
22833 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22834 #include <sys/stat.h>
22835 "
22836 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22837
22838 cat >>confdefs.h <<_ACEOF
22839 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22840 _ACEOF
22841
22842
22843 else
22844 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
22845 #include <sys/stat.h>
22846 "
22847 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22848
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22851 _ACEOF
22852
22853
22854 fi
22855
22856 fi
22857
22858 fi
22859
22860 fi
22861
22862
22863
22864
22865
22866 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
22867 #include <sys/stat.h>
22868 "
22869 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22870
22871 cat >>confdefs.h <<_ACEOF
22872 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22873 _ACEOF
22874
22875
22876 else
22877 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22878 #include <sys/stat.h>
22879 "
22880 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22881
22882 cat >>confdefs.h <<_ACEOF
22883 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22884 _ACEOF
22885
22886
22887 else
22888 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
22889 #include <sys/stat.h>
22890 "
22891 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22892
22893 cat >>confdefs.h <<_ACEOF
22894 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22895 _ACEOF
22896
22897
22898 fi
22899
22900 fi
22901
22902 fi
22903
22904
22905
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22907 $as_echo_n "checking for working stdalign.h... " >&6; }
22908 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22910 else
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22913 #include <stdalign.h>
22914 #include <stddef.h>
22915
22916 /* Test that alignof yields a result consistent with offsetof.
22917 This catches GCC bug 52023
22918 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22919 #ifdef __cplusplus
22920 template <class t> struct alignof_helper { char a; t b; };
22921 # define ao(type) offsetof (alignof_helper<type>, b)
22922 #else
22923 # define ao(type) offsetof (struct { char a; type b; }, b)
22924 #endif
22925 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22926 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22927 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22928
22929 /* Test _Alignas only on platforms where gnulib can help. */
22930 #if \
22931 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22932 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22933 int alignas (8) alignas_int = 1;
22934 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22935 #endif
22936
22937 int
22938 main ()
22939 {
22940
22941 ;
22942 return 0;
22943 }
22944 _ACEOF
22945 if ac_fn_c_try_compile "$LINENO"; then :
22946 gl_cv_header_working_stdalign_h=yes
22947 else
22948 gl_cv_header_working_stdalign_h=no
22949 fi
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 fi
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22953 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22954
22955 if test $gl_cv_header_working_stdalign_h = yes; then
22956 STDALIGN_H=''
22957 else
22958 STDALIGN_H='stdalign.h'
22959 fi
22960
22961
22962 if test -n "$STDALIGN_H"; then
22963 GL_GENERATE_STDALIGN_H_TRUE=
22964 GL_GENERATE_STDALIGN_H_FALSE='#'
22965 else
22966 GL_GENERATE_STDALIGN_H_TRUE='#'
22967 GL_GENERATE_STDALIGN_H_FALSE=
22968 fi
22969
22970
22971
22972 STDARG_H=''
22973 NEXT_STDARG_H='<stdarg.h>'
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22975 $as_echo_n "checking for va_copy... " >&6; }
22976 if test "${gl_cv_func_va_copy+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22982 #include <stdarg.h>
22983 int
22984 main ()
22985 {
22986
22987 #ifndef va_copy
22988 void (*func) (va_list, va_list) = va_copy;
22989 #endif
22990
22991 ;
22992 return 0;
22993 }
22994 _ACEOF
22995 if ac_fn_c_try_compile "$LINENO"; then :
22996 gl_cv_func_va_copy=yes
22997 else
22998 gl_cv_func_va_copy=no
22999 fi
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001 fi
23002
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23004 $as_echo "$gl_cv_func_va_copy" >&6; }
23005 if test $gl_cv_func_va_copy = no; then
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h. */
23008 #if defined _AIX && !defined __GNUC__
23009 AIX vaccine
23010 #endif
23011
23012 _ACEOF
23013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23014 $EGREP "vaccine" >/dev/null 2>&1; then :
23015 gl_aixcc=yes
23016 else
23017 gl_aixcc=no
23018 fi
23019 rm -f conftest*
23020
23021 if test $gl_aixcc = yes; then
23022 STDARG_H=stdarg.h
23023
23024
23025
23026
23027
23028
23029
23030
23031 if test $gl_cv_have_include_next = yes; then
23032 gl_cv_next_stdarg_h='<'stdarg.h'>'
23033 else
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23035 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23036 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23037 $as_echo_n "(cached) " >&6
23038 else
23039
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23042 #include <stdarg.h>
23043
23044 _ACEOF
23045 case "$host_os" in
23046 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23047 *) gl_absname_cpp="$ac_cpp" ;;
23048 esac
23049
23050 case "$host_os" in
23051 mingw*)
23052 gl_dirsep_regex='[/\\]'
23053 ;;
23054 *)
23055 gl_dirsep_regex='\/'
23056 ;;
23057 esac
23058 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23059
23060 gl_header_literal_regex=`echo 'stdarg.h' \
23061 | sed -e "$gl_make_literal_regex_sed"`
23062 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23064 s|^/[^/]|//&|
23065 p
23066 q
23067 }'
23068 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23069 sed -n "$gl_absolute_header_sed"`'"'
23070
23071
23072 fi
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23074 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23075 fi
23076 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23077
23078 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23080 gl_next_as_first_directive='<'stdarg.h'>'
23081 else
23082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23083 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23084 fi
23085 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23086
23087
23088
23089
23090 if test "$gl_cv_next_stdarg_h" = '""'; then
23091 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23092 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23093 fi
23094 else
23095
23096 saved_as_echo_n="$as_echo_n"
23097 as_echo_n=':'
23098 if test "${gl_cv_func___va_copy+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23100 else
23101
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23104 #include <stdarg.h>
23105 int
23106 main ()
23107 {
23108
23109 #ifndef __va_copy
23110 error, bail out
23111 #endif
23112
23113 ;
23114 return 0;
23115 }
23116 _ACEOF
23117 if ac_fn_c_try_compile "$LINENO"; then :
23118 gl_cv_func___va_copy=yes
23119 else
23120 gl_cv_func___va_copy=no
23121 fi
23122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23123 fi
23124
23125 as_echo_n="$saved_as_echo_n"
23126
23127 if test $gl_cv_func___va_copy = yes; then
23128
23129 $as_echo "#define va_copy __va_copy" >>confdefs.h
23130
23131 else
23132
23133
23134 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23135
23136 fi
23137 fi
23138 fi
23139
23140 if test -n "$STDARG_H"; then
23141 GL_GENERATE_STDARG_H_TRUE=
23142 GL_GENERATE_STDARG_H_FALSE='#'
23143 else
23144 GL_GENERATE_STDARG_H_TRUE='#'
23145 GL_GENERATE_STDARG_H_FALSE=
23146 fi
23147
23148
23149
23150
23151
23152
23153 # Define two additional variables used in the Makefile substitution.
23154
23155 if test "$ac_cv_header_stdbool_h" = yes; then
23156 STDBOOL_H=''
23157 else
23158 STDBOOL_H='stdbool.h'
23159 fi
23160
23161 if test -n "$STDBOOL_H"; then
23162 GL_GENERATE_STDBOOL_H_TRUE=
23163 GL_GENERATE_STDBOOL_H_FALSE='#'
23164 else
23165 GL_GENERATE_STDBOOL_H_TRUE='#'
23166 GL_GENERATE_STDBOOL_H_FALSE=
23167 fi
23168
23169
23170 if test "$ac_cv_type__Bool" = yes; then
23171 HAVE__BOOL=1
23172 else
23173 HAVE__BOOL=0
23174 fi
23175
23176
23177
23178
23179
23180 STDDEF_H=
23181 if test $gt_cv_c_wchar_t = no; then
23182 HAVE_WCHAR_T=0
23183 STDDEF_H=stddef.h
23184 fi
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23186 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23187 if test "${gl_cv_decl_null_works+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23189 else
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 #include <stddef.h>
23193 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23194
23195 int
23196 main ()
23197 {
23198
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204 gl_cv_decl_null_works=yes
23205 else
23206 gl_cv_decl_null_works=no
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 fi
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23211 $as_echo "$gl_cv_decl_null_works" >&6; }
23212 if test $gl_cv_decl_null_works = no; then
23213 REPLACE_NULL=1
23214 STDDEF_H=stddef.h
23215 fi
23216
23217 if test -n "$STDDEF_H"; then
23218 GL_GENERATE_STDDEF_H_TRUE=
23219 GL_GENERATE_STDDEF_H_FALSE='#'
23220 else
23221 GL_GENERATE_STDDEF_H_TRUE='#'
23222 GL_GENERATE_STDDEF_H_FALSE=
23223 fi
23224
23225 if test -n "$STDDEF_H"; then
23226
23227
23228
23229
23230
23231
23232
23233
23234 if test $gl_cv_have_include_next = yes; then
23235 gl_cv_next_stddef_h='<'stddef.h'>'
23236 else
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23238 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23239 if test "${gl_cv_next_stddef_h+set}" = set; then :
23240 $as_echo_n "(cached) " >&6
23241 else
23242
23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23245 #include <stddef.h>
23246
23247 _ACEOF
23248 case "$host_os" in
23249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23250 *) gl_absname_cpp="$ac_cpp" ;;
23251 esac
23252
23253 case "$host_os" in
23254 mingw*)
23255 gl_dirsep_regex='[/\\]'
23256 ;;
23257 *)
23258 gl_dirsep_regex='\/'
23259 ;;
23260 esac
23261 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23262
23263 gl_header_literal_regex=`echo 'stddef.h' \
23264 | sed -e "$gl_make_literal_regex_sed"`
23265 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23267 s|^/[^/]|//&|
23268 p
23269 q
23270 }'
23271 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23272 sed -n "$gl_absolute_header_sed"`'"'
23273
23274
23275 fi
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23277 $as_echo "$gl_cv_next_stddef_h" >&6; }
23278 fi
23279 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23280
23281 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23283 gl_next_as_first_directive='<'stddef.h'>'
23284 else
23285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23286 gl_next_as_first_directive=$gl_cv_next_stddef_h
23287 fi
23288 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23289
23290
23291
23292
23293 fi
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307 if test $gl_cv_have_include_next = yes; then
23308 gl_cv_next_stdio_h='<'stdio.h'>'
23309 else
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23311 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23312 if test "${gl_cv_next_stdio_h+set}" = set; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23318 #include <stdio.h>
23319
23320 _ACEOF
23321 case "$host_os" in
23322 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23323 *) gl_absname_cpp="$ac_cpp" ;;
23324 esac
23325
23326 case "$host_os" in
23327 mingw*)
23328 gl_dirsep_regex='[/\\]'
23329 ;;
23330 *)
23331 gl_dirsep_regex='\/'
23332 ;;
23333 esac
23334 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23335
23336 gl_header_literal_regex=`echo 'stdio.h' \
23337 | sed -e "$gl_make_literal_regex_sed"`
23338 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23339 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23340 s|^/[^/]|//&|
23341 p
23342 q
23343 }'
23344 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23345 sed -n "$gl_absolute_header_sed"`'"'
23346
23347
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23350 $as_echo "$gl_cv_next_stdio_h" >&6; }
23351 fi
23352 NEXT_STDIO_H=$gl_cv_next_stdio_h
23353
23354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23356 gl_next_as_first_directive='<'stdio.h'>'
23357 else
23358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23359 gl_next_as_first_directive=$gl_cv_next_stdio_h
23360 fi
23361 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23362
23363
23364
23365
23366
23367 GNULIB_FSCANF=1
23368
23369
23370 cat >>confdefs.h <<_ACEOF
23371 #define GNULIB_FSCANF 1
23372 _ACEOF
23373
23374
23375 GNULIB_SCANF=1
23376
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define GNULIB_SCANF 1
23380 _ACEOF
23381
23382
23383 GNULIB_FGETC=1
23384 GNULIB_GETC=1
23385 GNULIB_GETCHAR=1
23386 GNULIB_FGETS=1
23387 GNULIB_FREAD=1
23388
23389
23390 GNULIB_FPRINTF=1
23391 GNULIB_PRINTF=1
23392 GNULIB_VFPRINTF=1
23393 GNULIB_VPRINTF=1
23394 GNULIB_FPUTC=1
23395 GNULIB_PUTC=1
23396 GNULIB_PUTCHAR=1
23397 GNULIB_FPUTS=1
23398 GNULIB_PUTS=1
23399 GNULIB_FWRITE=1
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415 if test $gl_cv_have_include_next = yes; then
23416 gl_cv_next_stdlib_h='<'stdlib.h'>'
23417 else
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23419 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23420 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23421 $as_echo_n "(cached) " >&6
23422 else
23423
23424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425 /* end confdefs.h. */
23426 #include <stdlib.h>
23427
23428 _ACEOF
23429 case "$host_os" in
23430 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23431 *) gl_absname_cpp="$ac_cpp" ;;
23432 esac
23433
23434 case "$host_os" in
23435 mingw*)
23436 gl_dirsep_regex='[/\\]'
23437 ;;
23438 *)
23439 gl_dirsep_regex='\/'
23440 ;;
23441 esac
23442 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23443
23444 gl_header_literal_regex=`echo 'stdlib.h' \
23445 | sed -e "$gl_make_literal_regex_sed"`
23446 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23448 s|^/[^/]|//&|
23449 p
23450 q
23451 }'
23452 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23453 sed -n "$gl_absolute_header_sed"`'"'
23454
23455
23456 fi
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23458 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23459 fi
23460 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23461
23462 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23464 gl_next_as_first_directive='<'stdlib.h'>'
23465 else
23466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23467 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23468 fi
23469 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23480
23481
23482
23483
23484
23485
23486
23487 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23488
23489
23490
23491
23492
23493
23494
23495
23496 if test "$ac_cv_have_decl_strtoimax" != yes; then
23497 HAVE_DECL_STRTOIMAX=0
23498 fi
23499
23500 if test $ac_cv_func_strtoimax = yes; then
23501 HAVE_STRTOIMAX=1
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23503 $as_echo_n "checking whether strtoimax works... " >&6; }
23504 if test "${gl_cv_func_strtoimax+set}" = set; then :
23505 $as_echo_n "(cached) " >&6
23506 else
23507 if test "$cross_compiling" = yes; then :
23508 case "$host_os" in
23509 # Guess no on AIX 5.
23510 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23511 # Guess yes otherwise.
23512 *) gl_cv_func_strtoimax="guessing yes" ;;
23513 esac
23514
23515 else
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23518
23519 #include <errno.h>
23520 #include <string.h>
23521 #include <inttypes.h>
23522 int main ()
23523 {
23524 if (sizeof (intmax_t) > sizeof (int))
23525 {
23526 const char *s = "4294967295";
23527 char *p;
23528 intmax_t res;
23529 errno = 0;
23530 res = strtoimax (s, &p, 10);
23531 if (p != s + strlen (s))
23532 return 1;
23533 if (errno != 0)
23534 return 2;
23535 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23536 return 3;
23537 }
23538 else
23539 {
23540 const char *s = "2147483647";
23541 char *p;
23542 intmax_t res;
23543 errno = 0;
23544 res = strtoimax (s, &p, 10);
23545 if (p != s + strlen (s))
23546 return 1;
23547 if (errno != 0)
23548 return 2;
23549 if (res != 2147483647)
23550 return 3;
23551 }
23552 return 0;
23553 }
23554
23555 _ACEOF
23556 if ac_fn_c_try_run "$LINENO"; then :
23557 gl_cv_func_strtoimax=yes
23558 else
23559 gl_cv_func_strtoimax=no
23560 fi
23561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23562 conftest.$ac_objext conftest.beam conftest.$ac_ext
23563 fi
23564
23565
23566 fi
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23568 $as_echo "$gl_cv_func_strtoimax" >&6; }
23569 case "$gl_cv_func_strtoimax" in
23570 *no) REPLACE_STRTOIMAX=1 ;;
23571 esac
23572 else
23573 HAVE_STRTOIMAX=0
23574 fi
23575
23576 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23577
23578
23579
23580
23581
23582
23583
23584
23585 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23586
23587
23588 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23589 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23590 ac_have_decl=1
23591 else
23592 ac_have_decl=0
23593 fi
23594
23595 cat >>confdefs.h <<_ACEOF
23596 #define HAVE_DECL_STRTOLL $ac_have_decl
23597 _ACEOF
23598
23599
23600
23601 fi
23602
23603
23604
23605
23606
23607 GNULIB_STRTOIMAX=1
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617 if test "$ac_cv_have_decl_strtoumax" != yes; then
23618 HAVE_DECL_STRTOUMAX=0
23619 fi
23620
23621 if test $ac_cv_func_strtoumax = no; then
23622
23623
23624
23625
23626
23627
23628
23629
23630 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23631
23632
23633 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23634 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23635 ac_have_decl=1
23636 else
23637 ac_have_decl=0
23638 fi
23639
23640 cat >>confdefs.h <<_ACEOF
23641 #define HAVE_DECL_STRTOULL $ac_have_decl
23642 _ACEOF
23643
23644
23645
23646 fi
23647
23648
23649
23650
23651
23652 GNULIB_STRTOUMAX=1
23653
23654
23655
23656
23657
23658
23659
23660 if test $ac_cv_func_symlink = no; then
23661 HAVE_SYMLINK=0
23662 else
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23664 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23665 if test "${gl_cv_func_symlink_works+set}" = set; then :
23666 $as_echo_n "(cached) " >&6
23667 else
23668 if test "$cross_compiling" = yes; then :
23669 case "$host_os" in
23670 # Guess yes on glibc systems.
23671 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23672 # If we don't know, assume the worst.
23673 *) gl_cv_func_symlink_works="guessing no" ;;
23674 esac
23675
23676 else
23677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23678 /* end confdefs.h. */
23679 #include <unistd.h>
23680
23681 int
23682 main ()
23683 {
23684 int result = 0;
23685 if (!symlink ("a", "conftest.link/"))
23686 result |= 1;
23687 if (symlink ("conftest.f", "conftest.lnk2"))
23688 result |= 2;
23689 else if (!symlink ("a", "conftest.lnk2/"))
23690 result |= 4;
23691 return result;
23692
23693 ;
23694 return 0;
23695 }
23696 _ACEOF
23697 if ac_fn_c_try_run "$LINENO"; then :
23698 gl_cv_func_symlink_works=yes
23699 else
23700 gl_cv_func_symlink_works=no
23701 fi
23702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23703 conftest.$ac_objext conftest.beam conftest.$ac_ext
23704 fi
23705
23706 rm -f conftest.f conftest.link conftest.lnk2
23707 fi
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23709 $as_echo "$gl_cv_func_symlink_works" >&6; }
23710 case "$gl_cv_func_symlink_works" in
23711 *yes) ;;
23712 *)
23713 REPLACE_SYMLINK=1
23714 ;;
23715 esac
23716 fi
23717
23718 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23719
23720
23721
23722
23723
23724
23725
23726
23727 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23728
23729 fi
23730
23731
23732
23733
23734
23735 GNULIB_SYMLINK=1
23736
23737
23738
23739
23740
23741
23742
23743
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23745 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23746 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23748 else
23749
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23752 #include <sys/select.h>
23753 int
23754 main ()
23755 {
23756 struct timeval b;
23757 ;
23758 return 0;
23759 }
23760 _ACEOF
23761 if ac_fn_c_try_compile "$LINENO"; then :
23762 gl_cv_header_sys_select_h_selfcontained=yes
23763 else
23764 gl_cv_header_sys_select_h_selfcontained=no
23765 fi
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770 #include <sys/select.h>
23771 int
23772 main ()
23773 {
23774 int memset; int bzero;
23775 ;
23776 return 0;
23777 }
23778
23779 _ACEOF
23780 if ac_fn_c_try_compile "$LINENO"; then :
23781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783 #include <sys/select.h>
23784 int
23785 main ()
23786 {
23787
23788 #undef memset
23789 #define memset nonexistent_memset
23790 extern
23791 #ifdef __cplusplus
23792 "C"
23793 #endif
23794 void *memset (void *, int, unsigned long);
23795 #undef bzero
23796 #define bzero nonexistent_bzero
23797 extern
23798 #ifdef __cplusplus
23799 "C"
23800 #endif
23801 void bzero (void *, unsigned long);
23802 fd_set fds;
23803 FD_ZERO (&fds);
23804
23805 ;
23806 return 0;
23807 }
23808
23809 _ACEOF
23810 if ac_fn_c_try_link "$LINENO"; then :
23811
23812 else
23813 gl_cv_header_sys_select_h_selfcontained=no
23814 fi
23815 rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
23817
23818 fi
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 fi
23821
23822 fi
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23824 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834 if test $gl_cv_have_include_next = yes; then
23835 gl_cv_next_sys_select_h='<'sys/select.h'>'
23836 else
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23838 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23839 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23841 else
23842
23843 if test $ac_cv_header_sys_select_h = yes; then
23844
23845
23846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848 #include <sys/select.h>
23849
23850 _ACEOF
23851 case "$host_os" in
23852 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23853 *) gl_absname_cpp="$ac_cpp" ;;
23854 esac
23855
23856 case "$host_os" in
23857 mingw*)
23858 gl_dirsep_regex='[/\\]'
23859 ;;
23860 *)
23861 gl_dirsep_regex='\/'
23862 ;;
23863 esac
23864 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23865
23866 gl_header_literal_regex=`echo 'sys/select.h' \
23867 | sed -e "$gl_make_literal_regex_sed"`
23868 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23869 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23870 s|^/[^/]|//&|
23871 p
23872 q
23873 }'
23874 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23875 sed -n "$gl_absolute_header_sed"`'"'
23876 else
23877 gl_cv_next_sys_select_h='<'sys/select.h'>'
23878 fi
23879
23880
23881 fi
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23883 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23884 fi
23885 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23886
23887 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23889 gl_next_as_first_directive='<'sys/select.h'>'
23890 else
23891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23892 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23893 fi
23894 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23895
23896
23897
23898
23899 if test $ac_cv_header_sys_select_h = yes; then
23900 HAVE_SYS_SELECT_H=1
23901 else
23902 HAVE_SYS_SELECT_H=0
23903 fi
23904
23905
23906
23907
23908
23909 if test $ac_cv_header_sys_socket_h != yes; then
23910 for ac_header in winsock2.h
23911 do :
23912 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23913 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23914 cat >>confdefs.h <<_ACEOF
23915 #define HAVE_WINSOCK2_H 1
23916 _ACEOF
23917
23918 fi
23919
23920 done
23921
23922 fi
23923 if test "$ac_cv_header_winsock2_h" = yes; then
23924 HAVE_WINSOCK2_H=1
23925 UNISTD_H_HAVE_WINSOCK2_H=1
23926 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23927 else
23928 HAVE_WINSOCK2_H=0
23929 fi
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952 if test $gl_cv_have_include_next = yes; then
23953 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23954 else
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23956 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23957 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960
23961 if test $ac_cv_header_sys_stat_h = yes; then
23962
23963
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h. */
23966 #include <sys/stat.h>
23967
23968 _ACEOF
23969 case "$host_os" in
23970 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23971 *) gl_absname_cpp="$ac_cpp" ;;
23972 esac
23973
23974 case "$host_os" in
23975 mingw*)
23976 gl_dirsep_regex='[/\\]'
23977 ;;
23978 *)
23979 gl_dirsep_regex='\/'
23980 ;;
23981 esac
23982 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23983
23984 gl_header_literal_regex=`echo 'sys/stat.h' \
23985 | sed -e "$gl_make_literal_regex_sed"`
23986 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23988 s|^/[^/]|//&|
23989 p
23990 q
23991 }'
23992 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23993 sed -n "$gl_absolute_header_sed"`'"'
23994 else
23995 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23996 fi
23997
23998
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24001 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24002 fi
24003 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24004
24005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24007 gl_next_as_first_directive='<'sys/stat.h'>'
24008 else
24009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24010 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24011 fi
24012 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24025
24026 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24027
24028 fi
24029
24030 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24031 #include <sys/stat.h>
24032 "
24033 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24034
24035 else
24036
24037 $as_echo "#define nlink_t int" >>confdefs.h
24038
24039 fi
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24059 "
24060 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24061 ac_have_decl=1
24062 else
24063 ac_have_decl=0
24064 fi
24065
24066 cat >>confdefs.h <<_ACEOF
24067 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24068 _ACEOF
24069
24070 if test $ac_cv_have_decl_localtime_r = no; then
24071 HAVE_DECL_LOCALTIME_R=0
24072 fi
24073
24074
24075 if test $ac_cv_func_localtime_r = yes; then
24076 HAVE_LOCALTIME_R=1
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24078 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24079 if test "${gl_cv_time_r_posix+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24081 else
24082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h. */
24084 #include <time.h>
24085 int
24086 main ()
24087 {
24088 /* We don't need to append 'restrict's to the argument types,
24089 even though the POSIX signature has the 'restrict's,
24090 since C99 says they can't affect type compatibility. */
24091 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24092 if (ptr) return 0;
24093 /* Check the return type is a pointer.
24094 On HP-UX 10 it is 'int'. */
24095 *localtime_r (0, 0);
24096 ;
24097 return 0;
24098 }
24099
24100 _ACEOF
24101 if ac_fn_c_try_compile "$LINENO"; then :
24102 gl_cv_time_r_posix=yes
24103 else
24104 gl_cv_time_r_posix=no
24105 fi
24106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107
24108 fi
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24110 $as_echo "$gl_cv_time_r_posix" >&6; }
24111 if test $gl_cv_time_r_posix = yes; then
24112 REPLACE_LOCALTIME_R=0
24113 else
24114 REPLACE_LOCALTIME_R=1
24115 fi
24116 else
24117 HAVE_LOCALTIME_R=0
24118 fi
24119
24120 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24121
24122
24123
24124
24125
24126
24127
24128
24129 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24130
24131
24132 :
24133
24134 fi
24135
24136
24137
24138
24139
24140 GNULIB_TIME_R=1
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151 LIB_TIMER_TIME=
24152
24153 gl_saved_libs=$LIBS
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24155 $as_echo_n "checking for library containing timer_settime... " >&6; }
24156 if test "${ac_cv_search_timer_settime+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24158 else
24159 ac_func_search_save_LIBS=$LIBS
24160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24161 /* end confdefs.h. */
24162
24163 /* Override any GCC internal prototype to avoid an error.
24164 Use char because int might match the return type of a GCC
24165 builtin and then its argument prototype would still apply. */
24166 #ifdef __cplusplus
24167 extern "C"
24168 #endif
24169 char timer_settime ();
24170 int
24171 main ()
24172 {
24173 return timer_settime ();
24174 ;
24175 return 0;
24176 }
24177 _ACEOF
24178 for ac_lib in '' rt posix4; do
24179 if test -z "$ac_lib"; then
24180 ac_res="none required"
24181 else
24182 ac_res=-l$ac_lib
24183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24184 fi
24185 if ac_fn_c_try_link "$LINENO"; then :
24186 ac_cv_search_timer_settime=$ac_res
24187 fi
24188 rm -f core conftest.err conftest.$ac_objext \
24189 conftest$ac_exeext
24190 if test "${ac_cv_search_timer_settime+set}" = set; then :
24191 break
24192 fi
24193 done
24194 if test "${ac_cv_search_timer_settime+set}" = set; then :
24195
24196 else
24197 ac_cv_search_timer_settime=no
24198 fi
24199 rm conftest.$ac_ext
24200 LIBS=$ac_func_search_save_LIBS
24201 fi
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24203 $as_echo "$ac_cv_search_timer_settime" >&6; }
24204 ac_res=$ac_cv_search_timer_settime
24205 if test "$ac_res" != no; then :
24206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24207 test "$ac_cv_search_timer_settime" = "none required" ||
24208 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24209 fi
24210
24211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24212 /* end confdefs.h. */
24213
24214 #include <features.h>
24215 #ifdef __GNU_LIBRARY__
24216 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24217 && !defined __UCLIBC__
24218 Thread emulation available
24219 #endif
24220 #endif
24221
24222 _ACEOF
24223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24224 $EGREP "Thread" >/dev/null 2>&1; then :
24225 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24226 fi
24227 rm -f conftest*
24228
24229 for ac_func in timer_settime
24230 do :
24231 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24232 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24233 cat >>confdefs.h <<_ACEOF
24234 #define HAVE_TIMER_SETTIME 1
24235 _ACEOF
24236
24237 fi
24238 done
24239
24240 LIBS=$gl_saved_libs
24241
24242 :
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256 if test $gl_cv_have_include_next = yes; then
24257 gl_cv_next_unistd_h='<'unistd.h'>'
24258 else
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24260 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24261 if test "${gl_cv_next_unistd_h+set}" = set; then :
24262 $as_echo_n "(cached) " >&6
24263 else
24264
24265 if test $ac_cv_header_unistd_h = yes; then
24266
24267
24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24270 #include <unistd.h>
24271
24272 _ACEOF
24273 case "$host_os" in
24274 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24275 *) gl_absname_cpp="$ac_cpp" ;;
24276 esac
24277
24278 case "$host_os" in
24279 mingw*)
24280 gl_dirsep_regex='[/\\]'
24281 ;;
24282 *)
24283 gl_dirsep_regex='\/'
24284 ;;
24285 esac
24286 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24287
24288 gl_header_literal_regex=`echo 'unistd.h' \
24289 | sed -e "$gl_make_literal_regex_sed"`
24290 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24292 s|^/[^/]|//&|
24293 p
24294 q
24295 }'
24296 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24297 sed -n "$gl_absolute_header_sed"`'"'
24298 else
24299 gl_cv_next_unistd_h='<'unistd.h'>'
24300 fi
24301
24302
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24305 $as_echo "$gl_cv_next_unistd_h" >&6; }
24306 fi
24307 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24308
24309 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24311 gl_next_as_first_directive='<'unistd.h'>'
24312 else
24313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24314 gl_next_as_first_directive=$gl_cv_next_unistd_h
24315 fi
24316 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24317
24318
24319
24320
24321 if test $ac_cv_header_unistd_h = yes; then
24322 HAVE_UNISTD_H=1
24323 else
24324 HAVE_UNISTD_H=0
24325 fi
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24342 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24343 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24345 else
24346 touch conftest.file
24347 if test "$cross_compiling" = yes; then :
24348 case "$host_os" in
24349 # Guess yes on glibc systems.
24350 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24351 # If we don't know, assume the worst.
24352 *) gl_cv_func_futimesat_works="guessing no" ;;
24353 esac
24354
24355 else
24356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24357 /* end confdefs.h. */
24358
24359 #include <stddef.h>
24360 #include <sys/times.h>
24361 #include <fcntl.h>
24362
24363 int
24364 main ()
24365 {
24366 int fd = open ("conftest.file", O_RDWR);
24367 if (fd < 0) return 1;
24368 if (futimesat (fd, NULL, NULL)) return 2;
24369
24370 ;
24371 return 0;
24372 }
24373 _ACEOF
24374 if ac_fn_c_try_run "$LINENO"; then :
24375 gl_cv_func_futimesat_works=yes
24376 else
24377 gl_cv_func_futimesat_works=no
24378 fi
24379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24380 conftest.$ac_objext conftest.beam conftest.$ac_ext
24381 fi
24382
24383 rm -f conftest.file
24384 fi
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24386 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24387 case "$gl_cv_func_futimesat_works" in
24388 *yes) ;;
24389 *)
24390
24391 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24392
24393 ;;
24394 esac
24395 fi
24396
24397 gl_gnulib_enabled_dosname=false
24398 gl_gnulib_enabled_euidaccess=false
24399 gl_gnulib_enabled_getgroups=false
24400 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24401 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24402 gl_gnulib_enabled_pathmax=false
24403 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24404 gl_gnulib_enabled_stat=false
24405 gl_gnulib_enabled_strtoll=false
24406 gl_gnulib_enabled_strtoull=false
24407 gl_gnulib_enabled_verify=false
24408 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24409 func_gl_gnulib_m4code_dosname ()
24410 {
24411 if ! $gl_gnulib_enabled_dosname; then
24412 gl_gnulib_enabled_dosname=true
24413 fi
24414 }
24415 func_gl_gnulib_m4code_euidaccess ()
24416 {
24417 if ! $gl_gnulib_enabled_euidaccess; then
24418
24419
24420
24421
24422
24423 for ac_func in euidaccess
24424 do :
24425 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24426 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24427 cat >>confdefs.h <<_ACEOF
24428 #define HAVE_EUIDACCESS 1
24429 _ACEOF
24430
24431 fi
24432 done
24433
24434 if test $ac_cv_func_euidaccess = no; then
24435 HAVE_EUIDACCESS=0
24436 fi
24437
24438 if test $HAVE_EUIDACCESS = 0; then
24439
24440
24441
24442
24443
24444
24445
24446
24447 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24448
24449
24450
24451 for ac_header in libgen.h
24452 do :
24453 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24454 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24455 cat >>confdefs.h <<_ACEOF
24456 #define HAVE_LIBGEN_H 1
24457 _ACEOF
24458
24459 fi
24460
24461 done
24462
24463
24464 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24465 if test "x$ac_cv_func_getgroups" = x""yes; then :
24466
24467 fi
24468
24469
24470 # If we don't yet have getgroups, see if it's in -lbsd.
24471 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24472 ac_save_LIBS=$LIBS
24473 if test $ac_cv_func_getgroups = no; then
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24475 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24476 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24477 $as_echo_n "(cached) " >&6
24478 else
24479 ac_check_lib_save_LIBS=$LIBS
24480 LIBS="-lbsd $LIBS"
24481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24482 /* end confdefs.h. */
24483
24484 /* Override any GCC internal prototype to avoid an error.
24485 Use char because int might match the return type of a GCC
24486 builtin and then its argument prototype would still apply. */
24487 #ifdef __cplusplus
24488 extern "C"
24489 #endif
24490 char getgroups ();
24491 int
24492 main ()
24493 {
24494 return getgroups ();
24495 ;
24496 return 0;
24497 }
24498 _ACEOF
24499 if ac_fn_c_try_link "$LINENO"; then :
24500 ac_cv_lib_bsd_getgroups=yes
24501 else
24502 ac_cv_lib_bsd_getgroups=no
24503 fi
24504 rm -f core conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
24506 LIBS=$ac_check_lib_save_LIBS
24507 fi
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24509 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24510 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24511 GETGROUPS_LIB=-lbsd
24512 fi
24513
24514 fi
24515
24516 # Run the program to test the functionality of the system-supplied
24517 # getgroups function only if there is such a function.
24518 if test $ac_cv_func_getgroups = yes; then
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24520 $as_echo_n "checking for working getgroups... " >&6; }
24521 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24522 $as_echo_n "(cached) " >&6
24523 else
24524 if test "$cross_compiling" = yes; then :
24525 case "$host_os" in # ((
24526 # Guess yes on glibc systems.
24527 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24528 # If we don't know, assume the worst.
24529 *) ac_cv_func_getgroups_works="guessing no" ;;
24530 esac
24531
24532 else
24533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24534 /* end confdefs.h. */
24535 $ac_includes_default
24536 int
24537 main ()
24538 {
24539 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24540 return getgroups (0, 0) == -1;
24541 ;
24542 return 0;
24543 }
24544
24545 _ACEOF
24546 if ac_fn_c_try_run "$LINENO"; then :
24547 ac_cv_func_getgroups_works=yes
24548 else
24549 ac_cv_func_getgroups_works=no
24550 fi
24551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24552 conftest.$ac_objext conftest.beam conftest.$ac_ext
24553 fi
24554
24555
24556 fi
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24558 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24559 else
24560 ac_cv_func_getgroups_works=no
24561 fi
24562 case "$ac_cv_func_getgroups_works" in
24563 *yes)
24564
24565 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24566
24567 ;;
24568 esac
24569 LIBS=$ac_save_LIBS
24570
24571
24572 # Solaris 9 and 10 need -lgen to get the eaccess function.
24573 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24574 # programs in the package would end up linked with that potentially-shared
24575 # library, inducing unnecessary run-time overhead.
24576 LIB_EACCESS=
24577
24578 gl_saved_libs=$LIBS
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24580 $as_echo_n "checking for library containing eaccess... " >&6; }
24581 if test "${ac_cv_search_eaccess+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 ac_func_search_save_LIBS=$LIBS
24585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24586 /* end confdefs.h. */
24587
24588 /* Override any GCC internal prototype to avoid an error.
24589 Use char because int might match the return type of a GCC
24590 builtin and then its argument prototype would still apply. */
24591 #ifdef __cplusplus
24592 extern "C"
24593 #endif
24594 char eaccess ();
24595 int
24596 main ()
24597 {
24598 return eaccess ();
24599 ;
24600 return 0;
24601 }
24602 _ACEOF
24603 for ac_lib in '' gen; do
24604 if test -z "$ac_lib"; then
24605 ac_res="none required"
24606 else
24607 ac_res=-l$ac_lib
24608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24609 fi
24610 if ac_fn_c_try_link "$LINENO"; then :
24611 ac_cv_search_eaccess=$ac_res
24612 fi
24613 rm -f core conftest.err conftest.$ac_objext \
24614 conftest$ac_exeext
24615 if test "${ac_cv_search_eaccess+set}" = set; then :
24616 break
24617 fi
24618 done
24619 if test "${ac_cv_search_eaccess+set}" = set; then :
24620
24621 else
24622 ac_cv_search_eaccess=no
24623 fi
24624 rm conftest.$ac_ext
24625 LIBS=$ac_func_search_save_LIBS
24626 fi
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24628 $as_echo "$ac_cv_search_eaccess" >&6; }
24629 ac_res=$ac_cv_search_eaccess
24630 if test "$ac_res" != no; then :
24631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24632 test "$ac_cv_search_eaccess" = "none required" ||
24633 LIB_EACCESS=$ac_cv_search_eaccess
24634 fi
24635
24636 for ac_func in eaccess
24637 do :
24638 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24639 if test "x$ac_cv_func_eaccess" = x""yes; then :
24640 cat >>confdefs.h <<_ACEOF
24641 #define HAVE_EACCESS 1
24642 _ACEOF
24643
24644 fi
24645 done
24646
24647 LIBS=$gl_saved_libs
24648
24649 fi
24650
24651
24652
24653
24654
24655 GNULIB_EUIDACCESS=1
24656
24657
24658
24659
24660
24661 gl_gnulib_enabled_euidaccess=true
24662 if test $HAVE_EUIDACCESS = 0; then
24663 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24664 fi
24665 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24666 if test $HAVE_EUIDACCESS = 0; then
24667 func_gl_gnulib_m4code_stat
24668 fi
24669 fi
24670 }
24671 func_gl_gnulib_m4code_getgroups ()
24672 {
24673 if ! $gl_gnulib_enabled_getgroups; then
24674
24675
24676
24677
24678
24679 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24680 if test "x$ac_cv_func_getgroups" = x""yes; then :
24681
24682 fi
24683
24684
24685 # If we don't yet have getgroups, see if it's in -lbsd.
24686 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24687 ac_save_LIBS=$LIBS
24688 if test $ac_cv_func_getgroups = no; then
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24690 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24691 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24693 else
24694 ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lbsd $LIBS"
24696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h. */
24698
24699 /* Override any GCC internal prototype to avoid an error.
24700 Use char because int might match the return type of a GCC
24701 builtin and then its argument prototype would still apply. */
24702 #ifdef __cplusplus
24703 extern "C"
24704 #endif
24705 char getgroups ();
24706 int
24707 main ()
24708 {
24709 return getgroups ();
24710 ;
24711 return 0;
24712 }
24713 _ACEOF
24714 if ac_fn_c_try_link "$LINENO"; then :
24715 ac_cv_lib_bsd_getgroups=yes
24716 else
24717 ac_cv_lib_bsd_getgroups=no
24718 fi
24719 rm -f core conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24724 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24725 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24726 GETGROUPS_LIB=-lbsd
24727 fi
24728
24729 fi
24730
24731 # Run the program to test the functionality of the system-supplied
24732 # getgroups function only if there is such a function.
24733 if test $ac_cv_func_getgroups = yes; then
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24735 $as_echo_n "checking for working getgroups... " >&6; }
24736 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 if test "$cross_compiling" = yes; then :
24740 case "$host_os" in # ((
24741 # Guess yes on glibc systems.
24742 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24743 # If we don't know, assume the worst.
24744 *) ac_cv_func_getgroups_works="guessing no" ;;
24745 esac
24746
24747 else
24748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24749 /* end confdefs.h. */
24750 $ac_includes_default
24751 int
24752 main ()
24753 {
24754 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24755 return getgroups (0, 0) == -1;
24756 ;
24757 return 0;
24758 }
24759
24760 _ACEOF
24761 if ac_fn_c_try_run "$LINENO"; then :
24762 ac_cv_func_getgroups_works=yes
24763 else
24764 ac_cv_func_getgroups_works=no
24765 fi
24766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24767 conftest.$ac_objext conftest.beam conftest.$ac_ext
24768 fi
24769
24770
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24773 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24774 else
24775 ac_cv_func_getgroups_works=no
24776 fi
24777 case "$ac_cv_func_getgroups_works" in
24778 *yes)
24779
24780 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24781
24782 ;;
24783 esac
24784 LIBS=$ac_save_LIBS
24785
24786 if test $ac_cv_func_getgroups != yes; then
24787 HAVE_GETGROUPS=0
24788 else
24789 if test "$ac_cv_type_getgroups" != gid_t \
24790 || { case "$ac_cv_func_getgroups_works" in
24791 *yes) false;;
24792 *) true;;
24793 esac
24794 }; then
24795 REPLACE_GETGROUPS=1
24796
24797 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24798
24799 else
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24801 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24802 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 if test "$cross_compiling" = yes; then :
24806 case "$host_os" in
24807 # Guess yes on glibc systems.
24808 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
24809 # If we don't know, assume the worst.
24810 *) gl_cv_func_getgroups_works="guessing no" ;;
24811 esac
24812
24813 else
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24816 $ac_includes_default
24817 int
24818 main ()
24819 {
24820 int size = getgroups (0, 0);
24821 gid_t *list = malloc (size * sizeof *list);
24822 return getgroups (-1, list) != -1;
24823 ;
24824 return 0;
24825 }
24826 _ACEOF
24827 if ac_fn_c_try_run "$LINENO"; then :
24828 gl_cv_func_getgroups_works=yes
24829 else
24830 gl_cv_func_getgroups_works=no
24831 fi
24832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24833 conftest.$ac_objext conftest.beam conftest.$ac_ext
24834 fi
24835
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24838 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24839 case "$gl_cv_func_getgroups_works" in
24840 *yes) ;;
24841 *) REPLACE_GETGROUPS=1 ;;
24842 esac
24843 fi
24844 fi
24845 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
24846
24847 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
24848
24849
24850
24851
24852
24853
24854
24855
24856 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
24857
24858 fi
24859
24860
24861
24862
24863
24864 GNULIB_GETGROUPS=1
24865
24866
24867
24868
24869
24870 gl_gnulib_enabled_getgroups=true
24871 fi
24872 }
24873 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24874 {
24875 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24876
24877
24878 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24879 fi
24880 }
24881 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
24882 {
24883 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24884
24885
24886
24887
24888
24889 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
24890 if test "x$ac_cv_func_group_member" = x""yes; then :
24891
24892 else
24893
24894 HAVE_GROUP_MEMBER=0
24895
24896 fi
24897
24898
24899 if test $HAVE_GROUP_MEMBER = 0; then
24900
24901
24902
24903
24904
24905
24906
24907
24908 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
24909
24910
24911
24912
24913 fi
24914
24915
24916
24917
24918
24919 GNULIB_GROUP_MEMBER=1
24920
24921
24922
24923
24924
24925 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
24926 if test $HAVE_GROUP_MEMBER = 0; then
24927 func_gl_gnulib_m4code_getgroups
24928 fi
24929 if test $HAVE_GROUP_MEMBER = 0; then
24930 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24931 fi
24932 fi
24933 }
24934 func_gl_gnulib_m4code_pathmax ()
24935 {
24936 if ! $gl_gnulib_enabled_pathmax; then
24937
24938
24939
24940 gl_gnulib_enabled_pathmax=true
24941 fi
24942 }
24943 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
24944 {
24945 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24946 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
24947 fi
24948 }
24949 func_gl_gnulib_m4code_stat ()
24950 {
24951 if ! $gl_gnulib_enabled_stat; then
24952
24953
24954
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24956 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24957 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959 else
24960 if test "$cross_compiling" = yes; then :
24961 case $host_os in
24962 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24963 *) gl_cv_func_stat_dir_slash="guessing yes";;
24964 esac
24965 else
24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24968 #include <sys/stat.h>
24969
24970 int
24971 main ()
24972 {
24973 struct stat st; return stat (".", &st) != stat ("./", &st);
24974 ;
24975 return 0;
24976 }
24977 _ACEOF
24978 if ac_fn_c_try_run "$LINENO"; then :
24979 gl_cv_func_stat_dir_slash=yes
24980 else
24981 gl_cv_func_stat_dir_slash=no
24982 fi
24983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24984 conftest.$ac_objext conftest.beam conftest.$ac_ext
24985 fi
24986
24987 fi
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24989 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24991 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24992 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24993 $as_echo_n "(cached) " >&6
24994 else
24995 touch conftest.tmp
24996 # Assume that if we have lstat, we can also check symlinks.
24997 if test $ac_cv_func_lstat = yes; then
24998 ln -s conftest.tmp conftest.lnk
24999 fi
25000 if test "$cross_compiling" = yes; then :
25001 case "$host_os" in
25002 # Guess yes on glibc systems.
25003 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25004 # If we don't know, assume the worst.
25005 *) gl_cv_func_stat_file_slash="guessing no" ;;
25006 esac
25007
25008 else
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25011 #include <sys/stat.h>
25012
25013 int
25014 main ()
25015 {
25016 int result = 0;
25017 struct stat st;
25018 if (!stat ("conftest.tmp/", &st))
25019 result |= 1;
25020 #if HAVE_LSTAT
25021 if (!stat ("conftest.lnk/", &st))
25022 result |= 2;
25023 #endif
25024 return result;
25025
25026 ;
25027 return 0;
25028 }
25029 _ACEOF
25030 if ac_fn_c_try_run "$LINENO"; then :
25031 gl_cv_func_stat_file_slash=yes
25032 else
25033 gl_cv_func_stat_file_slash=no
25034 fi
25035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25036 conftest.$ac_objext conftest.beam conftest.$ac_ext
25037 fi
25038
25039 rm -f conftest.tmp conftest.lnk
25040 fi
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25042 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25043 case $gl_cv_func_stat_dir_slash in
25044 *no) REPLACE_STAT=1
25045
25046 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25047 ;;
25048 esac
25049 case $gl_cv_func_stat_file_slash in
25050 *no) REPLACE_STAT=1
25051
25052 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25053 ;;
25054 esac
25055
25056 if test $REPLACE_STAT = 1; then
25057
25058
25059
25060
25061
25062
25063
25064
25065 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25066
25067
25068
25069 :
25070
25071 fi
25072
25073
25074
25075
25076
25077 GNULIB_STAT=1
25078
25079
25080
25081
25082
25083 gl_gnulib_enabled_stat=true
25084 if test $REPLACE_STAT = 1; then
25085 func_gl_gnulib_m4code_dosname
25086 fi
25087 if test $REPLACE_STAT = 1; then
25088 func_gl_gnulib_m4code_pathmax
25089 fi
25090 if test $REPLACE_STAT = 1; then
25091 func_gl_gnulib_m4code_verify
25092 fi
25093 fi
25094 }
25095 func_gl_gnulib_m4code_strtoll ()
25096 {
25097 if ! $gl_gnulib_enabled_strtoll; then
25098
25099
25100
25101 if test "$ac_cv_type_long_long_int" = yes; then
25102 for ac_func in strtoll
25103 do :
25104 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25105 if test "x$ac_cv_func_strtoll" = x""yes; then :
25106 cat >>confdefs.h <<_ACEOF
25107 #define HAVE_STRTOLL 1
25108 _ACEOF
25109
25110 fi
25111 done
25112
25113 if test $ac_cv_func_strtoll = no; then
25114 HAVE_STRTOLL=0
25115 fi
25116 fi
25117
25118 if test $HAVE_STRTOLL = 0; then
25119
25120
25121
25122
25123
25124
25125
25126
25127 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25128
25129
25130 :
25131
25132 fi
25133
25134
25135
25136
25137
25138 GNULIB_STRTOLL=1
25139
25140
25141
25142
25143
25144 gl_gnulib_enabled_strtoll=true
25145 fi
25146 }
25147 func_gl_gnulib_m4code_strtoull ()
25148 {
25149 if ! $gl_gnulib_enabled_strtoull; then
25150
25151
25152
25153 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25154 for ac_func in strtoull
25155 do :
25156 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25157 if test "x$ac_cv_func_strtoull" = x""yes; then :
25158 cat >>confdefs.h <<_ACEOF
25159 #define HAVE_STRTOULL 1
25160 _ACEOF
25161
25162 fi
25163 done
25164
25165 if test $ac_cv_func_strtoull = no; then
25166 HAVE_STRTOULL=0
25167 fi
25168 fi
25169
25170 if test $HAVE_STRTOULL = 0; then
25171
25172
25173
25174
25175
25176
25177
25178
25179 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25180
25181
25182 :
25183
25184 fi
25185
25186
25187
25188
25189
25190 GNULIB_STRTOULL=1
25191
25192
25193
25194
25195
25196 gl_gnulib_enabled_strtoull=true
25197 fi
25198 }
25199 func_gl_gnulib_m4code_verify ()
25200 {
25201 if ! $gl_gnulib_enabled_verify; then
25202 gl_gnulib_enabled_verify=true
25203 fi
25204 }
25205 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25206 {
25207 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25208 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25209 fi
25210 }
25211 if test $HAVE_FACCESSAT = 0; then
25212 func_gl_gnulib_m4code_dosname
25213 fi
25214 if test $HAVE_FACCESSAT = 0; then
25215 func_gl_gnulib_m4code_euidaccess
25216 fi
25217 if test $REPLACE_GETOPT = 1; then
25218 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25219 fi
25220 if test $REPLACE_LSTAT = 1; then
25221 func_gl_gnulib_m4code_dosname
25222 fi
25223 if test $REPLACE_LSTAT = 1; then
25224 func_gl_gnulib_m4code_stat
25225 fi
25226 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25227 func_gl_gnulib_m4code_stat
25228 fi
25229 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25230 func_gl_gnulib_m4code_strtoll
25231 fi
25232 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25233 func_gl_gnulib_m4code_verify
25234 fi
25235 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25236 func_gl_gnulib_m4code_strtoull
25237 fi
25238 if test $ac_cv_func_strtoumax = no; then
25239 func_gl_gnulib_m4code_verify
25240 fi
25241
25242 if $gl_gnulib_enabled_dosname; then
25243 gl_GNULIB_ENABLED_dosname_TRUE=
25244 gl_GNULIB_ENABLED_dosname_FALSE='#'
25245 else
25246 gl_GNULIB_ENABLED_dosname_TRUE='#'
25247 gl_GNULIB_ENABLED_dosname_FALSE=
25248 fi
25249
25250 if $gl_gnulib_enabled_euidaccess; then
25251 gl_GNULIB_ENABLED_euidaccess_TRUE=
25252 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25253 else
25254 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25255 gl_GNULIB_ENABLED_euidaccess_FALSE=
25256 fi
25257
25258 if $gl_gnulib_enabled_getgroups; then
25259 gl_GNULIB_ENABLED_getgroups_TRUE=
25260 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25261 else
25262 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25263 gl_GNULIB_ENABLED_getgroups_FALSE=
25264 fi
25265
25266 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25267 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25268 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25269 else
25270 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25271 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25272 fi
25273
25274 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25275 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25276 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25277 else
25278 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25279 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25280 fi
25281
25282 if $gl_gnulib_enabled_pathmax; then
25283 gl_GNULIB_ENABLED_pathmax_TRUE=
25284 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25285 else
25286 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25287 gl_GNULIB_ENABLED_pathmax_FALSE=
25288 fi
25289
25290 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25291 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25292 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25293 else
25294 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25295 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25296 fi
25297
25298 if $gl_gnulib_enabled_stat; then
25299 gl_GNULIB_ENABLED_stat_TRUE=
25300 gl_GNULIB_ENABLED_stat_FALSE='#'
25301 else
25302 gl_GNULIB_ENABLED_stat_TRUE='#'
25303 gl_GNULIB_ENABLED_stat_FALSE=
25304 fi
25305
25306 if $gl_gnulib_enabled_strtoll; then
25307 gl_GNULIB_ENABLED_strtoll_TRUE=
25308 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25309 else
25310 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25311 gl_GNULIB_ENABLED_strtoll_FALSE=
25312 fi
25313
25314 if $gl_gnulib_enabled_strtoull; then
25315 gl_GNULIB_ENABLED_strtoull_TRUE=
25316 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25317 else
25318 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25319 gl_GNULIB_ENABLED_strtoull_FALSE=
25320 fi
25321
25322 if $gl_gnulib_enabled_verify; then
25323 gl_GNULIB_ENABLED_verify_TRUE=
25324 gl_GNULIB_ENABLED_verify_FALSE='#'
25325 else
25326 gl_GNULIB_ENABLED_verify_TRUE='#'
25327 gl_GNULIB_ENABLED_verify_FALSE=
25328 fi
25329
25330 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25331 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25332 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25333 else
25334 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25335 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25336 fi
25337
25338 # End of code from modules
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348 gltests_libdeps=
25349 gltests_ltlibdeps=
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359 gl_source_base='tests'
25360 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
25361
25362 gl_module_indicator_condition=$gltests_WITNESS
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373 LIBGNU_LIBDEPS="$gl_libdeps"
25374
25375 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25376
25377
25378 CFLAGS=$SAVE_CFLAGS
25379 LIBS=$SAVE_LIBS
25380
25381 case "$opsys" in
25382 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25383
25384 darwin)
25385 ## The -headerpad option tells ld (see man page) to leave room at the
25386 ## end of the header for adding load commands. Needed for dumping.
25387 ## 0x690 is the total size of 30 segment load commands (at 56
25388 ## each); under Cocoa 31 commands are required.
25389 if test "$HAVE_NS" = "yes"; then
25390 libs_nsgui="-framework AppKit"
25391 headerpad_extra=6C8
25392 else
25393 libs_nsgui=
25394 headerpad_extra=690
25395 fi
25396 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25397
25398 ## This is here because src/Makefile.in did some extra fiddling around
25399 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25400 ## #ifndef LD_SWITCH_SYSTEM
25401 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25402 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25403 ## not using gcc, darwin.
25404 ## Because this was done in src/Makefile.in, the resulting part of
25405 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25406 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25407 ## rather than LD_SWITCH_SYSTEM.
25408 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25409 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25410 ;;
25411
25412 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25413 ## find X at run-time.
25414 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25415 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25416 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25417 ## had different values in configure (in ac_link) and src/Makefile.in.
25418 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25419 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25420
25421 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25422 esac
25423
25424 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25425 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25426 fi
25427
25428
25429
25430
25431 LD_FIRSTFLAG=
25432 ORDINARY_LINK=
25433 case "$opsys" in
25434 ## gnu: GNU needs its own crt0.
25435 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25436
25437 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25438 ## library search parth, i.e. it won't search /usr/lib for libc and
25439 ## friends. Using -nostartfiles instead avoids this problem, and
25440 ## will also work on earlier NetBSD releases.
25441 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25442
25443 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25444 ## MkLinux/LinuxPPC needs this.
25445 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25446 gnu-*)
25447 case "$canonical" in
25448 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25449 esac
25450 ;;
25451 esac
25452
25453
25454 if test "x$ORDINARY_LINK" = "xyes"; then
25455
25456 LD_FIRSTFLAG=""
25457
25458 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25459
25460
25461 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25462 ## freebsd, gnu-* not on powerpc*|s390x*.
25463 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25464
25465 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25466 ## places that are difficult to figure out at make time. Fortunately,
25467 ## these same versions allow you to pass arbitrary flags on to the
25468 ## linker, so there is no reason not to use it as a linker.
25469 ##
25470 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25471 ## searching for libraries in its internal directories, so we have to
25472 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25473 LD_FIRSTFLAG="-nostdlib"
25474 fi
25475
25476 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25477 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25478
25479
25480
25481
25482 ## FIXME? The logic here is not precisely the same as that above.
25483 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25484 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25485 LIB_GCC=
25486 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25487
25488 case "$opsys" in
25489 freebsd|netbsd|openbsd) LIB_GCC= ;;
25490
25491 gnu-*)
25492 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25493 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25494 case $host_cpu in
25495 arm*)
25496 LIB_GCC="-lgcc_s"
25497 ;;
25498 *)
25499 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25500 ## immediately undefine it again and redefine it to empty.
25501 ## Was the C_SWITCH_X_SITE part really necessary?
25502 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25503 LIB_GCC=
25504 ;;
25505 esac
25506 ;;
25507
25508 ## Ask GCC where to find libgcc.a.
25509 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25510 esac
25511 fi
25512
25513 ## Common for all window systems
25514 if test "$window_system" != "none"; then
25515
25516 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25517
25518
25519 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
25520
25521 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25522 fi
25523
25524
25525
25526
25527
25528 #### Report on what we decided to do.
25529 #### Report GTK as a toolkit, even if it doesn't use Xt.
25530 #### It makes printing result more understandable as using GTK sets
25531 #### toolkit_scroll_bars to yes by default.
25532 if test "${HAVE_GTK}" = "yes"; then
25533 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25534 fi
25535
25536 echo "
25537 Configured for \`${canonical}'.
25538
25539 Where should the build process find the source code? ${srcdir}
25540 What compiler should emacs be built with? ${CC} ${CFLAGS}
25541 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25542 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25543 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25544 What window system should Emacs use? ${window_system}
25545 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25546
25547 if test -n "${x_includes}"; then
25548 echo " Where do we find X Windows header files? ${x_includes}"
25549 else
25550 echo " Where do we find X Windows header files? Standard dirs"
25551 fi
25552 if test -n "${x_libraries}"; then
25553 echo " Where do we find X Windows libraries? ${x_libraries}"
25554 else
25555 echo " Where do we find X Windows libraries? Standard dirs"
25556 fi
25557
25558 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25559 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25560 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25561 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25562 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25563 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25564 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25565 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25566
25567 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25568 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25569 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25570 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25571 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25572 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25573 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25574
25575 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25576 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25577 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25578 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25579
25580 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25581 echo
25582
25583 if test -n "${EMACSDATA}"; then
25584 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25585 fi
25586 if test -n "${EMACSDOC}"; then
25587 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25588 fi
25589
25590 echo
25591
25592 if test "$HAVE_NS" = "yes"; then
25593 echo
25594 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25595 The installed application will go to nextstep/Emacs.app and can be
25596 run or moved from there."
25597 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25598 echo "The application will be fully self-contained."
25599 else
25600 echo "The lisp resources for the application will be installed under ${prefix}.
25601 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25602 to run if these resources are not installed."
25603 fi
25604 echo
25605 fi
25606
25607 if test "${opsys}" = "cygwin"; then
25608 case `uname -r` in
25609 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25610 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25611 echo
25612 ;;
25613 esac
25614 fi
25615
25616 # Remove any trailing slashes in these variables.
25617 test "${prefix}" != NONE &&
25618 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25619 test "${exec_prefix}" != NONE &&
25620 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25621
25622 if test "$HAVE_NS" = "yes"; then
25623 if test "$NS_IMPL_GNUSTEP" = yes; then
25624 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
25625
25626 else
25627 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
25628
25629 fi
25630 fi
25631
25632 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 nextstep/Makefile"
25633
25634 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 nextstep/Makefile"
25635
25636
25637 opt_makefile=test/automated/Makefile
25638
25639 if test -f $srcdir/${opt_makefile}.in; then
25640 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25641 ac_config_files="$ac_config_files test/automated/Makefile"
25642
25643 fi
25644
25645
25646 opt_makefile=admin/unidata/Makefile
25647
25648 if test -f $srcdir/${opt_makefile}.in; then
25649 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25650 ac_config_files="$ac_config_files admin/unidata/Makefile"
25651
25652 fi
25653
25654
25655 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25656
25657
25658
25659 ac_config_commands="$ac_config_commands mkdirs"
25660
25661
25662 ac_config_commands="$ac_config_commands epaths"
25663
25664
25665 ac_config_commands="$ac_config_commands gdbinit"
25666
25667
25668 cat >confcache <<\_ACEOF
25669 # This file is a shell script that caches the results of configure
25670 # tests run on this system so they can be shared between configure
25671 # scripts and configure runs, see configure's option --config-cache.
25672 # It is not useful on other systems. If it contains results you don't
25673 # want to keep, you may remove or edit it.
25674 #
25675 # config.status only pays attention to the cache file if you give it
25676 # the --recheck option to rerun configure.
25677 #
25678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25680 # following values.
25681
25682 _ACEOF
25683
25684 # The following way of writing the cache mishandles newlines in values,
25685 # but we know of no workaround that is simple, portable, and efficient.
25686 # So, we kill variables containing newlines.
25687 # Ultrix sh set writes to stderr and can't be redirected directly,
25688 # and sets the high bit in the cache file unless we assign to the vars.
25689 (
25690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25691 eval ac_val=\$$ac_var
25692 case $ac_val in #(
25693 *${as_nl}*)
25694 case $ac_var in #(
25695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25697 esac
25698 case $ac_var in #(
25699 _ | IFS | as_nl) ;; #(
25700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25701 *) { eval $ac_var=; unset $ac_var;} ;;
25702 esac ;;
25703 esac
25704 done
25705
25706 (set) 2>&1 |
25707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25708 *${as_nl}ac_space=\ *)
25709 # `set' does not quote correctly, so add quotes: double-quote
25710 # substitution turns \\\\ into \\, and sed turns \\ into \.
25711 sed -n \
25712 "s/'/'\\\\''/g;
25713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25714 ;; #(
25715 *)
25716 # `set' quotes correctly as required by POSIX, so do not add quotes.
25717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25718 ;;
25719 esac |
25720 sort
25721 ) |
25722 sed '
25723 /^ac_cv_env_/b end
25724 t clear
25725 :clear
25726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25727 t end
25728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25729 :end' >>confcache
25730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25731 if test -w "$cache_file"; then
25732 test "x$cache_file" != "x/dev/null" &&
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25734 $as_echo "$as_me: updating cache $cache_file" >&6;}
25735 cat confcache >$cache_file
25736 else
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25739 fi
25740 fi
25741 rm -f confcache
25742
25743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25744 # Let make expand exec_prefix.
25745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25746
25747 DEFS=-DHAVE_CONFIG_H
25748
25749 ac_libobjs=
25750 ac_ltlibobjs=
25751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25752 # 1. Remove the extension, and $U if already installed.
25753 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25754 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25756 # will be set to the directory where LIBOBJS objects are built.
25757 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25758 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25759 done
25760 LIBOBJS=$ac_libobjs
25761
25762 LTLIBOBJS=$ac_ltlibobjs
25763
25764
25765 if test -n "$EXEEXT"; then
25766 am__EXEEXT_TRUE=
25767 am__EXEEXT_FALSE='#'
25768 else
25769 am__EXEEXT_TRUE='#'
25770 am__EXEEXT_FALSE=
25771 fi
25772
25773 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25774 as_fn_error "conditional \"AMDEP\" was never defined.
25775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25776 fi
25777 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25778 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25780 fi
25781 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25782 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
25783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25784 fi
25785 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25786 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25788 fi
25789
25790 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25791 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25793 fi
25794 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25795 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25797 fi
25798 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25799 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25801 fi
25802 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25803 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25805 fi
25806 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25807 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25809 fi
25810 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25811 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25813 fi
25814 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25815 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25817 fi
25818 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25819 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25821 fi
25822 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25823 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25825 fi
25826 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25827 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25829 fi
25830 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25831 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25833 fi
25834 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25835 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25837 fi
25838 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25839 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25841 fi
25842 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25843 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25845 fi
25846 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25847 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25849 fi
25850 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25851 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25853 fi
25854 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25855 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25857 fi
25858 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25859 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25861 fi
25862
25863 gl_libobjs=
25864 gl_ltlibobjs=
25865 if test -n "$gl_LIBOBJS"; then
25866 # Remove the extension.
25867 sed_drop_objext='s/\.o$//;s/\.obj$//'
25868 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25869 gl_libobjs="$gl_libobjs $i.$ac_objext"
25870 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25871 done
25872 fi
25873 gl_LIBOBJS=$gl_libobjs
25874
25875 gl_LTLIBOBJS=$gl_ltlibobjs
25876
25877
25878
25879 gltests_libobjs=
25880 gltests_ltlibobjs=
25881 if test -n "$gltests_LIBOBJS"; then
25882 # Remove the extension.
25883 sed_drop_objext='s/\.o$//;s/\.obj$//'
25884 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25885 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25886 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25887 done
25888 fi
25889 gltests_LIBOBJS=$gltests_libobjs
25890
25891 gltests_LTLIBOBJS=$gltests_ltlibobjs
25892
25893
25894
25895 : ${CONFIG_STATUS=./config.status}
25896 ac_write_fail=0
25897 ac_clean_files_save=$ac_clean_files
25898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25901 as_write_fail=0
25902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25903 #! $SHELL
25904 # Generated by $as_me.
25905 # Run this file to recreate the current configuration.
25906 # Compiler output produced by configure, useful for debugging
25907 # configure, is in config.log if it exists.
25908
25909 debug=false
25910 ac_cs_recheck=false
25911 ac_cs_silent=false
25912
25913 SHELL=\${CONFIG_SHELL-$SHELL}
25914 export SHELL
25915 _ASEOF
25916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25917 ## -------------------- ##
25918 ## M4sh Initialization. ##
25919 ## -------------------- ##
25920
25921 # Be more Bourne compatible
25922 DUALCASE=1; export DUALCASE # for MKS sh
25923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25924 emulate sh
25925 NULLCMD=:
25926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25927 # is contrary to our usage. Disable this feature.
25928 alias -g '${1+"$@"}'='"$@"'
25929 setopt NO_GLOB_SUBST
25930 else
25931 case `(set -o) 2>/dev/null` in #(
25932 *posix*) :
25933 set -o posix ;; #(
25934 *) :
25935 ;;
25936 esac
25937 fi
25938
25939
25940 as_nl='
25941 '
25942 export as_nl
25943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25944 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25947 # Prefer a ksh shell builtin over an external printf program on Solaris,
25948 # but without wasting forks for bash or zsh.
25949 if test -z "$BASH_VERSION$ZSH_VERSION" \
25950 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25951 as_echo='print -r --'
25952 as_echo_n='print -rn --'
25953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25954 as_echo='printf %s\n'
25955 as_echo_n='printf %s'
25956 else
25957 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25958 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25959 as_echo_n='/usr/ucb/echo -n'
25960 else
25961 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25962 as_echo_n_body='eval
25963 arg=$1;
25964 case $arg in #(
25965 *"$as_nl"*)
25966 expr "X$arg" : "X\\(.*\\)$as_nl";
25967 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25968 esac;
25969 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25970 '
25971 export as_echo_n_body
25972 as_echo_n='sh -c $as_echo_n_body as_echo'
25973 fi
25974 export as_echo_body
25975 as_echo='sh -c $as_echo_body as_echo'
25976 fi
25977
25978 # The user is always right.
25979 if test "${PATH_SEPARATOR+set}" != set; then
25980 PATH_SEPARATOR=:
25981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25983 PATH_SEPARATOR=';'
25984 }
25985 fi
25986
25987
25988 # IFS
25989 # We need space, tab and new line, in precisely that order. Quoting is
25990 # there to prevent editors from complaining about space-tab.
25991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25992 # splitting by setting IFS to empty value.)
25993 IFS=" "" $as_nl"
25994
25995 # Find who we are. Look in the path if we contain no directory separator.
25996 case $0 in #((
25997 *[\\/]* ) as_myself=$0 ;;
25998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25999 for as_dir in $PATH
26000 do
26001 IFS=$as_save_IFS
26002 test -z "$as_dir" && as_dir=.
26003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26004 done
26005 IFS=$as_save_IFS
26006
26007 ;;
26008 esac
26009 # We did not find ourselves, most probably we were run as `sh COMMAND'
26010 # in which case we are not to be found in the path.
26011 if test "x$as_myself" = x; then
26012 as_myself=$0
26013 fi
26014 if test ! -f "$as_myself"; then
26015 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26016 exit 1
26017 fi
26018
26019 # Unset variables that we do not need and which cause bugs (e.g. in
26020 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26021 # suppresses any "Segmentation fault" message there. '((' could
26022 # trigger a bug in pdksh 5.2.14.
26023 for as_var in BASH_ENV ENV MAIL MAILPATH
26024 do eval test x\${$as_var+set} = xset \
26025 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26026 done
26027 PS1='$ '
26028 PS2='> '
26029 PS4='+ '
26030
26031 # NLS nuisances.
26032 LC_ALL=C
26033 export LC_ALL
26034 LANGUAGE=C
26035 export LANGUAGE
26036
26037 # CDPATH.
26038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26039
26040
26041 # as_fn_error ERROR [LINENO LOG_FD]
26042 # ---------------------------------
26043 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26044 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26045 # script with status $?, using 1 if that was 0.
26046 as_fn_error ()
26047 {
26048 as_status=$?; test $as_status -eq 0 && as_status=1
26049 if test "$3"; then
26050 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26051 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26052 fi
26053 $as_echo "$as_me: error: $1" >&2
26054 as_fn_exit $as_status
26055 } # as_fn_error
26056
26057
26058 # as_fn_set_status STATUS
26059 # -----------------------
26060 # Set $? to STATUS, without forking.
26061 as_fn_set_status ()
26062 {
26063 return $1
26064 } # as_fn_set_status
26065
26066 # as_fn_exit STATUS
26067 # -----------------
26068 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26069 as_fn_exit ()
26070 {
26071 set +e
26072 as_fn_set_status $1
26073 exit $1
26074 } # as_fn_exit
26075
26076 # as_fn_unset VAR
26077 # ---------------
26078 # Portably unset VAR.
26079 as_fn_unset ()
26080 {
26081 { eval $1=; unset $1;}
26082 }
26083 as_unset=as_fn_unset
26084 # as_fn_append VAR VALUE
26085 # ----------------------
26086 # Append the text in VALUE to the end of the definition contained in VAR. Take
26087 # advantage of any shell optimizations that allow amortized linear growth over
26088 # repeated appends, instead of the typical quadratic growth present in naive
26089 # implementations.
26090 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26091 eval 'as_fn_append ()
26092 {
26093 eval $1+=\$2
26094 }'
26095 else
26096 as_fn_append ()
26097 {
26098 eval $1=\$$1\$2
26099 }
26100 fi # as_fn_append
26101
26102 # as_fn_arith ARG...
26103 # ------------------
26104 # Perform arithmetic evaluation on the ARGs, and store the result in the
26105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26106 # must be portable across $(()) and expr.
26107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26108 eval 'as_fn_arith ()
26109 {
26110 as_val=$(( $* ))
26111 }'
26112 else
26113 as_fn_arith ()
26114 {
26115 as_val=`expr "$@" || test $? -eq 1`
26116 }
26117 fi # as_fn_arith
26118
26119
26120 if expr a : '\(a\)' >/dev/null 2>&1 &&
26121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26122 as_expr=expr
26123 else
26124 as_expr=false
26125 fi
26126
26127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26128 as_basename=basename
26129 else
26130 as_basename=false
26131 fi
26132
26133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26134 as_dirname=dirname
26135 else
26136 as_dirname=false
26137 fi
26138
26139 as_me=`$as_basename -- "$0" ||
26140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26141 X"$0" : 'X\(//\)$' \| \
26142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26143 $as_echo X/"$0" |
26144 sed '/^.*\/\([^/][^/]*\)\/*$/{
26145 s//\1/
26146 q
26147 }
26148 /^X\/\(\/\/\)$/{
26149 s//\1/
26150 q
26151 }
26152 /^X\/\(\/\).*/{
26153 s//\1/
26154 q
26155 }
26156 s/.*/./; q'`
26157
26158 # Avoid depending upon Character Ranges.
26159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26162 as_cr_digits='0123456789'
26163 as_cr_alnum=$as_cr_Letters$as_cr_digits
26164
26165 ECHO_C= ECHO_N= ECHO_T=
26166 case `echo -n x` in #(((((
26167 -n*)
26168 case `echo 'xy\c'` in
26169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26170 xy) ECHO_C='\c';;
26171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26172 ECHO_T=' ';;
26173 esac;;
26174 *)
26175 ECHO_N='-n';;
26176 esac
26177
26178 rm -f conf$$ conf$$.exe conf$$.file
26179 if test -d conf$$.dir; then
26180 rm -f conf$$.dir/conf$$.file
26181 else
26182 rm -f conf$$.dir
26183 mkdir conf$$.dir 2>/dev/null
26184 fi
26185 if (echo >conf$$.file) 2>/dev/null; then
26186 if ln -s conf$$.file conf$$ 2>/dev/null; then
26187 as_ln_s='ln -s'
26188 # ... but there are two gotchas:
26189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26191 # In both cases, we have to default to `cp -p'.
26192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26193 as_ln_s='cp -p'
26194 elif ln conf$$.file conf$$ 2>/dev/null; then
26195 as_ln_s=ln
26196 else
26197 as_ln_s='cp -p'
26198 fi
26199 else
26200 as_ln_s='cp -p'
26201 fi
26202 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26203 rmdir conf$$.dir 2>/dev/null
26204
26205
26206 # as_fn_mkdir_p
26207 # -------------
26208 # Create "$as_dir" as a directory, including parents if necessary.
26209 as_fn_mkdir_p ()
26210 {
26211
26212 case $as_dir in #(
26213 -*) as_dir=./$as_dir;;
26214 esac
26215 test -d "$as_dir" || eval $as_mkdir_p || {
26216 as_dirs=
26217 while :; do
26218 case $as_dir in #(
26219 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26220 *) as_qdir=$as_dir;;
26221 esac
26222 as_dirs="'$as_qdir' $as_dirs"
26223 as_dir=`$as_dirname -- "$as_dir" ||
26224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26225 X"$as_dir" : 'X\(//\)[^/]' \| \
26226 X"$as_dir" : 'X\(//\)$' \| \
26227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26228 $as_echo X"$as_dir" |
26229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26230 s//\1/
26231 q
26232 }
26233 /^X\(\/\/\)[^/].*/{
26234 s//\1/
26235 q
26236 }
26237 /^X\(\/\/\)$/{
26238 s//\1/
26239 q
26240 }
26241 /^X\(\/\).*/{
26242 s//\1/
26243 q
26244 }
26245 s/.*/./; q'`
26246 test -d "$as_dir" && break
26247 done
26248 test -z "$as_dirs" || eval "mkdir $as_dirs"
26249 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26250
26251
26252 } # as_fn_mkdir_p
26253 if mkdir -p . 2>/dev/null; then
26254 as_mkdir_p='mkdir -p "$as_dir"'
26255 else
26256 test -d ./-p && rmdir ./-p
26257 as_mkdir_p=false
26258 fi
26259
26260 if test -x / >/dev/null 2>&1; then
26261 as_test_x='test -x'
26262 else
26263 if ls -dL / >/dev/null 2>&1; then
26264 as_ls_L_option=L
26265 else
26266 as_ls_L_option=
26267 fi
26268 as_test_x='
26269 eval sh -c '\''
26270 if test -d "$1"; then
26271 test -d "$1/.";
26272 else
26273 case $1 in #(
26274 -*)set "./$1";;
26275 esac;
26276 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26277 ???[sx]*):;;*)false;;esac;fi
26278 '\'' sh
26279 '
26280 fi
26281 as_executable_p=$as_test_x
26282
26283 # Sed expression to map a string onto a valid CPP name.
26284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26285
26286 # Sed expression to map a string onto a valid variable name.
26287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26288
26289
26290 exec 6>&1
26291 ## ----------------------------------- ##
26292 ## Main body of $CONFIG_STATUS script. ##
26293 ## ----------------------------------- ##
26294 _ASEOF
26295 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26296
26297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26298 # Save the log message, to keep $0 and so on meaningful, and to
26299 # report actual input values of CONFIG_FILES etc. instead of their
26300 # values after options handling.
26301 ac_log="
26302 This file was extended by emacs $as_me 24.3.50, which was
26303 generated by GNU Autoconf 2.65. Invocation command line was
26304
26305 CONFIG_FILES = $CONFIG_FILES
26306 CONFIG_HEADERS = $CONFIG_HEADERS
26307 CONFIG_LINKS = $CONFIG_LINKS
26308 CONFIG_COMMANDS = $CONFIG_COMMANDS
26309 $ $0 $@
26310
26311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26312 "
26313
26314 _ACEOF
26315
26316 case $ac_config_files in *"
26317 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26318 esac
26319
26320 case $ac_config_headers in *"
26321 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26322 esac
26323
26324
26325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26326 # Files that config.status was made for.
26327 config_files="$ac_config_files"
26328 config_headers="$ac_config_headers"
26329 config_commands="$ac_config_commands"
26330
26331 _ACEOF
26332
26333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26334 ac_cs_usage="\
26335 \`$as_me' instantiates files and other configuration actions
26336 from templates according to the current configuration. Unless the files
26337 and actions are specified as TAGs, all are instantiated by default.
26338
26339 Usage: $0 [OPTION]... [TAG]...
26340
26341 -h, --help print this help, then exit
26342 -V, --version print version number and configuration settings, then exit
26343 --config print configuration, then exit
26344 -q, --quiet, --silent
26345 do not print progress messages
26346 -d, --debug don't remove temporary files
26347 --recheck update $as_me by reconfiguring in the same conditions
26348 --file=FILE[:TEMPLATE]
26349 instantiate the configuration file FILE
26350 --header=FILE[:TEMPLATE]
26351 instantiate the configuration header FILE
26352
26353 Configuration files:
26354 $config_files
26355
26356 Configuration headers:
26357 $config_headers
26358
26359 Configuration commands:
26360 $config_commands
26361
26362 Report bugs to the package provider."
26363
26364 _ACEOF
26365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26366 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26367 ac_cs_version="\\
26368 emacs config.status 24.3.50
26369 configured by $0, generated by GNU Autoconf 2.65,
26370 with options \\"\$ac_cs_config\\"
26371
26372 Copyright (C) 2009 Free Software Foundation, Inc.
26373 This config.status script is free software; the Free Software Foundation
26374 gives unlimited permission to copy, distribute and modify it."
26375
26376 ac_pwd='$ac_pwd'
26377 srcdir='$srcdir'
26378 INSTALL='$INSTALL'
26379 MKDIR_P='$MKDIR_P'
26380 AWK='$AWK'
26381 test -n "\$AWK" || AWK=awk
26382 _ACEOF
26383
26384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26385 # The default lists apply if the user does not specify any file.
26386 ac_need_defaults=:
26387 while test $# != 0
26388 do
26389 case $1 in
26390 --*=*)
26391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26393 ac_shift=:
26394 ;;
26395 *)
26396 ac_option=$1
26397 ac_optarg=$2
26398 ac_shift=shift
26399 ;;
26400 esac
26401
26402 case $ac_option in
26403 # Handling of the options.
26404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26405 ac_cs_recheck=: ;;
26406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26407 $as_echo "$ac_cs_version"; exit ;;
26408 --config | --confi | --conf | --con | --co | --c )
26409 $as_echo "$ac_cs_config"; exit ;;
26410 --debug | --debu | --deb | --de | --d | -d )
26411 debug=: ;;
26412 --file | --fil | --fi | --f )
26413 $ac_shift
26414 case $ac_optarg in
26415 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26416 esac
26417 as_fn_append CONFIG_FILES " '$ac_optarg'"
26418 ac_need_defaults=false;;
26419 --header | --heade | --head | --hea )
26420 $ac_shift
26421 case $ac_optarg in
26422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26423 esac
26424 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26425 ac_need_defaults=false;;
26426 --he | --h)
26427 # Conflict between --help and --header
26428 as_fn_error "ambiguous option: \`$1'
26429 Try \`$0 --help' for more information.";;
26430 --help | --hel | -h )
26431 $as_echo "$ac_cs_usage"; exit ;;
26432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26434 ac_cs_silent=: ;;
26435
26436 # This is an error.
26437 -*) as_fn_error "unrecognized option: \`$1'
26438 Try \`$0 --help' for more information." ;;
26439
26440 *) as_fn_append ac_config_targets " $1"
26441 ac_need_defaults=false ;;
26442
26443 esac
26444 shift
26445 done
26446
26447 ac_configure_extra_args=
26448
26449 if $ac_cs_silent; then
26450 exec 6>/dev/null
26451 ac_configure_extra_args="$ac_configure_extra_args --silent"
26452 fi
26453
26454 _ACEOF
26455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26456 if \$ac_cs_recheck; then
26457 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26458 shift
26459 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26460 CONFIG_SHELL='$SHELL'
26461 export CONFIG_SHELL
26462 exec "\$@"
26463 fi
26464
26465 _ACEOF
26466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26467 exec 5>>config.log
26468 {
26469 echo
26470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26471 ## Running $as_me. ##
26472 _ASBOX
26473 $as_echo "$ac_log"
26474 } >&5
26475
26476 _ACEOF
26477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26478 #
26479 # INIT-COMMANDS
26480 #
26481 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26482 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26483
26484 _ACEOF
26485
26486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26487
26488 # Handling of arguments.
26489 for ac_config_target in $ac_config_targets
26490 do
26491 case $ac_config_target in
26492 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26493 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26494 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
26495 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26496 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26497 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
26498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26499 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26500 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26501 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26502 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26503 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26504 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26505 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26506 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26507 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26508 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26509 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26510 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26511 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26512 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26513 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26514 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26515 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26516
26517 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26518 esac
26519 done
26520
26521
26522 # If the user did not use the arguments to specify the items to instantiate,
26523 # then the envvar interface is used. Set only those that are not.
26524 # We use the long form for the default assignment because of an extremely
26525 # bizarre bug on SunOS 4.1.3.
26526 if $ac_need_defaults; then
26527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26530 fi
26531
26532 # Have a temporary directory for convenience. Make it in the build tree
26533 # simply because there is no reason against having it here, and in addition,
26534 # creating and moving files from /tmp can sometimes cause problems.
26535 # Hook for its removal unless debugging.
26536 # Note that there is a small window in which the directory will not be cleaned:
26537 # after its creation but before its name has been assigned to `$tmp'.
26538 $debug ||
26539 {
26540 tmp=
26541 trap 'exit_status=$?
26542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26543 ' 0
26544 trap 'as_fn_exit 1' 1 2 13 15
26545 }
26546 # Create a (secure) tmp directory for tmp files.
26547
26548 {
26549 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26551 } ||
26552 {
26553 tmp=./conf$$-$RANDOM
26554 (umask 077 && mkdir "$tmp")
26555 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26556
26557 # Set up the scripts for CONFIG_FILES section.
26558 # No need to generate them if there are no CONFIG_FILES.
26559 # This happens for instance with `./config.status config.h'.
26560 if test -n "$CONFIG_FILES"; then
26561
26562 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26563 ac_cs_awk_getline=:
26564 ac_cs_awk_pipe_init=
26565 ac_cs_awk_read_file='
26566 while ((getline aline < (F[key])) > 0)
26567 print(aline)
26568 close(F[key])'
26569 ac_cs_awk_pipe_fini=
26570 else
26571 ac_cs_awk_getline=false
26572 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26573 ac_cs_awk_read_file='
26574 print "|#_!!_#|"
26575 print "cat " F[key] " &&"
26576 '$ac_cs_awk_pipe_init
26577 # The final `:' finishes the AND list.
26578 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26579 fi
26580 ac_cr=`echo X | tr X '\015'`
26581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26582 # But we know of no other shell where ac_cr would be empty at this
26583 # point, so we can use a bashism as a fallback.
26584 if test "x$ac_cr" = x; then
26585 eval ac_cr=\$\'\\r\'
26586 fi
26587 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26589 ac_cs_awk_cr='\r'
26590 else
26591 ac_cs_awk_cr=$ac_cr
26592 fi
26593
26594 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26595 _ACEOF
26596
26597 # Create commands to substitute file output variables.
26598 {
26599 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26600 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26601 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26602 echo "_ACAWK" &&
26603 echo "_ACEOF"
26604 } >conf$$files.sh &&
26605 . ./conf$$files.sh ||
26606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26607 rm -f conf$$files.sh
26608
26609 {
26610 echo "cat >conf$$subs.awk <<_ACEOF" &&
26611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26612 echo "_ACEOF"
26613 } >conf$$subs.sh ||
26614 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26616 ac_delim='%!_!# '
26617 for ac_last_try in false false false false false :; do
26618 . ./conf$$subs.sh ||
26619 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26620
26621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26622 if test $ac_delim_n = $ac_delim_num; then
26623 break
26624 elif $ac_last_try; then
26625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26626 else
26627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26628 fi
26629 done
26630 rm -f conf$$subs.sh
26631
26632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26633 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26634 _ACEOF
26635 sed -n '
26636 h
26637 s/^/S["/; s/!.*/"]=/
26638 p
26639 g
26640 s/^[^!]*!//
26641 :repl
26642 t repl
26643 s/'"$ac_delim"'$//
26644 t delim
26645 :nl
26646 h
26647 s/\(.\{148\}\)..*/\1/
26648 t more1
26649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26650 p
26651 n
26652 b repl
26653 :more1
26654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26655 p
26656 g
26657 s/.\{148\}//
26658 t nl
26659 :delim
26660 h
26661 s/\(.\{148\}\)..*/\1/
26662 t more2
26663 s/["\\]/\\&/g; s/^/"/; s/$/"/
26664 p
26665 b
26666 :more2
26667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26668 p
26669 g
26670 s/.\{148\}//
26671 t delim
26672 ' <conf$$subs.awk | sed '
26673 /^[^""]/{
26674 N
26675 s/\n//
26676 }
26677 ' >>$CONFIG_STATUS || ac_write_fail=1
26678 rm -f conf$$subs.awk
26679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26680 _ACAWK
26681 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26682 for (key in S) S_is_set[key] = 1
26683 FS = "\a"
26684 \$ac_cs_awk_pipe_init
26685 }
26686 {
26687 line = $ 0
26688 nfields = split(line, field, "@")
26689 substed = 0
26690 len = length(field[1])
26691 for (i = 2; i < nfields; i++) {
26692 key = field[i]
26693 keylen = length(key)
26694 if (S_is_set[key]) {
26695 value = S[key]
26696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26697 len += length(value) + length(field[++i])
26698 substed = 1
26699 } else
26700 len += 1 + keylen
26701 }
26702 if (nfields == 3 && !substed) {
26703 key = field[2]
26704 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26705 \$ac_cs_awk_read_file
26706 next
26707 }
26708 }
26709 print line
26710 }
26711 \$ac_cs_awk_pipe_fini
26712 _ACAWK
26713 _ACEOF
26714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26717 else
26718 cat
26719 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26720 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26721 _ACEOF
26722
26723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26725 # trailing colons and then remove the whole line if VPATH becomes empty
26726 # (actually we leave an empty line to preserve line numbers).
26727 if test "x$srcdir" = x.; then
26728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26729 s/:*\$(srcdir):*/:/
26730 s/:*\${srcdir}:*/:/
26731 s/:*@srcdir@:*/:/
26732 s/^\([^=]*=[ ]*\):*/\1/
26733 s/:*$//
26734 s/^[^=]*=[ ]*$//
26735 }'
26736 fi
26737
26738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26739 fi # test -n "$CONFIG_FILES"
26740
26741 # Set up the scripts for CONFIG_HEADERS section.
26742 # No need to generate them if there are no CONFIG_HEADERS.
26743 # This happens for instance with `./config.status Makefile'.
26744 if test -n "$CONFIG_HEADERS"; then
26745 cat >"$tmp/defines.awk" <<\_ACAWK ||
26746 BEGIN {
26747 _ACEOF
26748
26749 # Transform confdefs.h into an awk script `defines.awk', embedded as
26750 # here-document in config.status, that substitutes the proper values into
26751 # config.h.in to produce config.h.
26752
26753 # Create a delimiter string that does not exist in confdefs.h, to ease
26754 # handling of long lines.
26755 ac_delim='%!_!# '
26756 for ac_last_try in false false :; do
26757 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26758 if test -z "$ac_t"; then
26759 break
26760 elif $ac_last_try; then
26761 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26762 else
26763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26764 fi
26765 done
26766
26767 # For the awk script, D is an array of macro values keyed by name,
26768 # likewise P contains macro parameters if any. Preserve backslash
26769 # newline sequences.
26770
26771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26772 sed -n '
26773 s/.\{148\}/&'"$ac_delim"'/g
26774 t rset
26775 :rset
26776 s/^[ ]*#[ ]*define[ ][ ]*/ /
26777 t def
26778 d
26779 :def
26780 s/\\$//
26781 t bsnl
26782 s/["\\]/\\&/g
26783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26784 D["\1"]=" \3"/p
26785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26786 d
26787 :bsnl
26788 s/["\\]/\\&/g
26789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26790 D["\1"]=" \3\\\\\\n"\\/p
26791 t cont
26792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26793 t cont
26794 d
26795 :cont
26796 n
26797 s/.\{148\}/&'"$ac_delim"'/g
26798 t clear
26799 :clear
26800 s/\\$//
26801 t bsnlc
26802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26803 d
26804 :bsnlc
26805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26806 b cont
26807 ' <confdefs.h | sed '
26808 s/'"$ac_delim"'/"\\\
26809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26810
26811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26812 for (key in D) D_is_set[key] = 1
26813 FS = "\a"
26814 }
26815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26816 line = \$ 0
26817 split(line, arg, " ")
26818 if (arg[1] == "#") {
26819 defundef = arg[2]
26820 mac1 = arg[3]
26821 } else {
26822 defundef = substr(arg[1], 2)
26823 mac1 = arg[2]
26824 }
26825 split(mac1, mac2, "(") #)
26826 macro = mac2[1]
26827 prefix = substr(line, 1, index(line, defundef) - 1)
26828 if (D_is_set[macro]) {
26829 # Preserve the white space surrounding the "#".
26830 print prefix "define", macro P[macro] D[macro]
26831 next
26832 } else {
26833 # Replace #undef with comments. This is necessary, for example,
26834 # in the case of _POSIX_SOURCE, which is predefined and required
26835 # on some systems where configure will not decide to define it.
26836 if (defundef == "undef") {
26837 print "/*", prefix defundef, macro, "*/"
26838 next
26839 }
26840 }
26841 }
26842 { print }
26843 _ACAWK
26844 _ACEOF
26845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26846 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26847 fi # test -n "$CONFIG_HEADERS"
26848
26849
26850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26851 shift
26852 for ac_tag
26853 do
26854 case $ac_tag in
26855 :[FHLC]) ac_mode=$ac_tag; continue;;
26856 esac
26857 case $ac_mode$ac_tag in
26858 :[FHL]*:*);;
26859 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26860 :[FH]-) ac_tag=-:-;;
26861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26862 esac
26863 ac_save_IFS=$IFS
26864 IFS=:
26865 set x $ac_tag
26866 IFS=$ac_save_IFS
26867 shift
26868 ac_file=$1
26869 shift
26870
26871 case $ac_mode in
26872 :L) ac_source=$1;;
26873 :[FH])
26874 ac_file_inputs=
26875 for ac_f
26876 do
26877 case $ac_f in
26878 -) ac_f="$tmp/stdin";;
26879 *) # Look for the file first in the build tree, then in the source tree
26880 # (if the path is not absolute). The absolute path cannot be DOS-style,
26881 # because $ac_f cannot contain `:'.
26882 test -f "$ac_f" ||
26883 case $ac_f in
26884 [\\/$]*) false;;
26885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26886 esac ||
26887 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26888 esac
26889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26890 as_fn_append ac_file_inputs " '$ac_f'"
26891 done
26892
26893 # Let's still pretend it is `configure' which instantiates (i.e., don't
26894 # use $as_me), people would be surprised to read:
26895 # /* config.h. Generated by config.status. */
26896 configure_input='Generated from '`
26897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26898 `' by configure.'
26899 if test x"$ac_file" != x-; then
26900 configure_input="$ac_file. $configure_input"
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26902 $as_echo "$as_me: creating $ac_file" >&6;}
26903 fi
26904 # Neutralize special characters interpreted by sed in replacement strings.
26905 case $configure_input in #(
26906 *\&* | *\|* | *\\* )
26907 ac_sed_conf_input=`$as_echo "$configure_input" |
26908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26909 *) ac_sed_conf_input=$configure_input;;
26910 esac
26911
26912 case $ac_tag in
26913 *:-:* | *:-) cat >"$tmp/stdin" \
26914 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26915 esac
26916 ;;
26917 esac
26918
26919 ac_dir=`$as_dirname -- "$ac_file" ||
26920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26921 X"$ac_file" : 'X\(//\)[^/]' \| \
26922 X"$ac_file" : 'X\(//\)$' \| \
26923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26924 $as_echo X"$ac_file" |
26925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26926 s//\1/
26927 q
26928 }
26929 /^X\(\/\/\)[^/].*/{
26930 s//\1/
26931 q
26932 }
26933 /^X\(\/\/\)$/{
26934 s//\1/
26935 q
26936 }
26937 /^X\(\/\).*/{
26938 s//\1/
26939 q
26940 }
26941 s/.*/./; q'`
26942 as_dir="$ac_dir"; as_fn_mkdir_p
26943 ac_builddir=.
26944
26945 case "$ac_dir" in
26946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26947 *)
26948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26949 # A ".." for each directory in $ac_dir_suffix.
26950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26951 case $ac_top_builddir_sub in
26952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26954 esac ;;
26955 esac
26956 ac_abs_top_builddir=$ac_pwd
26957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26958 # for backward compatibility:
26959 ac_top_builddir=$ac_top_build_prefix
26960
26961 case $srcdir in
26962 .) # We are building in place.
26963 ac_srcdir=.
26964 ac_top_srcdir=$ac_top_builddir_sub
26965 ac_abs_top_srcdir=$ac_pwd ;;
26966 [\\/]* | ?:[\\/]* ) # Absolute name.
26967 ac_srcdir=$srcdir$ac_dir_suffix;
26968 ac_top_srcdir=$srcdir
26969 ac_abs_top_srcdir=$srcdir ;;
26970 *) # Relative name.
26971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26972 ac_top_srcdir=$ac_top_build_prefix$srcdir
26973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26974 esac
26975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26976
26977
26978 case $ac_mode in
26979 :F)
26980 #
26981 # CONFIG_FILE
26982 #
26983
26984 case $INSTALL in
26985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26987 esac
26988 ac_MKDIR_P=$MKDIR_P
26989 case $MKDIR_P in
26990 [\\/$]* | ?:[\\/]* ) ;;
26991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26992 esac
26993 _ACEOF
26994
26995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26996 # If the template does not know about datarootdir, expand it.
26997 # FIXME: This hack should be removed a few years after 2.60.
26998 ac_datarootdir_hack=; ac_datarootdir_seen=
26999 ac_sed_dataroot='
27000 /datarootdir/ {
27001 p
27002 q
27003 }
27004 /@datadir@/p
27005 /@docdir@/p
27006 /@infodir@/p
27007 /@localedir@/p
27008 /@mandir@/p'
27009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27010 *datarootdir*) ac_datarootdir_seen=yes;;
27011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27014 _ACEOF
27015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27016 ac_datarootdir_hack='
27017 s&@datadir@&$datadir&g
27018 s&@docdir@&$docdir&g
27019 s&@infodir@&$infodir&g
27020 s&@localedir@&$localedir&g
27021 s&@mandir@&$mandir&g
27022 s&\\\${datarootdir}&$datarootdir&g' ;;
27023 esac
27024 _ACEOF
27025
27026 # Neutralize VPATH when `$srcdir' = `.'.
27027 # Shell code in configure.ac might set extrasub.
27028 # FIXME: do we really want to maintain this feature?
27029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27030 ac_sed_extra="$ac_vpsub
27031 $extrasub
27032 _ACEOF
27033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27034 :t
27035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27036 s|@configure_input@|$ac_sed_conf_input|;t t
27037 s&@top_builddir@&$ac_top_builddir_sub&;t t
27038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27039 s&@srcdir@&$ac_srcdir&;t t
27040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27041 s&@top_srcdir@&$ac_top_srcdir&;t t
27042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27043 s&@builddir@&$ac_builddir&;t t
27044 s&@abs_builddir@&$ac_abs_builddir&;t t
27045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27046 s&@INSTALL@&$ac_INSTALL&;t t
27047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27048 $ac_datarootdir_hack
27049 "
27050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27051 if $ac_cs_awk_getline; then
27052 $AWK -f "$tmp/subs.awk"
27053 else
27054 $AWK -f "$tmp/subs.awk" | $SHELL
27055 fi >$tmp/out \
27056 || as_fn_error "could not create $ac_file" "$LINENO" 5
27057
27058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27062 which seems to be undefined. Please make sure it is defined." >&5
27063 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27064 which seems to be undefined. Please make sure it is defined." >&2;}
27065
27066 rm -f "$tmp/stdin"
27067 case $ac_file in
27068 -) cat "$tmp/out" && rm -f "$tmp/out";;
27069 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27070 esac \
27071 || as_fn_error "could not create $ac_file" "$LINENO" 5
27072 ;;
27073 :H)
27074 #
27075 # CONFIG_HEADER
27076 #
27077 if test x"$ac_file" != x-; then
27078 {
27079 $as_echo "/* $configure_input */" \
27080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27081 } >"$tmp/config.h" \
27082 || as_fn_error "could not create $ac_file" "$LINENO" 5
27083 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27085 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27086 else
27087 rm -f "$ac_file"
27088 mv "$tmp/config.h" "$ac_file" \
27089 || as_fn_error "could not create $ac_file" "$LINENO" 5
27090 fi
27091 else
27092 $as_echo "/* $configure_input */" \
27093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27094 || as_fn_error "could not create -" "$LINENO" 5
27095 fi
27096 # Compute "$ac_file"'s index in $config_headers.
27097 _am_arg="$ac_file"
27098 _am_stamp_count=1
27099 for _am_header in $config_headers :; do
27100 case $_am_header in
27101 $_am_arg | $_am_arg:* )
27102 break ;;
27103 * )
27104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27105 esac
27106 done
27107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27109 X"$_am_arg" : 'X\(//\)[^/]' \| \
27110 X"$_am_arg" : 'X\(//\)$' \| \
27111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27112 $as_echo X"$_am_arg" |
27113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27114 s//\1/
27115 q
27116 }
27117 /^X\(\/\/\)[^/].*/{
27118 s//\1/
27119 q
27120 }
27121 /^X\(\/\/\)$/{
27122 s//\1/
27123 q
27124 }
27125 /^X\(\/\).*/{
27126 s//\1/
27127 q
27128 }
27129 s/.*/./; q'`/stamp-h$_am_stamp_count
27130 ;;
27131
27132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27133 $as_echo "$as_me: executing $ac_file commands" >&6;}
27134 ;;
27135 esac
27136
27137
27138 case $ac_file$ac_mode in
27139 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27140 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27141 # are listed without --file. Let's play safe and only enable the eval
27142 # if we detect the quoting.
27143 case $CONFIG_FILES in
27144 *\'*) eval set x "$CONFIG_FILES" ;;
27145 *) set x $CONFIG_FILES ;;
27146 esac
27147 shift
27148 for mf
27149 do
27150 # Strip MF so we end up with the name of the file.
27151 mf=`echo "$mf" | sed -e 's/:.*$//'`
27152 # Check whether this is an Automake generated Makefile or not.
27153 # We used to match only the files named `Makefile.in', but
27154 # some people rename them; so instead we look at the file content.
27155 # Grep'ing the first line is not enough: some people post-process
27156 # each Makefile.in and add a new line on top of each file to say so.
27157 # Grep'ing the whole file is not good either: AIX grep has a line
27158 # limit of 2048, but all sed's we know have understand at least 4000.
27159 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27160 dirpart=`$as_dirname -- "$mf" ||
27161 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27162 X"$mf" : 'X\(//\)[^/]' \| \
27163 X"$mf" : 'X\(//\)$' \| \
27164 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27165 $as_echo X"$mf" |
27166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27167 s//\1/
27168 q
27169 }
27170 /^X\(\/\/\)[^/].*/{
27171 s//\1/
27172 q
27173 }
27174 /^X\(\/\/\)$/{
27175 s//\1/
27176 q
27177 }
27178 /^X\(\/\).*/{
27179 s//\1/
27180 q
27181 }
27182 s/.*/./; q'`
27183 else
27184 continue
27185 fi
27186 # Extract the definition of DEPDIR, am__include, and am__quote
27187 # from the Makefile without running `make'.
27188 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27189 test -z "$DEPDIR" && continue
27190 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27191 test -z "am__include" && continue
27192 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27193 # When using ansi2knr, U may be empty or an underscore; expand it
27194 U=`sed -n 's/^U = //p' < "$mf"`
27195 # Find all dependency output files, they are included files with
27196 # $(DEPDIR) in their names. We invoke sed twice because it is the
27197 # simplest approach to changing $(DEPDIR) to its actual value in the
27198 # expansion.
27199 for file in `sed -n "
27200 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27201 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27202 # Make sure the directory exists.
27203 test -f "$dirpart/$file" && continue
27204 fdir=`$as_dirname -- "$file" ||
27205 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27206 X"$file" : 'X\(//\)[^/]' \| \
27207 X"$file" : 'X\(//\)$' \| \
27208 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27209 $as_echo X"$file" |
27210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27211 s//\1/
27212 q
27213 }
27214 /^X\(\/\/\)[^/].*/{
27215 s//\1/
27216 q
27217 }
27218 /^X\(\/\/\)$/{
27219 s//\1/
27220 q
27221 }
27222 /^X\(\/\).*/{
27223 s//\1/
27224 q
27225 }
27226 s/.*/./; q'`
27227 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27228 # echo "creating $dirpart/$file"
27229 echo '# dummy' > "$dirpart/$file"
27230 done
27231 done
27232 }
27233 ;;
27234 "mkdirs":C)
27235 for dir in etc lisp ; do
27236 test -d ${dir} || mkdir ${dir}
27237 done
27238 ;;
27239 "epaths":C)
27240 echo creating src/epaths.h
27241 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27242 ;;
27243 "gdbinit":C)
27244 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27245 echo creating src/.gdbinit
27246 echo source $srcdir/src/.gdbinit > src/.gdbinit
27247 fi
27248 ;;
27249
27250 esac
27251 done # for ac_tag
27252
27253
27254 as_fn_exit 0
27255 _ACEOF
27256 ac_clean_files=$ac_clean_files_save
27257
27258 test $ac_write_fail = 0 ||
27259 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27260
27261
27262 # configure is writing to config.log, and then calls config.status.
27263 # config.status does its own redirection, appending to config.log.
27264 # Unfortunately, on DOS this fails, as config.log is still kept open
27265 # by configure, so config.status won't be able to write to it; its
27266 # output is simply discarded. So we exec the FD to /dev/null,
27267 # effectively closing config.log, so it can be properly (re)opened and
27268 # appended to by config.status. When coming back to configure, we
27269 # need to make the FD available again.
27270 if test "$no_create" != yes; then
27271 ac_cs_success=:
27272 ac_config_status_args=
27273 test "$silent" = yes &&
27274 ac_config_status_args="$ac_config_status_args --quiet"
27275 exec 5>/dev/null
27276 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27277 exec 5>>config.log
27278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27279 # would make configure fail if this is the last instruction.
27280 $ac_cs_success || as_fn_exit $?
27281 fi
27282 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27284 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27285 fi
27286