ef21aa8cab24d8c8e75faefc04a0696f791569d8
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.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 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOIMAX
914 HAVE_DECL_STRTOUMAX
915 HAVE_DECL_STRTOIMAX
916 HAVE_DECL_IMAXDIV
917 HAVE_DECL_IMAXABS
918 GNULIB_STRTOUMAX
919 GNULIB_STRTOIMAX
920 GNULIB_IMAXDIV
921 GNULIB_IMAXABS
922 GL_GENERATE_STDINT_H_FALSE
923 GL_GENERATE_STDINT_H_TRUE
924 STDINT_H
925 WINT_T_SUFFIX
926 WCHAR_T_SUFFIX
927 SIG_ATOMIC_T_SUFFIX
928 SIZE_T_SUFFIX
929 PTRDIFF_T_SUFFIX
930 HAVE_SIGNED_WINT_T
931 HAVE_SIGNED_WCHAR_T
932 HAVE_SIGNED_SIG_ATOMIC_T
933 BITSIZEOF_WINT_T
934 BITSIZEOF_WCHAR_T
935 BITSIZEOF_SIG_ATOMIC_T
936 BITSIZEOF_SIZE_T
937 BITSIZEOF_PTRDIFF_T
938 APPLE_UNIVERSAL_BUILD
939 HAVE_SYS_BITYPES_H
940 HAVE_SYS_INTTYPES_H
941 HAVE_STDINT_H
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
943 NEXT_STDINT_H
944 HAVE_SYS_TYPES_H
945 HAVE_INTTYPES_H
946 HAVE_WCHAR_H
947 HAVE_UNSIGNED_LONG_LONG_INT
948 HAVE_LONG_LONG_INT
949 HAVE_WINSOCK2_H
950 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 NEXT_SYS_TIME_H
952 REPLACE_STRUCT_TIMEVAL
953 REPLACE_GETTIMEOFDAY
954 HAVE_SYS_TIME_H
955 HAVE_STRUCT_TIMEVAL
956 HAVE_GETTIMEOFDAY
957 GNULIB_GETTIMEOFDAY
958 GNULIB_GL_UNISTD_H_GETOPT
959 GETOPT_H
960 HAVE_GETOPT_H
961 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
962 NEXT_GETOPT_H
963 GETLOADAVG_LIBS
964 REPLACE_WCTOMB
965 REPLACE_UNSETENV
966 REPLACE_STRTOD
967 REPLACE_SETENV
968 REPLACE_REALPATH
969 REPLACE_REALLOC
970 REPLACE_RANDOM_R
971 REPLACE_PUTENV
972 REPLACE_PTSNAME_R
973 REPLACE_PTSNAME
974 REPLACE_MKSTEMP
975 REPLACE_MBTOWC
976 REPLACE_MALLOC
977 REPLACE_CANONICALIZE_FILE_NAME
978 REPLACE_CALLOC
979 HAVE_DECL_UNSETENV
980 HAVE_UNLOCKPT
981 HAVE_SYS_LOADAVG_H
982 HAVE_STRUCT_RANDOM_DATA
983 HAVE_STRTOULL
984 HAVE_STRTOLL
985 HAVE_STRTOD
986 HAVE_DECL_SETENV
987 HAVE_SETENV
988 HAVE_SECURE_GETENV
989 HAVE_RPMATCH
990 HAVE_REALPATH
991 HAVE_RANDOM_R
992 HAVE_RANDOM_H
993 HAVE_RANDOM
994 HAVE_PTSNAME_R
995 HAVE_PTSNAME
996 HAVE_POSIX_OPENPT
997 HAVE_MKSTEMPS
998 HAVE_MKSTEMP
999 HAVE_MKOSTEMPS
1000 HAVE_MKOSTEMP
1001 HAVE_MKDTEMP
1002 HAVE_GRANTPT
1003 HAVE_GETSUBOPT
1004 HAVE_DECL_GETLOADAVG
1005 HAVE_CANONICALIZE_FILE_NAME
1006 HAVE_ATOLL
1007 HAVE__EXIT
1008 GNULIB_WCTOMB
1009 GNULIB_UNSETENV
1010 GNULIB_UNLOCKPT
1011 GNULIB_SYSTEM_POSIX
1012 GNULIB_STRTOULL
1013 GNULIB_STRTOLL
1014 GNULIB_STRTOD
1015 GNULIB_SETENV
1016 GNULIB_SECURE_GETENV
1017 GNULIB_RPMATCH
1018 GNULIB_REALPATH
1019 GNULIB_REALLOC_POSIX
1020 GNULIB_RANDOM_R
1021 GNULIB_RANDOM
1022 GNULIB_PUTENV
1023 GNULIB_PTSNAME_R
1024 GNULIB_PTSNAME
1025 GNULIB_POSIX_OPENPT
1026 GNULIB_MKSTEMPS
1027 GNULIB_MKSTEMP
1028 GNULIB_MKOSTEMPS
1029 GNULIB_MKOSTEMP
1030 GNULIB_MKDTEMP
1031 GNULIB_MBTOWC
1032 GNULIB_MALLOC_POSIX
1033 GNULIB_GRANTPT
1034 GNULIB_GETSUBOPT
1035 GNULIB_GETLOADAVG
1036 GNULIB_CANONICALIZE_FILE_NAME
1037 GNULIB_CALLOC_POSIX
1038 GNULIB_ATOLL
1039 GNULIB__EXIT
1040 REPLACE_UTIMENSAT
1041 REPLACE_STAT
1042 REPLACE_MKNOD
1043 REPLACE_MKFIFO
1044 REPLACE_MKDIR
1045 REPLACE_LSTAT
1046 REPLACE_FUTIMENS
1047 REPLACE_FSTATAT
1048 REPLACE_FSTAT
1049 HAVE_UTIMENSAT
1050 HAVE_MKNODAT
1051 HAVE_MKNOD
1052 HAVE_MKFIFOAT
1053 HAVE_MKFIFO
1054 HAVE_MKDIRAT
1055 HAVE_LSTAT
1056 HAVE_LCHMOD
1057 HAVE_FUTIMENS
1058 HAVE_FSTATAT
1059 HAVE_FCHMODAT
1060 GNULIB_UTIMENSAT
1061 GNULIB_STAT
1062 GNULIB_MKNODAT
1063 GNULIB_MKNOD
1064 GNULIB_MKFIFOAT
1065 GNULIB_MKFIFO
1066 GNULIB_MKDIRAT
1067 GNULIB_LSTAT
1068 GNULIB_LCHMOD
1069 GNULIB_FUTIMENS
1070 GNULIB_FSTATAT
1071 GNULIB_FSTAT
1072 GNULIB_FCHMODAT
1073 LIB_FDATASYNC
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 NEXT_FCNTL_H
1076 REPLACE_OPENAT
1077 REPLACE_OPEN
1078 REPLACE_FCNTL
1079 HAVE_OPENAT
1080 HAVE_FCNTL
1081 GNULIB_OPENAT
1082 GNULIB_OPEN
1083 GNULIB_NONBLOCKING
1084 GNULIB_FCNTL
1085 GL_GENERATE_EXECINFO_H_FALSE
1086 GL_GENERATE_EXECINFO_H_TRUE
1087 LIB_EXECINFO
1088 EXECINFO_H
1089 EOVERFLOW_VALUE
1090 EOVERFLOW_HIDDEN
1091 ENOLINK_VALUE
1092 ENOLINK_HIDDEN
1093 EMULTIHOP_VALUE
1094 EMULTIHOP_HIDDEN
1095 GL_GENERATE_ERRNO_H_FALSE
1096 GL_GENERATE_ERRNO_H_TRUE
1097 ERRNO_H
1098 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1099 NEXT_ERRNO_H
1100 HAVE_DIRENT_H
1101 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1102 NEXT_DIRENT_H
1103 PRAGMA_COLUMNS
1104 PRAGMA_SYSTEM_HEADER
1105 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1106 INCLUDE_NEXT
1107 REPLACE_FDOPENDIR
1108 REPLACE_DIRFD
1109 REPLACE_CLOSEDIR
1110 REPLACE_OPENDIR
1111 HAVE_ALPHASORT
1112 HAVE_SCANDIR
1113 HAVE_FDOPENDIR
1114 HAVE_DECL_FDOPENDIR
1115 HAVE_DECL_DIRFD
1116 HAVE_CLOSEDIR
1117 HAVE_REWINDDIR
1118 HAVE_READDIR
1119 HAVE_OPENDIR
1120 GNULIB_ALPHASORT
1121 GNULIB_SCANDIR
1122 GNULIB_FDOPENDIR
1123 GNULIB_DIRFD
1124 GNULIB_CLOSEDIR
1125 GNULIB_REWINDDIR
1126 GNULIB_READDIR
1127 GNULIB_OPENDIR
1128 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1129 UNISTD_H_HAVE_WINSOCK2_H
1130 REPLACE_WRITE
1131 REPLACE_USLEEP
1132 REPLACE_UNLINKAT
1133 REPLACE_UNLINK
1134 REPLACE_TTYNAME_R
1135 REPLACE_SYMLINK
1136 REPLACE_SLEEP
1137 REPLACE_RMDIR
1138 REPLACE_READLINK
1139 REPLACE_READ
1140 REPLACE_PWRITE
1141 REPLACE_PREAD
1142 REPLACE_LSEEK
1143 REPLACE_LINKAT
1144 REPLACE_LINK
1145 REPLACE_LCHOWN
1146 REPLACE_ISATTY
1147 REPLACE_GETPAGESIZE
1148 REPLACE_GETGROUPS
1149 REPLACE_GETLOGIN_R
1150 REPLACE_GETDTABLESIZE
1151 REPLACE_GETDOMAINNAME
1152 REPLACE_GETCWD
1153 REPLACE_FTRUNCATE
1154 REPLACE_FCHOWNAT
1155 REPLACE_DUP2
1156 REPLACE_DUP
1157 REPLACE_CLOSE
1158 REPLACE_CHOWN
1159 HAVE_SYS_PARAM_H
1160 HAVE_OS_H
1161 HAVE_DECL_TTYNAME_R
1162 HAVE_DECL_SETHOSTNAME
1163 HAVE_DECL_GETUSERSHELL
1164 HAVE_DECL_GETPAGESIZE
1165 HAVE_DECL_GETLOGIN_R
1166 HAVE_DECL_GETDOMAINNAME
1167 HAVE_DECL_FDATASYNC
1168 HAVE_DECL_FCHDIR
1169 HAVE_DECL_ENVIRON
1170 HAVE_USLEEP
1171 HAVE_UNLINKAT
1172 HAVE_SYMLINKAT
1173 HAVE_SYMLINK
1174 HAVE_SLEEP
1175 HAVE_SETHOSTNAME
1176 HAVE_READLINKAT
1177 HAVE_READLINK
1178 HAVE_PWRITE
1179 HAVE_PREAD
1180 HAVE_PIPE2
1181 HAVE_PIPE
1182 HAVE_LINKAT
1183 HAVE_LINK
1184 HAVE_LCHOWN
1185 HAVE_GROUP_MEMBER
1186 HAVE_GETPAGESIZE
1187 HAVE_GETLOGIN
1188 HAVE_GETHOSTNAME
1189 HAVE_GETGROUPS
1190 HAVE_GETDTABLESIZE
1191 HAVE_FTRUNCATE
1192 HAVE_FSYNC
1193 HAVE_FDATASYNC
1194 HAVE_FCHOWNAT
1195 HAVE_FCHDIR
1196 HAVE_FACCESSAT
1197 HAVE_EUIDACCESS
1198 HAVE_DUP3
1199 HAVE_DUP2
1200 HAVE_CHOWN
1201 GNULIB_WRITE
1202 GNULIB_USLEEP
1203 GNULIB_UNLINKAT
1204 GNULIB_UNLINK
1205 GNULIB_UNISTD_H_SIGPIPE
1206 GNULIB_UNISTD_H_NONBLOCKING
1207 GNULIB_TTYNAME_R
1208 GNULIB_SYMLINKAT
1209 GNULIB_SYMLINK
1210 GNULIB_SLEEP
1211 GNULIB_SETHOSTNAME
1212 GNULIB_RMDIR
1213 GNULIB_READLINKAT
1214 GNULIB_READLINK
1215 GNULIB_READ
1216 GNULIB_PWRITE
1217 GNULIB_PREAD
1218 GNULIB_PIPE2
1219 GNULIB_PIPE
1220 GNULIB_LSEEK
1221 GNULIB_LINKAT
1222 GNULIB_LINK
1223 GNULIB_LCHOWN
1224 GNULIB_ISATTY
1225 GNULIB_GROUP_MEMBER
1226 GNULIB_GETUSERSHELL
1227 GNULIB_GETPAGESIZE
1228 GNULIB_GETLOGIN_R
1229 GNULIB_GETLOGIN
1230 GNULIB_GETHOSTNAME
1231 GNULIB_GETGROUPS
1232 GNULIB_GETDTABLESIZE
1233 GNULIB_GETDOMAINNAME
1234 GNULIB_GETCWD
1235 GNULIB_FTRUNCATE
1236 GNULIB_FSYNC
1237 GNULIB_FDATASYNC
1238 GNULIB_FCHOWNAT
1239 GNULIB_FCHDIR
1240 GNULIB_FACCESSAT
1241 GNULIB_EUIDACCESS
1242 GNULIB_ENVIRON
1243 GNULIB_DUP3
1244 GNULIB_DUP2
1245 GNULIB_DUP
1246 GNULIB_CLOSE
1247 GNULIB_CHOWN
1248 GNULIB_CHDIR
1249 LIB_CLOCK_GETTIME
1250 GL_GENERATE_BYTESWAP_H_FALSE
1251 GL_GENERATE_BYTESWAP_H_TRUE
1252 BYTESWAP_H
1253 GL_GENERATE_ALLOCA_H_FALSE
1254 GL_GENERATE_ALLOCA_H_TRUE
1255 ALLOCA_H
1256 ALLOCA
1257 GL_COND_LIBTOOL_FALSE
1258 GL_COND_LIBTOOL_TRUE
1259 POST_ALLOC_OBJ
1260 PRE_ALLOC_OBJ
1261 CYGWIN_OBJ
1262 RALLOC_OBJ
1263 OLDXMENU_DEPS
1264 LIBX_OTHER
1265 LIBXMENU
1266 OLDXMENU
1267 OLDXMENU_TARGET
1268 LIBXT_OTHER
1269 TOOLKIT_LIBW
1270 WIDGET_OBJ
1271 XOBJ
1272 XMENU_OBJ
1273 FONT_OBJ
1274 OTHER_FILES
1275 GNU_OBJC_CFLAGS
1276 ns_appsrc
1277 ns_appresdir
1278 ns_appbindir
1279 ns_appdir
1280 X_TOOLKIT_TYPE
1281 GNUSTEP_CFLAGS
1282 C_SWITCH_X_SITE
1283 LD_SWITCH_X_SITE
1284 gameuser
1285 gamedir
1286 bitmapdir
1287 etcdocdir
1288 archlibdir
1289 etcdir
1290 x_default_search_path
1291 lisppath
1292 locallisppath
1293 standardlisppath
1294 leimdir
1295 lispdir
1296 srcdir
1297 canonical
1298 configuration
1299 version
1300 copyright
1301 XGSELOBJ
1302 KRB4LIB
1303 DESLIB
1304 KRB5LIB
1305 CRYPTOLIB
1306 COM_ERRLIB
1307 LIBRESOLV
1308 LIBHESIOD
1309 TERMCAP_OBJ
1310 LIBS_TERMCAP
1311 BLESSMAIL_TARGET
1312 LIBS_MAIL
1313 liblockfile
1314 LIBXML2_LIBS
1315 LIBXML2_CFLAGS
1316 XINERAMA_LIBS
1317 XINERAMA_CFLAGS
1318 XRANDR_LIBS
1319 XRANDR_CFLAGS
1320 LIBXSM
1321 LIBGPM
1322 LIBGIF
1323 LIBTIFF
1324 LIBZ
1325 LIBPNG
1326 LIBJPEG
1327 LIBXPM
1328 M17N_FLT_LIBS
1329 M17N_FLT_CFLAGS
1330 LIBOTF_LIBS
1331 LIBOTF_CFLAGS
1332 FREETYPE_LIBS
1333 FREETYPE_CFLAGS
1334 XFT_LIBS
1335 XFT_CFLAGS
1336 FONTCONFIG_LIBS
1337 FONTCONFIG_CFLAGS
1338 LIBXMU
1339 LIBXTR6
1340 NOTIFY_OBJ
1341 GFILENOTIFY_LIBS
1342 GFILENOTIFY_CFLAGS
1343 LIBGNUTLS_LIBS
1344 LIBGNUTLS_CFLAGS
1345 LIBSELINUX_LIBS
1346 SETTINGS_LIBS
1347 SETTINGS_CFLAGS
1348 GOBJECT_LIBS
1349 GOBJECT_CFLAGS
1350 GCONF_LIBS
1351 GCONF_CFLAGS
1352 GSETTINGS_LIBS
1353 GSETTINGS_CFLAGS
1354 DBUS_OBJ
1355 DBUS_LIBS
1356 DBUS_CFLAGS
1357 GTK_OBJ
1358 GTK_LIBS
1359 GTK_CFLAGS
1360 IMAGEMAGICK_LIBS
1361 IMAGEMAGICK_CFLAGS
1362 RSVG_LIBS
1363 RSVG_CFLAGS
1364 LIB_PTHREAD
1365 VMLIMIT_OBJ
1366 GMALLOC_OBJ
1367 HAVE_XSERVER
1368 XARGS_LIMIT
1369 NTLIB
1370 LIB_WSOCK32
1371 LIBS_ECLIENT
1372 CM_OBJ
1373 NTDIR
1374 FIRSTFILE_OBJ
1375 W32_RES_LINK
1376 CLIENTW
1377 CLIENTRES
1378 UPDATE_MANIFEST
1379 EMACS_MANIFEST
1380 EMACSRES
1381 W32_LIBS
1382 W32_OBJ
1383 WINDRES
1384 NS_OBJC_OBJ
1385 NS_OBJ
1386 ns_self_contained
1387 INSTALL_ARCH_INDEP_EXTRA
1388 LIBS_GNUSTEP
1389 LD_SWITCH_X_SITE_RPATH
1390 XMKMF
1391 DEPFLAGS
1392 MKDEPDIR
1393 CFLAGS_SOUND
1394 ALSA_LIBS
1395 ALSA_CFLAGS
1396 LIBSOUND
1397 PKG_CONFIG
1398 LIB_MATH
1399 LIBS_SYSTEM
1400 C_SWITCH_SYSTEM
1401 UNEXEC_OBJ
1402 C_SWITCH_MACHINE
1403 LD_SWITCH_SYSTEM
1404 CANNOT_DUMP
1405 DOCMISC_W32
1406 INFO_OPTS
1407 INFO_EXT
1408 HAVE_MAKEINFO
1409 PAXCTL
1410 GZIP_PROG
1411 INSTALL_INFO
1412 LN_S_FILEONLY
1413 GNULIB_WARN_CFLAGS
1414 WERROR_CFLAGS
1415 WARN_CFLAGS
1416 RANLIB
1417 ARFLAGS
1418 AR
1419 EGREP
1420 GREP
1421 CPP
1422 BUILDING_FOR_WINDOWSNT_FALSE
1423 BUILDING_FOR_WINDOWSNT_TRUE
1424 am__fastdepCC_FALSE
1425 am__fastdepCC_TRUE
1426 CCDEPMODE
1427 AMDEPBACKSLASH
1428 AMDEP_FALSE
1429 AMDEP_TRUE
1430 am__quote
1431 am__include
1432 DEPDIR
1433 OBJEXT
1434 EXEEXT
1435 ac_ct_CC
1436 CPPFLAGS
1437 LDFLAGS
1438 CFLAGS
1439 CC
1440 host_os
1441 host_vendor
1442 host_cpu
1443 host
1444 build_os
1445 build_vendor
1446 build_cpu
1447 build
1448 PROFILING_CFLAGS
1449 cache_file
1450 am__untar
1451 am__tar
1452 AMTAR
1453 am__leading_dot
1454 SET_MAKE
1455 AWK
1456 mkdir_p
1457 MKDIR_P
1458 INSTALL_STRIP_PROGRAM
1459 STRIP
1460 install_sh
1461 MAKEINFO
1462 AUTOHEADER
1463 AUTOMAKE
1464 AUTOCONF
1465 ACLOCAL
1466 VERSION
1467 PACKAGE
1468 CYGPATH_W
1469 am__isrc
1470 INSTALL_DATA
1471 INSTALL_SCRIPT
1472 INSTALL_PROGRAM
1473 target_alias
1474 host_alias
1475 build_alias
1476 LIBS
1477 ECHO_T
1478 ECHO_N
1479 ECHO_C
1480 DEFS
1481 mandir
1482 localedir
1483 libdir
1484 psdir
1485 pdfdir
1486 dvidir
1487 htmldir
1488 infodir
1489 docdir
1490 oldincludedir
1491 includedir
1492 localstatedir
1493 sharedstatedir
1494 sysconfdir
1495 datadir
1496 datarootdir
1497 libexecdir
1498 sbindir
1499 bindir
1500 program_transform_name
1501 prefix
1502 exec_prefix
1503 PACKAGE_URL
1504 PACKAGE_BUGREPORT
1505 PACKAGE_STRING
1506 PACKAGE_VERSION
1507 PACKAGE_TARNAME
1508 PACKAGE_NAME
1509 PATH_SEPARATOR
1510 SHELL'
1511 ac_subst_files='deps_frag
1512 lisp_frag'
1513 ac_user_opts='
1514 enable_option_checking
1515 with_all
1516 with_pop
1517 with_kerberos
1518 with_kerberos5
1519 with_hesiod
1520 with_mmdf
1521 with_mail_unlink
1522 with_mailhost
1523 with_sound
1524 with_x_toolkit
1525 with_wide_int
1526 with_xpm
1527 with_jpeg
1528 with_tiff
1529 with_gif
1530 with_png
1531 with_rsvg
1532 with_xml2
1533 with_imagemagick
1534 with_xft
1535 with_libotf
1536 with_m17n_flt
1537 with_toolkit_scroll_bars
1538 with_xaw3d
1539 with_xim
1540 with_ns
1541 with_w32
1542 with_gpm
1543 with_dbus
1544 with_gconf
1545 with_gsettings
1546 with_selinux
1547 with_gnutls
1548 with_zlib
1549 with_file_notification
1550 with_makeinfo
1551 with_compress_install
1552 with_pkg_config_prog
1553 with_gameuser
1554 with_gnustep_conf
1555 enable_ns_self_contained
1556 enable_locallisppath
1557 enable_checking
1558 enable_check_lisp_object_type
1559 enable_profiling
1560 enable_autodepend
1561 enable_gtk_deprecation_warnings
1562 enable_dependency_tracking
1563 enable_largefile
1564 enable_gcc_warnings
1565 enable_link_time_optimization
1566 with_x
1567 enable_acl
1568 '
1569 ac_precious_vars='build_alias
1570 host_alias
1571 target_alias
1572 CC
1573 CFLAGS
1574 LDFLAGS
1575 LIBS
1576 CPPFLAGS
1577 CPP
1578 XMKMF'
1579
1580
1581 # Initialize some variables set by options.
1582 ac_init_help=
1583 ac_init_version=false
1584 ac_unrecognized_opts=
1585 ac_unrecognized_sep=
1586 # The variables have the same names as the options, with
1587 # dashes changed to underlines.
1588 cache_file=/dev/null
1589 exec_prefix=NONE
1590 no_create=
1591 no_recursion=
1592 prefix=NONE
1593 program_prefix=NONE
1594 program_suffix=NONE
1595 program_transform_name=s,x,x,
1596 silent=
1597 site=
1598 srcdir=
1599 verbose=
1600 x_includes=NONE
1601 x_libraries=NONE
1602
1603 # Installation directory options.
1604 # These are left unexpanded so users can "make install exec_prefix=/foo"
1605 # and all the variables that are supposed to be based on exec_prefix
1606 # by default will actually change.
1607 # Use braces instead of parens because sh, perl, etc. also accept them.
1608 # (The list follows the same order as the GNU Coding Standards.)
1609 bindir='${exec_prefix}/bin'
1610 sbindir='${exec_prefix}/sbin'
1611 libexecdir='${exec_prefix}/libexec'
1612 datarootdir='${prefix}/share'
1613 datadir='${datarootdir}'
1614 sysconfdir='${prefix}/etc'
1615 sharedstatedir='${prefix}/com'
1616 localstatedir='${prefix}/var'
1617 includedir='${prefix}/include'
1618 oldincludedir='/usr/include'
1619 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1620 infodir='${datarootdir}/info'
1621 htmldir='${docdir}'
1622 dvidir='${docdir}'
1623 pdfdir='${docdir}'
1624 psdir='${docdir}'
1625 libdir='${exec_prefix}/lib'
1626 localedir='${datarootdir}/locale'
1627 mandir='${datarootdir}/man'
1628
1629 ac_prev=
1630 ac_dashdash=
1631 for ac_option
1632 do
1633 # If the previous option needs an argument, assign it.
1634 if test -n "$ac_prev"; then
1635 eval $ac_prev=\$ac_option
1636 ac_prev=
1637 continue
1638 fi
1639
1640 case $ac_option in
1641 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1642 *) ac_optarg=yes ;;
1643 esac
1644
1645 # Accept the important Cygnus configure options, so we can diagnose typos.
1646
1647 case $ac_dashdash$ac_option in
1648 --)
1649 ac_dashdash=yes ;;
1650
1651 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1652 ac_prev=bindir ;;
1653 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1654 bindir=$ac_optarg ;;
1655
1656 -build | --build | --buil | --bui | --bu)
1657 ac_prev=build_alias ;;
1658 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1659 build_alias=$ac_optarg ;;
1660
1661 -cache-file | --cache-file | --cache-fil | --cache-fi \
1662 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1663 ac_prev=cache_file ;;
1664 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1665 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1666 cache_file=$ac_optarg ;;
1667
1668 --config-cache | -C)
1669 cache_file=config.cache ;;
1670
1671 -datadir | --datadir | --datadi | --datad)
1672 ac_prev=datadir ;;
1673 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1674 datadir=$ac_optarg ;;
1675
1676 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1677 | --dataroo | --dataro | --datar)
1678 ac_prev=datarootdir ;;
1679 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1680 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1681 datarootdir=$ac_optarg ;;
1682
1683 -disable-* | --disable-*)
1684 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1685 # Reject names that are not valid shell variable names.
1686 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1687 as_fn_error "invalid feature name: $ac_useropt"
1688 ac_useropt_orig=$ac_useropt
1689 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1690 case $ac_user_opts in
1691 *"
1692 "enable_$ac_useropt"
1693 "*) ;;
1694 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1695 ac_unrecognized_sep=', ';;
1696 esac
1697 eval enable_$ac_useropt=no ;;
1698
1699 -docdir | --docdir | --docdi | --doc | --do)
1700 ac_prev=docdir ;;
1701 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1702 docdir=$ac_optarg ;;
1703
1704 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1705 ac_prev=dvidir ;;
1706 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1707 dvidir=$ac_optarg ;;
1708
1709 -enable-* | --enable-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error "invalid feature name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1717 *"
1718 "enable_$ac_useropt"
1719 "*) ;;
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1722 esac
1723 eval enable_$ac_useropt=\$ac_optarg ;;
1724
1725 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1726 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1727 | --exec | --exe | --ex)
1728 ac_prev=exec_prefix ;;
1729 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1730 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1731 | --exec=* | --exe=* | --ex=*)
1732 exec_prefix=$ac_optarg ;;
1733
1734 -gas | --gas | --ga | --g)
1735 # Obsolete; use --with-gas.
1736 with_gas=yes ;;
1737
1738 -help | --help | --hel | --he | -h)
1739 ac_init_help=long ;;
1740 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1741 ac_init_help=recursive ;;
1742 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1743 ac_init_help=short ;;
1744
1745 -host | --host | --hos | --ho)
1746 ac_prev=host_alias ;;
1747 -host=* | --host=* | --hos=* | --ho=*)
1748 host_alias=$ac_optarg ;;
1749
1750 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1751 ac_prev=htmldir ;;
1752 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1753 | --ht=*)
1754 htmldir=$ac_optarg ;;
1755
1756 -includedir | --includedir | --includedi | --included | --include \
1757 | --includ | --inclu | --incl | --inc)
1758 ac_prev=includedir ;;
1759 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1760 | --includ=* | --inclu=* | --incl=* | --inc=*)
1761 includedir=$ac_optarg ;;
1762
1763 -infodir | --infodir | --infodi | --infod | --info | --inf)
1764 ac_prev=infodir ;;
1765 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1766 infodir=$ac_optarg ;;
1767
1768 -libdir | --libdir | --libdi | --libd)
1769 ac_prev=libdir ;;
1770 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1771 libdir=$ac_optarg ;;
1772
1773 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1774 | --libexe | --libex | --libe)
1775 ac_prev=libexecdir ;;
1776 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1777 | --libexe=* | --libex=* | --libe=*)
1778 libexecdir=$ac_optarg ;;
1779
1780 -localedir | --localedir | --localedi | --localed | --locale)
1781 ac_prev=localedir ;;
1782 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1783 localedir=$ac_optarg ;;
1784
1785 -localstatedir | --localstatedir | --localstatedi | --localstated \
1786 | --localstate | --localstat | --localsta | --localst | --locals)
1787 ac_prev=localstatedir ;;
1788 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1789 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1790 localstatedir=$ac_optarg ;;
1791
1792 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1793 ac_prev=mandir ;;
1794 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1795 mandir=$ac_optarg ;;
1796
1797 -nfp | --nfp | --nf)
1798 # Obsolete; use --without-fp.
1799 with_fp=no ;;
1800
1801 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1802 | --no-cr | --no-c | -n)
1803 no_create=yes ;;
1804
1805 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1806 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1807 no_recursion=yes ;;
1808
1809 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1810 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1811 | --oldin | --oldi | --old | --ol | --o)
1812 ac_prev=oldincludedir ;;
1813 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1814 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1815 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1816 oldincludedir=$ac_optarg ;;
1817
1818 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1819 ac_prev=prefix ;;
1820 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1821 prefix=$ac_optarg ;;
1822
1823 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1824 | --program-pre | --program-pr | --program-p)
1825 ac_prev=program_prefix ;;
1826 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1827 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1828 program_prefix=$ac_optarg ;;
1829
1830 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1831 | --program-suf | --program-su | --program-s)
1832 ac_prev=program_suffix ;;
1833 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1834 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1835 program_suffix=$ac_optarg ;;
1836
1837 -program-transform-name | --program-transform-name \
1838 | --program-transform-nam | --program-transform-na \
1839 | --program-transform-n | --program-transform- \
1840 | --program-transform | --program-transfor \
1841 | --program-transfo | --program-transf \
1842 | --program-trans | --program-tran \
1843 | --progr-tra | --program-tr | --program-t)
1844 ac_prev=program_transform_name ;;
1845 -program-transform-name=* | --program-transform-name=* \
1846 | --program-transform-nam=* | --program-transform-na=* \
1847 | --program-transform-n=* | --program-transform-=* \
1848 | --program-transform=* | --program-transfor=* \
1849 | --program-transfo=* | --program-transf=* \
1850 | --program-trans=* | --program-tran=* \
1851 | --progr-tra=* | --program-tr=* | --program-t=*)
1852 program_transform_name=$ac_optarg ;;
1853
1854 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1855 ac_prev=pdfdir ;;
1856 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1857 pdfdir=$ac_optarg ;;
1858
1859 -psdir | --psdir | --psdi | --psd | --ps)
1860 ac_prev=psdir ;;
1861 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1862 psdir=$ac_optarg ;;
1863
1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865 | -silent | --silent | --silen | --sile | --sil)
1866 silent=yes ;;
1867
1868 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1869 ac_prev=sbindir ;;
1870 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1871 | --sbi=* | --sb=*)
1872 sbindir=$ac_optarg ;;
1873
1874 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1875 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1876 | --sharedst | --shareds | --shared | --share | --shar \
1877 | --sha | --sh)
1878 ac_prev=sharedstatedir ;;
1879 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1880 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1881 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1882 | --sha=* | --sh=*)
1883 sharedstatedir=$ac_optarg ;;
1884
1885 -site | --site | --sit)
1886 ac_prev=site ;;
1887 -site=* | --site=* | --sit=*)
1888 site=$ac_optarg ;;
1889
1890 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1891 ac_prev=srcdir ;;
1892 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1893 srcdir=$ac_optarg ;;
1894
1895 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1896 | --syscon | --sysco | --sysc | --sys | --sy)
1897 ac_prev=sysconfdir ;;
1898 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1899 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1900 sysconfdir=$ac_optarg ;;
1901
1902 -target | --target | --targe | --targ | --tar | --ta | --t)
1903 ac_prev=target_alias ;;
1904 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1905 target_alias=$ac_optarg ;;
1906
1907 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1908 verbose=yes ;;
1909
1910 -version | --version | --versio | --versi | --vers | -V)
1911 ac_init_version=: ;;
1912
1913 -with-* | --with-*)
1914 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1915 # Reject names that are not valid shell variable names.
1916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1917 as_fn_error "invalid package name: $ac_useropt"
1918 ac_useropt_orig=$ac_useropt
1919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1920 case $ac_user_opts in
1921 *"
1922 "with_$ac_useropt"
1923 "*) ;;
1924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1925 ac_unrecognized_sep=', ';;
1926 esac
1927 eval with_$ac_useropt=\$ac_optarg ;;
1928
1929 -without-* | --without-*)
1930 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1931 # Reject names that are not valid shell variable names.
1932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1933 as_fn_error "invalid package name: $ac_useropt"
1934 ac_useropt_orig=$ac_useropt
1935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1936 case $ac_user_opts in
1937 *"
1938 "with_$ac_useropt"
1939 "*) ;;
1940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1941 ac_unrecognized_sep=', ';;
1942 esac
1943 eval with_$ac_useropt=no ;;
1944
1945 --x)
1946 # Obsolete; use --with-x.
1947 with_x=yes ;;
1948
1949 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1950 | --x-incl | --x-inc | --x-in | --x-i)
1951 ac_prev=x_includes ;;
1952 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1953 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1954 x_includes=$ac_optarg ;;
1955
1956 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1957 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1958 ac_prev=x_libraries ;;
1959 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1960 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1961 x_libraries=$ac_optarg ;;
1962
1963 -*) as_fn_error "unrecognized option: \`$ac_option'
1964 Try \`$0 --help' for more information."
1965 ;;
1966
1967 *=*)
1968 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1969 # Reject names that are not valid shell variable names.
1970 case $ac_envvar in #(
1971 '' | [0-9]* | *[!_$as_cr_alnum]* )
1972 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1973 esac
1974 eval $ac_envvar=\$ac_optarg
1975 export $ac_envvar ;;
1976
1977 *)
1978 # FIXME: should be removed in autoconf 3.0.
1979 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1980 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1981 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1982 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1983 ;;
1984
1985 esac
1986 done
1987
1988 if test -n "$ac_prev"; then
1989 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1990 as_fn_error "missing argument to $ac_option"
1991 fi
1992
1993 if test -n "$ac_unrecognized_opts"; then
1994 case $enable_option_checking in
1995 no) ;;
1996 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1997 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1998 esac
1999 fi
2000
2001 # Check all directory arguments for consistency.
2002 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2003 datadir sysconfdir sharedstatedir localstatedir includedir \
2004 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2005 libdir localedir mandir
2006 do
2007 eval ac_val=\$$ac_var
2008 # Remove trailing slashes.
2009 case $ac_val in
2010 */ )
2011 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2012 eval $ac_var=\$ac_val;;
2013 esac
2014 # Be sure to have absolute directory names.
2015 case $ac_val in
2016 [\\/$]* | ?:[\\/]* ) continue;;
2017 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2018 esac
2019 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2020 done
2021
2022 # There might be people who depend on the old broken behavior: `$host'
2023 # used to hold the argument of --host etc.
2024 # FIXME: To remove some day.
2025 build=$build_alias
2026 host=$host_alias
2027 target=$target_alias
2028
2029 # FIXME: To remove some day.
2030 if test "x$host_alias" != x; then
2031 if test "x$build_alias" = x; then
2032 cross_compiling=maybe
2033 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2034 If a cross compiler is detected then cross compile mode will be used." >&2
2035 elif test "x$build_alias" != "x$host_alias"; then
2036 cross_compiling=yes
2037 fi
2038 fi
2039
2040 ac_tool_prefix=
2041 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2042
2043 test "$silent" = yes && exec 6>/dev/null
2044
2045
2046 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2047 ac_ls_di=`ls -di .` &&
2048 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2049 as_fn_error "working directory cannot be determined"
2050 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2051 as_fn_error "pwd does not report name of working directory"
2052
2053
2054 # Find the source files, if location was not specified.
2055 if test -z "$srcdir"; then
2056 ac_srcdir_defaulted=yes
2057 # Try the directory containing this script, then the parent directory.
2058 ac_confdir=`$as_dirname -- "$as_myself" ||
2059 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2060 X"$as_myself" : 'X\(//\)[^/]' \| \
2061 X"$as_myself" : 'X\(//\)$' \| \
2062 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2063 $as_echo X"$as_myself" |
2064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2065 s//\1/
2066 q
2067 }
2068 /^X\(\/\/\)[^/].*/{
2069 s//\1/
2070 q
2071 }
2072 /^X\(\/\/\)$/{
2073 s//\1/
2074 q
2075 }
2076 /^X\(\/\).*/{
2077 s//\1/
2078 q
2079 }
2080 s/.*/./; q'`
2081 srcdir=$ac_confdir
2082 if test ! -r "$srcdir/$ac_unique_file"; then
2083 srcdir=..
2084 fi
2085 else
2086 ac_srcdir_defaulted=no
2087 fi
2088 if test ! -r "$srcdir/$ac_unique_file"; then
2089 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2090 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2091 fi
2092 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2093 ac_abs_confdir=`(
2094 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2095 pwd)`
2096 # When building in place, set srcdir=.
2097 if test "$ac_abs_confdir" = "$ac_pwd"; then
2098 srcdir=.
2099 fi
2100 # Remove unnecessary trailing slashes from srcdir.
2101 # Double slashes in file names in object file debugging info
2102 # mess up M-x gdb in Emacs.
2103 case $srcdir in
2104 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2105 esac
2106 for ac_var in $ac_precious_vars; do
2107 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2108 eval ac_env_${ac_var}_value=\$${ac_var}
2109 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2110 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2111 done
2112
2113 #
2114 # Report the --help message.
2115 #
2116 if test "$ac_init_help" = "long"; then
2117 # Omit some internal or obsolete options to make the list less imposing.
2118 # This message is too long to be a string in the A/UX 3.1 sh.
2119 cat <<_ACEOF
2120 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2121
2122 Usage: $0 [OPTION]... [VAR=VALUE]...
2123
2124 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2125 VAR=VALUE. See below for descriptions of some of the useful variables.
2126
2127 Defaults for the options are specified in brackets.
2128
2129 Configuration:
2130 -h, --help display this help and exit
2131 --help=short display options specific to this package
2132 --help=recursive display the short help of all the included packages
2133 -V, --version display version information and exit
2134 -q, --quiet, --silent do not print \`checking...' messages
2135 --cache-file=FILE cache test results in FILE [disabled]
2136 -C, --config-cache alias for \`--cache-file=config.cache'
2137 -n, --no-create do not create output files
2138 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2139
2140 Installation directories:
2141 --prefix=PREFIX install architecture-independent files in PREFIX
2142 [$ac_default_prefix]
2143 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2144 [PREFIX]
2145
2146 By default, \`make install' will install all the files in
2147 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2148 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2149 for instance \`--prefix=\$HOME'.
2150
2151 For better control, use the options below.
2152
2153 Fine tuning of the installation directories:
2154 --bindir=DIR user executables [EPREFIX/bin]
2155 --sbindir=DIR system admin executables [EPREFIX/sbin]
2156 --libexecdir=DIR program executables [EPREFIX/libexec]
2157 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2158 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2159 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2160 --libdir=DIR object code libraries [EPREFIX/lib]
2161 --includedir=DIR C header files [PREFIX/include]
2162 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2163 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2164 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2165 --infodir=DIR info documentation [DATAROOTDIR/info]
2166 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2167 --mandir=DIR man documentation [DATAROOTDIR/man]
2168 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2169 --htmldir=DIR html documentation [DOCDIR]
2170 --dvidir=DIR dvi documentation [DOCDIR]
2171 --pdfdir=DIR pdf documentation [DOCDIR]
2172 --psdir=DIR ps documentation [DOCDIR]
2173 _ACEOF
2174
2175 cat <<\_ACEOF
2176
2177 Program names:
2178 --program-prefix=PREFIX prepend PREFIX to installed program names
2179 --program-suffix=SUFFIX append SUFFIX to installed program names
2180 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2181
2182 X features:
2183 --x-includes=DIR X include files are in DIR
2184 --x-libraries=DIR X library files are in DIR
2185
2186 System types:
2187 --build=BUILD configure for building on BUILD [guessed]
2188 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2189 _ACEOF
2190 fi
2191
2192 if test -n "$ac_init_help"; then
2193 case $ac_init_help in
2194 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2195 esac
2196 cat <<\_ACEOF
2197
2198 Optional Features:
2199 --disable-option-checking ignore unrecognized --enable/--with options
2200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2202 --disable-ns-self-contained
2203 disable self contained build under NeXTstep
2204 --enable-locallisppath=PATH
2205 directories Emacs should search for lisp files
2206 specific to this site
2207 --enable-checking[=LIST]
2208 enable expensive run-time checks. With LIST, enable
2209 only specific categories of checks. Categories are:
2210 all,yes,no. Flags are: stringbytes, stringoverrun,
2211 stringfreelist, xmallocoverrun, conslist, glyphs
2212 --enable-check-lisp-object-type
2213 enable compile time checks for the Lisp_Object data
2214 type. This is useful for development for catching
2215 certain types of bugs.
2216 --enable-profiling build emacs with low-level, gprof profiling support.
2217 Mainly useful for debugging Emacs itself. May not
2218 work on all platforms. Stops profiler.el working.
2219 --enable-autodepend automatically generate dependencies to .h-files.
2220 Requires GNU Make and Gcc. Enabled if GNU Make and
2221 Gcc is found
2222 --enable-gtk-deprecation-warnings
2223 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2224 --disable-dependency-tracking speeds up one-time build
2225 --enable-dependency-tracking do not reject slow dependency extractors
2226 --disable-largefile omit support for large files
2227 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2228 intended for developers, and may generate false
2229 alarms when used with older or non-GNU development
2230 tools.
2231 --enable-link-time-optimization
2232 build emacs with link-time optimization. This is
2233 supported only for GCC since 4.5.0.
2234 --disable-acl do not support ACLs
2235
2236 Optional Packages:
2237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2239 --without-all omit almost all features and build small executable
2240 with minimal dependencies
2241 --without-pop don't support POP mail retrieval with movemail
2242 --with-kerberos support Kerberos-authenticated POP
2243 --with-kerberos5 support Kerberos version 5 authenticated POP
2244 --with-hesiod support Hesiod to get the POP server host
2245 --with-mmdf support MMDF mailboxes
2246 --with-mail-unlink unlink, rather than empty, mail spool after reading
2247 --with-mailhost=HOSTNAME
2248 string giving default POP mail host
2249 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2250 oss, bsd-ossaudio, no; default yes). Only for
2251 GNU/Linux, FreeBSD, NetBSD, MinGW.
2252 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2253 gtk3, lucid or athena, motif, no)
2254 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2255 --without-xpm don't compile with XPM image support
2256 --without-jpeg don't compile with JPEG image support
2257 --without-tiff don't compile with TIFF image support
2258 --without-gif don't compile with GIF image support
2259 --without-png don't compile with PNG image support
2260 --without-rsvg don't compile with SVG image support
2261 --without-xml2 don't compile with XML parsing support
2262 --without-imagemagick don't compile with ImageMagick image support
2263 --without-xft don't use XFT for anti aliased fonts
2264 --without-libotf don't use libotf for OpenType font support
2265 --without-m17n-flt don't use m17n-flt for text shaping
2266 --without-toolkit-scroll-bars
2267 don't use Motif or Xaw3d scroll bars
2268 --without-xaw3d don't use Xaw3d
2269 --without-xim don't use X11 XIM
2270 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2271 --with-w32 use native MS Windows GUI in a Cygwin build
2272 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2273 console
2274 --without-dbus don't compile with D-Bus support
2275 --without-gconf don't compile with GConf support
2276 --without-gsettings don't compile with GSettings support
2277 --without-selinux don't compile with SELinux support
2278 --without-gnutls don't use -lgnutls for SSL/TLS support
2279 --without-zlib don't compile with zlib decompression support
2280 --with-file-notification=LIB
2281 use a file notification library (LIB one of: yes,
2282 gfile, inotify, w32, no)
2283 --without-makeinfo don't require makeinfo for building manuals
2284 --without-compress-install
2285 don't compress some files (.el, .info, etc.) when
2286 installing. Equivalent to: make GZIP_PROG= install
2287 --with-pkg-config-prog=FILENAME
2288 file name of pkg-config for finding GTK and librsvg
2289 --with-gameuser=USER user for shared game score files
2290 --with-gnustep-conf=FILENAME
2291 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2292 or /etc/GNUstep/GNUstep.conf
2293 --with-x use the X Window System
2294
2295 Some influential environment variables:
2296 CC C compiler command
2297 CFLAGS C compiler flags
2298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2299 nonstandard directory <lib dir>
2300 LIBS libraries to pass to the linker, e.g. -l<library>
2301 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2302 you have headers in a nonstandard directory <include dir>
2303 CPP C preprocessor
2304 XMKMF Path to xmkmf, Makefile generator for X Window System
2305
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2308
2309 Report bugs to the package provider.
2310 _ACEOF
2311 ac_status=$?
2312 fi
2313
2314 if test "$ac_init_help" = "recursive"; then
2315 # If there are subdirs, report their specific --help.
2316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2317 test -d "$ac_dir" ||
2318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2319 continue
2320 ac_builddir=.
2321
2322 case "$ac_dir" in
2323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2324 *)
2325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2326 # A ".." for each directory in $ac_dir_suffix.
2327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2328 case $ac_top_builddir_sub in
2329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2331 esac ;;
2332 esac
2333 ac_abs_top_builddir=$ac_pwd
2334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2335 # for backward compatibility:
2336 ac_top_builddir=$ac_top_build_prefix
2337
2338 case $srcdir in
2339 .) # We are building in place.
2340 ac_srcdir=.
2341 ac_top_srcdir=$ac_top_builddir_sub
2342 ac_abs_top_srcdir=$ac_pwd ;;
2343 [\\/]* | ?:[\\/]* ) # Absolute name.
2344 ac_srcdir=$srcdir$ac_dir_suffix;
2345 ac_top_srcdir=$srcdir
2346 ac_abs_top_srcdir=$srcdir ;;
2347 *) # Relative name.
2348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2349 ac_top_srcdir=$ac_top_build_prefix$srcdir
2350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2351 esac
2352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2353
2354 cd "$ac_dir" || { ac_status=$?; continue; }
2355 # Check for guested configure.
2356 if test -f "$ac_srcdir/configure.gnu"; then
2357 echo &&
2358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2359 elif test -f "$ac_srcdir/configure"; then
2360 echo &&
2361 $SHELL "$ac_srcdir/configure" --help=recursive
2362 else
2363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2364 fi || ac_status=$?
2365 cd "$ac_pwd" || { ac_status=$?; break; }
2366 done
2367 fi
2368
2369 test -n "$ac_init_help" && exit $ac_status
2370 if $ac_init_version; then
2371 cat <<\_ACEOF
2372 emacs configure 24.3.50
2373 generated by GNU Autoconf 2.65
2374
2375 Copyright (C) 2009 Free Software Foundation, Inc.
2376 This configure script is free software; the Free Software Foundation
2377 gives unlimited permission to copy, distribute and modify it.
2378 _ACEOF
2379 exit
2380 fi
2381
2382 ## ------------------------ ##
2383 ## Autoconf initialization. ##
2384 ## ------------------------ ##
2385
2386 # ac_fn_c_try_compile LINENO
2387 # --------------------------
2388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2389 ac_fn_c_try_compile ()
2390 {
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 rm -f conftest.$ac_objext
2393 if { { ac_try="$ac_compile"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400 (eval "$ac_compile") 2>conftest.err
2401 ac_status=$?
2402 if test -s conftest.err; then
2403 grep -v '^ *+' conftest.err >conftest.er1
2404 cat conftest.er1 >&5
2405 mv -f conftest.er1 conftest.err
2406 fi
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then :
2412 ac_retval=0
2413 else
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_retval=1
2418 fi
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 as_fn_set_status $ac_retval
2421
2422 } # ac_fn_c_try_compile
2423
2424 # ac_fn_c_try_cpp LINENO
2425 # ----------------------
2426 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2427 ac_fn_c_try_cpp ()
2428 {
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 if { { ac_try="$ac_cpp conftest.$ac_ext"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2438 ac_status=$?
2439 if test -s conftest.err; then
2440 grep -v '^ *+' conftest.err >conftest.er1
2441 cat conftest.er1 >&5
2442 mv -f conftest.er1 conftest.err
2443 fi
2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445 test $ac_status = 0; } >/dev/null && {
2446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2447 test ! -s conftest.err
2448 }; then :
2449 ac_retval=0
2450 else
2451 $as_echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 ac_retval=1
2455 fi
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 as_fn_set_status $ac_retval
2458
2459 } # ac_fn_c_try_cpp
2460
2461 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2462 # -------------------------------------------------------
2463 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2464 # the include files in INCLUDES and setting the cache variable VAR
2465 # accordingly.
2466 ac_fn_c_check_header_mongrel ()
2467 {
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2474 fi
2475 eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 else
2479 # Is the header compilable?
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2481 $as_echo_n "checking $2 usability... " >&6; }
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 $4
2485 #include <$2>
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_header_compiler=yes
2489 else
2490 ac_header_compiler=no
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2494 $as_echo "$ac_header_compiler" >&6; }
2495
2496 # Is the header present?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2498 $as_echo_n "checking $2 presence... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 #include <$2>
2502 _ACEOF
2503 if ac_fn_c_try_cpp "$LINENO"; then :
2504 ac_header_preproc=yes
2505 else
2506 ac_header_preproc=no
2507 fi
2508 rm -f conftest.err conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2510 $as_echo "$ac_header_preproc" >&6; }
2511
2512 # So? What about this header?
2513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2514 yes:no: )
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2516 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2518 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2519 ;;
2520 no:yes:* )
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2522 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2524 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2526 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2528 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2530 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2531 ;;
2532 esac
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 eval "$3=\$ac_header_compiler"
2539 fi
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 fi
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545
2546 } # ac_fn_c_check_header_mongrel
2547
2548 # ac_fn_c_try_run LINENO
2549 # ----------------------
2550 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2551 # that executables *can* be run.
2552 ac_fn_c_try_run ()
2553 {
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 if { { ac_try="$ac_link"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link") 2>&5
2563 ac_status=$?
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2566 { { case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }; }; then :
2576 ac_retval=0
2577 else
2578 $as_echo "$as_me: program exited with status $ac_status" >&5
2579 $as_echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 ac_retval=$ac_status
2583 fi
2584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586 as_fn_set_status $ac_retval
2587
2588 } # ac_fn_c_try_run
2589
2590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2591 # -------------------------------------------------------
2592 # Tests whether HEADER exists and can be compiled using the include files in
2593 # INCLUDES, setting the cache variable VAR accordingly.
2594 ac_fn_c_check_header_compile ()
2595 {
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2604 $4
2605 #include <$2>
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$3=yes"
2609 else
2610 eval "$3=no"
2611 fi
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614 eval ac_res=\$$3
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2616 $as_echo "$ac_res" >&6; }
2617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2618
2619 } # ac_fn_c_check_header_compile
2620
2621 # ac_fn_c_try_link LINENO
2622 # -----------------------
2623 # Try to link conftest.$ac_ext, and return whether this succeeded.
2624 ac_fn_c_try_link ()
2625 {
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { { ac_try="$ac_link"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634 $as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>conftest.err
2636 ac_status=$?
2637 if test -s conftest.err; then
2638 grep -v '^ *+' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 mv -f conftest.er1 conftest.err
2641 fi
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest$ac_exeext && {
2647 test "$cross_compiling" = yes ||
2648 $as_test_x conftest$ac_exeext
2649 }; then :
2650 ac_retval=0
2651 else
2652 $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 ac_retval=1
2656 fi
2657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2659 # interfere with the next link command; also delete a directory that is
2660 # left behind by Apple's compiler. We do this before executing the actions.
2661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2663 as_fn_set_status $ac_retval
2664
2665 } # ac_fn_c_try_link
2666
2667 # ac_fn_c_check_decl LINENO SYMBOL VAR
2668 # ------------------------------------
2669 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2670 ac_fn_c_check_decl ()
2671 {
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2674 $as_echo_n "checking whether $2 is declared... " >&6; }
2675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2680 $4
2681 int
2682 main ()
2683 {
2684 #ifndef $2
2685 (void) $2;
2686 #endif
2687
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693 eval "$3=yes"
2694 else
2695 eval "$3=no"
2696 fi
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699 eval ac_res=\$$3
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2703
2704 } # ac_fn_c_check_decl
2705
2706 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2707 # ----------------------------------------------
2708 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2709 ac_fn_c_check_header_preproc ()
2710 {
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2713 $as_echo_n "checking for $2... " >&6; }
2714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2719 #include <$2>
2720 _ACEOF
2721 if ac_fn_c_try_cpp "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2725 fi
2726 rm -f conftest.err conftest.$ac_ext
2727 fi
2728 eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2732
2733 } # ac_fn_c_check_header_preproc
2734
2735 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2736 # ----------------------------------------------------
2737 # Tries to find if the field MEMBER exists in type AGGR, after including
2738 # INCLUDES, setting cache variable VAR accordingly.
2739 ac_fn_c_check_member ()
2740 {
2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2743 $as_echo_n "checking for $2.$3... " >&6; }
2744 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2749 $5
2750 int
2751 main ()
2752 {
2753 static $2 ac_aggr;
2754 if (ac_aggr.$3)
2755 return 0;
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 eval "$4=yes"
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2765 $5
2766 int
2767 main ()
2768 {
2769 static $2 ac_aggr;
2770 if (sizeof ac_aggr.$3)
2771 return 0;
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 eval "$4=yes"
2778 else
2779 eval "$4=no"
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 eval ac_res=\$$4
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2789
2790 } # ac_fn_c_check_member
2791
2792 # ac_fn_c_check_func LINENO FUNC VAR
2793 # ----------------------------------
2794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2795 ac_fn_c_check_func ()
2796 {
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2799 $as_echo_n "checking for $2... " >&6; }
2800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2807 #define $2 innocuous_$2
2808
2809 /* System header to define __stub macros and hopefully few prototypes,
2810 which can conflict with char $2 (); below.
2811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2812 <limits.h> exists even on freestanding compilers. */
2813
2814 #ifdef __STDC__
2815 # include <limits.h>
2816 #else
2817 # include <assert.h>
2818 #endif
2819
2820 #undef $2
2821
2822 /* Override any GCC internal prototype to avoid an error.
2823 Use char because int might match the return type of a GCC
2824 builtin and then its argument prototype would still apply. */
2825 #ifdef __cplusplus
2826 extern "C"
2827 #endif
2828 char $2 ();
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined __stub_$2 || defined __stub___$2
2833 choke me
2834 #endif
2835
2836 int
2837 main ()
2838 {
2839 return $2 ();
2840 ;
2841 return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_c_try_link "$LINENO"; then :
2845 eval "$3=yes"
2846 else
2847 eval "$3=no"
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext \
2850 conftest$ac_exeext conftest.$ac_ext
2851 fi
2852 eval ac_res=\$$3
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2854 $as_echo "$ac_res" >&6; }
2855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2856
2857 } # ac_fn_c_check_func
2858
2859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2860 # -------------------------------------------
2861 # Tests whether TYPE exists after having included INCLUDES, setting cache
2862 # variable VAR accordingly.
2863 ac_fn_c_check_type ()
2864 {
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 eval "$3=no"
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874 $4
2875 int
2876 main ()
2877 {
2878 if (sizeof ($2))
2879 return 0;
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 if ac_fn_c_try_compile "$LINENO"; then :
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2887 $4
2888 int
2889 main ()
2890 {
2891 if (sizeof (($2)))
2892 return 0;
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2898
2899 else
2900 eval "$3=yes"
2901 fi
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 fi
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 fi
2906 eval ac_res=\$$3
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2910
2911 } # ac_fn_c_check_type
2912
2913 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2914 # --------------------------------------------
2915 # Tries to find the compile-time value of EXPR in a program that includes
2916 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2917 # computed
2918 ac_fn_c_compute_int ()
2919 {
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 if test "$cross_compiling" = yes; then
2922 # Depending upon the size, compute the lo and hi bounds.
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2925 $4
2926 int
2927 main ()
2928 {
2929 static int test_array [1 - 2 * !(($2) >= 0)];
2930 test_array [0] = 0
2931
2932 ;
2933 return 0;
2934 }
2935 _ACEOF
2936 if ac_fn_c_try_compile "$LINENO"; then :
2937 ac_lo=0 ac_mid=0
2938 while :; do
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 $4
2942 int
2943 main ()
2944 {
2945 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2946 test_array [0] = 0
2947
2948 ;
2949 return 0;
2950 }
2951 _ACEOF
2952 if ac_fn_c_try_compile "$LINENO"; then :
2953 ac_hi=$ac_mid; break
2954 else
2955 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2956 if test $ac_lo -le $ac_mid; then
2957 ac_lo= ac_hi=
2958 break
2959 fi
2960 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2961 fi
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 done
2964 else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967 $4
2968 int
2969 main ()
2970 {
2971 static int test_array [1 - 2 * !(($2) < 0)];
2972 test_array [0] = 0
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 if ac_fn_c_try_compile "$LINENO"; then :
2979 ac_hi=-1 ac_mid=-1
2980 while :; do
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2983 $4
2984 int
2985 main ()
2986 {
2987 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2988 test_array [0] = 0
2989
2990 ;
2991 return 0;
2992 }
2993 _ACEOF
2994 if ac_fn_c_try_compile "$LINENO"; then :
2995 ac_lo=$ac_mid; break
2996 else
2997 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2998 if test $ac_mid -le $ac_hi; then
2999 ac_lo= ac_hi=
3000 break
3001 fi
3002 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3003 fi
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 done
3006 else
3007 ac_lo= ac_hi=
3008 fi
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 fi
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 # Binary search between lo and hi bounds.
3013 while test "x$ac_lo" != "x$ac_hi"; do
3014 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3017 $4
3018 int
3019 main ()
3020 {
3021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3022 test_array [0] = 0
3023
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029 ac_hi=$ac_mid
3030 else
3031 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3032 fi
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 done
3035 case $ac_lo in #((
3036 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3037 '') ac_retval=1 ;;
3038 esac
3039 else
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042 $4
3043 static long int longval () { return $2; }
3044 static unsigned long int ulongval () { return $2; }
3045 #include <stdio.h>
3046 #include <stdlib.h>
3047 int
3048 main ()
3049 {
3050
3051 FILE *f = fopen ("conftest.val", "w");
3052 if (! f)
3053 return 1;
3054 if (($2) < 0)
3055 {
3056 long int i = longval ();
3057 if (i != ($2))
3058 return 1;
3059 fprintf (f, "%ld", i);
3060 }
3061 else
3062 {
3063 unsigned long int i = ulongval ();
3064 if (i != ($2))
3065 return 1;
3066 fprintf (f, "%lu", i);
3067 }
3068 /* Do not output a trailing newline, as this causes \r\n confusion
3069 on some platforms. */
3070 return ferror (f) || fclose (f) != 0;
3071
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 if ac_fn_c_try_run "$LINENO"; then :
3077 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3078 else
3079 ac_retval=1
3080 fi
3081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3082 conftest.$ac_objext conftest.beam conftest.$ac_ext
3083 rm -f conftest.val
3084
3085 fi
3086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3087 as_fn_set_status $ac_retval
3088
3089 } # ac_fn_c_compute_int
3090 cat >config.log <<_ACEOF
3091 This file contains any messages produced by compilers while
3092 running configure, to aid debugging if configure makes a mistake.
3093
3094 It was created by emacs $as_me 24.3.50, which was
3095 generated by GNU Autoconf 2.65. Invocation command line was
3096
3097 $ $0 $@
3098
3099 _ACEOF
3100 exec 5>>config.log
3101 {
3102 cat <<_ASUNAME
3103 ## --------- ##
3104 ## Platform. ##
3105 ## --------- ##
3106
3107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3112
3113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3115
3116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3123
3124 _ASUNAME
3125
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 $as_echo "PATH: $as_dir"
3132 done
3133 IFS=$as_save_IFS
3134
3135 } >&5
3136
3137 cat >&5 <<_ACEOF
3138
3139
3140 ## ----------- ##
3141 ## Core tests. ##
3142 ## ----------- ##
3143
3144 _ACEOF
3145
3146
3147 # Keep a trace of the command line.
3148 # Strip out --no-create and --no-recursion so they do not pile up.
3149 # Strip out --silent because we don't want to record it for future runs.
3150 # Also quote any args containing shell meta-characters.
3151 # Make two passes to allow for proper duplicate-argument suppression.
3152 ac_configure_args=
3153 ac_configure_args0=
3154 ac_configure_args1=
3155 ac_must_keep_next=false
3156 for ac_pass in 1 2
3157 do
3158 for ac_arg
3159 do
3160 case $ac_arg in
3161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3163 | -silent | --silent | --silen | --sile | --sil)
3164 continue ;;
3165 *\'*)
3166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3167 esac
3168 case $ac_pass in
3169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3170 2)
3171 as_fn_append ac_configure_args1 " '$ac_arg'"
3172 if test $ac_must_keep_next = true; then
3173 ac_must_keep_next=false # Got value, back to normal.
3174 else
3175 case $ac_arg in
3176 *=* | --config-cache | -C | -disable-* | --disable-* \
3177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3179 | -with-* | --with-* | -without-* | --without-* | --x)
3180 case "$ac_configure_args0 " in
3181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3182 esac
3183 ;;
3184 -* ) ac_must_keep_next=true ;;
3185 esac
3186 fi
3187 as_fn_append ac_configure_args " '$ac_arg'"
3188 ;;
3189 esac
3190 done
3191 done
3192 { ac_configure_args0=; unset ac_configure_args0;}
3193 { ac_configure_args1=; unset ac_configure_args1;}
3194
3195 # When interrupted or exit'd, cleanup temporary files, and complete
3196 # config.log. We remove comments because anyway the quotes in there
3197 # would cause problems or look ugly.
3198 # WARNING: Use '\'' to represent an apostrophe within the trap.
3199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3200 trap 'exit_status=$?
3201 # Save into config.log some information that might help in debugging.
3202 {
3203 echo
3204
3205 cat <<\_ASBOX
3206 ## ---------------- ##
3207 ## Cache variables. ##
3208 ## ---------------- ##
3209 _ASBOX
3210 echo
3211 # The following way of writing the cache mishandles newlines in values,
3212 (
3213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3214 eval ac_val=\$$ac_var
3215 case $ac_val in #(
3216 *${as_nl}*)
3217 case $ac_var in #(
3218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3220 esac
3221 case $ac_var in #(
3222 _ | IFS | as_nl) ;; #(
3223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3224 *) { eval $ac_var=; unset $ac_var;} ;;
3225 esac ;;
3226 esac
3227 done
3228 (set) 2>&1 |
3229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3230 *${as_nl}ac_space=\ *)
3231 sed -n \
3232 "s/'\''/'\''\\\\'\'''\''/g;
3233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3234 ;; #(
3235 *)
3236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3237 ;;
3238 esac |
3239 sort
3240 )
3241 echo
3242
3243 cat <<\_ASBOX
3244 ## ----------------- ##
3245 ## Output variables. ##
3246 ## ----------------- ##
3247 _ASBOX
3248 echo
3249 for ac_var in $ac_subst_vars
3250 do
3251 eval ac_val=\$$ac_var
3252 case $ac_val in
3253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254 esac
3255 $as_echo "$ac_var='\''$ac_val'\''"
3256 done | sort
3257 echo
3258
3259 if test -n "$ac_subst_files"; then
3260 cat <<\_ASBOX
3261 ## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##
3264 _ASBOX
3265 echo
3266 for ac_var in $ac_subst_files
3267 do
3268 eval ac_val=\$$ac_var
3269 case $ac_val in
3270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271 esac
3272 $as_echo "$ac_var='\''$ac_val'\''"
3273 done | sort
3274 echo
3275 fi
3276
3277 if test -s confdefs.h; then
3278 cat <<\_ASBOX
3279 ## ----------- ##
3280 ## confdefs.h. ##
3281 ## ----------- ##
3282 _ASBOX
3283 echo
3284 cat confdefs.h
3285 echo
3286 fi
3287 test "$ac_signal" != 0 &&
3288 $as_echo "$as_me: caught signal $ac_signal"
3289 $as_echo "$as_me: exit $exit_status"
3290 } >&5
3291 rm -f core *.core core.conftest.* &&
3292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3293 exit $exit_status
3294 ' 0
3295 for ac_signal in 1 2 13 15; do
3296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3297 done
3298 ac_signal=0
3299
3300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3301 rm -f -r conftest* confdefs.h
3302
3303 $as_echo "/* confdefs.h */" > confdefs.h
3304
3305 # Predefined preprocessor variables.
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE_NAME "$PACKAGE_NAME"
3309 _ACEOF
3310
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3313 _ACEOF
3314
3315 cat >>confdefs.h <<_ACEOF
3316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3317 _ACEOF
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE_STRING "$PACKAGE_STRING"
3321 _ACEOF
3322
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3325 _ACEOF
3326
3327 cat >>confdefs.h <<_ACEOF
3328 #define PACKAGE_URL "$PACKAGE_URL"
3329 _ACEOF
3330
3331
3332 # Let the site file select an alternate cache file if it wants to.
3333 # Prefer an explicitly selected file to automatically selected ones.
3334 ac_site_file1=NONE
3335 ac_site_file2=NONE
3336 if test -n "$CONFIG_SITE"; then
3337 ac_site_file1=$CONFIG_SITE
3338 elif test "x$prefix" != xNONE; then
3339 ac_site_file1=$prefix/share/config.site
3340 ac_site_file2=$prefix/etc/config.site
3341 else
3342 ac_site_file1=$ac_default_prefix/share/config.site
3343 ac_site_file2=$ac_default_prefix/etc/config.site
3344 fi
3345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3346 do
3347 test "x$ac_site_file" = xNONE && continue
3348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3351 sed 's/^/| /' "$ac_site_file" >&5
3352 . "$ac_site_file"
3353 fi
3354 done
3355
3356 if test -r "$cache_file"; then
3357 # Some versions of bash will fail to source /dev/null (special files
3358 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3361 $as_echo "$as_me: loading cache $cache_file" >&6;}
3362 case $cache_file in
3363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3364 *) . "./$cache_file";;
3365 esac
3366 fi
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3369 $as_echo "$as_me: creating cache $cache_file" >&6;}
3370 >$cache_file
3371 fi
3372
3373 as_fn_append ac_header_list " sys/systeminfo.h"
3374 as_fn_append ac_header_list " coff.h"
3375 as_fn_append ac_header_list " pty.h"
3376 as_fn_append ac_header_list " sys/resource.h"
3377 as_fn_append ac_header_list " sys/utsname.h"
3378 as_fn_append ac_header_list " pwd.h"
3379 as_fn_append ac_header_list " utmp.h"
3380 as_fn_append ac_header_list " util.h"
3381 as_fn_append ac_header_list " sys/socket.h"
3382 as_fn_append ac_header_list " stdlib.h"
3383 as_fn_append ac_header_list " unistd.h"
3384 as_fn_append ac_header_list " sys/param.h"
3385 as_fn_append ac_header_list " pthread.h"
3386 as_fn_append ac_header_list " malloc/malloc.h"
3387 as_fn_append ac_header_list " maillock.h"
3388 as_fn_append ac_header_list " sys/un.h"
3389 as_fn_append ac_func_list " tzset"
3390 as_fn_append ac_func_list " readlinkat"
3391 as_fn_append ac_header_list " dirent.h"
3392 as_fn_append ac_header_list " execinfo.h"
3393 as_fn_append ac_func_list " faccessat"
3394 as_fn_append ac_func_list " fcntl"
3395 as_fn_append ac_func_list " fdopendir"
3396 as_fn_append ac_header_list " stdio_ext.h"
3397 as_fn_append ac_func_list " fstatat"
3398 as_fn_append ac_func_list " fsync"
3399 gl_getopt_required=GNU
3400 as_fn_append ac_header_list " getopt.h"
3401 as_fn_append ac_func_list " gettimeofday"
3402 as_fn_append ac_func_list " nanotime"
3403 as_fn_append ac_header_list " sys/time.h"
3404 as_fn_append ac_header_list " wchar.h"
3405 as_fn_append ac_header_list " stdint.h"
3406 as_fn_append ac_header_list " inttypes.h"
3407 as_fn_append ac_func_list " lstat"
3408 as_fn_append ac_func_list " mkostemp"
3409 as_fn_append ac_func_list " pipe2"
3410 as_fn_append ac_header_list " sys/select.h"
3411 as_fn_append ac_func_list " pselect"
3412 as_fn_append ac_func_list " pthread_sigmask"
3413 as_fn_append ac_func_list " readlink"
3414 as_fn_append ac_func_list " strtoimax"
3415 as_fn_append ac_func_list " strtoumax"
3416 as_fn_append ac_func_list " symlink"
3417 as_fn_append ac_header_list " sys/stat.h"
3418 as_fn_append ac_func_list " localtime_r"
3419 as_fn_append ac_header_list " utime.h"
3420 as_fn_append ac_func_list " futimes"
3421 as_fn_append ac_func_list " futimesat"
3422 as_fn_append ac_func_list " futimens"
3423 as_fn_append ac_func_list " utimensat"
3424 as_fn_append ac_func_list " lutimes"
3425 as_fn_append ac_func_list " getdtablesize"
3426 as_fn_append ac_func_list " secure_getenv"
3427 # Check that the precious variables saved in the cache have kept the same
3428 # value.
3429 ac_cache_corrupted=false
3430 for ac_var in $ac_precious_vars; do
3431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3432 eval ac_new_set=\$ac_env_${ac_var}_set
3433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3434 eval ac_new_val=\$ac_env_${ac_var}_value
3435 case $ac_old_set,$ac_new_set in
3436 set,)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3438 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3439 ac_cache_corrupted=: ;;
3440 ,set)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3442 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3443 ac_cache_corrupted=: ;;
3444 ,);;
3445 *)
3446 if test "x$ac_old_val" != "x$ac_new_val"; then
3447 # differences in whitespace do not lead to failure.
3448 ac_old_val_w=`echo x $ac_old_val`
3449 ac_new_val_w=`echo x $ac_new_val`
3450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3452 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3453 ac_cache_corrupted=:
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3456 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3457 eval $ac_var=\$ac_old_val
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3460 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3462 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3463 fi;;
3464 esac
3465 # Pass precious variables to config.status.
3466 if test "$ac_new_set" = set; then
3467 case $ac_new_val in
3468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3469 *) ac_arg=$ac_var=$ac_new_val ;;
3470 esac
3471 case " $ac_configure_args " in
3472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3474 esac
3475 fi
3476 done
3477 if $ac_cache_corrupted; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3481 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3482 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3483 fi
3484 ## -------------------- ##
3485 ## Main body of script. ##
3486 ## -------------------- ##
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495
3496 emacs_config_options=
3497 optsep=
3498 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3499 case $opt in
3500 -n | --no-create | --no-recursion)
3501 continue ;;
3502 CFLAGS | CPPFLAGS | LDFLAGS)
3503 eval 'test "${'$opt'+set}" = set' || continue
3504 case " $*" in
3505 *" $opt="*) continue ;;
3506 esac
3507 eval opt=$opt=\$$opt ;;
3508 esac
3509
3510 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3511 case $opt in
3512 *["$emacs_shell_specials"]*)
3513 case $opt in
3514 *\'*)
3515 emacs_quote_apostrophes="s/'/'\\\\''/g"
3516 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3517 esac
3518 opt="'$opt'"
3519 case $opt in
3520 *['"\\']*)
3521 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3522 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3523 esac ;;
3524 esac
3525 as_fn_append emacs_config_options "$optsep$opt"
3526 optsep=' '
3527 done
3528
3529 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3530
3531
3532 ac_aux_dir=
3533 for ac_dir in build-aux "$srcdir"/build-aux; do
3534 for ac_t in install-sh install.sh shtool; do
3535 if test -f "$ac_dir/$ac_t"; then
3536 ac_aux_dir=$ac_dir
3537 ac_install_sh="$ac_aux_dir/$ac_t -c"
3538 break 2
3539 fi
3540 done
3541 done
3542 if test -z "$ac_aux_dir"; then
3543 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3544 fi
3545
3546 # These three variables are undocumented and unsupported,
3547 # and are intended to be withdrawn in a future Autoconf release.
3548 # They can cause serious problems if a builder's source tree is in a directory
3549 # whose full name contains unusual characters.
3550 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3551 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3552 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3553
3554
3555 am__api_version='1.11'
3556
3557 # Find a good install program. We prefer a C program (faster),
3558 # so one script is as good as another. But avoid the broken or
3559 # incompatible versions:
3560 # SysV /etc/install, /usr/sbin/install
3561 # SunOS /usr/etc/install
3562 # IRIX /sbin/install
3563 # AIX /bin/install
3564 # AmigaOS /C/install, which installs bootblocks on floppy discs
3565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3568 # OS/2's system install, which has a completely different semantic
3569 # ./install, which can be erroneously created by make from ./install.sh.
3570 # Reject install programs that cannot install multiple files.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3573 if test -z "$INSTALL"; then
3574 if test "${ac_cv_path_install+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 # Account for people who put trailing slashes in PATH elements.
3583 case $as_dir/ in #((
3584 ./ | .// | /[cC]/* | \
3585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3587 /usr/ucb/* ) ;;
3588 *)
3589 # OSF1 and SCO ODT 3.0 have their own names for install.
3590 # Don't use installbsd from OSF since it installs stuff as root
3591 # by default.
3592 for ac_prog in ginstall scoinst install; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3595 if test $ac_prog = install &&
3596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # AIX install. It has an incompatible calling convention.
3598 :
3599 elif test $ac_prog = install &&
3600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3601 # program-specific install script used by HP pwplus--don't use.
3602 :
3603 else
3604 rm -rf conftest.one conftest.two conftest.dir
3605 echo one > conftest.one
3606 echo two > conftest.two
3607 mkdir conftest.dir
3608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3609 test -s conftest.one && test -s conftest.two &&
3610 test -s conftest.dir/conftest.one &&
3611 test -s conftest.dir/conftest.two
3612 then
3613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3614 break 3
3615 fi
3616 fi
3617 fi
3618 done
3619 done
3620 ;;
3621 esac
3622
3623 done
3624 IFS=$as_save_IFS
3625
3626 rm -rf conftest.one conftest.two conftest.dir
3627
3628 fi
3629 if test "${ac_cv_path_install+set}" = set; then
3630 INSTALL=$ac_cv_path_install
3631 else
3632 # As a last resort, use the slow shell script. Don't cache a
3633 # value for INSTALL within a source directory, because that will
3634 # break other packages using the cache if that directory is
3635 # removed, or if the value is a relative name.
3636 INSTALL=$ac_install_sh
3637 fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3640 $as_echo "$INSTALL" >&6; }
3641
3642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3643 # It thinks the first close brace ends the variable substitution.
3644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3645
3646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3647
3648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3651 $as_echo_n "checking whether build environment is sane... " >&6; }
3652 # Just in case
3653 sleep 1
3654 echo timestamp > conftest.file
3655 # Reject unsafe characters in $srcdir or the absolute working directory
3656 # name. Accept space and tab only in the latter.
3657 am_lf='
3658 '
3659 case `pwd` in
3660 *[\\\"\#\$\&\'\`$am_lf]*)
3661 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3662 esac
3663 case $srcdir in
3664 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3665 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3666 esac
3667
3668 # Do `set' in a subshell so we don't clobber the current shell's
3669 # arguments. Must try -L first in case configure is actually a
3670 # symlink; some systems play weird games with the mod time of symlinks
3671 # (eg FreeBSD returns the mod time of the symlink's containing
3672 # directory).
3673 if (
3674 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3675 if test "$*" = "X"; then
3676 # -L didn't work.
3677 set X `ls -t "$srcdir/configure" conftest.file`
3678 fi
3679 rm -f conftest.file
3680 if test "$*" != "X $srcdir/configure conftest.file" \
3681 && test "$*" != "X conftest.file $srcdir/configure"; then
3682
3683 # If neither matched, then we have a broken ls. This can happen
3684 # if, for instance, CONFIG_SHELL is bash and it inherits a
3685 # broken ls alias from the environment. This has actually
3686 # happened. Such a system could not be considered "sane".
3687 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3688 alias in your environment" "$LINENO" 5
3689 fi
3690
3691 test "$2" = conftest.file
3692 )
3693 then
3694 # Ok.
3695 :
3696 else
3697 as_fn_error "newly created file is older than distributed files!
3698 Check your system clock" "$LINENO" 5
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3701 $as_echo "yes" >&6; }
3702 test "$program_prefix" != NONE &&
3703 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3704 # Use a double $ so make ignores it.
3705 test "$program_suffix" != NONE &&
3706 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3707 # Double any \ or $.
3708 # By default was `s,x,x', remove it if useless.
3709 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3710 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3711
3712 # expand $ac_aux_dir to an absolute path
3713 am_aux_dir=`cd $ac_aux_dir && pwd`
3714
3715 if test x"${MISSING+set}" != xset; then
3716 case $am_aux_dir in
3717 *\ * | *\ *)
3718 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3719 *)
3720 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3721 esac
3722 fi
3723 # Use eval to expand $SHELL
3724 if eval "$MISSING --run true"; then
3725 am_missing_run="$MISSING --run "
3726 else
3727 am_missing_run=
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3729 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3730 fi
3731
3732 if test x"${install_sh}" != xset; then
3733 case $am_aux_dir in
3734 *\ * | *\ *)
3735 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3736 *)
3737 install_sh="\${SHELL} $am_aux_dir/install-sh"
3738 esac
3739 fi
3740
3741 # Installed binaries are usually stripped using `strip' when the user
3742 # run `make install-strip'. However `strip' might not be the right
3743 # tool to use in cross-compilation environments, therefore Automake
3744 # will honor the `STRIP' environment variable to overrule this program.
3745 if test "$cross_compiling" != no; then
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}strip; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_STRIP+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$STRIP"; then
3755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 STRIP=$ac_cv_prog_STRIP
3775 if test -n "$STRIP"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3777 $as_echo "$STRIP" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784 fi
3785 if test -z "$ac_cv_prog_STRIP"; then
3786 ac_ct_STRIP=$STRIP
3787 # Extract the first word of "strip", so it can be a program name with args.
3788 set dummy strip; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_STRIP"; then
3795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_STRIP="strip"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3815 if test -n "$ac_ct_STRIP"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3817 $as_echo "$ac_ct_STRIP" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823 if test "x$ac_ct_STRIP" = x; then
3824 STRIP=":"
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 STRIP=$ac_ct_STRIP
3833 fi
3834 else
3835 STRIP="$ac_cv_prog_STRIP"
3836 fi
3837
3838 fi
3839 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3840
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3842 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3843 if test -z "$MKDIR_P"; then
3844 if test "${ac_cv_path_mkdir+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3849 do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_prog in mkdir gmkdir; do
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3855 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3856 'mkdir (GNU coreutils) '* | \
3857 'mkdir (coreutils) '* | \
3858 'mkdir (fileutils) '4.1*)
3859 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3860 break 3;;
3861 esac
3862 done
3863 done
3864 done
3865 IFS=$as_save_IFS
3866
3867 fi
3868
3869 test -d ./--version && rmdir ./--version
3870 if test "${ac_cv_path_mkdir+set}" = set; then
3871 MKDIR_P="$ac_cv_path_mkdir -p"
3872 else
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for MKDIR_P within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 MKDIR_P="$ac_install_sh -d"
3878 fi
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3881 $as_echo "$MKDIR_P" >&6; }
3882
3883 mkdir_p="$MKDIR_P"
3884 case $mkdir_p in
3885 [\\/$]* | ?:[\\/]*) ;;
3886 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3887 esac
3888
3889 for ac_prog in gawk mawk nawk awk
3890 do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_AWK+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$AWK"; then
3899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_AWK="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 AWK=$ac_cv_prog_AWK
3919 if test -n "$AWK"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921 $as_echo "$AWK" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928 test -n "$AWK" && break
3929 done
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3933 set x ${MAKE-make}
3934 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3935 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat >conftest.make <<\_ACEOF
3939 SHELL = /bin/sh
3940 all:
3941 @echo '@@@%%%=$(MAKE)=@@@%%%'
3942 _ACEOF
3943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3944 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3945 *@@@%%%=?*=@@@%%%*)
3946 eval ac_cv_prog_make_${ac_make}_set=yes;;
3947 *)
3948 eval ac_cv_prog_make_${ac_make}_set=no;;
3949 esac
3950 rm -f conftest.make
3951 fi
3952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 SET_MAKE=
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 SET_MAKE="MAKE=${MAKE-make}"
3960 fi
3961
3962 rm -rf .tst 2>/dev/null
3963 mkdir .tst 2>/dev/null
3964 if test -d .tst; then
3965 am__leading_dot=.
3966 else
3967 am__leading_dot=_
3968 fi
3969 rmdir .tst 2>/dev/null
3970
3971 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3972 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3973 # is not polluted with repeated "-I."
3974 am__isrc=' -I$(srcdir)'
3975 # test to see if srcdir already configured
3976 if test -f $srcdir/config.status; then
3977 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3978 fi
3979 fi
3980
3981 # test whether we have cygpath
3982 if test -z "$CYGPATH_W"; then
3983 if (cygpath --version) >/dev/null 2>/dev/null; then
3984 CYGPATH_W='cygpath -w'
3985 else
3986 CYGPATH_W=echo
3987 fi
3988 fi
3989
3990
3991 # Define the identity of the package.
3992 PACKAGE='emacs'
3993 VERSION='24.3.50'
3994
3995
3996 cat >>confdefs.h <<_ACEOF
3997 #define PACKAGE "$PACKAGE"
3998 _ACEOF
3999
4000
4001 cat >>confdefs.h <<_ACEOF
4002 #define VERSION "$VERSION"
4003 _ACEOF
4004
4005 # Some tools Automake needs.
4006
4007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4008
4009
4010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4011
4012
4013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4014
4015
4016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4017
4018
4019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4020
4021 # We need awk for the "check" target. The system "awk" is bad on
4022 # some platforms.
4023 # Always define AMTAR for backward compatibility.
4024
4025 AMTAR=${AMTAR-"${am_missing_run}tar"}
4026
4027 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4028
4029
4030
4031
4032
4033
4034
4035
4036 lispdir='${datadir}/emacs/${version}/lisp'
4037 leimdir='${datadir}/emacs/${version}/leim'
4038 standardlisppath='${lispdir}:${leimdir}'
4039 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4040 '${datadir}/emacs/site-lisp'
4041 lisppath='${locallisppath}:${standardlisppath}'
4042 etcdir='${datadir}/emacs/${version}/etc'
4043 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4044 etcdocdir='${datadir}/emacs/${version}/etc'
4045 gamedir='${localstatedir}/games/emacs'
4046
4047
4048 # Check whether --with-all was given.
4049 if test "${with_all+set}" = set; then :
4050 withval=$with_all; with_features=$withval
4051 else
4052 with_features=yes
4053 fi
4054
4055
4056
4057
4058
4059 # Check whether --with-pop was given.
4060 if test "${with_pop+set}" = set; then :
4061 withval=$with_pop;
4062 else
4063 with_pop=$with_features
4064 fi
4065
4066 if test "$with_pop" = yes; then
4067 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4068
4069 fi
4070
4071
4072 # Check whether --with-kerberos was given.
4073 if test "${with_kerberos+set}" = set; then :
4074 withval=$with_kerberos;
4075 else
4076 with_kerberos=no
4077 fi
4078
4079 if test "$with_kerberos" != no; then
4080 $as_echo "#define KERBEROS 1" >>confdefs.h
4081
4082 fi
4083
4084
4085 # Check whether --with-kerberos5 was given.
4086 if test "${with_kerberos5+set}" = set; then :
4087 withval=$with_kerberos5;
4088 else
4089 with_kerberos5=no
4090 fi
4091
4092 if test "${with_kerberos5}" != no; then
4093 if test "${with_kerberos}" = no; then
4094 with_kerberos=yes
4095 $as_echo "#define KERBEROS 1" >>confdefs.h
4096
4097 fi
4098
4099 $as_echo "#define KERBEROS5 1" >>confdefs.h
4100
4101 fi
4102
4103
4104 # Check whether --with-hesiod was given.
4105 if test "${with_hesiod+set}" = set; then :
4106 withval=$with_hesiod;
4107 else
4108 with_hesiod=no
4109 fi
4110
4111 if test "$with_hesiod" != no; then
4112
4113 $as_echo "#define HESIOD 1" >>confdefs.h
4114
4115 fi
4116
4117
4118 # Check whether --with-mmdf was given.
4119 if test "${with_mmdf+set}" = set; then :
4120 withval=$with_mmdf;
4121 else
4122 with_mmdf=no
4123 fi
4124
4125 if test "$with_mmdf" != no; then
4126
4127 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4128
4129 fi
4130
4131
4132 # Check whether --with-mail-unlink was given.
4133 if test "${with_mail_unlink+set}" = set; then :
4134 withval=$with_mail_unlink;
4135 else
4136 with_mail_unlink=no
4137 fi
4138
4139 if test "$with_mail_unlink" != no; then
4140
4141 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4142
4143 fi
4144
4145
4146 # Check whether --with-mailhost was given.
4147 if test "${with_mailhost+set}" = set; then :
4148 withval=$with_mailhost;
4149 cat >>confdefs.h <<_ACEOF
4150 #define MAILHOST "$withval"
4151 _ACEOF
4152
4153 fi
4154
4155
4156
4157 # Check whether --with-sound was given.
4158 if test "${with_sound+set}" = set; then :
4159 withval=$with_sound; case "${withval}" in
4160 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4161 *) as_fn_error "\`--with-sound=$withval' is invalid;
4162 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4163 ;;
4164 esac
4165 with_sound=$val
4166
4167 else
4168 with_sound=$with_features
4169 fi
4170
4171
4172
4173 # Check whether --with-x-toolkit was given.
4174 if test "${with_x_toolkit+set}" = set; then :
4175 withval=$with_x_toolkit; case "${withval}" in
4176 y | ye | yes ) val=gtk ;;
4177 n | no ) val=no ;;
4178 l | lu | luc | luci | lucid ) val=lucid ;;
4179 a | at | ath | athe | athen | athena ) val=athena ;;
4180 m | mo | mot | moti | motif ) val=motif ;;
4181 g | gt | gtk ) val=gtk ;;
4182 gtk2 ) val=gtk2 ;;
4183 gtk3 ) val=gtk3 ;;
4184 * )
4185 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4186 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4187 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4188 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4189 ;;
4190 esac
4191 with_x_toolkit=$val
4192
4193 fi
4194
4195
4196
4197 # Check whether --with-wide-int was given.
4198 if test "${with_wide_int+set}" = set; then :
4199 withval=$with_wide_int;
4200 else
4201 with_wide_int=no
4202 fi
4203
4204 if test "$with_wide_int" = yes; then
4205
4206 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4207
4208 fi
4209
4210
4211 # Check whether --with-xpm was given.
4212 if test "${with_xpm+set}" = set; then :
4213 withval=$with_xpm;
4214 else
4215 with_xpm=$with_features
4216 fi
4217
4218
4219 # Check whether --with-jpeg was given.
4220 if test "${with_jpeg+set}" = set; then :
4221 withval=$with_jpeg;
4222 else
4223 with_jpeg=$with_features
4224 fi
4225
4226
4227 # Check whether --with-tiff was given.
4228 if test "${with_tiff+set}" = set; then :
4229 withval=$with_tiff;
4230 else
4231 with_tiff=$with_features
4232 fi
4233
4234
4235 # Check whether --with-gif was given.
4236 if test "${with_gif+set}" = set; then :
4237 withval=$with_gif;
4238 else
4239 with_gif=$with_features
4240 fi
4241
4242
4243 # Check whether --with-png was given.
4244 if test "${with_png+set}" = set; then :
4245 withval=$with_png;
4246 else
4247 with_png=$with_features
4248 fi
4249
4250
4251 # Check whether --with-rsvg was given.
4252 if test "${with_rsvg+set}" = set; then :
4253 withval=$with_rsvg;
4254 else
4255 with_rsvg=$with_features
4256 fi
4257
4258
4259 # Check whether --with-xml2 was given.
4260 if test "${with_xml2+set}" = set; then :
4261 withval=$with_xml2;
4262 else
4263 with_xml2=$with_features
4264 fi
4265
4266
4267 # Check whether --with-imagemagick was given.
4268 if test "${with_imagemagick+set}" = set; then :
4269 withval=$with_imagemagick;
4270 else
4271 with_imagemagick=$with_features
4272 fi
4273
4274
4275
4276 # Check whether --with-xft was given.
4277 if test "${with_xft+set}" = set; then :
4278 withval=$with_xft;
4279 else
4280 with_xft=$with_features
4281 fi
4282
4283
4284 # Check whether --with-libotf was given.
4285 if test "${with_libotf+set}" = set; then :
4286 withval=$with_libotf;
4287 else
4288 with_libotf=$with_features
4289 fi
4290
4291
4292 # Check whether --with-m17n-flt was given.
4293 if test "${with_m17n_flt+set}" = set; then :
4294 withval=$with_m17n_flt;
4295 else
4296 with_m17n_flt=$with_features
4297 fi
4298
4299
4300
4301 # Check whether --with-toolkit-scroll-bars was given.
4302 if test "${with_toolkit_scroll_bars+set}" = set; then :
4303 withval=$with_toolkit_scroll_bars;
4304 else
4305 with_toolkit_scroll_bars=$with_features
4306 fi
4307
4308
4309 # Check whether --with-xaw3d was given.
4310 if test "${with_xaw3d+set}" = set; then :
4311 withval=$with_xaw3d;
4312 else
4313 with_xaw3d=$with_features
4314 fi
4315
4316
4317 # Check whether --with-xim was given.
4318 if test "${with_xim+set}" = set; then :
4319 withval=$with_xim;
4320 else
4321 with_xim=$with_features
4322 fi
4323
4324
4325 # Check whether --with-ns was given.
4326 if test "${with_ns+set}" = set; then :
4327 withval=$with_ns;
4328 else
4329 with_ns=no
4330 fi
4331
4332
4333 # Check whether --with-w32 was given.
4334 if test "${with_w32+set}" = set; then :
4335 withval=$with_w32;
4336 else
4337 with_w32=no
4338 fi
4339
4340
4341
4342 # Check whether --with-gpm was given.
4343 if test "${with_gpm+set}" = set; then :
4344 withval=$with_gpm;
4345 else
4346 with_gpm=$with_features
4347 fi
4348
4349
4350 # Check whether --with-dbus was given.
4351 if test "${with_dbus+set}" = set; then :
4352 withval=$with_dbus;
4353 else
4354 with_dbus=$with_features
4355 fi
4356
4357
4358 # Check whether --with-gconf was given.
4359 if test "${with_gconf+set}" = set; then :
4360 withval=$with_gconf;
4361 else
4362 with_gconf=$with_features
4363 fi
4364
4365
4366 # Check whether --with-gsettings was given.
4367 if test "${with_gsettings+set}" = set; then :
4368 withval=$with_gsettings;
4369 else
4370 with_gsettings=$with_features
4371 fi
4372
4373
4374 # Check whether --with-selinux was given.
4375 if test "${with_selinux+set}" = set; then :
4376 withval=$with_selinux;
4377 else
4378 with_selinux=$with_features
4379 fi
4380
4381
4382 # Check whether --with-gnutls was given.
4383 if test "${with_gnutls+set}" = set; then :
4384 withval=$with_gnutls;
4385 else
4386 with_gnutls=$with_features
4387 fi
4388
4389
4390 # Check whether --with-zlib was given.
4391 if test "${with_zlib+set}" = set; then :
4392 withval=$with_zlib;
4393 else
4394 with_zlib=$with_features
4395 fi
4396
4397
4398
4399 # Check whether --with-file-notification was given.
4400 if test "${with_file_notification+set}" = set; then :
4401 withval=$with_file_notification; case "${withval}" in
4402 y | ye | yes ) val=yes ;;
4403 n | no ) val=no ;;
4404 g | gf | gfi | gfil | gfile ) val=gfile ;;
4405 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4406 w | w3 | w32 ) val=w32 ;;
4407 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4408 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4409 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4410 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4411 ;;
4412 esac
4413 with_file_notification=$val
4414
4415 else
4416 with_file_notification=$with_features
4417 fi
4418
4419
4420 ## For the times when you want to build Emacs but don't have
4421 ## a suitable makeinfo, and can live without the manuals.
4422
4423 # Check whether --with-makeinfo was given.
4424 if test "${with_makeinfo+set}" = set; then :
4425 withval=$with_makeinfo;
4426 else
4427 with_makeinfo=$with_features
4428 fi
4429
4430
4431 ## Makefile.in needs the cache file name.
4432
4433
4434 ## This is an option because I do not know if all info/man support
4435 ## compressed files, nor how to test if they do so.
4436
4437 # Check whether --with-compress-install was given.
4438 if test "${with_compress_install+set}" = set; then :
4439 withval=$with_compress_install;
4440 else
4441 with_compress_install=$with_features
4442 fi
4443
4444
4445
4446 # Check whether --with-pkg-config-prog was given.
4447 if test "${with_pkg_config_prog+set}" = set; then :
4448 withval=$with_pkg_config_prog;
4449 fi
4450
4451 if test "X${with_pkg_config_prog}" != X; then
4452 if test "${with_pkg_config_prog}" != yes; then
4453 PKG_CONFIG="${with_pkg_config_prog}"
4454 fi
4455 fi
4456
4457
4458 # Check whether --with-gameuser was given.
4459 if test "${with_gameuser+set}" = set; then :
4460 withval=$with_gameuser;
4461 fi
4462
4463 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4464 && gameuser="${with_gameuser}"
4465 test "X$gameuser" = X && gameuser=games
4466
4467
4468 # Check whether --with-gnustep-conf was given.
4469 if test "${with_gnustep_conf+set}" = set; then :
4470 withval=$with_gnustep_conf;
4471 fi
4472
4473 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4474 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4475 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4476 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4477
4478 # Check whether --enable-ns-self-contained was given.
4479 if test "${enable_ns_self_contained+set}" = set; then :
4480 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4481 else
4482 EN_NS_SELF_CONTAINED=yes
4483 fi
4484
4485
4486 # Check whether --enable-locallisppath was given.
4487 if test "${enable_locallisppath+set}" = set; then :
4488 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4489 locallisppath=
4490 elif test "${enableval}" != "yes"; then
4491 locallisppath=${enableval}
4492 fi
4493 fi
4494
4495
4496 # Check whether --enable-checking was given.
4497 if test "${enable_checking+set}" = set; then :
4498 enableval=$enable_checking; ac_checking_flags="${enableval}"
4499 fi
4500
4501 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4502 for check in $ac_checking_flags
4503 do
4504 case $check in
4505 # these set all the flags to specific states
4506 yes) ac_enable_checking=1 ;;
4507 no) ac_enable_checking= ;
4508 ac_gc_check_stringbytes= ;
4509 ac_gc_check_string_overrun= ;
4510 ac_gc_check_string_free_list= ;
4511 ac_xmalloc_overrun= ;
4512 ac_gc_check_cons_list= ;
4513 ac_glyphs_debug= ;;
4514 all) ac_enable_checking=1 ;
4515 ac_gc_check_stringbytes=1 ;
4516 ac_gc_check_string_overrun=1 ;
4517 ac_gc_check_string_free_list=1 ;
4518 ac_xmalloc_overrun=1 ;
4519 ac_gc_check_cons_list=1 ;
4520 ac_glyphs_debug=1 ;;
4521 # these enable particular checks
4522 stringbytes) ac_gc_check_stringbytes=1 ;;
4523 stringoverrun) ac_gc_check_string_overrun=1 ;;
4524 stringfreelist) ac_gc_check_string_free_list=1 ;;
4525 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4526 conslist) ac_gc_check_cons_list=1 ;;
4527 glyphs) ac_glyphs_debug=1 ;;
4528 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4529 esac
4530 done
4531 IFS="$ac_save_IFS"
4532
4533 if test x$ac_enable_checking != x ; then
4534
4535 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4536
4537 fi
4538 if test x$ac_gc_check_stringbytes != x ; then
4539
4540 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4541
4542 fi
4543 if test x$ac_gc_check_string_overrun != x ; then
4544
4545 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4546
4547 fi
4548 if test x$ac_gc_check_string_free_list != x ; then
4549
4550 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4551
4552 fi
4553 if test x$ac_xmalloc_overrun != x ; then
4554
4555 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4556
4557 fi
4558 if test x$ac_gc_check_cons_list != x ; then
4559
4560 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4561
4562 fi
4563 if test x$ac_glyphs_debug != x ; then
4564
4565 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4566
4567 fi
4568
4569 # Check whether --enable-check-lisp-object-type was given.
4570 if test "${enable_check_lisp_object_type+set}" = set; then :
4571 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4572
4573 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4574
4575 fi
4576 fi
4577
4578
4579
4580 # Check whether --enable-profiling was given.
4581 if test "${enable_profiling+set}" = set; then :
4582 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4583 fi
4584
4585 if test x$ac_enable_profiling != x ; then
4586 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4587 else
4588 PROFILING_CFLAGS=
4589 fi
4590
4591
4592 # Check whether --enable-autodepend was given.
4593 if test "${enable_autodepend+set}" = set; then :
4594 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4595 else
4596 ac_enable_autodepend=yes
4597 fi
4598
4599
4600 # Check whether --enable-gtk-deprecation-warnings was given.
4601 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4602 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4603 fi
4604
4605
4606 #### Make srcdir absolute, if it isn't already. It's important to
4607 #### avoid running the file name through pwd unnecessarily, since pwd can
4608 #### give you automounter prefixes, which can go away. We do all this
4609 #### so Emacs can find its files when run uninstalled.
4610 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4611 unset CDPATH
4612 case "${srcdir}" in
4613 [\\/]* | ?:[\\/]*) ;;
4614 . )
4615 ## We may be able to use the $PWD environment variable to make this
4616 ## absolute. But sometimes PWD is inaccurate.
4617 ## Note: we used to use $PWD at the end instead of `pwd`,
4618 ## but that tested only for a well-formed and valid PWD,
4619 ## it did not object when PWD was well-formed and valid but just wrong.
4620 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4621 then
4622 srcdir="$PWD"
4623 else
4624 srcdir=`(cd "$srcdir"; pwd)`
4625 fi
4626 ;;
4627 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4628 esac
4629
4630 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4631 #### directories relative to the root of the MSYS tree,
4632 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4633 #### such a value of srcdir is written to the top-level Makefile, it
4634 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4635 #### because, being a MinGW program that knows nothing of MSYS root
4636 #### substitution, it cannot find the data directory. "pwd -W"
4637 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4638 #### we use it here to countermand that lossage.
4639 test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4640
4641 ### Canonicalize the configuration name.
4642
4643 # Make sure we can run config.sub.
4644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4645 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4648 $as_echo_n "checking build system type... " >&6; }
4649 if test "${ac_cv_build+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 ac_build_alias=$build_alias
4653 test "x$ac_build_alias" = x &&
4654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4655 test "x$ac_build_alias" = x &&
4656 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4658 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4659
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4662 $as_echo "$ac_cv_build" >&6; }
4663 case $ac_cv_build in
4664 *-*-*) ;;
4665 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4666 esac
4667 build=$ac_cv_build
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_build
4670 shift
4671 build_cpu=$1
4672 build_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 build_os=$*
4677 IFS=$ac_save_IFS
4678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4682 $as_echo_n "checking host system type... " >&6; }
4683 if test "${ac_cv_host+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test "x$host_alias" = x; then
4687 ac_cv_host=$ac_cv_build
4688 else
4689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4690 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4691 fi
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695 $as_echo "$ac_cv_host" >&6; }
4696 case $ac_cv_host in
4697 *-*-*) ;;
4698 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4699 esac
4700 host=$ac_cv_host
4701 ac_save_IFS=$IFS; IFS='-'
4702 set x $ac_cv_host
4703 shift
4704 host_cpu=$1
4705 host_vendor=$2
4706 shift; shift
4707 # Remember, the first character of IFS is used to create $*,
4708 # except with old shells:
4709 host_os=$*
4710 IFS=$ac_save_IFS
4711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4712
4713
4714 canonical=$host
4715 configuration=${host_alias-${build_alias-$host}}
4716
4717
4718
4719 ### If you add support for a new configuration, add code to this
4720 ### switch statement to recognize your configuration name and select
4721 ### the appropriate operating system file.
4722
4723 ### You would hope that you could choose an s/*.h
4724 ### file based on the operating system portion. However, it turns out
4725 ### that each s/*.h file is pretty manufacturer-specific.
4726 ### So we basically have to have a special case for each
4727 ### configuration name.
4728 ###
4729 ### As far as handling version numbers on operating systems is
4730 ### concerned, make sure things will fail in a fixable way. If
4731 ### /etc/MACHINES doesn't say anything about version numbers, be
4732 ### prepared to handle anything reasonably. If version numbers
4733 ### matter, be sure /etc/MACHINES says something about it.
4734
4735 opsys='' unported=no
4736 case "${canonical}" in
4737
4738 ## GNU/Linux and similar ports
4739 *-*-linux* )
4740 opsys=gnu-linux
4741 ;;
4742
4743 ## FreeBSD ports
4744 *-*-freebsd* )
4745 opsys=freebsd
4746 ;;
4747
4748 ## DragonFly ports
4749 *-*-dragonfly* )
4750 opsys=dragonfly
4751 ;;
4752
4753 ## FreeBSD kernel + glibc based userland
4754 *-*-kfreebsd*gnu* )
4755 opsys=gnu-kfreebsd
4756 ;;
4757
4758 ## NetBSD ports
4759 *-*-netbsd* )
4760 opsys=netbsd
4761 ;;
4762
4763 ## OpenBSD ports
4764 *-*-openbsd* )
4765 opsys=openbsd
4766 ;;
4767
4768 ## Apple Darwin / Mac OS X
4769 *-apple-darwin* )
4770 case "${canonical}" in
4771 i[3456]86-* ) ;;
4772 powerpc-* ) ;;
4773 x86_64-* ) ;;
4774 * ) unported=yes ;;
4775 esac
4776 opsys=darwin
4777 ## Use fink packages if available.
4778 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4779 ## if test -d /sw/include && test -d /sw/lib; then
4780 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4781 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4782 ## fi
4783 ;;
4784
4785 ## Cygwin ports
4786 *-*-cygwin )
4787 opsys=cygwin
4788 ;;
4789
4790 ## HP 9000 series 700 and 800, running HP/UX
4791 hppa*-hp-hpux10.2* )
4792 opsys=hpux10-20
4793 ;;
4794 hppa*-hp-hpux1[1-9]* )
4795 opsys=hpux11
4796 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4797 ;;
4798
4799 ## IBM machines
4800 rs6000-ibm-aix4.[23]* )
4801 opsys=aix4-2
4802 ;;
4803 powerpc-ibm-aix4.[23]* )
4804 opsys=aix4-2
4805 ;;
4806 rs6000-ibm-aix[56]* )
4807 opsys=aix4-2
4808 ;;
4809 powerpc-ibm-aix[56]* )
4810 opsys=aix4-2
4811 ;;
4812
4813 ## Silicon Graphics machines
4814 ## Iris 4D
4815 mips-sgi-irix6.5 )
4816 opsys=irix6-5
4817 # Without defining _LANGUAGE_C, things get masked out in the headers
4818 # so that, for instance, grepping for `free' in stdlib.h fails and
4819 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4820 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4821 ;;
4822
4823 ## Suns
4824 *-sun-solaris* \
4825 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4826 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4827 case "${canonical}" in
4828 i[3456]86-*-* ) ;;
4829 amd64-*-*|x86_64-*-*) ;;
4830 sparc* ) ;;
4831 * ) unported=yes ;;
4832 esac
4833 case "${canonical}" in
4834 *-sunos5.6* | *-solaris2.6* )
4835 opsys=sol2-6
4836 RANLIB="ar -ts"
4837 ;;
4838 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4839 opsys=sol2-6
4840 emacs_check_sunpro_c=yes
4841 ;;
4842 *-sunos5* | *-solaris* )
4843 opsys=sol2-10
4844 emacs_check_sunpro_c=yes
4845 ;;
4846 esac
4847 ## Watch out for a compiler that we know will not work.
4848 case "${canonical}" in
4849 *-solaris* | *-sunos5* )
4850 if [ "x$CC" = x/usr/ucb/cc ]; then
4851 ## /usr/ucb/cc doesn't work;
4852 ## we should find some other compiler that does work.
4853 unset CC
4854 fi
4855 ;;
4856 *) ;;
4857 esac
4858 ;;
4859
4860 ## Intel 386 machines where we don't care about the manufacturer.
4861 i[3456]86-*-* )
4862 case "${canonical}" in
4863 *-darwin* ) opsys=darwin ;;
4864 *-mingw32 )
4865 opsys=mingw32
4866 # MinGW overrides and adds some system headers in nt/inc.
4867 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4868 ;;
4869 *-sysv4.2uw* ) opsys=unixware ;;
4870 *-sysv5uw* ) opsys=unixware ;;
4871 *-sysv5OpenUNIX* ) opsys=unixware ;;
4872 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4873 esac
4874 ;;
4875
4876 * )
4877 unported=yes
4878 ;;
4879 esac
4880
4881 ### If the code above didn't choose an operating system, just choose
4882 ### an operating system based on the configuration name. You really
4883 ### only want to use this when you have no idea what the right
4884 ### operating system is; if you know what operating systems a machine
4885 ### runs, it's cleaner to make it explicit in the case statement
4886 ### above.
4887 if test x"${opsys}" = x; then
4888 case "${canonical}" in
4889 *-gnu* ) opsys=gnu ;;
4890 * )
4891 unported=yes
4892 ;;
4893 esac
4894 fi
4895
4896
4897
4898 if test $unported = yes; then
4899 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4900 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4901 fi
4902
4903
4904 #### Choose a compiler.
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_CC+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$CC"; then
4920 ac_cv_prog_CC="$CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 $as_echo "$CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$ac_cv_prog_CC"; then
4951 ac_ct_CC=$CC
4952 # Extract the first word of "gcc", so it can be a program name with args.
4953 set dummy gcc; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$ac_ct_CC"; then
4960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_ac_ct_CC="gcc"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 fi
4978 fi
4979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4980 if test -n "$ac_ct_CC"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4982 $as_echo "$ac_ct_CC" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987
4988 if test "x$ac_ct_CC" = x; then
4989 CC=""
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 CC=$ac_ct_CC
4998 fi
4999 else
5000 CC="$ac_cv_prog_CC"
5001 fi
5002
5003 if test -z "$CC"; then
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5006 set dummy ${ac_tool_prefix}cc; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_CC+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$CC"; then
5013 ac_cv_prog_CC="$CC" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_CC="${ac_tool_prefix}cc"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5035 $as_echo "$CC" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041
5042 fi
5043 fi
5044 if test -z "$CC"; then
5045 # Extract the first word of "cc", so it can be a program name with args.
5046 set dummy cc; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_CC+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$CC"; then
5053 ac_cv_prog_CC="$CC" # Let the user override the test.
5054 else
5055 ac_prog_rejected=no
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5064 ac_prog_rejected=yes
5065 continue
5066 fi
5067 ac_cv_prog_CC="cc"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 if test $ac_prog_rejected = yes; then
5076 # We found a bogon in the path, so make sure we never use it.
5077 set dummy $ac_cv_prog_CC
5078 shift
5079 if test $# != 0; then
5080 # We chose a different compiler from the bogus one.
5081 # However, it has the same basename, so the bogon will be chosen
5082 # first if we set CC to just the basename; use the full file name.
5083 shift
5084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5085 fi
5086 fi
5087 fi
5088 fi
5089 CC=$ac_cv_prog_CC
5090 if test -n "$CC"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092 $as_echo "$CC" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099 fi
5100 if test -z "$CC"; then
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in cl.exe
5103 do
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CC"; then
5112 ac_cv_prog_CC="$CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 CC=$ac_cv_prog_CC
5132 if test -n "$CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5134 $as_echo "$CC" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 test -n "$CC" && break
5142 done
5143 fi
5144 if test -z "$CC"; then
5145 ac_ct_CC=$CC
5146 for ac_prog in cl.exe
5147 do
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CC"; then
5156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_CC="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5176 if test -n "$ac_ct_CC"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5178 $as_echo "$ac_ct_CC" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185 test -n "$ac_ct_CC" && break
5186 done
5187
5188 if test "x$ac_ct_CC" = x; then
5189 CC=""
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 CC=$ac_ct_CC
5198 fi
5199 fi
5200
5201 fi
5202
5203
5204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "no acceptable C compiler found in \$PATH
5207 See \`config.log' for more details." "$LINENO" 5; }
5208
5209 # Provide some information about the compiler.
5210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5211 set X $ac_compile
5212 ac_compiler=$2
5213 for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220 $as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5222 ac_status=$?
5223 if test -s conftest.err; then
5224 sed '10a\
5225 ... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5228 fi
5229 rm -f conftest.er1 conftest.err
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5232 done
5233
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 ac_clean_files_save=$ac_clean_files
5246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5247 # Try to create an executable without -o first, disregard a.out.
5248 # It will help us diagnose broken compilers, and finding out an intuition
5249 # of exeext.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5251 $as_echo_n "checking whether the C compiler works... " >&6; }
5252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5253
5254 # The possible output files:
5255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5256
5257 ac_rmfiles=
5258 for ac_file in $ac_files
5259 do
5260 case $ac_file in
5261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5263 esac
5264 done
5265 rm -f $ac_rmfiles
5266
5267 if { { ac_try="$ac_link_default"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5273 $as_echo "$ac_try_echo"; } >&5
5274 (eval "$ac_link_default") 2>&5
5275 ac_status=$?
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }; then :
5278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5281 # so that the user can short-circuit this test for compilers unknown to
5282 # Autoconf.
5283 for ac_file in $ac_files ''
5284 do
5285 test -f "$ac_file" || continue
5286 case $ac_file in
5287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5288 ;;
5289 [ab].out )
5290 # We found the default executable, but exeext='' is most
5291 # certainly right.
5292 break;;
5293 *.* )
5294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5295 then :; else
5296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5297 fi
5298 # We set ac_cv_exeext here because the later test for it is not
5299 # safe: cross compilers may not add the suffix if given an `-o'
5300 # argument, so we may need to know it at that point already.
5301 # Even if this section looks crufty: it has the advantage of
5302 # actually working.
5303 break;;
5304 * )
5305 break;;
5306 esac
5307 done
5308 test "$ac_cv_exeext" = no && ac_cv_exeext=
5309
5310 else
5311 ac_file=''
5312 fi
5313 if test -z "$ac_file"; then :
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 $as_echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 { as_fn_set_status 77
5322 as_fn_error "C compiler cannot create executables
5323 See \`config.log' for more details." "$LINENO" 5; }; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5329 $as_echo_n "checking for C compiler default output file name... " >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5331 $as_echo "$ac_file" >&6; }
5332 ac_exeext=$ac_cv_exeext
5333
5334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5335 ac_clean_files=$ac_clean_files_save
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5337 $as_echo_n "checking for suffix of executables... " >&6; }
5338 if { { ac_try="$ac_link"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5344 $as_echo "$ac_try_echo"; } >&5
5345 (eval "$ac_link") 2>&5
5346 ac_status=$?
5347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5348 test $ac_status = 0; }; then :
5349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5351 # work properly (i.e., refer to `conftest.exe'), while it won't with
5352 # `rm'.
5353 for ac_file in conftest.exe conftest conftest.*; do
5354 test -f "$ac_file" || continue
5355 case $ac_file in
5356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5358 break;;
5359 * ) break;;
5360 esac
5361 done
5362 else
5363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error "cannot compute suffix of executables: cannot compile and link
5366 See \`config.log' for more details." "$LINENO" 5; }
5367 fi
5368 rm -f conftest conftest$ac_cv_exeext
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5370 $as_echo "$ac_cv_exeext" >&6; }
5371
5372 rm -f conftest.$ac_ext
5373 EXEEXT=$ac_cv_exeext
5374 ac_exeext=$EXEEXT
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <stdio.h>
5378 int
5379 main ()
5380 {
5381 FILE *f = fopen ("conftest.out", "w");
5382 return ferror (f) || fclose (f) != 0;
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 ac_clean_files="$ac_clean_files conftest.out"
5389 # Check that the compiler produces executables we can run. If not, either
5390 # the compiler is broken, or we cross compile.
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5392 $as_echo_n "checking whether we are cross compiling... " >&6; }
5393 if test "$cross_compiling" != yes; then
5394 { { ac_try="$ac_link"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_link") 2>&5
5402 ac_status=$?
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5405 if { ac_try='./conftest$ac_cv_exeext'
5406 { { case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5411 $as_echo "$ac_try_echo"; } >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; }; }; then
5416 cross_compiling=no
5417 else
5418 if test "$cross_compiling" = maybe; then
5419 cross_compiling=yes
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error "cannot run C compiled programs.
5424 If you meant to cross compile, use \`--host'.
5425 See \`config.log' for more details." "$LINENO" 5; }
5426 fi
5427 fi
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5430 $as_echo "$cross_compiling" >&6; }
5431
5432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5433 ac_clean_files=$ac_clean_files_save
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5435 $as_echo_n "checking for suffix of object files... " >&6; }
5436 if test "${ac_cv_objext+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441
5442 int
5443 main ()
5444 {
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.o conftest.obj
5451 if { { ac_try="$ac_compile"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5457 $as_echo "$ac_try_echo"; } >&5
5458 (eval "$ac_compile") 2>&5
5459 ac_status=$?
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }; then :
5462 for ac_file in conftest.o conftest.obj conftest.*; do
5463 test -f "$ac_file" || continue;
5464 case $ac_file in
5465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5467 break;;
5468 esac
5469 done
5470 else
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5476 as_fn_error "cannot compute suffix of object files: cannot compile
5477 See \`config.log' for more details." "$LINENO" 5; }
5478 fi
5479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5482 $as_echo "$ac_cv_objext" >&6; }
5483 OBJEXT=$ac_cv_objext
5484 ac_objext=$OBJEXT
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5487 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496 #ifndef __GNUC__
5497 choke me
5498 #endif
5499
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505 ac_compiler_gnu=yes
5506 else
5507 ac_compiler_gnu=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5511
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5515 if test $ac_compiler_gnu = yes; then
5516 GCC=yes
5517 else
5518 GCC=
5519 fi
5520 ac_test_CFLAGS=${CFLAGS+set}
5521 ac_save_CFLAGS=$CFLAGS
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5524 if test "${ac_cv_prog_cc_g+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_save_c_werror_flag=$ac_c_werror_flag
5528 ac_c_werror_flag=yes
5529 ac_cv_prog_cc_g=no
5530 CFLAGS="-g"
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533
5534 int
5535 main ()
5536 {
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 ac_cv_prog_cc_g=yes
5544 else
5545 CFLAGS=""
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548
5549 int
5550 main ()
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558
5559 else
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5561 CFLAGS="-g"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_prog_cc_g=yes
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_c_werror_flag=$ac_save_c_werror_flag
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5584 $as_echo "$ac_cv_prog_cc_g" >&6; }
5585 if test "$ac_test_CFLAGS" = set; then
5586 CFLAGS=$ac_save_CFLAGS
5587 elif test $ac_cv_prog_cc_g = yes; then
5588 if test "$GCC" = yes; then
5589 CFLAGS="-g -O2"
5590 else
5591 CFLAGS="-g"
5592 fi
5593 else
5594 if test "$GCC" = yes; then
5595 CFLAGS="-O2"
5596 else
5597 CFLAGS=
5598 fi
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5602 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 ac_cv_prog_cc_c89=no
5606 ac_save_CC=$CC
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <stdarg.h>
5610 #include <stdio.h>
5611 #include <sys/types.h>
5612 #include <sys/stat.h>
5613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5614 struct buf { int x; };
5615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5616 static char *e (p, i)
5617 char **p;
5618 int i;
5619 {
5620 return p[i];
5621 }
5622 static char *f (char * (*g) (char **, int), char **p, ...)
5623 {
5624 char *s;
5625 va_list v;
5626 va_start (v,p);
5627 s = g (p, va_arg (v,int));
5628 va_end (v);
5629 return s;
5630 }
5631
5632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5633 function prototypes and stuff, but not '\xHH' hex character constants.
5634 These don't provoke an error unfortunately, instead are silently treated
5635 as 'x'. The following induces an error, until -std is added to get
5636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5637 array size at least. It's necessary to write '\x00'==0 to get something
5638 that's true only with -std. */
5639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5640
5641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5642 inside strings and character constants. */
5643 #define FOO(x) 'x'
5644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5645
5646 int test (int i, double x);
5647 struct s1 {int (*f) (int a);};
5648 struct s2 {int (*f) (double a);};
5649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5650 int argc;
5651 char **argv;
5652 int
5653 main ()
5654 {
5655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5662 do
5663 CC="$ac_save_CC $ac_arg"
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 ac_cv_prog_cc_c89=$ac_arg
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext
5668 test "x$ac_cv_prog_cc_c89" != "xno" && break
5669 done
5670 rm -f conftest.$ac_ext
5671 CC=$ac_save_CC
5672
5673 fi
5674 # AC_CACHE_VAL
5675 case "x$ac_cv_prog_cc_c89" in
5676 x)
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5678 $as_echo "none needed" >&6; } ;;
5679 xno)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5681 $as_echo "unsupported" >&6; } ;;
5682 *)
5683 CC="$CC $ac_cv_prog_cc_c89"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5686 esac
5687 if test "x$ac_cv_prog_cc_c89" != xno; then :
5688
5689 fi
5690
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 DEPDIR="${am__leading_dot}deps"
5697
5698 ac_config_commands="$ac_config_commands depfiles"
5699
5700
5701 am_make=${MAKE-make}
5702 cat > confinc << 'END'
5703 am__doit:
5704 @echo this is the am__doit target
5705 .PHONY: am__doit
5706 END
5707 # If we don't find an include directive, just comment out the code.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5710 am__include="#"
5711 am__quote=
5712 _am_result=none
5713 # First try GNU make style include.
5714 echo "include confinc" > confmf
5715 # Ignore all kinds of additional output from `make'.
5716 case `$am_make -s -f confmf 2> /dev/null` in #(
5717 *the\ am__doit\ target*)
5718 am__include=include
5719 am__quote=
5720 _am_result=GNU
5721 ;;
5722 esac
5723 # Now try BSD make style include.
5724 if test "$am__include" = "#"; then
5725 echo '.include "confinc"' > confmf
5726 case `$am_make -s -f confmf 2> /dev/null` in #(
5727 *the\ am__doit\ target*)
5728 am__include=.include
5729 am__quote="\""
5730 _am_result=BSD
5731 ;;
5732 esac
5733 fi
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5737 $as_echo "$_am_result" >&6; }
5738 rm -f confinc confmf
5739
5740 # Check whether --enable-dependency-tracking was given.
5741 if test "${enable_dependency_tracking+set}" = set; then :
5742 enableval=$enable_dependency_tracking;
5743 fi
5744
5745 if test "x$enable_dependency_tracking" != xno; then
5746 am_depcomp="$ac_aux_dir/depcomp"
5747 AMDEPBACKSLASH='\'
5748 fi
5749 if test "x$enable_dependency_tracking" != xno; then
5750 AMDEP_TRUE=
5751 AMDEP_FALSE='#'
5752 else
5753 AMDEP_TRUE='#'
5754 AMDEP_FALSE=
5755 fi
5756
5757
5758
5759 depcc="$CC" am_compiler_list=
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5762 $as_echo_n "checking dependency style of $depcc... " >&6; }
5763 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5767 # We make a subdir and do the tests there. Otherwise we can end up
5768 # making bogus files that we don't know about and never remove. For
5769 # instance it was reported that on HP-UX the gcc test will end up
5770 # making a dummy file named `D' -- because `-MD' means `put the output
5771 # in D'.
5772 mkdir conftest.dir
5773 # Copy depcomp to subdir because otherwise we won't find it if we're
5774 # using a relative directory.
5775 cp "$am_depcomp" conftest.dir
5776 cd conftest.dir
5777 # We will build objects and dependencies in a subdirectory because
5778 # it helps to detect inapplicable dependency modes. For instance
5779 # both Tru64's cc and ICC support -MD to output dependencies as a
5780 # side effect of compilation, but ICC will put the dependencies in
5781 # the current directory while Tru64 will put them in the object
5782 # directory.
5783 mkdir sub
5784
5785 am_cv_CC_dependencies_compiler_type=none
5786 if test "$am_compiler_list" = ""; then
5787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5788 fi
5789 am__universal=false
5790 case " $depcc " in #(
5791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5792 esac
5793
5794 for depmode in $am_compiler_list; do
5795 # Setup a source with many dependencies, because some compilers
5796 # like to wrap large dependency lists on column 80 (with \), and
5797 # we should not choose a depcomp mode which is confused by this.
5798 #
5799 # We need to recreate these files for each test, as the compiler may
5800 # overwrite some of them when testing with obscure command lines.
5801 # This happens at least with the AIX C compiler.
5802 : > sub/conftest.c
5803 for i in 1 2 3 4 5 6; do
5804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5806 # Solaris 8's {/usr,}/bin/sh.
5807 touch sub/conftst$i.h
5808 done
5809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5810
5811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5812 # mode. It turns out that the SunPro C++ compiler does not properly
5813 # handle `-M -o', and we need to detect this. Also, some Intel
5814 # versions had trouble with output in subdirs
5815 am__obj=sub/conftest.${OBJEXT-o}
5816 am__minus_obj="-o $am__obj"
5817 case $depmode in
5818 gcc)
5819 # This depmode causes a compiler race in universal mode.
5820 test "$am__universal" = false || continue
5821 ;;
5822 nosideeffect)
5823 # after this tag, mechanisms are not by side-effect, so they'll
5824 # only be used when explicitly requested
5825 if test "x$enable_dependency_tracking" = xyes; then
5826 continue
5827 else
5828 break
5829 fi
5830 ;;
5831 msvisualcpp | msvcmsys)
5832 # This compiler won't grok `-c -o', but also, the minuso test has
5833 # not run yet. These depmodes are late enough in the game, and
5834 # so weak that their functioning should not be impacted.
5835 am__obj=conftest.${OBJEXT-o}
5836 am__minus_obj=
5837 ;;
5838 none) break ;;
5839 esac
5840 if depmode=$depmode \
5841 source=sub/conftest.c object=$am__obj \
5842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5844 >/dev/null 2>conftest.err &&
5845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5849 # icc doesn't choke on unknown options, it will just issue warnings
5850 # or remarks (even with -Werror). So we grep stderr for any message
5851 # that says an option was ignored or not supported.
5852 # When given -MP, icc 7.0 and 7.1 complain thusly:
5853 # icc: Command line warning: ignoring option '-M'; no argument required
5854 # The diagnosis changed in icc 8.0:
5855 # icc: Command line remark: option '-MP' not supported
5856 if (grep 'ignoring option' conftest.err ||
5857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5858 am_cv_CC_dependencies_compiler_type=$depmode
5859 break
5860 fi
5861 fi
5862 done
5863
5864 cd ..
5865 rm -rf conftest.dir
5866 else
5867 am_cv_CC_dependencies_compiler_type=none
5868 fi
5869
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5874
5875 if
5876 test "x$enable_dependency_tracking" != xno \
5877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5878 am__fastdepCC_TRUE=
5879 am__fastdepCC_FALSE='#'
5880 else
5881 am__fastdepCC_TRUE='#'
5882 am__fastdepCC_FALSE=
5883 fi
5884
5885
5886 if test "x$CC" != xcc; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5888 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5891 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5892 fi
5893 set dummy $CC; ac_cc=`$as_echo "$2" |
5894 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5895 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900
5901 int
5902 main ()
5903 {
5904
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 # Make sure it works both with $CC and with simple cc.
5910 # We do the test twice because some compilers refuse to overwrite an
5911 # existing .o file with -o, though they will create one.
5912 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5913 rm -f conftest2.*
5914 if { { case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } &&
5924 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5929 $as_echo "$ac_try_echo"; } >&5
5930 (eval "$ac_try") 2>&5
5931 ac_status=$?
5932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5933 test $ac_status = 0; };
5934 then
5935 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5936 if test "x$CC" != xcc; then
5937 # Test first that cc exists at all.
5938 if { ac_try='cc -c conftest.$ac_ext >&5'
5939 { { case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5944 $as_echo "$ac_try_echo"; } >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; }; then
5949 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5950 rm -f conftest2.*
5951 if { { case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5956 $as_echo "$ac_try_echo"; } >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; } &&
5961 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5966 $as_echo "$ac_try_echo"; } >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970 test $ac_status = 0; };
5971 then
5972 # cc works too.
5973 :
5974 else
5975 # cc exists but doesn't like -o.
5976 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5977 fi
5978 fi
5979 fi
5980 else
5981 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5982 fi
5983 rm -f core conftest*
5984
5985 fi
5986 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5988 $as_echo "yes" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992
5993 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5994
5995 fi
5996
5997 # FIXME: we rely on the cache variable name because
5998 # there is no other way.
5999 set dummy $CC
6000 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6001 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6002 if test "$am_t" != yes; then
6003 # Losing compiler, so override with the script.
6004 # FIXME: It is wrong to rewrite CC.
6005 # But if we don't then we get into trouble of one sort or another.
6006 # A longer-term fix would be to have automake use am__CC in this case,
6007 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6008 CC="$am_aux_dir/compile $CC"
6009 fi
6010
6011
6012
6013 if test x$GCC = xyes; then
6014 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6015 else
6016 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6017 fi
6018
6019 if test "x$opsys" = "xmingw32"; then
6020 BUILDING_FOR_WINDOWSNT_TRUE=
6021 BUILDING_FOR_WINDOWSNT_FALSE='#'
6022 else
6023 BUILDING_FOR_WINDOWSNT_TRUE='#'
6024 BUILDING_FOR_WINDOWSNT_FALSE=
6025 fi
6026
6027
6028 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6029 # as we don't use them.
6030
6031 # Avoid gnulib's threadlib module, as we do threads our own way.
6032
6033
6034 # Initialize gnulib right after choosing the compiler.
6035
6036 ac_ext=c
6037 ac_cpp='$CPP $CPPFLAGS'
6038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6043 # On Suns, sometimes $CPP names a directory.
6044 if test -n "$CPP" && test -d "$CPP"; then
6045 CPP=
6046 fi
6047 if test -z "$CPP"; then
6048 if test "${ac_cv_prog_CPP+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 # Double quotes because CPP needs to be expanded
6052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6053 do
6054 ac_preproc_ok=false
6055 for ac_c_preproc_warn_flag in '' yes
6056 do
6057 # Use a header file that comes with gcc, so configuring glibc
6058 # with a fresh cross-compiler works.
6059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 # <limits.h> exists even on freestanding compilers.
6061 # On the NeXT, cc -E runs the code through the compiler's parser,
6062 # not just through cpp. "Syntax error" is here to catch this case.
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #ifdef __STDC__
6066 # include <limits.h>
6067 #else
6068 # include <assert.h>
6069 #endif
6070 Syntax error
6071 _ACEOF
6072 if ac_fn_c_try_cpp "$LINENO"; then :
6073
6074 else
6075 # Broken: fails on valid input.
6076 continue
6077 fi
6078 rm -f conftest.err conftest.$ac_ext
6079
6080 # OK, works on sane cases. Now check whether nonexistent headers
6081 # can be detected and how.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <ac_nonexistent.h>
6085 _ACEOF
6086 if ac_fn_c_try_cpp "$LINENO"; then :
6087 # Broken: success on invalid input.
6088 continue
6089 else
6090 # Passes both tests.
6091 ac_preproc_ok=:
6092 break
6093 fi
6094 rm -f conftest.err conftest.$ac_ext
6095
6096 done
6097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6098 rm -f conftest.err conftest.$ac_ext
6099 if $ac_preproc_ok; then :
6100 break
6101 fi
6102
6103 done
6104 ac_cv_prog_CPP=$CPP
6105
6106 fi
6107 CPP=$ac_cv_prog_CPP
6108 else
6109 ac_cv_prog_CPP=$CPP
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6112 $as_echo "$CPP" >&6; }
6113 ac_preproc_ok=false
6114 for ac_c_preproc_warn_flag in '' yes
6115 do
6116 # Use a header file that comes with gcc, so configuring glibc
6117 # with a fresh cross-compiler works.
6118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 # <limits.h> exists even on freestanding compilers.
6120 # On the NeXT, cc -E runs the code through the compiler's parser,
6121 # not just through cpp. "Syntax error" is here to catch this case.
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #ifdef __STDC__
6125 # include <limits.h>
6126 #else
6127 # include <assert.h>
6128 #endif
6129 Syntax error
6130 _ACEOF
6131 if ac_fn_c_try_cpp "$LINENO"; then :
6132
6133 else
6134 # Broken: fails on valid input.
6135 continue
6136 fi
6137 rm -f conftest.err conftest.$ac_ext
6138
6139 # OK, works on sane cases. Now check whether nonexistent headers
6140 # can be detected and how.
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if ac_fn_c_try_cpp "$LINENO"; then :
6146 # Broken: success on invalid input.
6147 continue
6148 else
6149 # Passes both tests.
6150 ac_preproc_ok=:
6151 break
6152 fi
6153 rm -f conftest.err conftest.$ac_ext
6154
6155 done
6156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6157 rm -f conftest.err conftest.$ac_ext
6158 if $ac_preproc_ok; then :
6159
6160 else
6161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6163 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6164 See \`config.log' for more details." "$LINENO" 5; }
6165 fi
6166
6167 ac_ext=c
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6176 if test "${ac_cv_path_GREP+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -z "$GREP"; then
6180 ac_path_GREP_found=false
6181 # Loop through the user's path and test for each of PROGNAME-LIST
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6184 do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_prog in grep ggrep; do
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6191 # Check for GNU ac_path_GREP and select it if it is found.
6192 # Check for GNU $ac_path_GREP
6193 case `"$ac_path_GREP" --version 2>&1` in
6194 *GNU*)
6195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6196 *)
6197 ac_count=0
6198 $as_echo_n 0123456789 >"conftest.in"
6199 while :
6200 do
6201 cat "conftest.in" "conftest.in" >"conftest.tmp"
6202 mv "conftest.tmp" "conftest.in"
6203 cp "conftest.in" "conftest.nl"
6204 $as_echo 'GREP' >> "conftest.nl"
6205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6207 as_fn_arith $ac_count + 1 && ac_count=$as_val
6208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6209 # Best one so far, save it but keep looking for a better one
6210 ac_cv_path_GREP="$ac_path_GREP"
6211 ac_path_GREP_max=$ac_count
6212 fi
6213 # 10*(2^10) chars as input seems more than enough
6214 test $ac_count -gt 10 && break
6215 done
6216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6217 esac
6218
6219 $ac_path_GREP_found && break 3
6220 done
6221 done
6222 done
6223 IFS=$as_save_IFS
6224 if test -z "$ac_cv_path_GREP"; then
6225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6226 fi
6227 else
6228 ac_cv_path_GREP=$GREP
6229 fi
6230
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6233 $as_echo "$ac_cv_path_GREP" >&6; }
6234 GREP="$ac_cv_path_GREP"
6235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6238 $as_echo_n "checking for egrep... " >&6; }
6239 if test "${ac_cv_path_EGREP+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6243 then ac_cv_path_EGREP="$GREP -E"
6244 else
6245 if test -z "$EGREP"; then
6246 ac_path_EGREP_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_prog in egrep; do
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6257 # Check for GNU ac_path_EGREP and select it if it is found.
6258 # Check for GNU $ac_path_EGREP
6259 case `"$ac_path_EGREP" --version 2>&1` in
6260 *GNU*)
6261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6262 *)
6263 ac_count=0
6264 $as_echo_n 0123456789 >"conftest.in"
6265 while :
6266 do
6267 cat "conftest.in" "conftest.in" >"conftest.tmp"
6268 mv "conftest.tmp" "conftest.in"
6269 cp "conftest.in" "conftest.nl"
6270 $as_echo 'EGREP' >> "conftest.nl"
6271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6273 as_fn_arith $ac_count + 1 && ac_count=$as_val
6274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6275 # Best one so far, save it but keep looking for a better one
6276 ac_cv_path_EGREP="$ac_path_EGREP"
6277 ac_path_EGREP_max=$ac_count
6278 fi
6279 # 10*(2^10) chars as input seems more than enough
6280 test $ac_count -gt 10 && break
6281 done
6282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6283 esac
6284
6285 $ac_path_EGREP_found && break 3
6286 done
6287 done
6288 done
6289 IFS=$as_save_IFS
6290 if test -z "$ac_cv_path_EGREP"; then
6291 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6292 fi
6293 else
6294 ac_cv_path_EGREP=$EGREP
6295 fi
6296
6297 fi
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6300 $as_echo "$ac_cv_path_EGREP" >&6; }
6301 EGREP="$ac_cv_path_EGREP"
6302
6303
6304
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6307 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6308 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314
6315 #ifdef __ACK__
6316 Amsterdam
6317 #endif
6318
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6322 gl_cv_c_amsterdam_compiler=yes
6323 else
6324 gl_cv_c_amsterdam_compiler=no
6325 fi
6326 rm -f conftest*
6327
6328
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6331 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6332 if test -z "$AR"; then
6333 if test $gl_cv_c_amsterdam_compiler = yes; then
6334 AR='cc -c.a'
6335 if test -z "$ARFLAGS"; then
6336 ARFLAGS='-o'
6337 fi
6338 else
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ar; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_AR+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$AR"; then
6348 ac_cv_prog_AR="$AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_AR="${ac_tool_prefix}ar"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 AR=$ac_cv_prog_AR
6368 if test -n "$AR"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6370 $as_echo "$AR" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376
6377 fi
6378 if test -z "$ac_cv_prog_AR"; then
6379 ac_ct_AR=$AR
6380 # Extract the first word of "ar", so it can be a program name with args.
6381 set dummy ar; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$ac_ct_AR"; then
6388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_ac_ct_AR="ar"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6408 if test -n "$ac_ct_AR"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6410 $as_echo "$ac_ct_AR" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416 if test "x$ac_ct_AR" = x; then
6417 AR="ar"
6418 else
6419 case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425 AR=$ac_ct_AR
6426 fi
6427 else
6428 AR="$ac_cv_prog_AR"
6429 fi
6430
6431 if test -z "$ARFLAGS"; then
6432 ARFLAGS='cru'
6433 fi
6434 fi
6435 else
6436 if test -z "$ARFLAGS"; then
6437 ARFLAGS='cru'
6438 fi
6439 fi
6440
6441
6442 if test -z "$RANLIB"; then
6443 if test $gl_cv_c_amsterdam_compiler = yes; then
6444 RANLIB=':'
6445 else
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$RANLIB"; then
6455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 RANLIB=$ac_cv_prog_RANLIB
6475 if test -n "$RANLIB"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6477 $as_echo "$RANLIB" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_RANLIB"; then
6486 ac_ct_RANLIB=$RANLIB
6487 # Extract the first word of "ranlib", so it can be a program name with args.
6488 set dummy ranlib; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_RANLIB"; then
6495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_RANLIB="ranlib"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6515 if test -n "$ac_ct_RANLIB"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6517 $as_echo "$ac_ct_RANLIB" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523 if test "x$ac_ct_RANLIB" = x; then
6524 RANLIB=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 RANLIB=$ac_ct_RANLIB
6533 fi
6534 else
6535 RANLIB="$ac_cv_prog_RANLIB"
6536 fi
6537
6538 fi
6539 fi
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6543 $as_echo_n "checking for ANSI C header files... " >&6; }
6544 if test "${ac_cv_header_stdc+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <stdlib.h>
6550 #include <stdarg.h>
6551 #include <string.h>
6552 #include <float.h>
6553
6554 int
6555 main ()
6556 {
6557
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 ac_cv_header_stdc=yes
6564 else
6565 ac_cv_header_stdc=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569 if test $ac_cv_header_stdc = yes; then
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <string.h>
6574
6575 _ACEOF
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 $EGREP "memchr" >/dev/null 2>&1; then :
6578
6579 else
6580 ac_cv_header_stdc=no
6581 fi
6582 rm -f conftest*
6583
6584 fi
6585
6586 if test $ac_cv_header_stdc = yes; then
6587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 #include <stdlib.h>
6591
6592 _ACEOF
6593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6594 $EGREP "free" >/dev/null 2>&1; then :
6595
6596 else
6597 ac_cv_header_stdc=no
6598 fi
6599 rm -f conftest*
6600
6601 fi
6602
6603 if test $ac_cv_header_stdc = yes; then
6604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6605 if test "$cross_compiling" = yes; then :
6606 :
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #include <ctype.h>
6611 #include <stdlib.h>
6612 #if ((' ' & 0x0FF) == 0x020)
6613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615 #else
6616 # define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621 #endif
6622
6623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624 int
6625 main ()
6626 {
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_run "$LINENO"; then :
6636
6637 else
6638 ac_cv_header_stdc=no
6639 fi
6640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6641 conftest.$ac_objext conftest.beam conftest.$ac_ext
6642 fi
6643
6644 fi
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6647 $as_echo "$ac_cv_header_stdc" >&6; }
6648 if test $ac_cv_header_stdc = yes; then
6649
6650 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6651
6652 fi
6653
6654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6655 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6656 inttypes.h stdint.h unistd.h
6657 do :
6658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6660 "
6661 eval as_val=\$$as_ac_Header
6662 if test "x$as_val" = x""yes; then :
6663 cat >>confdefs.h <<_ACEOF
6664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6666
6667 fi
6668
6669 done
6670
6671
6672
6673 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6674 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6675 MINIX=yes
6676 else
6677 MINIX=
6678 fi
6679
6680
6681 if test "$MINIX" = yes; then
6682
6683 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6684
6685
6686 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6687
6688
6689 $as_echo "#define _MINIX 1" >>confdefs.h
6690
6691
6692 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6693
6694 fi
6695
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6698 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6699 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704
6705 # define __EXTENSIONS__ 1
6706 $ac_includes_default
6707 int
6708 main ()
6709 {
6710
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 ac_cv_safe_to_define___extensions__=yes
6717 else
6718 ac_cv_safe_to_define___extensions__=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6723 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6724 test $ac_cv_safe_to_define___extensions__ = yes &&
6725 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6726
6727 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6728
6729 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6730
6731 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6732
6733 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6734
6735 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6738 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6739 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 ac_cv_should_define__xopen_source=no
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745
6746 #include <wchar.h>
6747 mbstate_t x;
6748 int
6749 main ()
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761
6762 #define _XOPEN_SOURCE 500
6763 #include <wchar.h>
6764 mbstate_t x;
6765 int
6766 main ()
6767 {
6768
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774 ac_cv_should_define__xopen_source=yes
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6781 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6782 test $ac_cv_should_define__xopen_source = yes &&
6783 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6784
6785
6786
6787
6788
6789
6790
6791
6792 # Check whether --enable-largefile was given.
6793 if test "${enable_largefile+set}" = set; then :
6794 enableval=$enable_largefile;
6795 fi
6796
6797 if test "$enable_largefile" != no; then
6798
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6800 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6801 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_cv_sys_largefile_CC=no
6805 if test "$GCC" != yes; then
6806 ac_save_CC=$CC
6807 while :; do
6808 # IRIX 6.2 and later do not support large files by default,
6809 # so use the C compiler's -n32 option if that helps.
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 /* Check that off_t can represent 2**63 - 1 correctly.
6814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6815 since some C++ compilers masquerading as C compilers
6816 incorrectly reject 9223372036854775807. */
6817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6819 && LARGE_OFF_T % 2147483647 == 1)
6820 ? 1 : -1];
6821 int
6822 main ()
6823 {
6824
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 break
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext
6833 CC="$CC -n32"
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 ac_cv_sys_largefile_CC=' -n32'; break
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext
6838 break
6839 done
6840 CC=$ac_save_CC
6841 rm -f conftest.$ac_ext
6842 fi
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6845 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6846 if test "$ac_cv_sys_largefile_CC" != no; then
6847 CC=$CC$ac_cv_sys_largefile_CC
6848 fi
6849
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6851 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6852 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 while :; do
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 #include <sys/types.h>
6859 /* Check that off_t can represent 2**63 - 1 correctly.
6860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6861 since some C++ compilers masquerading as C compilers
6862 incorrectly reject 9223372036854775807. */
6863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6865 && LARGE_OFF_T % 2147483647 == 1)
6866 ? 1 : -1];
6867 int
6868 main ()
6869 {
6870
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 ac_cv_sys_file_offset_bits=no; break
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 #define _FILE_OFFSET_BITS 64
6882 #include <sys/types.h>
6883 /* Check that off_t can represent 2**63 - 1 correctly.
6884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6885 since some C++ compilers masquerading as C compilers
6886 incorrectly reject 9223372036854775807. */
6887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6889 && LARGE_OFF_T % 2147483647 == 1)
6890 ? 1 : -1];
6891 int
6892 main ()
6893 {
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 ac_cv_sys_file_offset_bits=64; break
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 ac_cv_sys_file_offset_bits=unknown
6904 break
6905 done
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6908 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6909 case $ac_cv_sys_file_offset_bits in #(
6910 no | unknown) ;;
6911 *)
6912 cat >>confdefs.h <<_ACEOF
6913 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6914 _ACEOF
6915 ;;
6916 esac
6917 rm -rf conftest*
6918 if test $ac_cv_sys_file_offset_bits = unknown; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6920 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6921 if test "${ac_cv_sys_large_files+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 while :; do
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #include <sys/types.h>
6928 /* Check that off_t can represent 2**63 - 1 correctly.
6929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6930 since some C++ compilers masquerading as C compilers
6931 incorrectly reject 9223372036854775807. */
6932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6934 && LARGE_OFF_T % 2147483647 == 1)
6935 ? 1 : -1];
6936 int
6937 main ()
6938 {
6939
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 ac_cv_sys_large_files=no; break
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 #define _LARGE_FILES 1
6951 #include <sys/types.h>
6952 /* Check that off_t can represent 2**63 - 1 correctly.
6953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6954 since some C++ compilers masquerading as C compilers
6955 incorrectly reject 9223372036854775807. */
6956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6958 && LARGE_OFF_T % 2147483647 == 1)
6959 ? 1 : -1];
6960 int
6961 main ()
6962 {
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969 ac_cv_sys_large_files=1; break
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 ac_cv_sys_large_files=unknown
6973 break
6974 done
6975 fi
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6977 $as_echo "$ac_cv_sys_large_files" >&6; }
6978 case $ac_cv_sys_large_files in #(
6979 no | unknown) ;;
6980 *)
6981 cat >>confdefs.h <<_ACEOF
6982 #define _LARGE_FILES $ac_cv_sys_large_files
6983 _ACEOF
6984 ;;
6985 esac
6986 rm -rf conftest*
6987 fi
6988
6989
6990 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6991
6992 fi
6993
6994 case $ac_cv_prog_cc_stdc in #(
6995 no) :
6996 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6997 *) :
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6999 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7000 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 ac_cv_prog_cc_c99=no
7004 ac_save_CC=$CC
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 #include <stdarg.h>
7008 #include <stdbool.h>
7009 #include <stdlib.h>
7010 #include <wchar.h>
7011 #include <stdio.h>
7012
7013 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7014 #define debug(...) fprintf (stderr, __VA_ARGS__)
7015 #define showlist(...) puts (#__VA_ARGS__)
7016 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7017 static void
7018 test_varargs_macros (void)
7019 {
7020 int x = 1234;
7021 int y = 5678;
7022 debug ("Flag");
7023 debug ("X = %d\n", x);
7024 showlist (The first, second, and third items.);
7025 report (x>y, "x is %d but y is %d", x, y);
7026 }
7027
7028 // Check long long types.
7029 #define BIG64 18446744073709551615ull
7030 #define BIG32 4294967295ul
7031 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7032 #if !BIG_OK
7033 your preprocessor is broken;
7034 #endif
7035 #if BIG_OK
7036 #else
7037 your preprocessor is broken;
7038 #endif
7039 static long long int bignum = -9223372036854775807LL;
7040 static unsigned long long int ubignum = BIG64;
7041
7042 struct incomplete_array
7043 {
7044 int datasize;
7045 double data[];
7046 };
7047
7048 struct named_init {
7049 int number;
7050 const wchar_t *name;
7051 double average;
7052 };
7053
7054 typedef const char *ccp;
7055
7056 static inline int
7057 test_restrict (ccp restrict text)
7058 {
7059 // See if C++-style comments work.
7060 // Iterate through items via the restricted pointer.
7061 // Also check for declarations in for loops.
7062 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7063 continue;
7064 return 0;
7065 }
7066
7067 // Check varargs and va_copy.
7068 static void
7069 test_varargs (const char *format, ...)
7070 {
7071 va_list args;
7072 va_start (args, format);
7073 va_list args_copy;
7074 va_copy (args_copy, args);
7075
7076 const char *str;
7077 int number;
7078 float fnumber;
7079
7080 while (*format)
7081 {
7082 switch (*format++)
7083 {
7084 case 's': // string
7085 str = va_arg (args_copy, const char *);
7086 break;
7087 case 'd': // int
7088 number = va_arg (args_copy, int);
7089 break;
7090 case 'f': // float
7091 fnumber = va_arg (args_copy, double);
7092 break;
7093 default:
7094 break;
7095 }
7096 }
7097 va_end (args_copy);
7098 va_end (args);
7099 }
7100
7101 int
7102 main ()
7103 {
7104
7105 // Check bool.
7106 _Bool success = false;
7107
7108 // Check restrict.
7109 if (test_restrict ("String literal") == 0)
7110 success = true;
7111 char *restrict newvar = "Another string";
7112
7113 // Check varargs.
7114 test_varargs ("s, d' f .", "string", 65, 34.234);
7115 test_varargs_macros ();
7116
7117 // Check flexible array members.
7118 struct incomplete_array *ia =
7119 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7120 ia->datasize = 10;
7121 for (int i = 0; i < ia->datasize; ++i)
7122 ia->data[i] = i * 1.234;
7123
7124 // Check named initializers.
7125 struct named_init ni = {
7126 .number = 34,
7127 .name = L"Test wide string",
7128 .average = 543.34343,
7129 };
7130
7131 ni.number = 58;
7132
7133 int dynamic_array[ni.number];
7134 dynamic_array[ni.number - 1] = 543;
7135
7136 // work around unused variable warnings
7137 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7138 || dynamic_array[ni.number - 1] != 543);
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7145 do
7146 CC="$ac_save_CC $ac_arg"
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 ac_cv_prog_cc_c99=$ac_arg
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext
7151 test "x$ac_cv_prog_cc_c99" != "xno" && break
7152 done
7153 rm -f conftest.$ac_ext
7154 CC=$ac_save_CC
7155
7156 fi
7157 # AC_CACHE_VAL
7158 case "x$ac_cv_prog_cc_c99" in
7159 x)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7161 $as_echo "none needed" >&6; } ;;
7162 xno)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7164 $as_echo "unsupported" >&6; } ;;
7165 *)
7166 CC="$CC $ac_cv_prog_cc_c99"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7168 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7169 esac
7170 if test "x$ac_cv_prog_cc_c99" != xno; then :
7171 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 ac_cv_prog_cc_c89=no
7179 ac_save_CC=$CC
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <stdarg.h>
7183 #include <stdio.h>
7184 #include <sys/types.h>
7185 #include <sys/stat.h>
7186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7187 struct buf { int x; };
7188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7189 static char *e (p, i)
7190 char **p;
7191 int i;
7192 {
7193 return p[i];
7194 }
7195 static char *f (char * (*g) (char **, int), char **p, ...)
7196 {
7197 char *s;
7198 va_list v;
7199 va_start (v,p);
7200 s = g (p, va_arg (v,int));
7201 va_end (v);
7202 return s;
7203 }
7204
7205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7206 function prototypes and stuff, but not '\xHH' hex character constants.
7207 These don't provoke an error unfortunately, instead are silently treated
7208 as 'x'. The following induces an error, until -std is added to get
7209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7210 array size at least. It's necessary to write '\x00'==0 to get something
7211 that's true only with -std. */
7212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7213
7214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7215 inside strings and character constants. */
7216 #define FOO(x) 'x'
7217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7218
7219 int test (int i, double x);
7220 struct s1 {int (*f) (int a);};
7221 struct s2 {int (*f) (double a);};
7222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7223 int argc;
7224 char **argv;
7225 int
7226 main ()
7227 {
7228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7235 do
7236 CC="$ac_save_CC $ac_arg"
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 ac_cv_prog_cc_c89=$ac_arg
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext
7241 test "x$ac_cv_prog_cc_c89" != "xno" && break
7242 done
7243 rm -f conftest.$ac_ext
7244 CC=$ac_save_CC
7245
7246 fi
7247 # AC_CACHE_VAL
7248 case "x$ac_cv_prog_cc_c89" in
7249 x)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7251 $as_echo "none needed" >&6; } ;;
7252 xno)
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7254 $as_echo "unsupported" >&6; } ;;
7255 *)
7256 CC="$CC $ac_cv_prog_cc_c89"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7259 esac
7260 if test "x$ac_cv_prog_cc_c89" != xno; then :
7261 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7262 else
7263 ac_cv_prog_cc_stdc=no
7264 fi
7265
7266 fi
7267 ;;
7268 esac
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7270 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7271 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 fi
7274
7275 case $ac_cv_prog_cc_stdc in #(
7276 no) :
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7278 $as_echo "unsupported" >&6; } ;; #(
7279 '') :
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7281 $as_echo "none needed" >&6; } ;; #(
7282 *) :
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7284 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7285 esac
7286
7287
7288
7289 # Code from module alloca-opt:
7290 # Code from module allocator:
7291 # Code from module at-internal:
7292 # Code from module binary-io:
7293 # Code from module byteswap:
7294 # Code from module c-ctype:
7295 # Code from module c-strcase:
7296 # Code from module careadlinkat:
7297 # Code from module clock-time:
7298 # Code from module close-stream:
7299 # Code from module count-one-bits:
7300 # Code from module count-trailing-zeros:
7301 # Code from module crypto/md5:
7302 # Code from module crypto/sha1:
7303 # Code from module crypto/sha256:
7304 # Code from module crypto/sha512:
7305 # Code from module dirent:
7306 # Code from module dosname:
7307 # Code from module dtoastr:
7308 # Code from module dtotimespec:
7309 # Code from module dup2:
7310 # Code from module environ:
7311 # Code from module errno:
7312 # Code from module euidaccess:
7313 # Code from module execinfo:
7314 # Code from module extensions:
7315
7316 # Code from module extern-inline:
7317 # Code from module faccessat:
7318 # Code from module fcntl:
7319 # Code from module fcntl-h:
7320 # Code from module fdatasync:
7321 # Code from module fdopendir:
7322 # Code from module filemode:
7323 # Code from module fpending:
7324 # Code from module fstatat:
7325 # Code from module fsync:
7326 # Code from module getdtablesize:
7327 # Code from module getgroups:
7328 # Code from module getloadavg:
7329 # Code from module getopt-gnu:
7330 # Code from module getopt-posix:
7331 # Code from module gettext-h:
7332 # Code from module gettime:
7333 # Code from module gettimeofday:
7334 # Code from module group-member:
7335 # Code from module include_next:
7336 # Code from module intprops:
7337 # Code from module inttypes-incomplete:
7338 # Code from module largefile:
7339
7340 # Code from module lstat:
7341 # Code from module manywarnings:
7342 # Code from module memrchr:
7343 # Code from module mkostemp:
7344 # Code from module mktime:
7345 # Code from module multiarch:
7346 # Code from module nocrash:
7347 # Code from module openat-h:
7348 # Code from module pathmax:
7349 # Code from module pipe2:
7350 # Code from module pselect:
7351 # Code from module pthread_sigmask:
7352 # Code from module putenv:
7353 # Code from module qacl:
7354 # Code from module readlink:
7355 # Code from module readlinkat:
7356 # Code from module root-uid:
7357 # Code from module secure_getenv:
7358 # Code from module sig2str:
7359 # Code from module signal-h:
7360 # Code from module snippet/_Noreturn:
7361 # Code from module snippet/arg-nonnull:
7362 # Code from module snippet/c++defs:
7363 # Code from module snippet/warn-on-use:
7364 # Code from module socklen:
7365 # Code from module ssize_t:
7366 # Code from module stat:
7367 # Code from module stat-time:
7368 # Code from module stdalign:
7369 # Code from module stdarg:
7370
7371
7372
7373 # Code from module stdbool:
7374 # Code from module stddef:
7375 # Code from module stdint:
7376 # Code from module stdio:
7377 # Code from module stdlib:
7378 # Code from module strftime:
7379 # Code from module string:
7380 # Code from module strtoimax:
7381 # Code from module strtoll:
7382 # Code from module strtoull:
7383 # Code from module strtoumax:
7384 # Code from module symlink:
7385 # Code from module sys_select:
7386 # Code from module sys_stat:
7387 # Code from module sys_time:
7388 # Code from module tempname:
7389 # Code from module time:
7390 # Code from module time_r:
7391 # Code from module timer-time:
7392 # Code from module timespec:
7393 # Code from module timespec-add:
7394 # Code from module timespec-sub:
7395 # Code from module u64:
7396 # Code from module unistd:
7397 # Code from module unsetenv:
7398 # Code from module utimens:
7399 # Code from module verify:
7400 # Code from module warnings:
7401 # Code from module xalloc-oversized:
7402
7403
7404 if test "$ac_test_CFLAGS" != set; then
7405 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7406 # if -g3 works and the user does not specify CFLAGS.
7407 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7408 case $CFLAGS in
7409 '-g')
7410 emacs_g3_CFLAGS='-g3';;
7411 '-g -O2')
7412 emacs_g3_CFLAGS='-g3 -O2';;
7413 *)
7414 emacs_g3_CFLAGS='';;
7415 esac
7416 if test -n "$emacs_g3_CFLAGS"; then
7417 emacs_save_CFLAGS=$CFLAGS
7418 CFLAGS=$emacs_g3_CFLAGS
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7420 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7421 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426
7427 int
7428 main ()
7429 {
7430
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 if ac_fn_c_try_link "$LINENO"; then :
7436 emacs_cv_prog_cc_g3=yes
7437 else
7438 emacs_cv_prog_cc_g3=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7444 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7445 if test $emacs_cv_prog_cc_g3 != yes; then
7446 CFLAGS=$emacs_save_CFLAGS
7447 fi
7448 if test $opsys = mingw32; then
7449 CFLAGS="$CFLAGS -gdwarf-2"
7450 fi
7451 fi
7452
7453 case $CFLAGS in
7454 *-O*) ;;
7455 *)
7456 # No optimization flag was inferred for this non-GCC compiler.
7457 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7458 emacs_save_CFLAGS=$CFLAGS
7459 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7460 CFLAGS=${CFLAGS}-O
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7462 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7463 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 emacs_cv_prog_cc_o=yes
7479 else
7480 emacs_cv_prog_cc_o=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7486 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7487 if test $emacs_cv_prog_cc_o != yes; then
7488 CFLAGS=$emacs_save_CFLAGS
7489 fi ;;
7490 esac
7491 fi
7492
7493 # Check whether --enable-gcc-warnings was given.
7494 if test "${enable_gcc_warnings+set}" = set; then :
7495 enableval=$enable_gcc_warnings; case $enableval in
7496 yes|no) ;;
7497 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7498 esac
7499 gl_gcc_warnings=$enableval
7500 else
7501 gl_gcc_warnings=no
7502
7503 fi
7504
7505
7506 # Check whether --enable-link-time-optimization was given.
7507 if test "${enable_link_time_optimization+set}" = set; then :
7508 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7510 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7511 ac_lto_supported=no
7512 if test x$GCC = xyes; then
7513 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7514 if test x$CPUS != x; then
7515 LTO="-flto=$CPUS"
7516 else
7517 LTO="-flto"
7518 fi
7519 old_CFLAGS=$CFLAGS
7520 CFLAGS="$CFLAGS $LTO"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 ac_lto_supported=yes
7534 else
7535 ac_lto_supported=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 CFLAGS="$old_CFLAGS"
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7541 $as_echo "$ac_lto_supported" >&6; }
7542 if test "$ac_lto_supported" = "yes"; then
7543 CFLAGS="$CFLAGS $LTO"
7544 fi
7545 fi
7546 fi
7547
7548
7549 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7550 # ------------------------------------------------
7551 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7552 # Otherwise, run RUN-IF-NOT-FOUND.
7553
7554
7555 # clang is unduly picky about some things.
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7557 $as_echo_n "checking whether the compiler is clang... " >&6; }
7558 if test "${emacs_cv_clang+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563
7564 #ifndef __clang__
7565 #error "not clang"
7566 #endif
7567
7568 int
7569 main ()
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 emacs_cv_clang=yes
7578 else
7579 emacs_cv_clang=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7584 $as_echo "$emacs_cv_clang" >&6; }
7585
7586 # When compiling with GCC, prefer -isystem to -I when including system
7587 # include files, to avoid generating useless diagnostics for the files.
7588 if test "$gl_gcc_warnings" != yes; then
7589 isystem='-I'
7590 if test "$emacs_cv_clang" = yes
7591 then
7592 # Turn off some warnings if supported.
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7594 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7595 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598
7599 gl_save_compiler_FLAGS="$CFLAGS"
7600 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7614 else
7615 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext 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__Werror__Wunknown_warning_option" >&5
7623 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7624 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7625 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7626 else
7627 gl_unknown_warnings_are_errors=
7628 fi
7629
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7632 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7633 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636
7637 gl_save_compiler_FLAGS="$CFLAGS"
7638 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641
7642 int
7643 main ()
7644 {
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_link "$LINENO"; then :
7651 gl_cv_warn_c__Wno_switch=yes
7652 else
7653 gl_cv_warn_c__Wno_switch=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
7657 CFLAGS="$gl_save_compiler_FLAGS"
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7661 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7662 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7663 as_fn_append WARN_CFLAGS " -Wno-switch"
7664 fi
7665
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7669 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7670 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673
7674 gl_save_compiler_FLAGS="$CFLAGS"
7675 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678
7679 int
7680 main ()
7681 {
7682
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
7689 else
7690 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694 CFLAGS="$gl_save_compiler_FLAGS"
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7698 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7699 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
7700 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
7701 fi
7702
7703
7704
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7706 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7707 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710
7711 gl_save_compiler_FLAGS="$CFLAGS"
7712 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-sign"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715
7716 int
7717 main ()
7718 {
7719
7720 ;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725 gl_cv_warn_c__Wno_pointer_sign=yes
7726 else
7727 gl_cv_warn_c__Wno_pointer_sign=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 CFLAGS="$gl_save_compiler_FLAGS"
7732
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7735 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7736 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x""yes; then :
7737 as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
7738 fi
7739
7740
7741 fi
7742 else
7743 isystem='-isystem '
7744
7745 # This, $nw, is the list of warnings we disable.
7746 nw=
7747
7748 case $with_x_toolkit in
7749 lucid | athena | motif)
7750 # Old toolkits mishandle 'const'.
7751 nw="$nw -Wwrite-strings"
7752 ;;
7753 *)
7754
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7756 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7757 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760
7761 gl_save_compiler_FLAGS="$CFLAGS"
7762 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765
7766 int
7767 main ()
7768 {
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 gl_cv_warn_c__Werror=yes
7776 else
7777 gl_cv_warn_c__Werror=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 CFLAGS="$gl_save_compiler_FLAGS"
7782
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7785 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7786 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7787 as_fn_append WERROR_CFLAGS " -Werror"
7788 fi
7789
7790
7791 ;;
7792 esac
7793
7794
7795 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7796 nw="$nw -Woverlength-strings" # Not a problem these days
7797 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7798 nw="$nw -Wformat-nonliteral" # we do this a lot
7799 nw="$nw -Wvla" # warnings in gettext.h
7800 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7801 nw="$nw -Wswitch-default" # Too many warnings for now
7802 nw="$nw -Winline" # OK to ignore 'inline'
7803 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7804 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7805 # signed overflow has undefined behavior
7806 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7807 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7808 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7809
7810 # Emacs doesn't care about shadowing; see
7811 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7812 nw="$nw -Wshadow"
7813
7814 # Emacs's use of alloca inhibits protecting the stack.
7815 nw="$nw -Wstack-protector"
7816
7817 # The following line should be removable at some point.
7818 nw="$nw -Wsuggest-attribute=pure"
7819
7820 # This part is merely for shortening the command line,
7821 # since -Wno-FOO needs to be added below regardless.
7822 nw="$nw -Wmissing-field-initializers"
7823 nw="$nw -Wswitch"
7824 nw="$nw -Wtype-limits"
7825 nw="$nw -Wunused-parameter"
7826
7827 if test $emacs_cv_clang = yes; then
7828 nw="$nw -Wcast-align"
7829 fi
7830
7831
7832
7833 if test -n "$GCC"; then
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7836 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7837 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840
7841 gl_save_CFLAGS="$CFLAGS"
7842 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845
7846 int
7847 main ()
7848 {
7849
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 gl_cv_cc_nomfi_supported=yes
7856 else
7857 gl_cv_cc_nomfi_supported=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 CFLAGS="$gl_save_CFLAGS"
7861 fi
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7864 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7865
7866 if test "$gl_cv_cc_nomfi_supported" = yes; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7868 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7869 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872
7873 gl_save_CFLAGS="$CFLAGS"
7874 CFLAGS="$CFLAGS -W -Werror"
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 void f (void)
7878 {
7879 typedef struct { int a; int b; } s_t;
7880 s_t s1 = { 0, };
7881 }
7882
7883 int
7884 main ()
7885 {
7886
7887 ;
7888 return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892 gl_cv_cc_nomfi_needed=no
7893 else
7894 gl_cv_cc_nomfi_needed=yes
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 CFLAGS="$gl_save_CFLAGS"
7898
7899 fi
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7902 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7903 fi
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7906 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7907 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910
7911 gl_save_CFLAGS="$CFLAGS"
7912 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_compile "$LINENO"; then :
7925 gl_cv_cc_uninitialized_supported=yes
7926 else
7927 gl_cv_cc_uninitialized_supported=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 CFLAGS="$gl_save_CFLAGS"
7931 fi
7932
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7934 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7935
7936 fi
7937
7938 # List all gcc warning categories.
7939 gl_manywarn_set=
7940 for gl_manywarn_item in \
7941 -W \
7942 -Wabi \
7943 -Waddress \
7944 -Waggressive-loop-optimizations \
7945 -Wall \
7946 -Warray-bounds \
7947 -Wattributes \
7948 -Wbad-function-cast \
7949 -Wbuiltin-macro-redefined \
7950 -Wcast-align \
7951 -Wchar-subscripts \
7952 -Wclobbered \
7953 -Wcomment \
7954 -Wcomments \
7955 -Wcoverage-mismatch \
7956 -Wcpp \
7957 -Wdeprecated \
7958 -Wdeprecated-declarations \
7959 -Wdisabled-optimization \
7960 -Wdiv-by-zero \
7961 -Wdouble-promotion \
7962 -Wempty-body \
7963 -Wendif-labels \
7964 -Wenum-compare \
7965 -Wextra \
7966 -Wformat-contains-nul \
7967 -Wformat-extra-args \
7968 -Wformat-nonliteral \
7969 -Wformat-security \
7970 -Wformat-y2k \
7971 -Wformat-zero-length \
7972 -Wfree-nonheap-object \
7973 -Wignored-qualifiers \
7974 -Wimplicit \
7975 -Wimplicit-function-declaration \
7976 -Wimplicit-int \
7977 -Winit-self \
7978 -Winline \
7979 -Wint-to-pointer-cast \
7980 -Winvalid-memory-model \
7981 -Winvalid-pch \
7982 -Wjump-misses-init \
7983 -Wlogical-op \
7984 -Wmain \
7985 -Wmaybe-uninitialized \
7986 -Wmissing-braces \
7987 -Wmissing-declarations \
7988 -Wmissing-field-initializers \
7989 -Wmissing-include-dirs \
7990 -Wmissing-parameter-type \
7991 -Wmissing-prototypes \
7992 -Wmudflap \
7993 -Wmultichar \
7994 -Wnarrowing \
7995 -Wnested-externs \
7996 -Wnonnull \
7997 -Wnormalized=nfc \
7998 -Wold-style-declaration \
7999 -Wold-style-definition \
8000 -Woverflow \
8001 -Woverlength-strings \
8002 -Woverride-init \
8003 -Wpacked \
8004 -Wpacked-bitfield-compat \
8005 -Wparentheses \
8006 -Wpointer-arith \
8007 -Wpointer-sign \
8008 -Wpointer-to-int-cast \
8009 -Wpragmas \
8010 -Wreturn-local-addr \
8011 -Wreturn-type \
8012 -Wsequence-point \
8013 -Wshadow \
8014 -Wsizeof-pointer-memaccess \
8015 -Wstack-protector \
8016 -Wstrict-aliasing \
8017 -Wstrict-overflow \
8018 -Wstrict-prototypes \
8019 -Wsuggest-attribute=const \
8020 -Wsuggest-attribute=format \
8021 -Wsuggest-attribute=noreturn \
8022 -Wsuggest-attribute=pure \
8023 -Wswitch \
8024 -Wswitch-default \
8025 -Wsync-nand \
8026 -Wsystem-headers \
8027 -Wtrampolines \
8028 -Wtrigraphs \
8029 -Wtype-limits \
8030 -Wuninitialized \
8031 -Wunknown-pragmas \
8032 -Wunsafe-loop-optimizations \
8033 -Wunused \
8034 -Wunused-but-set-parameter \
8035 -Wunused-but-set-variable \
8036 -Wunused-function \
8037 -Wunused-label \
8038 -Wunused-local-typedefs \
8039 -Wunused-macros \
8040 -Wunused-parameter \
8041 -Wunused-result \
8042 -Wunused-value \
8043 -Wunused-variable \
8044 -Wvarargs \
8045 -Wvariadic-macros \
8046 -Wvector-operation-performance \
8047 -Wvla \
8048 -Wvolatile-register-var \
8049 -Wwrite-strings \
8050 -fdiagnostics-show-option \
8051 -funit-at-a-time \
8052 \
8053 ; do
8054 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
8055 done
8056
8057 # Disable specific options as needed.
8058 if test "$gl_cv_cc_nomfi_needed" = yes; then
8059 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
8060 fi
8061
8062 if test "$gl_cv_cc_uninitialized_supported" = no; then
8063 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
8064 fi
8065
8066 ws=$gl_manywarn_set
8067
8068
8069 gl_warn_set=
8070 set x $ws; shift
8071 for gl_warn_item
8072 do
8073 case " $nw " in
8074 *" $gl_warn_item "*)
8075 ;;
8076 *)
8077 gl_warn_set="$gl_warn_set $gl_warn_item"
8078 ;;
8079 esac
8080 done
8081 ws=$gl_warn_set
8082
8083 for w in $ws; do
8084
8085 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8086 gl_positive="$w"
8087 case $gl_positive in
8088 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8089 esac
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8091 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8092 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095
8096 gl_save_compiler_FLAGS="$CFLAGS"
8097 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100
8101 int
8102 main ()
8103 {
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 eval "$as_gl_Warn=yes"
8111 else
8112 eval "$as_gl_Warn=no"
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 CFLAGS="$gl_save_compiler_FLAGS"
8117
8118 fi
8119 eval ac_res=\$$as_gl_Warn
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8121 $as_echo "$ac_res" >&6; }
8122 eval as_val=\$$as_gl_Warn
8123 if test "x$as_val" = x""yes; then :
8124 as_fn_append WARN_CFLAGS " $w"
8125 fi
8126
8127
8128 done
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8131 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8132 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135
8136 gl_save_compiler_FLAGS="$CFLAGS"
8137 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140
8141 int
8142 main ()
8143 {
8144
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"; then :
8150 gl_cv_warn_c__Wno_missing_field_initializers=yes
8151 else
8152 gl_cv_warn_c__Wno_missing_field_initializers=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156 CFLAGS="$gl_save_compiler_FLAGS"
8157
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8160 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8161 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8162 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8163 fi
8164
8165 # We need this one
8166
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8168 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8169 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172
8173 gl_save_compiler_FLAGS="$CFLAGS"
8174 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177
8178 int
8179 main ()
8180 {
8181
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 gl_cv_warn_c__Wno_sign_compare=yes
8188 else
8189 gl_cv_warn_c__Wno_sign_compare=no
8190 fi
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 CFLAGS="$gl_save_compiler_FLAGS"
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8197 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8198 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8199 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8200 fi
8201
8202 # Too many warnings for now
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8205 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8206 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209
8210 gl_save_compiler_FLAGS="$CFLAGS"
8211 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214
8215 int
8216 main ()
8217 {
8218
8219 ;
8220 return 0;
8221 }
8222 _ACEOF
8223 if ac_fn_c_try_link "$LINENO"; then :
8224 gl_cv_warn_c__Wno_type_limits=yes
8225 else
8226 gl_cv_warn_c__Wno_type_limits=no
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 CFLAGS="$gl_save_compiler_FLAGS"
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8234 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8235 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8236 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8237 fi
8238
8239 # Too many warnings for now
8240
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8242 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8243 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246
8247 gl_save_compiler_FLAGS="$CFLAGS"
8248 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251
8252 int
8253 main ()
8254 {
8255
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 gl_cv_warn_c__Wno_switch=yes
8262 else
8263 gl_cv_warn_c__Wno_switch=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 CFLAGS="$gl_save_compiler_FLAGS"
8268
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8271 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8272 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8273 as_fn_append WARN_CFLAGS " -Wno-switch"
8274 fi
8275
8276 # Too many warnings for now
8277
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8279 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8280 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283
8284 gl_save_compiler_FLAGS="$CFLAGS"
8285 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288
8289 int
8290 main ()
8291 {
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 gl_cv_warn_c__Wno_unused_parameter=yes
8299 else
8300 gl_cv_warn_c__Wno_unused_parameter=no
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 CFLAGS="$gl_save_compiler_FLAGS"
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8308 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8309 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8310 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8311 fi
8312
8313 # Too many warnings for now
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8316 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8317 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320
8321 gl_save_compiler_FLAGS="$CFLAGS"
8322 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325
8326 int
8327 main ()
8328 {
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_link "$LINENO"; then :
8335 gl_cv_warn_c__Wno_format_nonliteral=yes
8336 else
8337 gl_cv_warn_c__Wno_format_nonliteral=no
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 CFLAGS="$gl_save_compiler_FLAGS"
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8345 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8346 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8347 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8348 fi
8349
8350
8351
8352 # In spite of excluding -Wlogical-op above, it is enabled, as of
8353 # gcc 4.5.0 20090517.
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8356 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8357 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360
8361 gl_save_compiler_FLAGS="$CFLAGS"
8362 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365
8366 int
8367 main ()
8368 {
8369
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 gl_cv_warn_c__Wno_logical_op=yes
8376 else
8377 gl_cv_warn_c__Wno_logical_op=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 CFLAGS="$gl_save_compiler_FLAGS"
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8385 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8386 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8387 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8388 fi
8389
8390
8391
8392 # More things that clang is unduly picky about.
8393 if test $emacs_cv_clang = yes; then
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8396 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8397 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400
8401 gl_save_compiler_FLAGS="$CFLAGS"
8402 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405
8406 int
8407 main ()
8408 {
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_link "$LINENO"; then :
8415 gl_cv_warn_c__Wno_format_extra_args=yes
8416 else
8417 gl_cv_warn_c__Wno_format_extra_args=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 CFLAGS="$gl_save_compiler_FLAGS"
8422
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8425 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8426 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8427 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8428 fi
8429
8430
8431
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8433 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8434 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437
8438 gl_save_compiler_FLAGS="$CFLAGS"
8439 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442
8443 int
8444 main ()
8445 {
8446
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8453 else
8454 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 CFLAGS="$gl_save_compiler_FLAGS"
8459
8460 fi
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8462 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8463 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8464 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8465 fi
8466
8467
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8470 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8471 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474
8475 gl_save_compiler_FLAGS="$CFLAGS"
8476 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479
8480 int
8481 main ()
8482 {
8483
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8490 else
8491 gl_cv_warn_c__Wno_unused_command_line_argument=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 CFLAGS="$gl_save_compiler_FLAGS"
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8499 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8500 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8501 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8502 fi
8503
8504
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8507 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8508 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511
8512 gl_save_compiler_FLAGS="$CFLAGS"
8513 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516
8517 int
8518 main ()
8519 {
8520
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 gl_cv_warn_c__Wno_unused_value=yes
8527 else
8528 gl_cv_warn_c__Wno_unused_value=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 CFLAGS="$gl_save_compiler_FLAGS"
8533
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8536 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8537 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8538 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8539 fi
8540
8541
8542 fi
8543
8544
8545 $as_echo "#define lint 1" >>confdefs.h
8546
8547
8548
8549 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8550
8551
8552 # We use a slightly smaller set of warning options for lib/.
8553 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8554 nw=
8555 nw="$nw -Wunused-macros"
8556
8557
8558 gl_warn_set=
8559 set x $WARN_CFLAGS; shift
8560 for gl_warn_item
8561 do
8562 case " $nw " in
8563 *" $gl_warn_item "*)
8564 ;;
8565 *)
8566 gl_warn_set="$gl_warn_set $gl_warn_item"
8567 ;;
8568 esac
8569 done
8570 GNULIB_WARN_CFLAGS=$gl_warn_set
8571
8572
8573 fi
8574
8575
8576
8577
8578
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8581 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8582 rm -f conf$$ conf$$.file
8583
8584 LN_S_FILEONLY='cp -p'
8585
8586 if (echo >conf$$.file) 2>/dev/null; then
8587 if ln -s conf$$.file conf$$ 2>/dev/null; then
8588 LN_S_FILEONLY='ln -s'
8589 elif ln conf$$.file conf$$ 2>/dev/null; then
8590 LN_S_FILEONLY=ln
8591 fi
8592 fi
8593
8594 rm -f conf$$ conf$$.file
8595
8596 if test "$LN_S_FILEONLY" = "ln -s"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8598 $as_echo "yes" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8601 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8602 fi
8603
8604
8605
8606
8607 if test "$opsys" = "mingw32"; then
8608 LN_S="ln"
8609 fi
8610
8611 # Extract the first word of "install-info", so it can be a program name with args.
8612 set dummy install-info; ac_word=$2
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614 $as_echo_n "checking for $ac_word... " >&6; }
8615 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 case $INSTALL_INFO in
8619 [\\/]* | ?:[\\/]*)
8620 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8621 ;;
8622 *)
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8625 do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8633 fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637
8638 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8639 ;;
8640 esac
8641 fi
8642 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8643 if test -n "$INSTALL_INFO"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8645 $as_echo "$INSTALL_INFO" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652 # Extract the first word of "gzip", so it can be a program name with args.
8653 set dummy gzip; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 case $GZIP_PROG in
8660 [\\/]* | ?:[\\/]*)
8661 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8662 ;;
8663 *)
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675 done
8676 done
8677 IFS=$as_save_IFS
8678
8679 ;;
8680 esac
8681 fi
8682 GZIP_PROG=$ac_cv_path_GZIP_PROG
8683 if test -n "$GZIP_PROG"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8685 $as_echo "$GZIP_PROG" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690
8691
8692
8693 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8694 GZIP_PROG=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8695
8696 if test $opsys = gnu-linux; then
8697 # Extract the first word of "paxctl", so it can be a program name with args.
8698 set dummy paxctl; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 case $PAXCTL in
8705 [\\/]* | ?:[\\/]*)
8706 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8707 ;;
8708 *)
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8711 do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8716 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8719 fi
8720 done
8721 done
8722 IFS=$as_save_IFS
8723
8724 ;;
8725 esac
8726 fi
8727 PAXCTL=$ac_cv_path_PAXCTL
8728 if test -n "$PAXCTL"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8730 $as_echo "$PAXCTL" >&6; }
8731 else
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8734 fi
8735
8736
8737 if test "X$PAXCTL" != X; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8739 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742
8743 int
8744 main ()
8745 {
8746
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 if ac_fn_c_try_link "$LINENO"; then :
8752 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8753 $as_echo "yes" >&6; }
8754 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }; PAXCTL=""; fi
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 fi
8760 fi
8761
8762 ## Need makeinfo >= 4.7 (?) to build the manuals.
8763 # Extract the first word of "makeinfo", so it can be a program name with args.
8764 set dummy makeinfo; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 case $MAKEINFO in
8771 [\\/]* | ?:[\\/]*)
8772 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8773 ;;
8774 *)
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786 done
8787 done
8788 IFS=$as_save_IFS
8789
8790 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8791 ;;
8792 esac
8793 fi
8794 MAKEINFO=$ac_cv_path_MAKEINFO
8795 if test -n "$MAKEINFO"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8797 $as_echo "$MAKEINFO" >&6; }
8798 else
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802
8803
8804 if test "$MAKEINFO" != "no"; then
8805 case `
8806 $MAKEINFO --version 2> /dev/null |
8807 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8808 ` in
8809 '') MAKEINFO=no;;
8810 esac
8811 fi
8812
8813 ## Makeinfo is unusual. For a released Emacs, the manuals are
8814 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8815 ## therefore in the category of "special tools" not normally required, which
8816 ## configure does not have to check for (eg autoconf itself).
8817 ## In a Bazaar checkout on the other hand, the manuals are not included.
8818 ## So makeinfo is a requirement to build from Bazaar, and configure
8819 ## should test for it as it does for any other build requirement.
8820 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8821 ## with pre-built manuals, from a Bazaar checkout.
8822 HAVE_MAKEINFO=yes
8823
8824 if test "$MAKEINFO" = "no"; then
8825 MAKEINFO=makeinfo
8826 if test "x${with_makeinfo}" = "xno"; then
8827 HAVE_MAKEINFO=no
8828 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8829 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8830 source tree does not seem to have pre-built manuals in the \`info' directory.
8831 Either install a suitable version of makeinfo, or re-run configure
8832 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8833 fi
8834 fi
8835
8836
8837 INFO_EXT=.info
8838 INFO_OPTS=--no-split
8839
8840
8841
8842 if test $opsys = mingw32; then
8843 DOCMISC_W32=efaq-w32
8844 else
8845 DOCMISC_W32=
8846 fi
8847
8848
8849
8850 if test x$GCC = xyes; then
8851 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8852 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8853 else
8854 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8855 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8856 fi
8857
8858
8859 late_LDFLAGS="$LDFLAGS"
8860 if test x$GCC = xyes; then
8861 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
8862 else
8863 LDFLAGS_NOCOMBRELOC="-znocombreloc"
8864 fi
8865
8866 LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8869 $as_echo_n "checking for -znocombreloc... " >&6; }
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872
8873 int
8874 main ()
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"; then :
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8883 $as_echo "yes" >&6; }
8884 else
8885 LDFLAGS_NOCOMBRELOC=
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891
8892 LDFLAGS="$late_LDFLAGS"
8893
8894 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8895 case "$opsys" in
8896 your-opsys-here) CANNOT_DUMP=yes ;;
8897 esac
8898
8899 test "$CANNOT_DUMP" = "yes" && \
8900
8901 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8902
8903
8904
8905
8906
8907 UNEXEC_OBJ=unexelf.o
8908 case "$opsys" in
8909 # MSDOS uses unexcoff.o
8910 aix4-2)
8911 UNEXEC_OBJ=unexaix.o
8912 ;;
8913 cygwin)
8914 UNEXEC_OBJ=unexcw.o
8915 ;;
8916 darwin)
8917 UNEXEC_OBJ=unexmacosx.o
8918 ;;
8919 hpux10-20 | hpux11)
8920 UNEXEC_OBJ=unexhp9k800.o
8921 ;;
8922 mingw32)
8923 UNEXEC_OBJ=unexw32.o
8924 ;;
8925 sol2-10)
8926 # Use the Solaris dldump() function, called from unexsol.c, to dump
8927 # emacs, instead of the generic ELF dump code found in unexelf.c.
8928 # The resulting binary has a complete symbol table, and is better
8929 # for debugging and other observability tools (debuggers, pstack, etc).
8930 #
8931 # If you encounter a problem using dldump(), please consider sending
8932 # a message to the OpenSolaris tools-linking mailing list:
8933 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8934 #
8935 # It is likely that dldump() works with older Solaris too, but this has
8936 # not been tested, so for now this change is for Solaris 10 or newer.
8937 UNEXEC_OBJ=unexsol.o
8938 ;;
8939 esac
8940
8941 LD_SWITCH_SYSTEM=
8942 case "$opsys" in
8943 freebsd|dragonfly)
8944 ## Let `ld' find image libs and similar things in /usr/local/lib.
8945 ## The system compiler, GCC, has apparently been modified to not
8946 ## look there, contrary to what a stock GCC would do.
8947 ### It's not our place to do this. See bug#10313#17.
8948 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8949 :
8950 ;;
8951
8952 gnu-linux)
8953 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8954 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8955 ;;
8956
8957 netbsd)
8958 ### It's not our place to do this. See bug#10313#17.
8959 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8960 :
8961 ;;
8962
8963 openbsd)
8964 ## Han Boetes <han@boetes.org> says this is necessary,
8965 ## otherwise Emacs dumps core on elf systems.
8966 LD_SWITCH_SYSTEM="-Z"
8967 ;;
8968 esac
8969
8970
8971 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8972
8973 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8974 ## which has not been defined yet. When this was handled with cpp,
8975 ## it was expanded to null when configure sourced the s/*.h file.
8976 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8977 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8978 ## (or somesuch), but because it is supposed to go at the _front_
8979 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8980 ## Compare with the gnu-linux case below, which added to the end
8981 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8982 ## LD_SWITCH_SYSTEM_TEMACS.
8983 case "$opsys" in
8984 netbsd|openbsd)
8985 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8986 esac
8987
8988
8989 C_SWITCH_MACHINE=
8990 case $canonical in
8991 alpha*)
8992 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8993 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8994
8995 fi
8996
8997 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8998 ## With ELF, make sure that all common symbols get allocated to in the
8999 ## data section. Otherwise, the dump of temacs may miss variables in
9000 ## the shared library that have been initialized. For example, with
9001 ## GNU libc, __malloc_initialized would normally be resolved to the
9002 ## shared library's .bss section, which is fatal.
9003 if test "x$GCC" = "xyes"; then
9004 C_SWITCH_MACHINE="-fno-common"
9005 else
9006 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
9007 fi
9008 else
9009 UNEXEC_OBJ=unexalpha.o
9010 fi
9011 ;;
9012 esac
9013
9014
9015
9016
9017 C_SWITCH_SYSTEM=
9018 ## Some programs in src produce warnings saying certain subprograms
9019 ## are too complex and need a MAXMEM value greater than 2000 for
9020 ## additional optimization. --nils@exp-math.uni-essen.de
9021 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
9022 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
9023 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
9024 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9025 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9026
9027
9028
9029 LIBS_SYSTEM=
9030 case "$opsys" in
9031 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9032 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
9033
9034 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
9035
9036 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
9037
9038 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
9039
9040 ## Motif needs -lgen.
9041 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
9042 esac
9043
9044
9045
9046 ### Make sure subsequent tests use flags consistent with the build flags.
9047
9048 if test x"${OVERRIDE_CPPFLAGS}" != x; then
9049 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
9050 else
9051 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9052 fi
9053
9054 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9055
9056 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9057
9058
9059
9060 LIB_MATH=-lm
9061 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9062
9063 case $opsys in
9064 cygwin )
9065 LIB_MATH=
9066 ;;
9067 darwin )
9068 ## Adding -lm confuses the dynamic linker, so omit it.
9069 LIB_MATH=
9070 ;;
9071 freebsd | dragonfly )
9072 SYSTEM_TYPE=berkeley-unix
9073 ;;
9074 gnu-linux | gnu-kfreebsd )
9075 ;;
9076 hpux10-20 | hpux11 )
9077 ;;
9078 mingw32 )
9079 LIB_MATH=
9080 SYSTEM_TYPE=windows-nt
9081 ;;
9082 netbsd | openbsd )
9083 SYSTEM_TYPE=berkeley-unix
9084 ;;
9085
9086 sol2* | unixware )
9087 SYSTEM_TYPE=usg-unix-v
9088 ;;
9089
9090 esac
9091
9092
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9096 _ACEOF
9097
9098
9099
9100 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9101 pre_PKG_CONFIG_LIBS=$LIBS
9102
9103 # Extract the first word of "pkg-config", so it can be a program name with args.
9104 set dummy pkg-config; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 case $PKG_CONFIG in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9113 ;;
9114 *)
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9117 do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126 done
9127 done
9128 IFS=$as_save_IFS
9129
9130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9131 ;;
9132 esac
9133 fi
9134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9135 if test -n "$PKG_CONFIG"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9137 $as_echo "$PKG_CONFIG" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143
9144
9145
9146
9147 HAVE_SOUND=no
9148 if test "${with_sound}" != "no"; then
9149 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9150 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9151 do :
9152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9154 #ifdef __MINGW32__
9155 #define WIN32_LEAN_AND_MEAN
9156 #include <windows.h>
9157 #endif
9158
9159 "
9160 eval as_val=\$$as_ac_Header
9161 if test "x$as_val" = x""yes; then :
9162 cat >>confdefs.h <<_ACEOF
9163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9164 _ACEOF
9165 have_sound_header=yes
9166 fi
9167
9168 done
9169
9170 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9171 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9172
9173 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9174 # Emulation library used on NetBSD.
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9176 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9177 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 ac_check_lib_save_LIBS=$LIBS
9181 LIBS="-lossaudio $LIBS"
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184
9185 /* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9188 #ifdef __cplusplus
9189 extern "C"
9190 #endif
9191 char _oss_ioctl ();
9192 int
9193 main ()
9194 {
9195 return _oss_ioctl ();
9196 ;
9197 return 0;
9198 }
9199 _ACEOF
9200 if ac_fn_c_try_link "$LINENO"; then :
9201 ac_cv_lib_ossaudio__oss_ioctl=yes
9202 else
9203 ac_cv_lib_ossaudio__oss_ioctl=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9210 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9211 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9212 LIBSOUND=-lossaudio
9213 else
9214 LIBSOUND=
9215 fi
9216
9217 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9218 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9219 fi
9220
9221
9222 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9223 ALSA_REQUIRED=1.0.0
9224 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9225
9226 succeeded=no
9227
9228 if test "$PKG_CONFIG" = "no" ; then
9229 HAVE_ALSA=no
9230 else
9231 PKG_CONFIG_MIN_VERSION=0.9.0
9232 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9234 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9235
9236 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9237 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9238 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9239 edit_cflags="
9240 s,///*,/,g
9241 s/^/ /
9242 s/ -I/ $isystem/g
9243 s/^ //
9244 "
9245 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9246 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9248 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9249 succeeded=yes
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9253 ALSA_CFLAGS=""
9254 ALSA_LIBS=""
9255 ## If we have a custom action on failure, don't print errors, but
9256 ## do set a variable so people can do so. Do it in a subshell
9257 ## to capture any diagnostics in invoking pkg-config.
9258 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9259
9260 fi
9261
9262
9263
9264 else
9265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9267 fi
9268 fi
9269
9270 if test $succeeded = yes; then
9271 HAVE_ALSA=yes
9272 else
9273 HAVE_ALSA=no
9274 fi
9275
9276 if test $HAVE_ALSA = yes; then
9277 SAVE_CFLAGS="$CFLAGS"
9278 SAVE_LIBS="$LIBS"
9279 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9280 LIBS="$ALSA_LIBS $LIBS"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include <asoundlib.h>
9284 int
9285 main ()
9286 {
9287 snd_lib_error_set_handler (0);
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_compile "$LINENO"; then :
9293 emacs_alsa_normal=yes
9294 else
9295 emacs_alsa_normal=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 if test "$emacs_alsa_normal" != yes; then
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <alsa/asoundlib.h>
9302 int
9303 main ()
9304 {
9305 snd_lib_error_set_handler (0);
9306 ;
9307 return 0;
9308 }
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 emacs_alsa_subdir=yes
9312 else
9313 emacs_alsa_subdir=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 if test "$emacs_alsa_subdir" != yes; then
9317 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9318 fi
9319 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9320 fi
9321
9322 CFLAGS="$SAVE_CFLAGS"
9323 LIBS="$SAVE_LIBS"
9324 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9325 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9326
9327 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9328
9329 elif test "${with_sound}" = "alsa"; then
9330 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9331 fi
9332 fi
9333 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9334 case "$opsys" in
9335 gnu-linux|freebsd|netbsd|mingw32)
9336
9337 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9338
9339 HAVE_SOUND=yes
9340 ;;
9341 esac
9342 fi
9343
9344
9345 fi
9346
9347
9348
9349
9350 for ac_header in $ac_header_list
9351 do :
9352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9354 "
9355 eval as_val=\$$as_ac_Header
9356 if test "x$as_val" = x""yes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9359 _ACEOF
9360
9361 fi
9362
9363 done
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9384 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <sys/personality.h>
9388 int
9389 main ()
9390 {
9391 personality (PER_LINUX32)
9392 ;
9393 return 0;
9394 }
9395 _ACEOF
9396 if ac_fn_c_try_compile "$LINENO"; then :
9397 emacs_cv_personality_linux32=yes
9398 else
9399 emacs_cv_personality_linux32=no
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9403 $as_echo "$emacs_cv_personality_linux32" >&6; }
9404
9405 if test $emacs_cv_personality_linux32 = yes; then
9406
9407 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9408
9409 fi
9410
9411 for ac_header in term.h
9412 do :
9413 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9414 if test "x$ac_cv_header_term_h" = x""yes; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_TERM_H 1
9417 _ACEOF
9418
9419 fi
9420
9421 done
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9424 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9425 if test "${ac_cv_header_time+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 #include <sys/types.h>
9431 #include <sys/time.h>
9432 #include <time.h>
9433
9434 int
9435 main ()
9436 {
9437 if ((struct tm *) 0)
9438 return 0;
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 ac_cv_header_time=yes
9445 else
9446 ac_cv_header_time=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9451 $as_echo "$ac_cv_header_time" >&6; }
9452 if test $ac_cv_header_time = yes; then
9453
9454 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9455
9456 fi
9457
9458 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9459
9460 "
9461 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9462 ac_have_decl=1
9463 else
9464 ac_have_decl=0
9465 fi
9466
9467 cat >>confdefs.h <<_ACEOF
9468 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9469 _ACEOF
9470
9471 if test $ac_cv_have_decl_sys_siglist != yes; then
9472 # For Tru64, at least:
9473 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9474
9475 "
9476 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9477 ac_have_decl=1
9478 else
9479 ac_have_decl=0
9480 fi
9481
9482 cat >>confdefs.h <<_ACEOF
9483 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9484 _ACEOF
9485
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9488 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9489 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 #include <sys/types.h>
9495 #include <sys/wait.h>
9496 #ifndef WEXITSTATUS
9497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9498 #endif
9499 #ifndef WIFEXITED
9500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9501 #endif
9502
9503 int
9504 main ()
9505 {
9506 int s;
9507 wait (&s);
9508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"; then :
9514 ac_cv_header_sys_wait_h=yes
9515 else
9516 ac_cv_header_sys_wait_h=no
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9521 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9522 if test $ac_cv_header_sys_wait_h = yes; then
9523
9524 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9525
9526 fi
9527
9528
9529
9530
9531
9532 for ac_header in net/if.h
9533 do :
9534 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9535 #if HAVE_SYS_SOCKET_H
9536 #include <sys/socket.h>
9537 #endif
9538 "
9539 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_NET_IF_H 1
9542 _ACEOF
9543
9544 fi
9545
9546 done
9547
9548 for ac_header in ifaddrs.h
9549 do :
9550 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9551 #if HAVE_SYS_SOCKET_H
9552 #include <sys/socket.h>
9553 #endif
9554 "
9555 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9556 cat >>confdefs.h <<_ACEOF
9557 #define HAVE_IFADDRS_H 1
9558 _ACEOF
9559
9560 fi
9561
9562 done
9563
9564 for ac_header in net/if_dl.h
9565 do :
9566 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9567 #if HAVE_SYS_SOCKET_H
9568 #include <sys/socket.h>
9569 #endif
9570 "
9571 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9572 cat >>confdefs.h <<_ACEOF
9573 #define HAVE_NET_IF_DL_H 1
9574 _ACEOF
9575
9576 fi
9577
9578 done
9579
9580
9581 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9582 #if HAVE_SYS_SOCKET_H
9583 #include <sys/socket.h>
9584 #endif
9585 #if HAVE_NET_IF_H
9586 #include <net/if.h>
9587 #endif
9588 "
9589 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9590
9591 cat >>confdefs.h <<_ACEOF
9592 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9593 _ACEOF
9594
9595
9596 fi
9597 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9598 #if HAVE_SYS_SOCKET_H
9599 #include <sys/socket.h>
9600 #endif
9601 #if HAVE_NET_IF_H
9602 #include <net/if.h>
9603 #endif
9604 "
9605 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9606
9607 cat >>confdefs.h <<_ACEOF
9608 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9609 _ACEOF
9610
9611
9612 fi
9613 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9614 #if HAVE_SYS_SOCKET_H
9615 #include <sys/socket.h>
9616 #endif
9617 #if HAVE_NET_IF_H
9618 #include <net/if.h>
9619 #endif
9620 "
9621 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9622
9623 cat >>confdefs.h <<_ACEOF
9624 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9625 _ACEOF
9626
9627
9628 fi
9629 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9630 #if HAVE_SYS_SOCKET_H
9631 #include <sys/socket.h>
9632 #endif
9633 #if HAVE_NET_IF_H
9634 #include <net/if.h>
9635 #endif
9636 "
9637 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9638
9639 cat >>confdefs.h <<_ACEOF
9640 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9641 _ACEOF
9642
9643
9644 fi
9645 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9646 #if HAVE_SYS_SOCKET_H
9647 #include <sys/socket.h>
9648 #endif
9649 #if HAVE_NET_IF_H
9650 #include <net/if.h>
9651 #endif
9652 "
9653 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9654
9655 cat >>confdefs.h <<_ACEOF
9656 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9657 _ACEOF
9658
9659
9660 fi
9661 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9662 #if HAVE_SYS_SOCKET_H
9663 #include <sys/socket.h>
9664 #endif
9665 #if HAVE_NET_IF_H
9666 #include <net/if.h>
9667 #endif
9668 "
9669 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9670
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9673 _ACEOF
9674
9675
9676 fi
9677
9678
9679
9680
9681 DEPFLAGS=
9682 MKDEPDIR=":"
9683 deps_frag=deps.mk
9684 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9686 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9687 HAVE_GNU_MAKE=no
9688 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9689 if test "x$testval" != x; then
9690 HAVE_GNU_MAKE=yes
9691 else
9692 ac_enable_autodepend=no
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9695 $as_echo "$HAVE_GNU_MAKE" >&6; }
9696 if test $HAVE_GNU_MAKE = yes; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9698 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9699 SAVE_CFLAGS="$CFLAGS"
9700 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703
9704 int
9705 main ()
9706 {
9707
9708 ;
9709 return 0;
9710 }
9711 _ACEOF
9712 if ac_fn_c_try_compile "$LINENO"; then :
9713
9714 else
9715 ac_enable_autodepend=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 CFLAGS="$SAVE_CFLAGS"
9719 test -f deps.d || ac_enable_autodepend=no
9720 rm -rf deps.d
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9722 $as_echo "$ac_enable_autodepend" >&6; }
9723 fi
9724 if test $ac_enable_autodepend = yes; then
9725 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9726 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9727 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9728 deps_frag=autodeps.mk
9729 fi
9730 fi
9731 deps_frag=$srcdir/src/$deps_frag
9732
9733
9734
9735
9736
9737 lisp_frag=$srcdir/src/lisp.mk
9738
9739
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9742 $as_echo_n "checking for long file names... " >&6; }
9743 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 ac_cv_sys_long_file_names=yes
9747 # Test for long file names in all the places we know might matter:
9748 # . the current directory, where building will happen
9749 # $prefix/lib where we will be installing things
9750 # $exec_prefix/lib likewise
9751 # $TMPDIR if set, where it might want to write temporary files
9752 # /tmp where it might want to write temporary files
9753 # /var/tmp likewise
9754 # /usr/tmp likewise
9755 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9756 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9757 # in the usual case where exec_prefix is '${prefix}'.
9758 case $ac_dir in #(
9759 . | /* | ?:[\\/]*) ;; #(
9760 *) continue;;
9761 esac
9762 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9763 ac_xdir=$ac_dir/cf$$
9764 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9765 ac_tf1=$ac_xdir/conftest9012345
9766 ac_tf2=$ac_xdir/conftest9012346
9767 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9768 ac_cv_sys_long_file_names=no
9769 rm -f -r "$ac_xdir" 2>/dev/null
9770 test $ac_cv_sys_long_file_names = no && break
9771 done
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9774 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9775 if test $ac_cv_sys_long_file_names = yes; then
9776
9777 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9778
9779 fi
9780
9781
9782 #### Choose a window system.
9783
9784 ## We leave window_system equal to none if
9785 ## we end up building without one. Any new window system should
9786 ## set window_system to an appropriate value and add objects to
9787 ## window-system-specific substs.
9788
9789 window_system=none
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9791 $as_echo_n "checking for X... " >&6; }
9792
9793
9794 # Check whether --with-x was given.
9795 if test "${with_x+set}" = set; then :
9796 withval=$with_x;
9797 fi
9798
9799 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9800 if test "x$with_x" = xno; then
9801 # The user explicitly disabled X.
9802 have_x=disabled
9803 else
9804 case $x_includes,$x_libraries in #(
9805 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9806 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 # One or both of the vars are not set, and there is no cached value.
9810 ac_x_includes=no ac_x_libraries=no
9811 rm -f -r conftest.dir
9812 if mkdir conftest.dir; then
9813 cd conftest.dir
9814 cat >Imakefile <<'_ACEOF'
9815 incroot:
9816 @echo incroot='${INCROOT}'
9817 usrlibdir:
9818 @echo usrlibdir='${USRLIBDIR}'
9819 libdir:
9820 @echo libdir='${LIBDIR}'
9821 _ACEOF
9822 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9824 for ac_var in incroot usrlibdir libdir; do
9825 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9826 done
9827 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9828 for ac_extension in a so sl dylib la dll; do
9829 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9830 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9831 ac_im_usrlibdir=$ac_im_libdir; break
9832 fi
9833 done
9834 # Screen out bogus values from the imake configuration. They are
9835 # bogus both because they are the default anyway, and because
9836 # using them would break gcc on systems where it needs fixed includes.
9837 case $ac_im_incroot in
9838 /usr/include) ac_x_includes= ;;
9839 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9840 esac
9841 case $ac_im_usrlibdir in
9842 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9843 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9844 esac
9845 fi
9846 cd ..
9847 rm -f -r conftest.dir
9848 fi
9849
9850 # Standard set of common directories for X headers.
9851 # Check X11 before X11Rn because it is often a symlink to the current release.
9852 ac_x_header_dirs='
9853 /usr/X11/include
9854 /usr/X11R7/include
9855 /usr/X11R6/include
9856 /usr/X11R5/include
9857 /usr/X11R4/include
9858
9859 /usr/include/X11
9860 /usr/include/X11R7
9861 /usr/include/X11R6
9862 /usr/include/X11R5
9863 /usr/include/X11R4
9864
9865 /usr/local/X11/include
9866 /usr/local/X11R7/include
9867 /usr/local/X11R6/include
9868 /usr/local/X11R5/include
9869 /usr/local/X11R4/include
9870
9871 /usr/local/include/X11
9872 /usr/local/include/X11R7
9873 /usr/local/include/X11R6
9874 /usr/local/include/X11R5
9875 /usr/local/include/X11R4
9876
9877 /usr/X386/include
9878 /usr/x386/include
9879 /usr/XFree86/include/X11
9880
9881 /usr/include
9882 /usr/local/include
9883 /usr/unsupported/include
9884 /usr/athena/include
9885 /usr/local/x11r5/include
9886 /usr/lpp/Xamples/include
9887
9888 /usr/openwin/include
9889 /usr/openwin/share/include'
9890
9891 if test "$ac_x_includes" = no; then
9892 # Guess where to find include files, by looking for Xlib.h.
9893 # First, try using that file with no special directory specified.
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 #include <X11/Xlib.h>
9897 _ACEOF
9898 if ac_fn_c_try_cpp "$LINENO"; then :
9899 # We can compile using X headers with no special include directory.
9900 ac_x_includes=
9901 else
9902 for ac_dir in $ac_x_header_dirs; do
9903 if test -r "$ac_dir/X11/Xlib.h"; then
9904 ac_x_includes=$ac_dir
9905 break
9906 fi
9907 done
9908 fi
9909 rm -f conftest.err conftest.$ac_ext
9910 fi # $ac_x_includes = no
9911
9912 if test "$ac_x_libraries" = no; then
9913 # Check for the libraries.
9914 # See if we find them without any special options.
9915 # Don't add to $LIBS permanently.
9916 ac_save_LIBS=$LIBS
9917 LIBS="-lX11 $LIBS"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <X11/Xlib.h>
9921 int
9922 main ()
9923 {
9924 XrmInitialize ()
9925 ;
9926 return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9930 LIBS=$ac_save_LIBS
9931 # We can link X programs with no special library path.
9932 ac_x_libraries=
9933 else
9934 LIBS=$ac_save_LIBS
9935 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9936 do
9937 # Don't even attempt the hair of trying to link an X program!
9938 for ac_extension in a so sl dylib la dll; do
9939 if test -r "$ac_dir/libX11.$ac_extension"; then
9940 ac_x_libraries=$ac_dir
9941 break 2
9942 fi
9943 done
9944 done
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 fi # $ac_x_libraries = no
9949
9950 case $ac_x_includes,$ac_x_libraries in #(
9951 no,* | *,no | *\'*)
9952 # Didn't find X, or a directory has "'" in its name.
9953 ac_cv_have_x="have_x=no";; #(
9954 *)
9955 # Record where we found X for the cache.
9956 ac_cv_have_x="have_x=yes\
9957 ac_x_includes='$ac_x_includes'\
9958 ac_x_libraries='$ac_x_libraries'"
9959 esac
9960 fi
9961 ;; #(
9962 *) have_x=yes;;
9963 esac
9964 eval "$ac_cv_have_x"
9965 fi # $with_x != no
9966
9967 if test "$have_x" != yes; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9969 $as_echo "$have_x" >&6; }
9970 no_x=yes
9971 else
9972 # If each of the values was on the command line, it overrides each guess.
9973 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9974 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9975 # Update the cache value to reflect the command line values.
9976 ac_cv_have_x="have_x=yes\
9977 ac_x_includes='$x_includes'\
9978 ac_x_libraries='$x_libraries'"
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9980 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9981 fi
9982
9983 if test "$no_x" != yes; then
9984 window_system=x11
9985 fi
9986
9987 LD_SWITCH_X_SITE_RPATH=
9988 if test "${x_libraries}" != NONE; then
9989 if test -n "${x_libraries}"; then
9990 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9991 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9992 fi
9993 x_default_search_path=""
9994 x_search_path=${x_libraries}
9995 if test -z "${x_search_path}"; then
9996 x_search_path=/usr/lib
9997 fi
9998 for x_library in `echo ${x_search_path}: | \
9999 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10000 x_search_path="\
10001 ${x_library}/X11/%L/%T/%N%C%S:\
10002 ${x_library}/X11/%l/%T/%N%C%S:\
10003 ${x_library}/X11/%T/%N%C%S:\
10004 ${x_library}/X11/%L/%T/%N%S:\
10005 ${x_library}/X11/%l/%T/%N%S:\
10006 ${x_library}/X11/%T/%N%S"
10007 if test x"${x_default_search_path}" = x; then
10008 x_default_search_path=${x_search_path}
10009 else
10010 x_default_search_path="${x_search_path}:${x_default_search_path}"
10011 fi
10012 done
10013 fi
10014
10015
10016 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10017 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10018 fi
10019
10020 if test x"${x_includes}" = x; then
10021 bitmapdir=/usr/include/X11/bitmaps
10022 else
10023 # accumulate include directories that have X11 bitmap subdirectories
10024 bmd_acc="dummyval"
10025 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10026 if test -d "${bmd}/X11/bitmaps"; then
10027 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10028 fi
10029 if test -d "${bmd}/bitmaps"; then
10030 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10031 fi
10032 done
10033 if test ${bmd_acc} != "dummyval"; then
10034 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10035 fi
10036 fi
10037
10038 HAVE_NS=no
10039 NS_IMPL_COCOA=no
10040 NS_IMPL_GNUSTEP=no
10041 tmp_CPPFLAGS="$CPPFLAGS"
10042 tmp_CFLAGS="$CFLAGS"
10043 CPPFLAGS="$CPPFLAGS -x objective-c"
10044 CFLAGS="$CFLAGS -x objective-c"
10045 GNU_OBJC_CFLAGS=
10046 LIBS_GNUSTEP=
10047 if test "${with_ns}" != no; then
10048 if test "${opsys}" = darwin; then
10049 NS_IMPL_COCOA=yes
10050 ns_appdir=`pwd`/nextstep/Emacs.app
10051 ns_appbindir=${ns_appdir}/Contents/MacOS
10052 ns_appresdir=${ns_appdir}/Contents/Resources
10053 ns_appsrc=Cocoa/Emacs.base
10054 elif test -f $GNUSTEP_CONFIG_FILE; then
10055 NS_IMPL_GNUSTEP=yes
10056 ns_appdir=`pwd`/nextstep/Emacs.app
10057 ns_appbindir=${ns_appdir}
10058 ns_appresdir=${ns_appdir}/Resources
10059 ns_appsrc=GNUstep/Emacs.base
10060 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10061 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10062 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10063 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10064 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10065 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10066 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10067 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10068 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10069 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10070 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10071 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10073 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10074 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 #include <GNUstepBase/GSConfig.h>
10080 int
10081 main ()
10082 {
10083 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10084 1;
10085 #else
10086 fail;
10087 #endif
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 if ac_fn_c_try_compile "$LINENO"; then :
10093 emacs_cv_objc_exceptions=yes
10094 else
10095 emacs_cv_objc_exceptions=no
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10100 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10101 if test $emacs_cv_objc_exceptions = yes; then
10102
10103 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10104
10105 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10106 fi
10107 fi
10108
10109 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10110
10111 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10112 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10113 HAVE_NS=yes
10114 else
10115 as_fn_error "\`--with-ns' was specified, but the include
10116 files are missing or cannot be compiled." "$LINENO" 5
10117 fi
10118
10119
10120
10121 macfont_file=""
10122 if test "${NS_IMPL_COCOA}" = "yes"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10124 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <AppKit/AppKit.h>
10128 int
10129 main ()
10130 {
10131
10132 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10133 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10134 ; /* OK */
10135 #else
10136 #error "OSX 10.4 or newer required"
10137 #endif
10138 #endif
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"; then :
10145 ns_osx_have_104=yes
10146 else
10147 ns_osx_have_104=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10151 $as_echo "$ns_osx_have_104" >&6; }
10152
10153 if test $ns_osx_have_104 = no; then
10154 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10157 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 #include <AppKit/AppKit.h>
10161 int
10162 main ()
10163 {
10164
10165 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10166 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10167 ; /* OK */
10168 #else
10169 #error "OSX 10.5 not found"
10170 #endif
10171 #endif
10172
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 if ac_fn_c_try_compile "$LINENO"; then :
10178 ns_osx_have_105=yes
10179 else
10180 ns_osx_have_105=no
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10184 $as_echo "$ns_osx_have_105" >&6; }
10185 if test $ns_osx_have_105 = yes; then
10186 macfont_file="macfont.o"
10187 fi
10188 fi
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <Foundation/NSObjCRuntime.h>
10192 int
10193 main ()
10194 {
10195 NSInteger i;
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 if ac_fn_c_try_compile "$LINENO"; then :
10201 ns_have_nsinteger=yes
10202 else
10203 ns_have_nsinteger=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 if test $ns_have_nsinteger = yes; then
10207
10208 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10209
10210 fi
10211 fi
10212
10213
10214
10215 INSTALL_ARCH_INDEP_EXTRA=install-etc
10216 ns_self_contained=no
10217 NS_OBJ=
10218 NS_OBJC_OBJ=
10219 if test "${HAVE_NS}" = yes; then
10220 if test "$with_toolkit_scroll_bars" = "no"; then
10221 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10222 fi
10223
10224 window_system=nextstep
10225 # set up packaging dirs
10226 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10227 ns_self_contained=yes
10228 prefix=${ns_appresdir}
10229 exec_prefix=${ns_appbindir}
10230 libexecdir="\${ns_appbindir}/libexec"
10231 archlibdir="\${ns_appbindir}/libexec"
10232 etcdocdir="\${ns_appresdir}/etc"
10233 etcdir="\${ns_appresdir}/etc"
10234 infodir="\${ns_appresdir}/info"
10235 mandir="\${ns_appresdir}/man"
10236 lispdir="\${ns_appresdir}/lisp"
10237 leimdir="\${ns_appresdir}/leim"
10238 INSTALL_ARCH_INDEP_EXTRA=
10239 fi
10240
10241 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10242 fi
10243 CFLAGS="$tmp_CFLAGS"
10244 CPPFLAGS="$tmp_CPPFLAGS"
10245
10246
10247
10248
10249
10250 HAVE_W32=no
10251 W32_OBJ=
10252 W32_LIBS=
10253 EMACSRES=
10254 CLIENTRES=
10255 CLIENTW=
10256 W32_RES_LINK=
10257 EMACS_MANIFEST=
10258 UPDATE_MANIFEST=
10259 if test "${with_w32}" != no; then
10260 case "${opsys}" in
10261 cygwin)
10262 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10263 if test "x$ac_cv_header_windows_h" = x""yes; then :
10264 HAVE_W32=yes
10265 else
10266 as_fn_error "\`--with-w32' was specified, but windows.h
10267 cannot be found." "$LINENO" 5
10268 fi
10269
10270
10271 ;;
10272 mingw32)
10273 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10274 ;;
10275 *)
10276 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10277 ;;
10278 esac
10279 fi
10280
10281 if test "${opsys}" = "mingw32"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10283 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286
10287 #include <windows.h>
10288 #include <usp10.h>
10289 int
10290 main ()
10291 {
10292 PIMAGE_NT_HEADERS pHeader;
10293 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10294 ;
10295 return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 emacs_cv_w32api=yes
10300 HAVE_W32=yes
10301 else
10302 emacs_cv_w32api=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10306 $as_echo "$emacs_cv_w32api" >&6; }
10307 if test "${emacs_cv_w32api}" = "no"; then
10308 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10309 fi
10310 fi
10311
10312 FIRSTFILE_OBJ=
10313 NTDIR=
10314 LIBS_ECLIENT=
10315 LIB_WSOCK32=
10316 NTLIB=
10317 CM_OBJ="cm.o"
10318 XARGS_LIMIT=
10319 if test "${HAVE_W32}" = "yes"; then
10320
10321 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10322
10323 if test -n "$ac_tool_prefix"; then
10324 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10325 set dummy ${ac_tool_prefix}windres; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331 if test -n "$WINDRES"; then
10332 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10333 else
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10336 do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10341 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345 done
10346 done
10347 IFS=$as_save_IFS
10348
10349 fi
10350 fi
10351 WINDRES=$ac_cv_prog_WINDRES
10352 if test -n "$WINDRES"; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10354 $as_echo "$WINDRES" >&6; }
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10358 fi
10359
10360
10361 fi
10362 if test -z "$ac_cv_prog_WINDRES"; then
10363 ac_ct_WINDRES=$WINDRES
10364 # Extract the first word of "windres", so it can be a program name with args.
10365 set dummy windres; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -n "$ac_ct_WINDRES"; then
10372 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_prog_ac_ct_WINDRES="windres"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387 IFS=$as_save_IFS
10388
10389 fi
10390 fi
10391 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10392 if test -n "$ac_ct_WINDRES"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10394 $as_echo "$ac_ct_WINDRES" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399
10400 if test "x$ac_ct_WINDRES" = x; then
10401 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10402 else
10403 case $cross_compiling:$ac_tool_warned in
10404 yes:)
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10407 ac_tool_warned=yes ;;
10408 esac
10409 WINDRES=$ac_ct_WINDRES
10410 fi
10411 else
10412 WINDRES="$ac_cv_prog_WINDRES"
10413 fi
10414
10415 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10416 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10417 EMACSRES="emacs.res"
10418 case "$canonical" in
10419 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10420 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10421 esac
10422 UPDATE_MANIFEST=update-game-score.exe.manifest
10423 if test "${opsys}" = "cygwin"; then
10424 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10425 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10426 # Tell the linker that emacs.res is an object (which we compile from
10427 # the rc file), not a linker script.
10428 W32_RES_LINK="-Wl,emacs.res"
10429 else
10430 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10431 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10432 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10433 W32_RES_LINK="\$(EMACSRES)"
10434 CLIENTRES="emacsclient.res"
10435 CLIENTW="emacsclientw\$(EXEEXT)"
10436 FIRSTFILE_OBJ=firstfile.o
10437 NTDIR=nt
10438 CM_OBJ=
10439 LIBS_ECLIENT="-lcomctl32"
10440 LIB_WSOCK32="-lwsock32"
10441 NTLIB="ntlib.$ac_objext"
10442 XARGS_LIMIT="-s 10000"
10443 fi
10444 fi
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461 if test "${HAVE_W32}" = "yes"; then
10462 window_system=w32
10463 with_xft=no
10464 fi
10465
10466 ## $window_system is now set to the window system we will
10467 ## ultimately use.
10468
10469 if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10470 # Too many warnings for now.
10471 nw=
10472 nw="$nw -Wsuggest-attribute=const"
10473 nw="$nw -Wsuggest-attribute=noreturn"
10474
10475 gl_warn_set=
10476 set x $WARN_CFLAGS; shift
10477 for gl_warn_item
10478 do
10479 case " $nw " in
10480 *" $gl_warn_item "*)
10481 ;;
10482 *)
10483 gl_warn_set="$gl_warn_set $gl_warn_item"
10484 ;;
10485 esac
10486 done
10487 WARN_CFLAGS=$gl_warn_set
10488
10489
10490
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10492 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10493 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496
10497 gl_save_compiler_FLAGS="$CFLAGS"
10498 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501
10502 int
10503 main ()
10504 {
10505
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 gl_cv_warn_c__Wno_unused_variable=yes
10512 else
10513 gl_cv_warn_c__Wno_unused_variable=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 CFLAGS="$gl_save_compiler_FLAGS"
10518
10519 fi
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10521 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10522 if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10523 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10524 fi
10525
10526
10527
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10529 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10530 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533
10534 gl_save_compiler_FLAGS="$CFLAGS"
10535 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538
10539 int
10540 main ()
10541 {
10542
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 if ac_fn_c_try_link "$LINENO"; then :
10548 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10549 else
10550 gl_cv_warn_c__Wno_unused_but_set_variable=no
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 CFLAGS="$gl_save_compiler_FLAGS"
10555
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10558 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10559 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10560 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10561 fi
10562
10563
10564
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10566 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10567 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570
10571 gl_save_compiler_FLAGS="$CFLAGS"
10572 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575
10576 int
10577 main ()
10578 {
10579
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10586 else
10587 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 CFLAGS="$gl_save_compiler_FLAGS"
10592
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10595 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10596 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10597 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10598 fi
10599
10600
10601 fi
10602
10603 term_header=
10604 HAVE_X_WINDOWS=no
10605 HAVE_X11=no
10606 USE_X_TOOLKIT=none
10607
10608 case "${window_system}" in
10609 x11 )
10610 HAVE_X_WINDOWS=yes
10611 HAVE_X11=yes
10612 term_header=xterm.h
10613 case "${with_x_toolkit}" in
10614 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10615 motif ) USE_X_TOOLKIT=MOTIF ;;
10616 gtk ) with_gtk=yes
10617 term_header=gtkutil.h
10618 USE_X_TOOLKIT=none ;;
10619 gtk2 ) with_gtk2=yes
10620 term_header=gtkutil.h
10621 USE_X_TOOLKIT=none ;;
10622 gtk3 ) with_gtk3=yes
10623 term_header=gtkutil.h
10624 USE_X_TOOLKIT=none ;;
10625 no ) USE_X_TOOLKIT=none ;;
10626 * ) USE_X_TOOLKIT=maybe ;;
10627 esac
10628 ;;
10629 nextstep )
10630 term_header=nsterm.h
10631 ;;
10632 w32 )
10633 term_header=w32term.h
10634 ;;
10635 esac
10636
10637 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10638 # Extract the first word of "X", so it can be a program name with args.
10639 set dummy X; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 if test -n "$HAVE_XSERVER"; then
10646 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10647 else
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10650 do
10651 IFS=$as_save_IFS
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10655 ac_cv_prog_HAVE_XSERVER="true"
10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10657 break 2
10658 fi
10659 done
10660 done
10661 IFS=$as_save_IFS
10662
10663 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10664 fi
10665 fi
10666 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10667 if test -n "$HAVE_XSERVER"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10669 $as_echo "$HAVE_XSERVER" >&6; }
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675
10676 if test "$HAVE_XSERVER" = true ||
10677 test -n "$DISPLAY" ||
10678 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10679 as_fn_error "You seem to be running X, but no X development libraries
10680 were found. You should install the relevant development files for X
10681 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10682 sure you have development files for image handling, i.e.
10683 tiff, gif, jpeg, png and xpm.
10684 If you are sure you want Emacs compiled without X window support, pass
10685 --without-x
10686 to configure." "$LINENO" 5
10687 fi
10688 fi
10689
10690 ### We always support menus.
10691 HAVE_MENUS=yes
10692
10693 # Does the opsystem file prohibit the use of the GNU malloc?
10694 # Assume not, until told otherwise.
10695 GNU_MALLOC=yes
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10698 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10699 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #include <malloc.h>
10705 static void hook (void) {}
10706 int
10707 main ()
10708 {
10709 malloc_set_state (malloc_get_state ());
10710 __after_morecore_hook = hook;
10711 __malloc_initialize_hook = hook;
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 emacs_cv_var_doug_lea_malloc=yes
10718 else
10719 emacs_cv_var_doug_lea_malloc=no
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10725 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10726 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10727
10728
10729 system_malloc=no
10730 case "$opsys" in
10731 ## darwin ld insists on the use of malloc routines in the System framework.
10732 darwin|sol2-10) system_malloc=yes ;;
10733 esac
10734
10735 if test "${system_malloc}" = "yes"; then
10736
10737 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10738
10739 GNU_MALLOC=no
10740 GNU_MALLOC_reason="
10741 (The GNU allocators don't work with this system configuration.)"
10742 GMALLOC_OBJ=
10743 VMLIMIT_OBJ=
10744 else
10745 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10746 VMLIMIT_OBJ=vm-limit.o
10747
10748 for ac_header in sys/vlimit.h
10749 do :
10750 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10751 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10752 cat >>confdefs.h <<_ACEOF
10753 #define HAVE_SYS_VLIMIT_H 1
10754 _ACEOF
10755
10756 fi
10757
10758 done
10759
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10761 $as_echo_n "checking for data_start... " >&6; }
10762 if test "${emacs_cv_data_start+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 extern char data_start[]; char ch;
10768 int
10769 main ()
10770 {
10771 return data_start < &ch;
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 emacs_cv_data_start=yes
10778 else
10779 emacs_cv_data_start=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10785 $as_echo "$emacs_cv_data_start" >&6; }
10786 if test $emacs_cv_data_start = yes; then
10787
10788 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10789
10790 fi
10791 fi
10792
10793
10794
10795 if test "$doug_lea_malloc" = "yes" ; then
10796 if test "$GNU_MALLOC" = yes ; then
10797 GNU_MALLOC_reason="
10798 (Using Doug Lea's new malloc from the GNU C Library.)"
10799 fi
10800
10801 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10802
10803
10804 ## Use mmap directly for allocating larger buffers.
10805 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10806 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10807 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10808 case "$opsys" in
10809 gnu*) REL_ALLOC=no ;;
10810 esac
10811 fi
10812
10813 if test x"${REL_ALLOC}" = x; then
10814 REL_ALLOC=${GNU_MALLOC}
10815 fi
10816
10817 use_mmap_for_buffers=no
10818 case "$opsys" in
10819 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10820 esac
10821
10822
10823
10824
10825
10826
10827
10828
10829 for ac_func in getpagesize
10830 do :
10831 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10832 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_GETPAGESIZE 1
10835 _ACEOF
10836
10837 fi
10838 done
10839
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10841 $as_echo_n "checking for working mmap... " >&6; }
10842 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test "$cross_compiling" = yes; then :
10846 ac_cv_func_mmap_fixed_mapped=no
10847 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 $ac_includes_default
10851 /* malloc might have been renamed as rpl_malloc. */
10852 #undef malloc
10853
10854 /* Thanks to Mike Haertel and Jim Avera for this test.
10855 Here is a matrix of mmap possibilities:
10856 mmap private not fixed
10857 mmap private fixed at somewhere currently unmapped
10858 mmap private fixed at somewhere already mapped
10859 mmap shared not fixed
10860 mmap shared fixed at somewhere currently unmapped
10861 mmap shared fixed at somewhere already mapped
10862 For private mappings, we should verify that changes cannot be read()
10863 back from the file, nor mmap's back from the file at a different
10864 address. (There have been systems where private was not correctly
10865 implemented like the infamous i386 svr4.0, and systems where the
10866 VM page cache was not coherent with the file system buffer cache
10867 like early versions of FreeBSD and possibly contemporary NetBSD.)
10868 For shared mappings, we should conversely verify that changes get
10869 propagated back to all the places they're supposed to be.
10870
10871 Grep wants private fixed already mapped.
10872 The main things grep needs to know about mmap are:
10873 * does it exist and is it safe to write into the mmap'd area
10874 * how to use it (BSD variants) */
10875
10876 #include <fcntl.h>
10877 #include <sys/mman.h>
10878
10879 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10880 char *malloc ();
10881 #endif
10882
10883 /* This mess was copied from the GNU getpagesize.h. */
10884 #ifndef HAVE_GETPAGESIZE
10885 # ifdef _SC_PAGESIZE
10886 # define getpagesize() sysconf(_SC_PAGESIZE)
10887 # else /* no _SC_PAGESIZE */
10888 # ifdef HAVE_SYS_PARAM_H
10889 # include <sys/param.h>
10890 # ifdef EXEC_PAGESIZE
10891 # define getpagesize() EXEC_PAGESIZE
10892 # else /* no EXEC_PAGESIZE */
10893 # ifdef NBPG
10894 # define getpagesize() NBPG * CLSIZE
10895 # ifndef CLSIZE
10896 # define CLSIZE 1
10897 # endif /* no CLSIZE */
10898 # else /* no NBPG */
10899 # ifdef NBPC
10900 # define getpagesize() NBPC
10901 # else /* no NBPC */
10902 # ifdef PAGESIZE
10903 # define getpagesize() PAGESIZE
10904 # endif /* PAGESIZE */
10905 # endif /* no NBPC */
10906 # endif /* no NBPG */
10907 # endif /* no EXEC_PAGESIZE */
10908 # else /* no HAVE_SYS_PARAM_H */
10909 # define getpagesize() 8192 /* punt totally */
10910 # endif /* no HAVE_SYS_PARAM_H */
10911 # endif /* no _SC_PAGESIZE */
10912
10913 #endif /* no HAVE_GETPAGESIZE */
10914
10915 int
10916 main ()
10917 {
10918 char *data, *data2, *data3;
10919 const char *cdata2;
10920 int i, pagesize;
10921 int fd, fd2;
10922
10923 pagesize = getpagesize ();
10924
10925 /* First, make a file with some known garbage in it. */
10926 data = (char *) malloc (pagesize);
10927 if (!data)
10928 return 1;
10929 for (i = 0; i < pagesize; ++i)
10930 *(data + i) = rand ();
10931 umask (0);
10932 fd = creat ("conftest.mmap", 0600);
10933 if (fd < 0)
10934 return 2;
10935 if (write (fd, data, pagesize) != pagesize)
10936 return 3;
10937 close (fd);
10938
10939 /* Next, check that the tail of a page is zero-filled. File must have
10940 non-zero length, otherwise we risk SIGBUS for entire page. */
10941 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10942 if (fd2 < 0)
10943 return 4;
10944 cdata2 = "";
10945 if (write (fd2, cdata2, 1) != 1)
10946 return 5;
10947 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10948 if (data2 == MAP_FAILED)
10949 return 6;
10950 for (i = 0; i < pagesize; ++i)
10951 if (*(data2 + i))
10952 return 7;
10953 close (fd2);
10954 if (munmap (data2, pagesize))
10955 return 8;
10956
10957 /* Next, try to mmap the file at a fixed address which already has
10958 something else allocated at it. If we can, also make sure that
10959 we see the same garbage. */
10960 fd = open ("conftest.mmap", O_RDWR);
10961 if (fd < 0)
10962 return 9;
10963 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10964 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10965 return 10;
10966 for (i = 0; i < pagesize; ++i)
10967 if (*(data + i) != *(data2 + i))
10968 return 11;
10969
10970 /* Finally, make sure that changes to the mapped area do not
10971 percolate back to the file as seen by read(). (This is a bug on
10972 some variants of i386 svr4.0.) */
10973 for (i = 0; i < pagesize; ++i)
10974 *(data2 + i) = *(data2 + i) + 1;
10975 data3 = (char *) malloc (pagesize);
10976 if (!data3)
10977 return 12;
10978 if (read (fd, data3, pagesize) != pagesize)
10979 return 13;
10980 for (i = 0; i < pagesize; ++i)
10981 if (*(data + i) != *(data3 + i))
10982 return 14;
10983 close (fd);
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_run "$LINENO"; then :
10988 ac_cv_func_mmap_fixed_mapped=yes
10989 else
10990 ac_cv_func_mmap_fixed_mapped=no
10991 fi
10992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10993 conftest.$ac_objext conftest.beam conftest.$ac_ext
10994 fi
10995
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10998 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10999 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11000
11001 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11002
11003 fi
11004 rm -f conftest.mmap conftest.txt
11005
11006 if test $use_mmap_for_buffers = yes; then
11007
11008 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
11009
11010 REL_ALLOC=no
11011 fi
11012
11013 LIBS="$LIBS_SYSTEM $LIBS"
11014
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11016 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11017 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-ldnet $LIBS"
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 char dnet_ntoa ();
11032 int
11033 main ()
11034 {
11035 return dnet_ntoa ();
11036 ;
11037 return 0;
11038 }
11039 _ACEOF
11040 if ac_fn_c_try_link "$LINENO"; then :
11041 ac_cv_lib_dnet_dnet_ntoa=yes
11042 else
11043 ac_cv_lib_dnet_dnet_ntoa=no
11044 fi
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11050 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11051 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
11052 cat >>confdefs.h <<_ACEOF
11053 #define HAVE_LIBDNET 1
11054 _ACEOF
11055
11056 LIBS="-ldnet $LIBS"
11057
11058 fi
11059
11060
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11062 $as_echo_n "checking for main in -lXbsd... " >&6; }
11063 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-lXbsd $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11070
11071
11072 int
11073 main ()
11074 {
11075 return main ();
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 ac_cv_lib_Xbsd_main=yes
11082 else
11083 ac_cv_lib_Xbsd_main=no
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11090 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11091 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
11092 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11093 fi
11094
11095
11096 LIB_PTHREAD=
11097
11098
11099
11100 if test "$ac_cv_header_pthread_h"; then
11101 if test "$GMALLOC_OBJ" = gmalloc.o; then
11102 emacs_pthread_function=pthread_atfork
11103 else
11104 emacs_pthread_function=pthread_self
11105 fi
11106 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11108 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11109 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 ac_check_lib_save_LIBS=$LIBS
11113 LIBS="-lpthread $LIBS"
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11116
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char $emacs_pthread_function ();
11124 int
11125 main ()
11126 {
11127 return $emacs_pthread_function ();
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 if ac_fn_c_try_link "$LINENO"; then :
11133 eval "$as_ac_Lib=yes"
11134 else
11135 eval "$as_ac_Lib=no"
11136 fi
11137 rm -f core conftest.err conftest.$ac_objext \
11138 conftest$ac_exeext conftest.$ac_ext
11139 LIBS=$ac_check_lib_save_LIBS
11140 fi
11141 eval ac_res=\$$as_ac_Lib
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11143 $as_echo "$ac_res" >&6; }
11144 eval as_val=\$$as_ac_Lib
11145 if test "x$as_val" = x""yes; then :
11146 HAVE_PTHREAD=yes
11147 fi
11148
11149 fi
11150 if test "$HAVE_PTHREAD" = yes; then
11151 case "${canonical}" in
11152 *-hpux*) ;;
11153 *) LIB_PTHREAD="-lpthread"
11154 LIBS="$LIB_PTHREAD $LIBS" ;;
11155 esac
11156
11157 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11158
11159 fi
11160
11161
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11163 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11164 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 ac_check_lib_save_LIBS=$LIBS
11168 LIBS="-lpthreads $LIBS"
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 char cma_open ();
11179 int
11180 main ()
11181 {
11182 return cma_open ();
11183 ;
11184 return 0;
11185 }
11186 _ACEOF
11187 if ac_fn_c_try_link "$LINENO"; then :
11188 ac_cv_lib_pthreads_cma_open=yes
11189 else
11190 ac_cv_lib_pthreads_cma_open=no
11191 fi
11192 rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11197 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11198 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11199 cat >>confdefs.h <<_ACEOF
11200 #define HAVE_LIBPTHREADS 1
11201 _ACEOF
11202
11203 LIBS="-lpthreads $LIBS"
11204
11205 fi
11206
11207
11208 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11209 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11210 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11211 ## added to LIBS in configure would never contain the pthreads part,
11212 ## but the value used in Makefiles might. FIXME?
11213 ##
11214 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11215 ## be harmless on older versions of X where it happens to exist.
11216 test "$opsys" = "aix4-2" && \
11217 test $ac_cv_lib_pthreads_cma_open = yes && \
11218 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11219
11220
11221 case ${host_os} in
11222 aix*)
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11224 $as_echo_n "checking for -bbigtoc option... " >&6; }
11225 if test "${gdb_cv_bigtoc+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228
11229 case $GCC in
11230 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11231 *) gdb_cv_bigtoc=-bbigtoc ;;
11232 esac
11233
11234 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 int
11239 main ()
11240 {
11241 int i;
11242 ;
11243 return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247
11248 else
11249 gdb_cv_bigtoc=
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11256 $as_echo "$gdb_cv_bigtoc" >&6; }
11257 ;;
11258 esac
11259
11260 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11261 # used for the tests that follow. We set them back to REAL_CFLAGS and
11262 # REAL_CPPFLAGS later on.
11263
11264 REAL_CFLAGS="$CFLAGS"
11265 REAL_CPPFLAGS="$CPPFLAGS"
11266
11267 if test "${HAVE_X11}" = "yes"; then
11268 DEFS="$C_SWITCH_X_SITE $DEFS"
11269 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11270 LIBS="-lX11 $LIBS"
11271 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11272 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11273
11274 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11275 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11276 # but it's more convenient here to set LD_RUN_PATH since this
11277 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11278 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11279 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11280 export LD_RUN_PATH
11281 fi
11282
11283 if test "${opsys}" = "gnu-linux"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11285 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 int
11290 main ()
11291 {
11292 XOpenDisplay ("foo");
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 xgnu_linux_first_failure=no
11299 else
11300 xgnu_linux_first_failure=yes
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 if test "${xgnu_linux_first_failure}" = "yes"; then
11305 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11306 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11307 OLD_CPPFLAGS="$CPPFLAGS"
11308 OLD_LIBS="$LIBS"
11309 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11310 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11311 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11312 LIBS="$LIBS -b i486-linuxaout"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315
11316 int
11317 main ()
11318 {
11319 XOpenDisplay ("foo");
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 xgnu_linux_second_failure=no
11326 else
11327 xgnu_linux_second_failure=yes
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 if test "${xgnu_linux_second_failure}" = "yes"; then
11332 # If we get the same failure with -b, there is no use adding -b.
11333 # So take it out. This plays safe.
11334 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11335 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11336 CPPFLAGS="$OLD_CPPFLAGS"
11337 LIBS="$OLD_LIBS"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 fi
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348 fi
11349
11350 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11351 # header files included from there.
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11353 $as_echo_n "checking for Xkb... " >&6; }
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <X11/Xlib.h>
11357 #include <X11/XKBlib.h>
11358 int
11359 main ()
11360 {
11361 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 emacs_xkb=yes
11368 else
11369 emacs_xkb=no
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11374 $as_echo "$emacs_xkb" >&6; }
11375 if test $emacs_xkb = yes; then
11376
11377 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11378
11379 fi
11380
11381 for ac_func in XrmSetDatabase XScreenResourceString \
11382 XScreenNumberOfScreen
11383 do :
11384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11386 eval as_val=\$$as_ac_var
11387 if test "x$as_val" = x""yes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11390 _ACEOF
11391
11392 fi
11393 done
11394
11395 fi
11396
11397 if test "${window_system}" = "x11"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11399 $as_echo_n "checking X11 version 6... " >&6; }
11400 if test "${emacs_cv_x11_version_6+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405 #include <X11/Xlib.h>
11406 int
11407 main ()
11408 {
11409 #if XlibSpecificationRelease < 6
11410 fail;
11411 #endif
11412
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 emacs_cv_x11_version_6=yes
11419 else
11420 emacs_cv_x11_version_6=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 fi
11425
11426 if test $emacs_cv_x11_version_6 = yes; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11428 $as_echo "6 or newer" >&6; }
11429
11430 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11431
11432
11433 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11434
11435 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11436 ## XIM support.
11437 case "$opsys" in
11438 sol2-*) : ;;
11439 *)
11440 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11441
11442 ;;
11443 esac
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11446 $as_echo "before 6" >&6; }
11447 fi
11448 fi
11449
11450
11451 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11452 HAVE_RSVG=no
11453 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11454 if test "${with_rsvg}" != "no"; then
11455 RSVG_REQUIRED=2.11.0
11456 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11457
11458
11459 succeeded=no
11460
11461 if test "$PKG_CONFIG" = "no" ; then
11462 :
11463 else
11464 PKG_CONFIG_MIN_VERSION=0.9.0
11465 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11467 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11468
11469 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11470 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11471 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11472 edit_cflags="
11473 s,///*,/,g
11474 s/^/ /
11475 s/ -I/ $isystem/g
11476 s/^ //
11477 "
11478 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11479 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11481 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11482 succeeded=yes
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486 RSVG_CFLAGS=""
11487 RSVG_LIBS=""
11488 ## If we have a custom action on failure, don't print errors, but
11489 ## do set a variable so people can do so. Do it in a subshell
11490 ## to capture any diagnostics in invoking pkg-config.
11491 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11492
11493 fi
11494
11495
11496
11497 else
11498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11500 fi
11501 fi
11502
11503 if test $succeeded = yes; then
11504 HAVE_RSVG=yes
11505 else
11506 :
11507 fi
11508
11509
11510
11511
11512 if test $HAVE_RSVG = yes; then
11513
11514 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11515
11516 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11517 LIBS="$RSVG_LIBS $LIBS"
11518 fi
11519 fi
11520 fi
11521
11522 HAVE_IMAGEMAGICK=no
11523 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11524 if test "${with_imagemagick}" != "no"; then
11525 ## 6.2.8 is the earliest version known to work, but earlier versions
11526 ## might work - let us know if you find one.
11527 ## 6.0.7 does not work. See bug#7955.
11528 ## 6.8.2 makes Emacs crash; see Bug#13867.
11529 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11530
11531 succeeded=no
11532
11533 if test "$PKG_CONFIG" = "no" ; then
11534 :
11535 else
11536 PKG_CONFIG_MIN_VERSION=0.9.0
11537 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11539 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11540
11541 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11542 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11543 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11544 edit_cflags="
11545 s,///*,/,g
11546 s/^/ /
11547 s/ -I/ $isystem/g
11548 s/^ //
11549 "
11550 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11551 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11553 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11554 succeeded=yes
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 IMAGEMAGICK_CFLAGS=""
11559 IMAGEMAGICK_LIBS=""
11560 ## If we have a custom action on failure, don't print errors, but
11561 ## do set a variable so people can do so. Do it in a subshell
11562 ## to capture any diagnostics in invoking pkg-config.
11563 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11564
11565 fi
11566
11567
11568
11569 else
11570 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11571 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11572 fi
11573 fi
11574
11575 if test $succeeded = yes; then
11576 HAVE_IMAGEMAGICK=yes
11577 else
11578 :
11579 fi
11580
11581
11582
11583
11584 if test $HAVE_IMAGEMAGICK = yes; then
11585
11586 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11587
11588 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11589 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11590 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11591 do :
11592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11594 eval as_val=\$$as_ac_var
11595 if test "x$as_val" = x""yes; then :
11596 cat >>confdefs.h <<_ACEOF
11597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598 _ACEOF
11599
11600 fi
11601 done
11602
11603 fi
11604 fi
11605 fi
11606
11607
11608 HAVE_GTK=no
11609 GTK_OBJ=
11610 gtk_term_header=$term_header
11611 check_gtk2=no
11612 gtk3_pkg_errors=
11613 if test "${opsys}" != "mingw32"; then
11614 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11615 GLIB_REQUIRED=2.28
11616 GTK_REQUIRED=3.0
11617 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11618
11619
11620 succeeded=no
11621
11622 if test "$PKG_CONFIG" = "no" ; then
11623 pkg_check_gtk=no
11624 else
11625 PKG_CONFIG_MIN_VERSION=0.9.0
11626 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11628 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11629
11630 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11631 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11632 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11633 edit_cflags="
11634 s,///*,/,g
11635 s/^/ /
11636 s/ -I/ $isystem/g
11637 s/^ //
11638 "
11639 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11640 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11642 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11643 succeeded=yes
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11647 GTK_CFLAGS=""
11648 GTK_LIBS=""
11649 ## If we have a custom action on failure, don't print errors, but
11650 ## do set a variable so people can do so. Do it in a subshell
11651 ## to capture any diagnostics in invoking pkg-config.
11652 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11653
11654 fi
11655
11656
11657
11658 else
11659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11661 fi
11662 fi
11663
11664 if test $succeeded = yes; then
11665 pkg_check_gtk=yes
11666 else
11667 pkg_check_gtk=no
11668 fi
11669
11670 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11671 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11672 fi
11673 if test "$pkg_check_gtk" = "yes"; then
11674
11675 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11676
11677 GTK_OBJ=emacsgtkfixed.o
11678 gtk_term_header=gtkutil.h
11679 USE_GTK_TOOLKIT="GTK3"
11680 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11681 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11682 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11683 fi
11684 else
11685 check_gtk2=yes
11686 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11687 fi
11688 fi
11689
11690 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11691 GLIB_REQUIRED=2.10
11692 GTK_REQUIRED=2.10
11693 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11694
11695
11696 succeeded=no
11697
11698 if test "$PKG_CONFIG" = "no" ; then
11699 pkg_check_gtk=no
11700 else
11701 PKG_CONFIG_MIN_VERSION=0.9.0
11702 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11704 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11705
11706 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11707 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11708 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11709 edit_cflags="
11710 s,///*,/,g
11711 s/^/ /
11712 s/ -I/ $isystem/g
11713 s/^ //
11714 "
11715 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11716 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11718 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11719 succeeded=yes
11720 else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11723 GTK_CFLAGS=""
11724 GTK_LIBS=""
11725 ## If we have a custom action on failure, don't print errors, but
11726 ## do set a variable so people can do so. Do it in a subshell
11727 ## to capture any diagnostics in invoking pkg-config.
11728 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11729
11730 fi
11731
11732
11733
11734 else
11735 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11736 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11737 fi
11738 fi
11739
11740 if test $succeeded = yes; then
11741 pkg_check_gtk=yes
11742 else
11743 pkg_check_gtk=no
11744 fi
11745
11746 if test "$pkg_check_gtk" = "no" &&
11747 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11748 then
11749 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11750 fi
11751 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11752 fi
11753 fi
11754
11755 if test x"$pkg_check_gtk" = xyes; then
11756
11757
11758
11759 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11760 CFLAGS="$CFLAGS $GTK_CFLAGS"
11761 LIBS="$GTK_LIBS $LIBS"
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11763 $as_echo_n "checking whether GTK compiles... " >&6; }
11764 GTK_COMPILES=no
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767 /* Check the Gtk and Glib APIs. */
11768 #include <gtk/gtk.h>
11769 #include <glib-object.h>
11770 static void
11771 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11772 {}
11773
11774 int
11775 main ()
11776 {
11777
11778 GtkSettings *gs = 0;
11779 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11780 strict C prohibits this. Use gtk_main_iteration to test that the
11781 libraries are there. */
11782 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11783 0, 0, 0, G_CALLBACK (callback), 0))
11784 gtk_main_iteration ();
11785
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 if ac_fn_c_try_link "$LINENO"; then :
11791 GTK_COMPILES=yes
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11796 $as_echo "$GTK_COMPILES" >&6; }
11797 if test "${GTK_COMPILES}" != "yes"; then
11798 GTK_OBJ=
11799 if test "$USE_X_TOOLKIT" != "maybe"; then
11800 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11801 fi
11802 else
11803 HAVE_GTK=yes
11804
11805 $as_echo "#define USE_GTK 1" >>confdefs.h
11806
11807 GTK_OBJ="gtkutil.o $GTK_OBJ"
11808 term_header=$gtk_term_header
11809 USE_X_TOOLKIT=none
11810 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11811 :
11812 else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11814 closing open displays. This is no problem if you just use
11815 one display, but if you use more than one and close one of them
11816 Emacs may crash." >&5
11817 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11818 closing open displays. This is no problem if you just use
11819 one display, but if you use more than one and close one of them
11820 Emacs may crash." >&2;}
11821 sleep 3
11822 fi
11823 fi
11824
11825 fi
11826
11827
11828
11829 if test "${HAVE_GTK}" = "yes"; then
11830
11831 if test "$with_toolkit_scroll_bars" != no; then
11832 with_toolkit_scroll_bars=yes
11833 fi
11834
11835 HAVE_GTK_FILE_SELECTION=no
11836 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11837 #include <gtk/gtk.h>
11838 "
11839 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11840 HAVE_GTK_FILE_SELECTION=yes
11841 else
11842 HAVE_GTK_FILE_SELECTION=no
11843 fi
11844
11845 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11846 for ac_func in gtk_file_selection_new
11847 do :
11848 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11849 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11850 cat >>confdefs.h <<_ACEOF
11851 #define HAVE_GTK_FILE_SELECTION_NEW 1
11852 _ACEOF
11853
11854 fi
11855 done
11856
11857 fi
11858
11859 HAVE_GTK_HANDLE_BOX=no
11860 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11861 #include <gtk/gtk.h>
11862 "
11863 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11864 HAVE_GTK_HANDLE_BOX=yes
11865 else
11866 HAVE_GTK_HANDLE_BOX=no
11867 fi
11868
11869 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11870 for ac_func in gtk_handle_box_new
11871 do :
11872 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11873 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11874 cat >>confdefs.h <<_ACEOF
11875 #define HAVE_GTK_HANDLE_BOX_NEW 1
11876 _ACEOF
11877
11878 fi
11879 done
11880
11881 fi
11882
11883 HAVE_GTK_TEAROFF_MENU_ITEM=no
11884 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11885 #include <gtk/gtk.h>
11886 "
11887 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11888 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11889 else
11890 HAVE_GTK_TEAROFF_MENU_ITEM=no
11891 fi
11892
11893 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11894 for ac_func in gtk_tearoff_menu_item_new
11895 do :
11896 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11897 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11898 cat >>confdefs.h <<_ACEOF
11899 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11900 _ACEOF
11901
11902 fi
11903 done
11904
11905 fi
11906
11907 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11908 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11909 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11910 gtk_orientable_set_orientation \
11911 gtk_window_set_has_resize_grip
11912 do :
11913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11915 eval as_val=\$$as_ac_var
11916 if test "x$as_val" = x""yes; then :
11917 cat >>confdefs.h <<_ACEOF
11918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921 fi
11922 done
11923
11924
11925 term_header=gtkutil.h
11926 fi
11927
11928 HAVE_DBUS=no
11929 DBUS_OBJ=
11930 if test "${with_dbus}" = "yes"; then
11931
11932 succeeded=no
11933
11934 if test "$PKG_CONFIG" = "no" ; then
11935 HAVE_DBUS=no
11936 else
11937 PKG_CONFIG_MIN_VERSION=0.9.0
11938 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11940 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11941
11942 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11943 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11944 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11945 edit_cflags="
11946 s,///*,/,g
11947 s/^/ /
11948 s/ -I/ $isystem/g
11949 s/^ //
11950 "
11951 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11952 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11954 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11955 succeeded=yes
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 DBUS_CFLAGS=""
11960 DBUS_LIBS=""
11961 ## If we have a custom action on failure, don't print errors, but
11962 ## do set a variable so people can do so. Do it in a subshell
11963 ## to capture any diagnostics in invoking pkg-config.
11964 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11965
11966 fi
11967
11968
11969
11970 else
11971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11973 fi
11974 fi
11975
11976 if test $succeeded = yes; then
11977 HAVE_DBUS=yes
11978 else
11979 HAVE_DBUS=no
11980 fi
11981
11982 if test "$HAVE_DBUS" = yes; then
11983 LIBS="$LIBS $DBUS_LIBS"
11984
11985 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11986
11987 for ac_func in dbus_watch_get_unix_fd \
11988 dbus_type_is_valid \
11989 dbus_validate_bus_name \
11990 dbus_validate_path \
11991 dbus_validate_interface \
11992 dbus_validate_member
11993 do :
11994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11996 eval as_val=\$$as_ac_var
11997 if test "x$as_val" = x""yes; then :
11998 cat >>confdefs.h <<_ACEOF
11999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 _ACEOF
12001
12002 fi
12003 done
12004
12005 DBUS_OBJ=dbusbind.o
12006 fi
12007 fi
12008
12009
12010 HAVE_GSETTINGS=no
12011 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
12012
12013 succeeded=no
12014
12015 if test "$PKG_CONFIG" = "no" ; then
12016 HAVE_GSETTINGS=no
12017 else
12018 PKG_CONFIG_MIN_VERSION=0.9.0
12019 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
12021 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12022
12023 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12024 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12025 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12026 edit_cflags="
12027 s,///*,/,g
12028 s/^/ /
12029 s/ -I/ $isystem/g
12030 s/^ //
12031 "
12032 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12033 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12035 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12036 succeeded=yes
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040 GSETTINGS_CFLAGS=""
12041 GSETTINGS_LIBS=""
12042 ## If we have a custom action on failure, don't print errors, but
12043 ## do set a variable so people can do so. Do it in a subshell
12044 ## to capture any diagnostics in invoking pkg-config.
12045 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12046
12047 fi
12048
12049
12050
12051 else
12052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12054 fi
12055 fi
12056
12057 if test $succeeded = yes; then
12058 HAVE_GSETTINGS=yes
12059 else
12060 HAVE_GSETTINGS=no
12061 fi
12062
12063 if test "$HAVE_GSETTINGS" = "yes"; then
12064
12065 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12066
12067 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12068 SETTINGS_LIBS="$GSETTINGS_LIBS"
12069 fi
12070 fi
12071
12072 HAVE_GCONF=no
12073 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12074
12075 succeeded=no
12076
12077 if test "$PKG_CONFIG" = "no" ; then
12078 HAVE_GCONF=no
12079 else
12080 PKG_CONFIG_MIN_VERSION=0.9.0
12081 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12083 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12084
12085 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12086 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12087 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12088 edit_cflags="
12089 s,///*,/,g
12090 s/^/ /
12091 s/ -I/ $isystem/g
12092 s/^ //
12093 "
12094 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12095 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12097 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12098 succeeded=yes
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102 GCONF_CFLAGS=""
12103 GCONF_LIBS=""
12104 ## If we have a custom action on failure, don't print errors, but
12105 ## do set a variable so people can do so. Do it in a subshell
12106 ## to capture any diagnostics in invoking pkg-config.
12107 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12108
12109 fi
12110
12111
12112
12113 else
12114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12116 fi
12117 fi
12118
12119 if test $succeeded = yes; then
12120 HAVE_GCONF=yes
12121 else
12122 HAVE_GCONF=no
12123 fi
12124
12125 if test "$HAVE_GCONF" = yes; then
12126
12127 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12128
12129 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12130 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12131 fi
12132 fi
12133
12134 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12135
12136 succeeded=no
12137
12138 if test "$PKG_CONFIG" = "no" ; then
12139 HAVE_GOBJECT=no
12140 else
12141 PKG_CONFIG_MIN_VERSION=0.9.0
12142 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12144 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12145
12146 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12147 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12148 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12149 edit_cflags="
12150 s,///*,/,g
12151 s/^/ /
12152 s/ -I/ $isystem/g
12153 s/^ //
12154 "
12155 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12156 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12158 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12159 succeeded=yes
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12163 GOBJECT_CFLAGS=""
12164 GOBJECT_LIBS=""
12165 ## If we have a custom action on failure, don't print errors, but
12166 ## do set a variable so people can do so. Do it in a subshell
12167 ## to capture any diagnostics in invoking pkg-config.
12168 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12169
12170 fi
12171
12172
12173
12174 else
12175 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12176 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12177 fi
12178 fi
12179
12180 if test $succeeded = yes; then
12181 HAVE_GOBJECT=yes
12182 else
12183 HAVE_GOBJECT=no
12184 fi
12185
12186 if test "$HAVE_GOBJECT" = "yes"; then
12187 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12188 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
12189 fi
12190 SAVE_CFLAGS="$CFLAGS"
12191 SAVE_LIBS="$LIBS"
12192 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12193 LIBS="$SETTINGS_LIBS $LIBS"
12194 CFLAGS="$SAVE_CFLAGS"
12195 LIBS="$SAVE_LIBS"
12196 fi
12197
12198
12199
12200
12201 HAVE_LIBSELINUX=no
12202 LIBSELINUX_LIBS=
12203 if test "${with_selinux}" = "yes"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12205 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12206 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-lselinux $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char lgetfilecon ();
12221 int
12222 main ()
12223 {
12224 return lgetfilecon ();
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_lib_selinux_lgetfilecon=yes
12231 else
12232 ac_cv_lib_selinux_lgetfilecon=no
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12239 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12240 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12241 HAVE_LIBSELINUX=yes
12242 else
12243 HAVE_LIBSELINUX=no
12244 fi
12245
12246 if test "$HAVE_LIBSELINUX" = yes; then
12247
12248 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12249
12250 LIBSELINUX_LIBS=-lselinux
12251 fi
12252 fi
12253
12254
12255 HAVE_GNUTLS=no
12256 HAVE_GNUTLS3=no
12257 if test "${with_gnutls}" = "yes" ; then
12258
12259 succeeded=no
12260
12261 if test "$PKG_CONFIG" = "no" ; then
12262 HAVE_GNUTLS3=no
12263 else
12264 PKG_CONFIG_MIN_VERSION=0.9.0
12265 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.0.0" >&5
12267 $as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
12268
12269 if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
12270 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
12271 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
12272 edit_cflags="
12273 s,///*,/,g
12274 s/^/ /
12275 s/ -I/ $isystem/g
12276 s/^ //
12277 "
12278 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12279 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12281 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12282 succeeded=yes
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 LIBGNUTLS_CFLAGS=""
12287 LIBGNUTLS_LIBS=""
12288 ## If we have a custom action on failure, don't print errors, but
12289 ## do set a variable so people can do so. Do it in a subshell
12290 ## to capture any diagnostics in invoking pkg-config.
12291 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.0") 2>&1`
12292
12293 fi
12294
12295
12296
12297 else
12298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12300 fi
12301 fi
12302
12303 if test $succeeded = yes; then
12304 HAVE_GNUTLS3=yes
12305 else
12306 HAVE_GNUTLS3=no
12307 fi
12308
12309 if test "${HAVE_GNUTLS3}" = "yes"; then
12310
12311 $as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
12312
12313 HAVE_GNUTLS="yes"
12314 else
12315
12316 succeeded=no
12317
12318 if test "$PKG_CONFIG" = "no" ; then
12319 HAVE_GNUTLS=no
12320 else
12321 PKG_CONFIG_MIN_VERSION=0.9.0
12322 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12324 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12325
12326 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12327 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12328 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12329 edit_cflags="
12330 s,///*,/,g
12331 s/^/ /
12332 s/ -I/ $isystem/g
12333 s/^ //
12334 "
12335 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12336 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12338 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12339 succeeded=yes
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 LIBGNUTLS_CFLAGS=""
12344 LIBGNUTLS_LIBS=""
12345 ## If we have a custom action on failure, don't print errors, but
12346 ## do set a variable so people can do so. Do it in a subshell
12347 ## to capture any diagnostics in invoking pkg-config.
12348 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12349
12350 fi
12351
12352
12353
12354 else
12355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12357 fi
12358 fi
12359
12360 if test $succeeded = yes; then
12361 HAVE_GNUTLS=yes
12362 else
12363 HAVE_GNUTLS=no
12364 fi
12365
12366 fi
12367 if test "${HAVE_GNUTLS}" = "yes"; then
12368
12369 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12370
12371 fi
12372
12373 # Windows loads GnuTLS dynamically
12374 if test "${opsys}" = "mingw32"; then
12375 LIBGNUTLS_LIBS=
12376 else
12377 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12378 LIBS="$LIBGNUTLS_LIBS $LIBS"
12379 fi
12380 fi
12381
12382
12383
12384
12385 NOTIFY_OBJ=
12386 NOTIFY_SUMMARY=no
12387
12388 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12389 with_file_notification=no
12390 fi
12391
12392 case $with_file_notification,$opsys in
12393 w32,* | yes,mingw32)
12394 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12395 if test "x$ac_cv_header_windows_h" = x""yes; then :
12396
12397 fi
12398
12399
12400 if test "$ac_cv_header_windows_h" = yes ; then
12401
12402 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12403
12404 NOTIFY_OBJ=w32notify.o
12405 NOTIFY_SUMMARY="yes (w32)"
12406 fi ;;
12407 esac
12408
12409 case $with_file_notification,$NOTIFY_OBJ in
12410 gfile, | yes,)
12411
12412 succeeded=no
12413
12414 if test "$PKG_CONFIG" = "no" ; then
12415 HAVE_GFILENOTIFY=no
12416 else
12417 PKG_CONFIG_MIN_VERSION=0.9.0
12418 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12420 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12421
12422 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12423 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12424 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12425 edit_cflags="
12426 s,///*,/,g
12427 s/^/ /
12428 s/ -I/ $isystem/g
12429 s/^ //
12430 "
12431 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12432 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12434 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12435 succeeded=yes
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 GFILENOTIFY_CFLAGS=""
12440 GFILENOTIFY_LIBS=""
12441 ## If we have a custom action on failure, don't print errors, but
12442 ## do set a variable so people can do so. Do it in a subshell
12443 ## to capture any diagnostics in invoking pkg-config.
12444 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12445
12446 fi
12447
12448
12449
12450 else
12451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12453 fi
12454 fi
12455
12456 if test $succeeded = yes; then
12457 HAVE_GFILENOTIFY=yes
12458 else
12459 HAVE_GFILENOTIFY=no
12460 fi
12461
12462 if test "$HAVE_GFILENOTIFY" = "yes"; then
12463
12464 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12465
12466 NOTIFY_OBJ=gfilenotify.o
12467 NOTIFY_SUMMARY="yes -lgio (gfile)"
12468 fi ;;
12469 esac
12470
12471 case $with_file_notification,$NOTIFY_OBJ in
12472 inotify, | yes,)
12473 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12474 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12475
12476 fi
12477
12478
12479 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12480 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12481 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12482
12483 fi
12484
12485 if test "$ac_cv_func_inotify_init1" = yes; then
12486
12487 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12488
12489 NOTIFY_OBJ=inotify.o
12490 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12491 fi
12492 fi ;;
12493 esac
12494
12495 case $with_file_notification,$NOTIFY_OBJ in
12496 yes,* | no,* | *,?*) ;;
12497 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12498 esac
12499
12500 if test -n "$NOTIFY_OBJ"; then
12501
12502 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12503
12504 fi
12505
12506
12507
12508
12509 HAVE_XAW3D=no
12510 LUCID_LIBW=
12511 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12512 if test "$with_xaw3d" != no; then
12513 if test "${emacs_cv_xaw3d+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 #include <X11/Intrinsic.h>
12520 #include <X11/Xaw3d/Simple.h>
12521 int
12522 main ()
12523 {
12524
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_link "$LINENO"; then :
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12531 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12532 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-lXaw3d $LIBS"
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 char XawScrollbarSetThumb ();
12547 int
12548 main ()
12549 {
12550 return XawScrollbarSetThumb ();
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12557 else
12558 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12565 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12566 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12567 emacs_cv_xaw3d=yes
12568 else
12569 emacs_cv_xaw3d=no
12570 fi
12571
12572 else
12573 emacs_cv_xaw3d=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 fi
12578
12579 else
12580 emacs_cv_xaw3d=no
12581 fi
12582 if test $emacs_cv_xaw3d = yes; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12584 $as_echo_n "checking for xaw3d... " >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12586 $as_echo "yes; using Lucid toolkit" >&6; }
12587 USE_X_TOOLKIT=LUCID
12588 HAVE_XAW3D=yes
12589 LUCID_LIBW=-lXaw3d
12590
12591 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12592
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12595 $as_echo_n "checking for xaw3d... " >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12599 $as_echo_n "checking for libXaw... " >&6; }
12600 if test "${emacs_cv_xaw+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605
12606 #include <X11/Intrinsic.h>
12607 #include <X11/Xaw/Simple.h>
12608 int
12609 main ()
12610 {
12611
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"; then :
12617 emacs_cv_xaw=yes
12618 else
12619 emacs_cv_xaw=no
12620 fi
12621 rm -f core conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 fi
12624
12625 if test $emacs_cv_xaw = yes; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12627 $as_echo "yes; using Lucid toolkit" >&6; }
12628 USE_X_TOOLKIT=LUCID
12629 LUCID_LIBW=-lXaw
12630 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12631 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12632 else
12633 as_fn_error "No X toolkit could be found.
12634 If you are sure you want Emacs compiled without an X toolkit, pass
12635 --with-x-toolkit=no
12636 to configure. Otherwise, install the development libraries for the toolkit
12637 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12638 fi
12639 fi
12640 fi
12641
12642 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12643
12644 LIBXTR6=
12645 if test "${USE_X_TOOLKIT}" != "none"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12647 $as_echo_n "checking X11 toolkit version... " >&6; }
12648 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <X11/Intrinsic.h>
12654 int
12655 main ()
12656 {
12657 #if XtSpecificationRelease < 6
12658 fail;
12659 #endif
12660
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666 emacs_cv_x11_toolkit_version_6=yes
12667 else
12668 emacs_cv_x11_toolkit_version_6=no
12669 fi
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 fi
12673
12674 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12675 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12677 $as_echo "6 or newer" >&6; }
12678
12679 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12680
12681 LIBXTR6="-lSM -lICE"
12682 case "$opsys" in
12683 ## Use libw.a along with X11R6 Xt.
12684 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12685 esac
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12688 $as_echo "before 6" >&6; }
12689 fi
12690
12691 OLDLIBS="$LIBS"
12692 if test x$HAVE_X11XTR6 = xyes; then
12693 LIBS="-lXt -lSM -lICE $LIBS"
12694 else
12695 LIBS="-lXt $LIBS"
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12698 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12699 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 ac_check_lib_save_LIBS=$LIBS
12703 LIBS="-lXmu $LIBS"
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12710 #ifdef __cplusplus
12711 extern "C"
12712 #endif
12713 char XmuConvertStandardSelection ();
12714 int
12715 main ()
12716 {
12717 return XmuConvertStandardSelection ();
12718 ;
12719 return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12724 else
12725 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12732 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12733 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBXMU 1
12736 _ACEOF
12737
12738 LIBS="-lXmu $LIBS"
12739
12740 fi
12741
12742 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12743 fi
12744
12745
12746 LIBXMU=-lXmu
12747 case $opsys in
12748 ## These systems don't supply Xmu.
12749 hpux* | aix4-2 )
12750 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12751 ;;
12752 mingw32 )
12753 LIBXMU=
12754 ;;
12755 esac
12756
12757
12758 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12759 if test "${HAVE_X11}" = "yes"; then
12760 if test "${USE_X_TOOLKIT}" != "none"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12762 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12763 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-lXext $LIBS"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 char XShapeQueryExtension ();
12778 int
12779 main ()
12780 {
12781 return XShapeQueryExtension ();
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_link "$LINENO"; then :
12787 ac_cv_lib_Xext_XShapeQueryExtension=yes
12788 else
12789 ac_cv_lib_Xext_XShapeQueryExtension=no
12790 fi
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12796 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12797 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_LIBXEXT 1
12800 _ACEOF
12801
12802 LIBS="-lXext $LIBS"
12803
12804 fi
12805
12806 fi
12807 fi
12808
12809 LIBXP=
12810 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12811 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12812 if test -d /usr/include/openmotif; then
12813 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12814 emacs_cv_openmotif=yes
12815 case "$canonical" in
12816 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12817 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12818 ;;
12819 *)
12820 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12821 esac
12822 else
12823 emacs_cv_openmotif=no
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12826 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12827 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832 #include <Xm/Xm.h>
12833 int
12834 main ()
12835 {
12836 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12837 int x = 5;
12838 #else
12839 Motif version prior to 2.1.
12840 #endif
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846 emacs_cv_motif_version_2_1=yes
12847 else
12848 emacs_cv_motif_version_2_1=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12853 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12854 if test $emacs_cv_motif_version_2_1 = yes; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12856 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12857 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lXp $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char XpCreateContext ();
12872 int
12873 main ()
12874 {
12875 return XpCreateContext ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_Xp_XpCreateContext=yes
12882 else
12883 ac_cv_lib_Xp_XpCreateContext=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12890 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12891 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12892 LIBXP=-lXp
12893 fi
12894
12895 if test x$emacs_cv_openmotif = xyes; then
12896 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12897 fi
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12900 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12901 if test "${emacs_cv_lesstif+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 # We put this in CFLAGS temporarily to precede other -I options
12905 # that might be in CFLAGS temporarily.
12906 # We put this in CPPFLAGS where it precedes the other -I options.
12907 OLD_CPPFLAGS=$CPPFLAGS
12908 OLD_CFLAGS=$CFLAGS
12909 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12910 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12914 int
12915 main ()
12916 {
12917 int x = 5;
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_compile "$LINENO"; then :
12923 emacs_cv_lesstif=yes
12924 else
12925 emacs_cv_lesstif=no
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12930 $as_echo "$emacs_cv_lesstif" >&6; }
12931 if test $emacs_cv_lesstif = yes; then
12932 # Make sure this -I option remains in CPPFLAGS after it is set
12933 # back to REAL_CPPFLAGS.
12934 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12935 # have those other -I options anyway. Ultimately, having this
12936 # directory ultimately in CPPFLAGS will be enough.
12937 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12938 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12939 else
12940 CFLAGS=$OLD_CFLAGS
12941 CPPFLAGS=$OLD_CPPFLAGS
12942 fi
12943 fi
12944 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12945 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12946
12947 else
12948 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12949 fi
12950
12951
12952 fi
12953
12954
12955 USE_TOOLKIT_SCROLL_BARS=no
12956 if test "${with_toolkit_scroll_bars}" != "no"; then
12957 if test "${USE_X_TOOLKIT}" != "none"; then
12958 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12959 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12960
12961 HAVE_XAW3D=no
12962 USE_TOOLKIT_SCROLL_BARS=yes
12963 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12964 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12965
12966 USE_TOOLKIT_SCROLL_BARS=yes
12967 fi
12968 elif test "${HAVE_GTK}" = "yes"; then
12969 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12970
12971 USE_TOOLKIT_SCROLL_BARS=yes
12972 elif test "${HAVE_NS}" = "yes"; then
12973 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12974
12975 USE_TOOLKIT_SCROLL_BARS=yes
12976 elif test "${HAVE_W32}" = "yes"; then
12977 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12978
12979 USE_TOOLKIT_SCROLL_BARS=yes
12980 fi
12981 fi
12982
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985
12986 #include <X11/Xlib.h>
12987 #include <X11/Xresource.h>
12988 int
12989 main ()
12990 {
12991 XIMProc callback;
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_compile "$LINENO"; then :
12997 HAVE_XIM=yes
12998
12999 $as_echo "#define HAVE_XIM 1" >>confdefs.h
13000
13001 else
13002 HAVE_XIM=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005
13006
13007 if test "${with_xim}" != "no"; then
13008
13009 $as_echo "#define USE_XIM 1" >>confdefs.h
13010
13011 fi
13012
13013
13014 if test "${HAVE_XIM}" != "no"; then
13015 late_CFLAGS=$CFLAGS
13016 if test "$GCC" = yes; then
13017 CFLAGS="$CFLAGS --pedantic-errors"
13018 fi
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13021
13022 #include <X11/Xlib.h>
13023 #include <X11/Xresource.h>
13024 int
13025 main ()
13026 {
13027 Display *display;
13028 XrmDatabase db;
13029 char *res_name;
13030 char *res_class;
13031 XIMProc callback;
13032 XPointer *client_data;
13033 #ifndef __GNUC__
13034 /* If we're not using GCC, it's probably not XFree86, and this is
13035 probably right, but we can't use something like --pedantic-errors. */
13036 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13037 char*, XIMProc, XPointer*);
13038 #endif
13039 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13040 client_data);
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046 emacs_cv_arg6_star=yes
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 if test "$emacs_cv_arg6_star" = yes; then
13050 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13051
13052 else
13053 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13054
13055 fi
13056 CFLAGS=$late_CFLAGS
13057 fi
13058
13059 ### Start of font-backend (under any platform) section.
13060 # (nothing here yet -- this is a placeholder)
13061 ### End of font-backend (under any platform) section.
13062
13063 ### Start of font-backend (under X11) section.
13064 if test "${HAVE_X11}" = "yes"; then
13065
13066 succeeded=no
13067
13068 if test "$PKG_CONFIG" = "no" ; then
13069 HAVE_FC=no
13070 else
13071 PKG_CONFIG_MIN_VERSION=0.9.0
13072 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13074 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13075
13076 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13077 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13078 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13079 edit_cflags="
13080 s,///*,/,g
13081 s/^/ /
13082 s/ -I/ $isystem/g
13083 s/^ //
13084 "
13085 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13086 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13088 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13089 succeeded=yes
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093 FONTCONFIG_CFLAGS=""
13094 FONTCONFIG_LIBS=""
13095 ## If we have a custom action on failure, don't print errors, but
13096 ## do set a variable so people can do so. Do it in a subshell
13097 ## to capture any diagnostics in invoking pkg-config.
13098 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13099
13100 fi
13101
13102
13103
13104 else
13105 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13106 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13107 fi
13108 fi
13109
13110 if test $succeeded = yes; then
13111 HAVE_FC=yes
13112 else
13113 HAVE_FC=no
13114 fi
13115
13116
13117 ## Use -lXft if available, unless `--with-xft=no'.
13118 HAVE_XFT=maybe
13119 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13120 with_xft="no";
13121 fi
13122 if test "x${with_xft}" != "xno"; then
13123
13124
13125 succeeded=no
13126
13127 if test "$PKG_CONFIG" = "no" ; then
13128 HAVE_XFT=no
13129 else
13130 PKG_CONFIG_MIN_VERSION=0.9.0
13131 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13133 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13134
13135 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13136 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13137 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13138 edit_cflags="
13139 s,///*,/,g
13140 s/^/ /
13141 s/ -I/ $isystem/g
13142 s/^ //
13143 "
13144 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13145 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13147 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13148 succeeded=yes
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13152 XFT_CFLAGS=""
13153 XFT_LIBS=""
13154 ## If we have a custom action on failure, don't print errors, but
13155 ## do set a variable so people can do so. Do it in a subshell
13156 ## to capture any diagnostics in invoking pkg-config.
13157 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13158
13159 fi
13160
13161
13162
13163 else
13164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13166 fi
13167 fi
13168
13169 if test $succeeded = yes; then
13170 :
13171 else
13172 HAVE_XFT=no
13173 fi
13174
13175 ## Because xftfont.c uses XRenderQueryExtension, we also
13176 ## need to link to -lXrender.
13177 HAVE_XRENDER=no
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13179 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13180 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-lXrender $LIBS"
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187
13188 /* Override any GCC internal prototype to avoid an error.
13189 Use char because int might match the return type of a GCC
13190 builtin and then its argument prototype would still apply. */
13191 #ifdef __cplusplus
13192 extern "C"
13193 #endif
13194 char XRenderQueryExtension ();
13195 int
13196 main ()
13197 {
13198 return XRenderQueryExtension ();
13199 ;
13200 return 0;
13201 }
13202 _ACEOF
13203 if ac_fn_c_try_link "$LINENO"; then :
13204 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13205 else
13206 ac_cv_lib_Xrender_XRenderQueryExtension=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13213 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13214 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13215 HAVE_XRENDER=yes
13216 fi
13217
13218 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13219 OLD_CPPFLAGS="$CPPFLAGS"
13220 OLD_CFLAGS="$CFLAGS"
13221 OLD_LIBS="$LIBS"
13222 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13223 CFLAGS="$CFLAGS $XFT_CFLAGS"
13224 XFT_LIBS="-lXrender $XFT_LIBS"
13225 LIBS="$XFT_LIBS $LIBS"
13226 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13227 "
13228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lXft $XFT_LIBS $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 XftFontOpen ();
13246 int
13247 main ()
13248 {
13249 return XftFontOpen ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_Xft_XftFontOpen=yes
13256 else
13257 ac_cv_lib_Xft_XftFontOpen=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_Xft_XftFontOpen" >&5
13264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13266 HAVE_XFT=yes
13267 fi
13268
13269 fi
13270
13271
13272
13273 if test "${HAVE_XFT}" = "yes"; then
13274
13275 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13276
13277
13278 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13279 else
13280 CPPFLAGS="$OLD_CPPFLAGS"
13281 CFLAGS="$OLD_CFLAGS"
13282 LIBS="$OLD_LIBS"
13283 fi # "${HAVE_XFT}" = "yes"
13284 fi # "$HAVE_XFT" != no
13285 fi # "x${with_xft}" != "xno"
13286
13287 ## We used to allow building with FreeType and without Xft.
13288 ## However, the ftx font backend driver is not in good shape.
13289 if test "$HAVE_XFT" != "yes"; then
13290 HAVE_XFT=no
13291 HAVE_FREETYPE=no
13292 else
13293
13294 succeeded=no
13295
13296 if test "$PKG_CONFIG" = "no" ; then
13297 HAVE_FREETYPE=no
13298 else
13299 PKG_CONFIG_MIN_VERSION=0.9.0
13300 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13302 $as_echo_n "checking for freetype2... " >&6; }
13303
13304 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13305 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13306 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13307 edit_cflags="
13308 s,///*,/,g
13309 s/^/ /
13310 s/ -I/ $isystem/g
13311 s/^ //
13312 "
13313 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13314 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13316 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13317 succeeded=yes
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 $as_echo "no" >&6; }
13321 FREETYPE_CFLAGS=""
13322 FREETYPE_LIBS=""
13323 ## If we have a custom action on failure, don't print errors, but
13324 ## do set a variable so people can do so. Do it in a subshell
13325 ## to capture any diagnostics in invoking pkg-config.
13326 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13327
13328 fi
13329
13330
13331
13332 else
13333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13335 fi
13336 fi
13337
13338 if test $succeeded = yes; then
13339 HAVE_FREETYPE=yes
13340 else
13341 HAVE_FREETYPE=no
13342 fi
13343
13344
13345 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13346 fi
13347
13348 HAVE_LIBOTF=no
13349 if test "${HAVE_FREETYPE}" = "yes"; then
13350
13351 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13352
13353 if test "${with_libotf}" != "no"; then
13354
13355 succeeded=no
13356
13357 if test "$PKG_CONFIG" = "no" ; then
13358 HAVE_LIBOTF=no
13359 else
13360 PKG_CONFIG_MIN_VERSION=0.9.0
13361 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13363 $as_echo_n "checking for libotf... " >&6; }
13364
13365 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13366 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13367 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13368 edit_cflags="
13369 s,///*,/,g
13370 s/^/ /
13371 s/ -I/ $isystem/g
13372 s/^ //
13373 "
13374 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13375 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13377 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13378 succeeded=yes
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 LIBOTF_CFLAGS=""
13383 LIBOTF_LIBS=""
13384 ## If we have a custom action on failure, don't print errors, but
13385 ## do set a variable so people can do so. Do it in a subshell
13386 ## to capture any diagnostics in invoking pkg-config.
13387 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13388
13389 fi
13390
13391
13392
13393 else
13394 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13395 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13396 fi
13397 fi
13398
13399 if test $succeeded = yes; then
13400 HAVE_LIBOTF=yes
13401 else
13402 HAVE_LIBOTF=no
13403 fi
13404
13405 if test "$HAVE_LIBOTF" = "yes"; then
13406
13407 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13410 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13411 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-lotf $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char OTF_get_variation_glyphs ();
13426 int
13427 main ()
13428 {
13429 return OTF_get_variation_glyphs ();
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13436 else
13437 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13444 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13445 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13446 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13447 else
13448 HAVE_OTF_GET_VARIATION_GLYPHS=no
13449 fi
13450
13451 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13452
13453 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13454
13455 fi
13456 fi
13457 fi
13458 fi
13459
13460 HAVE_M17N_FLT=no
13461 if test "${HAVE_LIBOTF}" = yes; then
13462 if test "${with_m17n_flt}" != "no"; then
13463
13464 succeeded=no
13465
13466 if test "$PKG_CONFIG" = "no" ; then
13467 HAVE_M17N_FLT=no
13468 else
13469 PKG_CONFIG_MIN_VERSION=0.9.0
13470 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13472 $as_echo_n "checking for m17n-flt... " >&6; }
13473
13474 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13475 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13476 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13477 edit_cflags="
13478 s,///*,/,g
13479 s/^/ /
13480 s/ -I/ $isystem/g
13481 s/^ //
13482 "
13483 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13484 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13486 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13487 succeeded=yes
13488 else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491 M17N_FLT_CFLAGS=""
13492 M17N_FLT_LIBS=""
13493 ## If we have a custom action on failure, don't print errors, but
13494 ## do set a variable so people can do so. Do it in a subshell
13495 ## to capture any diagnostics in invoking pkg-config.
13496 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13497
13498 fi
13499
13500
13501
13502 else
13503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13505 fi
13506 fi
13507
13508 if test $succeeded = yes; then
13509 HAVE_M17N_FLT=yes
13510 else
13511 HAVE_M17N_FLT=no
13512 fi
13513
13514 if test "$HAVE_M17N_FLT" = "yes"; then
13515
13516 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13517
13518 fi
13519 fi
13520 fi
13521 else
13522 HAVE_XFT=no
13523 HAVE_FREETYPE=no
13524 HAVE_LIBOTF=no
13525 HAVE_M17N_FLT=no
13526 fi
13527
13528 ### End of font-backend (under X11) section.
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539 ### Use -lXpm if available, unless `--with-xpm=no'.
13540 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13541 HAVE_XPM=no
13542 LIBXPM=
13543 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13544 if test "${with_xpm}" != "no"; then
13545 SAVE_CPPFLAGS="$CPPFLAGS"
13546 SAVE_LDFLAGS="$LDFLAGS"
13547 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13548 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13549 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13552 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13553 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 ac_check_lib_save_LIBS=$LIBS
13557 LIBS="-lXpm $LIBS"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char XpmReadFileToImage ();
13568 int
13569 main ()
13570 {
13571 return XpmReadFileToImage ();
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13578 else
13579 ac_cv_lib_Xpm_XpmReadFileToImage=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13586 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13587 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13588 HAVE_XPM=yes
13589 fi
13590
13591 fi
13592
13593
13594 if test "${HAVE_XPM}" = "yes"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13596 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 #include "X11/xpm.h"
13600 #ifndef XpmReturnAllocPixels
13601 no_return_alloc_pixels
13602 #endif
13603
13604 _ACEOF
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13607 HAVE_XPM=no
13608 else
13609 HAVE_XPM=yes
13610 fi
13611 rm -f conftest*
13612
13613
13614 if test "${HAVE_XPM}" = "yes"; then
13615 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13621 CPPFLAGS="$SAVE_CPPFLAGS"
13622 LDFLAGS="$SAVE_LDFLAGS"
13623 fi
13624 fi
13625 fi
13626
13627 if test "${HAVE_XPM}" = "yes"; then
13628
13629 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13630
13631 LIBXPM=-lXpm
13632 fi
13633 fi
13634
13635 if test "${HAVE_X11}" = "yes"; then
13636 if test "${with_xpm}" != "no"; then
13637 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13638 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13640 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13641 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 ac_check_lib_save_LIBS=$LIBS
13645 LIBS="-lXpm -lX11 $LIBS"
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648
13649 /* Override any GCC internal prototype to avoid an error.
13650 Use char because int might match the return type of a GCC
13651 builtin and then its argument prototype would still apply. */
13652 #ifdef __cplusplus
13653 extern "C"
13654 #endif
13655 char XpmReadFileToPixmap ();
13656 int
13657 main ()
13658 {
13659 return XpmReadFileToPixmap ();
13660 ;
13661 return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_link "$LINENO"; then :
13665 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13666 else
13667 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext \
13670 conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13674 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13675 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13676 HAVE_XPM=yes
13677 fi
13678
13679 fi
13680
13681
13682 if test "${HAVE_XPM}" = "yes"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13684 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #include "X11/xpm.h"
13688 #ifndef XpmReturnAllocPixels
13689 no_return_alloc_pixels
13690 #endif
13691
13692 _ACEOF
13693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13694 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13695 HAVE_XPM=no
13696 else
13697 HAVE_XPM=yes
13698 fi
13699 rm -f conftest*
13700
13701
13702 if test "${HAVE_XPM}" = "yes"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 else
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708 fi
13709 fi
13710 fi
13711
13712 if test "${HAVE_XPM}" = "yes"; then
13713
13714 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13715
13716 LIBXPM=-lXpm
13717 fi
13718 fi
13719
13720 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13721 ### slightly different requirements wrt image libraries (it doesn't
13722 ### use -lXpm because it loads the xpm shared library dynamically at
13723 ### run time).
13724 if test "${opsys}" = "mingw32"; then
13725 if test "${with_xpm}" != "no"; then
13726 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13727 #define FOR_MSW 1
13728 "
13729 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13730 HAVE_XPM=yes
13731 else
13732 HAVE_XPM=no
13733 fi
13734
13735
13736 fi
13737
13738 if test "${HAVE_XPM}" = "yes"; then
13739
13740 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13741
13742 fi
13743 fi
13744
13745
13746
13747 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13748 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13749 HAVE_JPEG=no
13750 LIBJPEG=
13751 if test "${opsys}" = "mingw32"; then
13752 if test "${with_jpeg}" != "no"; then
13753 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13754 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13755 HAVE_JPEG=yes
13756 else
13757 HAVE_JPEG=no
13758 fi
13759
13760
13761 fi
13762 if test "${HAVE_JPEG}" = "yes"; then
13763 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13764
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 #include <jpeglib.h>
13768 version=JPEG_LIB_VERSION
13769
13770 _ACEOF
13771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13772 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13773 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13774
13775 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13777 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13778 HAVE_JPEG=no
13779 fi
13780 rm -f conftest*
13781
13782 fi
13783 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13784 if test "${with_jpeg}" != "no"; then
13785 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13786 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13788 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13789 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 ac_check_lib_save_LIBS=$LIBS
13793 LIBS="-ljpeg $LIBS"
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796
13797 /* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char jpeg_destroy_compress ();
13804 int
13805 main ()
13806 {
13807 return jpeg_destroy_compress ();
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13814 else
13815 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13816 fi
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13820 fi
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13822 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13823 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13824 HAVE_JPEG=yes
13825 fi
13826
13827 fi
13828
13829
13830 fi
13831
13832 if test "${HAVE_JPEG}" = "yes"; then
13833 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13834
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <jpeglib.h>
13838 version=JPEG_LIB_VERSION
13839
13840 _ACEOF
13841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13842 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13843 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13844
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13847 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13848 HAVE_JPEG=no
13849 fi
13850 rm -f conftest*
13851
13852 fi
13853 if test "${HAVE_JPEG}" = "yes"; then
13854 LIBJPEG=-ljpeg
13855 fi
13856 fi
13857
13858
13859 ### Use -lpng if available, unless `--with-png=no'.
13860 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13861 HAVE_PNG=no
13862 LIBPNG=
13863 if test "${opsys}" = "mingw32"; then
13864 if test "${with_png}" != "no"; then
13865 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13866 if test "x$ac_cv_header_png_h" = x""yes; then :
13867 HAVE_PNG=yes
13868 else
13869 HAVE_PNG=no
13870 fi
13871
13872
13873 fi
13874 if test "${HAVE_PNG}" = "yes"; then
13875
13876 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13877
13878
13879 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13880 # include <libpng/png.h>
13881 #else
13882 # include <png.h>
13883 #endif
13884
13885 "
13886 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13887
13888 else
13889
13890 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13891
13892 fi
13893
13894 fi
13895 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13896 if test "${with_png}" != "no"; then
13897 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13898 # in /usr/include/libpng.
13899 for ac_header in png.h libpng/png.h
13900 do :
13901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13902 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13903 eval as_val=\$$as_ac_Header
13904 if test "x$as_val" = x""yes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13907 _ACEOF
13908 break
13909 fi
13910
13911 done
13912
13913 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13915 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13916 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 ac_check_lib_save_LIBS=$LIBS
13920 LIBS="-lpng -lz -lm $LIBS"
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923
13924 /* Override any GCC internal prototype to avoid an error.
13925 Use char because int might match the return type of a GCC
13926 builtin and then its argument prototype would still apply. */
13927 #ifdef __cplusplus
13928 extern "C"
13929 #endif
13930 char png_get_channels ();
13931 int
13932 main ()
13933 {
13934 return png_get_channels ();
13935 ;
13936 return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 ac_cv_lib_png_png_get_channels=yes
13941 else
13942 ac_cv_lib_png_png_get_channels=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13949 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13950 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13951 HAVE_PNG=yes
13952 fi
13953
13954 fi
13955 fi
13956
13957 if test "${HAVE_PNG}" = "yes"; then
13958
13959 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13960
13961 LIBPNG="-lpng -lz -lm"
13962
13963 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13964 # include <libpng/png.h>
13965 #else
13966 # include <png.h>
13967 #endif
13968
13969 "
13970 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13971
13972 else
13973
13974 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13975
13976 fi
13977
13978 fi
13979 fi
13980
13981
13982 HAVE_ZLIB=no
13983 LIBZ=
13984 if test "${with_zlib}" != "no"; then
13985 OLIBS=$LIBS
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13987 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13988 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 ac_func_search_save_LIBS=$LIBS
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994
13995 /* Override any GCC internal prototype to avoid an error.
13996 Use char because int might match the return type of a GCC
13997 builtin and then its argument prototype would still apply. */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 char inflateEnd ();
14002 int
14003 main ()
14004 {
14005 return inflateEnd ();
14006 ;
14007 return 0;
14008 }
14009 _ACEOF
14010 for ac_lib in '' z; do
14011 if test -z "$ac_lib"; then
14012 ac_res="none required"
14013 else
14014 ac_res=-l$ac_lib
14015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14016 fi
14017 if ac_fn_c_try_link "$LINENO"; then :
14018 ac_cv_search_inflateEnd=$ac_res
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext
14022 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14023 break
14024 fi
14025 done
14026 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14027
14028 else
14029 ac_cv_search_inflateEnd=no
14030 fi
14031 rm conftest.$ac_ext
14032 LIBS=$ac_func_search_save_LIBS
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14035 $as_echo "$ac_cv_search_inflateEnd" >&6; }
14036 ac_res=$ac_cv_search_inflateEnd
14037 if test "$ac_res" != no; then :
14038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14039 HAVE_ZLIB=yes
14040 fi
14041
14042 LIBS=$OLIBS
14043 case $ac_cv_search_inflateEnd in
14044 -*) LIBZ=$ac_cv_search_inflateEnd ;;
14045 esac
14046 fi
14047 if test "${HAVE_ZLIB}" = "yes"; then
14048
14049 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
14050
14051 ### mingw32 doesn't use -lz, since it loads the library dynamically.
14052 if test "${opsys}" = "mingw32"; then
14053 LIBZ=
14054 fi
14055 fi
14056
14057
14058
14059 ### Use -ltiff if available, unless `--with-tiff=no'.
14060 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14061 HAVE_TIFF=no
14062 LIBTIFF=
14063 if test "${opsys}" = "mingw32"; then
14064 if test "${with_tiff}" != "no"; then
14065 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14066 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14067 HAVE_TIFF=yes
14068 else
14069 HAVE_TIFF=no
14070 fi
14071
14072
14073 fi
14074 if test "${HAVE_TIFF}" = "yes"; then
14075
14076 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14077
14078 fi
14079 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
14080 if test "${with_tiff}" != "no"; then
14081 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14082 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14083 tifflibs="-lz -lm"
14084 # At least one tiff package requires the jpeg library.
14085 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14087 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14088 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 ac_check_lib_save_LIBS=$LIBS
14092 LIBS="-ltiff $tifflibs $LIBS"
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095
14096 /* Override any GCC internal prototype to avoid an error.
14097 Use char because int might match the return type of a GCC
14098 builtin and then its argument prototype would still apply. */
14099 #ifdef __cplusplus
14100 extern "C"
14101 #endif
14102 char TIFFGetVersion ();
14103 int
14104 main ()
14105 {
14106 return TIFFGetVersion ();
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 ac_cv_lib_tiff_TIFFGetVersion=yes
14113 else
14114 ac_cv_lib_tiff_TIFFGetVersion=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14119 fi
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14121 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14122 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
14123 HAVE_TIFF=yes
14124 fi
14125
14126 fi
14127
14128
14129 fi
14130
14131 if test "${HAVE_TIFF}" = "yes"; then
14132
14133 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14134
14135 LIBTIFF=-ltiff
14136 fi
14137 fi
14138
14139
14140 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14141 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14142 HAVE_GIF=no
14143 LIBGIF=
14144 if test "${opsys}" = "mingw32"; then
14145 if test "${with_gif}" != "no"; then
14146 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14147 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14148 HAVE_GIF=yes
14149 else
14150 HAVE_GIF=no
14151 fi
14152
14153
14154 fi
14155 if test "${HAVE_GIF}" = "yes"; then
14156
14157 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14158
14159 fi
14160 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14161 || test "${HAVE_W32}" = "yes"; then
14162 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14163 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14164 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14165 # Earlier versions can crash Emacs, but version 5.0 removes EGifPutExtensionLast.
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GifMakeMapObject in -lgif" >&5
14167 $as_echo_n "checking for GifMakeMapObject in -lgif... " >&6; }
14168 if test "${ac_cv_lib_gif_GifMakeMapObject+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 ac_check_lib_save_LIBS=$LIBS
14172 LIBS="-lgif $LIBS"
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 char GifMakeMapObject ();
14183 int
14184 main ()
14185 {
14186 return GifMakeMapObject ();
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 ac_cv_lib_gif_GifMakeMapObject=yes
14193 else
14194 ac_cv_lib_gif_GifMakeMapObject=no
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 LIBS=$ac_check_lib_save_LIBS
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_GifMakeMapObject" >&5
14201 $as_echo "$ac_cv_lib_gif_GifMakeMapObject" >&6; }
14202 if test "x$ac_cv_lib_gif_GifMakeMapObject" = x""yes; then :
14203 HAVE_GIF=yes
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14206 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14207 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 ac_check_lib_save_LIBS=$LIBS
14211 LIBS="-lgif $LIBS"
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214
14215 /* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 char EGifPutExtensionLast ();
14222 int
14223 main ()
14224 {
14225 return EGifPutExtensionLast ();
14226 ;
14227 return 0;
14228 }
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"; then :
14231 ac_cv_lib_gif_EGifPutExtensionLast=yes
14232 else
14233 ac_cv_lib_gif_EGifPutExtensionLast=no
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14240 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14241 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
14242 HAVE_GIF=yes
14243 else
14244 HAVE_GIF=maybe
14245 fi
14246
14247 fi
14248
14249 fi
14250
14251
14252
14253 if test "$HAVE_GIF" = yes; then
14254 LIBGIF=-lgif
14255 elif test "$HAVE_GIF" = maybe; then
14256 # If gif_lib.h but no libgif, try libungif.
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14258 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14259 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 ac_check_lib_save_LIBS=$LIBS
14263 LIBS="-lungif $LIBS"
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char EGifPutExtensionLast ();
14274 int
14275 main ()
14276 {
14277 return EGifPutExtensionLast ();
14278 ;
14279 return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14284 else
14285 ac_cv_lib_ungif_EGifPutExtensionLast=no
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14290 fi
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14292 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14293 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
14294 HAVE_GIF=yes
14295 else
14296 HAVE_GIF=no
14297 fi
14298
14299 test "$HAVE_GIF" = yes && LIBGIF=-lungif
14300 fi
14301
14302 if test "${HAVE_GIF}" = "yes"; then
14303
14304 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14305
14306 fi
14307 fi
14308
14309
14310 if test "${HAVE_X11}" = "yes"; then
14311 MISSING=""
14312 WITH_NO=""
14313 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14314 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14315 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14316 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14317 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14318 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14319 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14320 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14321 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14322 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14323
14324 if test "X${MISSING}" != X; then
14325 as_fn_error "The following required libraries were not found:
14326 $MISSING
14327 Maybe some development libraries/packages are missing?
14328 If you don't want to link with them give
14329 $WITH_NO
14330 as options to configure" "$LINENO" 5
14331 fi
14332 fi
14333
14334 ### Use -lgpm if available, unless `--with-gpm=no'.
14335 HAVE_GPM=no
14336 LIBGPM=
14337 if test "${with_gpm}" != "no"; then
14338 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14339 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14341 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14342 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-lgpm $LIBS"
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14353 #ifdef __cplusplus
14354 extern "C"
14355 #endif
14356 char Gpm_Open ();
14357 int
14358 main ()
14359 {
14360 return Gpm_Open ();
14361 ;
14362 return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"; then :
14366 ac_cv_lib_gpm_Gpm_Open=yes
14367 else
14368 ac_cv_lib_gpm_Gpm_Open=no
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 LIBS=$ac_check_lib_save_LIBS
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14375 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14376 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14377 HAVE_GPM=yes
14378 fi
14379
14380 fi
14381
14382
14383
14384 if test "${HAVE_GPM}" = "yes"; then
14385
14386 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14387
14388 LIBGPM=-lgpm
14389 fi
14390 fi
14391
14392
14393
14394
14395
14396
14397 GNUSTEP_CFLAGS=
14398 ### Use NeXTstep API to implement GUI.
14399 if test "${HAVE_NS}" = "yes"; then
14400
14401 $as_echo "#define HAVE_NS 1" >>confdefs.h
14402
14403 if test "${NS_IMPL_COCOA}" = "yes"; then
14404
14405 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14406
14407 fi
14408 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14409
14410 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14411
14412 # See also .m.o rule in Makefile.in */
14413 # FIXME: are all these flags really needed? Document here why. */
14414 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14415 ## Extra CFLAGS applied to src/*.m files.
14416 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"
14417 fi
14418 OTHER_FILES=ns-app
14419 fi
14420
14421 ### Use session management (-lSM -lICE) if available
14422 HAVE_X_SM=no
14423 LIBXSM=
14424 if test "${HAVE_X11}" = "yes"; then
14425 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14426 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14428 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14429 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 ac_check_lib_save_LIBS=$LIBS
14433 LIBS="-lSM -lICE $LIBS"
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char SmcOpenConnection ();
14444 int
14445 main ()
14446 {
14447 return SmcOpenConnection ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"; then :
14453 ac_cv_lib_SM_SmcOpenConnection=yes
14454 else
14455 ac_cv_lib_SM_SmcOpenConnection=no
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14459 LIBS=$ac_check_lib_save_LIBS
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14462 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14463 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14464 HAVE_X_SM=yes
14465 fi
14466
14467 fi
14468
14469
14470
14471 if test "${HAVE_X_SM}" = "yes"; then
14472
14473 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14474
14475 LIBXSM="-lSM -lICE"
14476 case "$LIBS" in
14477 *-lSM*) ;;
14478 *) LIBS="$LIBXSM $LIBS" ;;
14479 esac
14480 fi
14481 fi
14482
14483
14484 ### Use XRandr (-lXrandr) if available
14485 HAVE_XRANDR=no
14486 if test "${HAVE_X11}" = "yes"; then
14487 XRANDR_REQUIRED=1.2.2
14488 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14489
14490 succeeded=no
14491
14492 if test "$PKG_CONFIG" = "no" ; then
14493 HAVE_XRANDR=no
14494 else
14495 PKG_CONFIG_MIN_VERSION=0.9.0
14496 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14498 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14499
14500 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14501 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14502 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14503 edit_cflags="
14504 s,///*,/,g
14505 s/^/ /
14506 s/ -I/ $isystem/g
14507 s/^ //
14508 "
14509 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14510 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14512 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14513 succeeded=yes
14514 else
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 $as_echo "no" >&6; }
14517 XRANDR_CFLAGS=""
14518 XRANDR_LIBS=""
14519 ## If we have a custom action on failure, don't print errors, but
14520 ## do set a variable so people can do so. Do it in a subshell
14521 ## to capture any diagnostics in invoking pkg-config.
14522 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14523
14524 fi
14525
14526
14527
14528 else
14529 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14530 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14531 fi
14532 fi
14533
14534 if test $succeeded = yes; then
14535 HAVE_XRANDR=yes
14536 else
14537 HAVE_XRANDR=no
14538 fi
14539
14540 if test $HAVE_XRANDR = no; then
14541 # Test old way in case pkg-config doesn't have it (older machines).
14542 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14543 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14545 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14546 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lXrandr $LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char XRRGetScreenResources ();
14561 int
14562 main ()
14563 {
14564 return XRRGetScreenResources ();
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"; then :
14570 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14571 else
14572 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14579 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14580 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14581 HAVE_XRANDR=yes
14582 fi
14583
14584 fi
14585
14586
14587 if test $HAVE_XRANDR = yes; then
14588 XRANDR_LIBS=-lXrandr
14589
14590 fi
14591 fi
14592 if test $HAVE_XRANDR = yes; then
14593 SAVE_CFLAGS="$CFLAGS"
14594 SAVE_LIBS="$LIBS"
14595 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14596 LIBS="$XRANDR_LIBS $LIBS"
14597 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14598 do :
14599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14601 eval as_val=\$$as_ac_var
14602 if test "x$as_val" = x""yes; then :
14603 cat >>confdefs.h <<_ACEOF
14604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14605 _ACEOF
14606
14607 fi
14608 done
14609
14610 CFLAGS="$SAVE_CFLAGS"
14611 LIBS="$SAVE_LIBS"
14612
14613
14614 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14615
14616 fi
14617 fi
14618
14619 ### Use Xinerama (-lXinerama) if available
14620 HAVE_XINERAMA=no
14621 if test "${HAVE_X11}" = "yes"; then
14622 XINERAMA_REQUIRED=1.0.2
14623 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14624
14625 succeeded=no
14626
14627 if test "$PKG_CONFIG" = "no" ; then
14628 HAVE_XINERAMA=no
14629 else
14630 PKG_CONFIG_MIN_VERSION=0.9.0
14631 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14633 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14634
14635 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14636 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14637 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14638 edit_cflags="
14639 s,///*,/,g
14640 s/^/ /
14641 s/ -I/ $isystem/g
14642 s/^ //
14643 "
14644 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14645 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14647 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14648 succeeded=yes
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14652 XINERAMA_CFLAGS=""
14653 XINERAMA_LIBS=""
14654 ## If we have a custom action on failure, don't print errors, but
14655 ## do set a variable so people can do so. Do it in a subshell
14656 ## to capture any diagnostics in invoking pkg-config.
14657 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14658
14659 fi
14660
14661
14662
14663 else
14664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14666 fi
14667 fi
14668
14669 if test $succeeded = yes; then
14670 HAVE_XINERAMA=yes
14671 else
14672 HAVE_XINERAMA=no
14673 fi
14674
14675 if test $HAVE_XINERAMA = no; then
14676 # Test old way in case pkg-config doesn't have it (older machines).
14677 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14678 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14680 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14681 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 ac_check_lib_save_LIBS=$LIBS
14685 LIBS="-lXinerama $LIBS"
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14688
14689 /* Override any GCC internal prototype to avoid an error.
14690 Use char because int might match the return type of a GCC
14691 builtin and then its argument prototype would still apply. */
14692 #ifdef __cplusplus
14693 extern "C"
14694 #endif
14695 char XineramaQueryExtension ();
14696 int
14697 main ()
14698 {
14699 return XineramaQueryExtension ();
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_link "$LINENO"; then :
14705 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14706 else
14707 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14714 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14715 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14716 HAVE_XINERAMA=yes
14717 fi
14718
14719 fi
14720
14721
14722 if test $HAVE_XINERAMA = yes; then
14723 XINERAMA_LIBS=-lXinerama
14724
14725 fi
14726 fi
14727 if test $HAVE_XINERAMA = yes; then
14728
14729 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14730
14731 fi
14732 fi
14733
14734
14735 ### Use libxml (-lxml2) if available
14736 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14737 HAVE_LIBXML2=no
14738 if test "${with_xml2}" != "no"; then
14739 ### I'm not sure what the version number should be, so I just guessed.
14740
14741 succeeded=no
14742
14743 if test "$PKG_CONFIG" = "no" ; then
14744 HAVE_LIBXML2=no
14745 else
14746 PKG_CONFIG_MIN_VERSION=0.9.0
14747 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14749 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14750
14751 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14752 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14753 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14754 edit_cflags="
14755 s,///*,/,g
14756 s/^/ /
14757 s/ -I/ $isystem/g
14758 s/^ //
14759 "
14760 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14761 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14763 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14764 succeeded=yes
14765 else
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14767 $as_echo "no" >&6; }
14768 LIBXML2_CFLAGS=""
14769 LIBXML2_LIBS=""
14770 ## If we have a custom action on failure, don't print errors, but
14771 ## do set a variable so people can do so. Do it in a subshell
14772 ## to capture any diagnostics in invoking pkg-config.
14773 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14774
14775 fi
14776
14777
14778
14779 else
14780 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14781 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14782 fi
14783 fi
14784
14785 if test $succeeded = yes; then
14786 HAVE_LIBXML2=yes
14787 else
14788 HAVE_LIBXML2=no
14789 fi
14790
14791 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14792 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14793 SAVE_CPPFLAGS="$CPPFLAGS"
14794 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14795 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14796 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14797 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14798 "
14799 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14800 HAVE_LIBXML2=yes
14801 fi
14802
14803 fi
14804
14805
14806 CPPFLAGS="$SAVE_CPPFLAGS"
14807 if test "${HAVE_LIBXML2}" = "yes"; then
14808 LIBXML2_LIBS="-lxml2"
14809 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14810 fi
14811 fi
14812 if test "${HAVE_LIBXML2}" = "yes"; then
14813 if test "${opsys}" != "mingw32"; then
14814 LIBS="$LIBXML2_LIBS $LIBS"
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14816 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14817 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820 ac_check_lib_save_LIBS=$LIBS
14821 LIBS="-lxml2 $LIBS"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 char htmlReadMemory ();
14832 int
14833 main ()
14834 {
14835 return htmlReadMemory ();
14836 ;
14837 return 0;
14838 }
14839 _ACEOF
14840 if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_lib_xml2_htmlReadMemory=yes
14842 else
14843 ac_cv_lib_xml2_htmlReadMemory=no
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14850 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14851 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14852 HAVE_LIBXML2=yes
14853 else
14854 HAVE_LIBXML2=no
14855 fi
14856
14857 else
14858 LIBXML2_LIBS=""
14859 fi
14860 if test "${HAVE_LIBXML2}" = "yes"; then
14861
14862 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14863
14864 else
14865 LIBXML2_LIBS=""
14866 LIBXML2_CFLAGS=""
14867 fi
14868 fi
14869 fi
14870
14871
14872
14873 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14874 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14875 if test "${opsys}" = "mingw32"; then
14876 emacs_cv_netdb_declares_h_errno=yes
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14879 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14880 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 #include <netdb.h>
14886 int
14887 main ()
14888 {
14889 return h_errno;
14890 ;
14891 return 0;
14892 }
14893 _ACEOF
14894 if ac_fn_c_try_link "$LINENO"; then :
14895 emacs_cv_netdb_declares_h_errno=yes
14896 else
14897 emacs_cv_netdb_declares_h_errno=no
14898 fi
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14903 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14904 if test $emacs_cv_netdb_declares_h_errno = yes; then
14905
14906 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14907
14908 fi
14909
14910 # sqrt and other floating-point functions such as fmod and frexp
14911 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14912 if test "${opsys}" != "mingw32"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14914 $as_echo_n "checking for sqrt in -lm... " >&6; }
14915 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 ac_check_lib_save_LIBS=$LIBS
14919 LIBS="-lm $LIBS"
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14926 #ifdef __cplusplus
14927 extern "C"
14928 #endif
14929 char sqrt ();
14930 int
14931 main ()
14932 {
14933 return sqrt ();
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_link "$LINENO"; then :
14939 ac_cv_lib_m_sqrt=yes
14940 else
14941 ac_cv_lib_m_sqrt=no
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14948 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14949 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14950 cat >>confdefs.h <<_ACEOF
14951 #define HAVE_LIBM 1
14952 _ACEOF
14953
14954 LIBS="-lm $LIBS"
14955
14956 fi
14957
14958 fi
14959
14960 # Check for mail-locking functions in a "mail" library. Probably this should
14961 # have the same check as for liblockfile below.
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14963 $as_echo_n "checking for maillock in -lmail... " >&6; }
14964 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 ac_check_lib_save_LIBS=$LIBS
14968 LIBS="-lmail $LIBS"
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char maillock ();
14979 int
14980 main ()
14981 {
14982 return maillock ();
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_mail_maillock=yes
14989 else
14990 ac_cv_lib_mail_maillock=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14997 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14998 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14999 have_mail=yes
15000 else
15001 have_mail=no
15002 fi
15003
15004 if test $have_mail = yes; then
15005 LIBS_MAIL=-lmail
15006 LIBS="$LIBS_MAIL $LIBS"
15007
15008 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
15009
15010 else
15011 LIBS_MAIL=
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
15014 $as_echo_n "checking for maillock in -llockfile... " >&6; }
15015 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 ac_check_lib_save_LIBS=$LIBS
15019 LIBS="-llockfile $LIBS"
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15026 #ifdef __cplusplus
15027 extern "C"
15028 #endif
15029 char maillock ();
15030 int
15031 main ()
15032 {
15033 return maillock ();
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_lockfile_maillock=yes
15040 else
15041 ac_cv_lib_lockfile_maillock=no
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 LIBS=$ac_check_lib_save_LIBS
15046 fi
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
15048 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
15049 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
15050 have_lockfile=yes
15051 else
15052 have_lockfile=no
15053 fi
15054
15055 if test $have_lockfile = yes; then
15056 LIBS_MAIL=-llockfile
15057 LIBS="$LIBS_MAIL $LIBS"
15058
15059 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
15060
15061 else
15062 # If we have the shared liblockfile, assume we must use it for mail
15063 # locking (e.g. Debian). If we couldn't link against liblockfile
15064 # (no liblockfile.a installed), ensure that we don't need to.
15065 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15066 set dummy liblockfile.so; ac_word=$2
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15068 $as_echo_n "checking for $ac_word... " >&6; }
15069 if test "${ac_cv_prog_liblockfile+set}" = set; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 if test -n "$liblockfile"; then
15073 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15074 else
15075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15077 for as_dir in $as_dummy
15078 do
15079 IFS=$as_save_IFS
15080 test -z "$as_dir" && as_dir=.
15081 for ac_exec_ext in '' $ac_executable_extensions; do
15082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15083 ac_cv_prog_liblockfile="yes"
15084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15085 break 2
15086 fi
15087 done
15088 done
15089 IFS=$as_save_IFS
15090
15091 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15092 fi
15093 fi
15094 liblockfile=$ac_cv_prog_liblockfile
15095 if test -n "$liblockfile"; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15097 $as_echo "$liblockfile" >&6; }
15098 else
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15100 $as_echo "no" >&6; }
15101 fi
15102
15103
15104 if test $ac_cv_prog_liblockfile = yes; then
15105 as_fn_error "Shared liblockfile found but can't link against it.
15106 This probably means that movemail could lose mail.
15107 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15108 fi
15109 fi
15110
15111
15112
15113
15114
15115 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15116 ## interlock access to the mail spool. The alternative is a lock file named
15117 ## /usr/spool/mail/$USER.lock.
15118 mail_lock=no
15119 case "$opsys" in
15120 aix4-2) mail_lock="lockf" ;;
15121
15122 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
15123
15124 ## On GNU/Linux systems, both methods are used by various mail programs.
15125 ## I assume most people are using newer mailers that have heard of flock.
15126 ## Change this if you need to.
15127 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15128 ## configure gets the right answers, and that means *NOT* using flock.
15129 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15130 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15131 ## Debian maintainer hasn't provided a clean fix for Emacs.
15132 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15133 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15134 ## correct logic. -- fx
15135 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15136 ## liblockfile is a Free Software replacement for libmail, used on
15137 ## Debian systems and elsewhere. -rfr.
15138 gnu-*)
15139 mail_lock="flock"
15140 if test $have_mail = yes || test $have_lockfile = yes; then
15141 test $ac_cv_header_maillock_h = yes && mail_lock=no
15142 fi
15143 ;;
15144
15145 mingw32)
15146 mail_lock="none-needed" ;;
15147 esac
15148
15149 BLESSMAIL_TARGET=
15150 case "$mail_lock" in
15151 flock)
15152 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15153 ;;
15154
15155 lockf)
15156 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15157 ;;
15158
15159 none-needed) ;;
15160
15161 *) BLESSMAIL_TARGET="need-blessmail" ;;
15162 esac
15163
15164
15165
15166 for ac_func in accept4 gethostname \
15167 getrusage get_current_dir_name \
15168 lrand48 \
15169 select getpagesize setlocale \
15170 getrlimit setrlimit shutdown getaddrinfo \
15171 strsignal setitimer \
15172 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15173 gai_strerror getline getdelim sync \
15174 difftime posix_memalign \
15175 getpwent endpwent getgrent endgrent \
15176 touchlock \
15177 cfmakeraw cfsetspeed copysign __executable_start log2
15178 do :
15179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15181 eval as_val=\$$as_ac_var
15182 if test "x$as_val" = x""yes; then :
15183 cat >>confdefs.h <<_ACEOF
15184 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15185 _ACEOF
15186
15187 fi
15188 done
15189
15190
15191 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15192 ## has a broken `rint' in some library versions including math library
15193 ## version number A.09.05.
15194 ## You can fix the math library by installing patch number PHSS_4630.
15195 ## But we can fix it more reliably for Emacs by just not using rint.
15196 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15197 case $opsys in
15198 hpux*) : ;;
15199 *) for ac_func in random rint
15200 do :
15201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15203 eval as_val=\$$as_ac_var
15204 if test "x$as_val" = x""yes; then :
15205 cat >>confdefs.h <<_ACEOF
15206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15207 _ACEOF
15208
15209 fi
15210 done
15211 ;;
15212 esac
15213
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15215 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15216 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221
15222 int
15223 main ()
15224 {
15225 __builtin_unwind_init ();
15226 ;
15227 return 0;
15228 }
15229 _ACEOF
15230 if ac_fn_c_try_link "$LINENO"; then :
15231 emacs_cv_func___builtin_unwind_init=yes
15232 else
15233 emacs_cv_func___builtin_unwind_init=no
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15239 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15240 if test $emacs_cv_func___builtin_unwind_init = yes; then
15241
15242 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15243
15244 fi
15245
15246
15247
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15251 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15252 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 while :; do
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 #include <sys/types.h> /* for off_t */
15259 #include <stdio.h>
15260 int
15261 main ()
15262 {
15263 int (*fp) (FILE *, off_t, int) = fseeko;
15264 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15265 ;
15266 return 0;
15267 }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 ac_cv_sys_largefile_source=no; break
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #define _LARGEFILE_SOURCE 1
15277 #include <sys/types.h> /* for off_t */
15278 #include <stdio.h>
15279 int
15280 main ()
15281 {
15282 int (*fp) (FILE *, off_t, int) = fseeko;
15283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15284 ;
15285 return 0;
15286 }
15287 _ACEOF
15288 if ac_fn_c_try_link "$LINENO"; then :
15289 ac_cv_sys_largefile_source=1; break
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 ac_cv_sys_largefile_source=unknown
15294 break
15295 done
15296 fi
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15298 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15299 case $ac_cv_sys_largefile_source in #(
15300 no | unknown) ;;
15301 *)
15302 cat >>confdefs.h <<_ACEOF
15303 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15304 _ACEOF
15305 ;;
15306 esac
15307 rm -rf conftest*
15308
15309 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15310 # in glibc 2.1.3, but that breaks too many other things.
15311 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15312 if test $ac_cv_sys_largefile_source != unknown; then
15313
15314 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15315
15316 fi
15317
15318
15319 # UNIX98 PTYs.
15320 for ac_func in grantpt
15321 do :
15322 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15323 if test "x$ac_cv_func_grantpt" = x""yes; then :
15324 cat >>confdefs.h <<_ACEOF
15325 #define HAVE_GRANTPT 1
15326 _ACEOF
15327
15328 fi
15329 done
15330
15331
15332 # PTY-related GNU extensions.
15333 for ac_func in getpt posix_openpt
15334 do :
15335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15337 eval as_val=\$$as_ac_var
15338 if test "x$as_val" = x""yes; then :
15339 cat >>confdefs.h <<_ACEOF
15340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344 done
15345
15346
15347 # Check this now, so that we will NOT find the above functions in ncurses.
15348 # That is because we have not set up to link ncurses in lib-src.
15349 # It's better to believe a function is not available
15350 # than to expect to find it in ncurses.
15351 # Also we need tputs and friends to be able to build at all.
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15353 $as_echo_n "checking for library containing tputs... " >&6; }
15354 # Run a test program that contains a call to tputs, a call that is
15355 # never executed. This tests whether a pre-'main' dynamic linker
15356 # works with the library. It's too much trouble to actually call
15357 # tputs in the test program, due to portability hassles. When
15358 # cross-compiling, assume the test program will run if it links.
15359
15360 if test "${opsys}" = "mingw32"; then
15361 msg='none required'
15362 else
15363 # Maybe curses should be tried earlier?
15364 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15365 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15366 OLIBS=$LIBS
15367 if test -z "$tputs_library"; then
15368 LIBS_TERMCAP=
15369 msg='none required'
15370 else
15371 LIBS_TERMCAP=-l$tputs_library
15372 msg=$LIBS_TERMCAP
15373 LIBS="$LIBS_TERMCAP $LIBS"
15374 fi
15375 if test "$cross_compiling" = yes; then :
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378
15379 extern void tputs (const char *, int, int (*)(int));
15380 int main (int argc, char **argv)
15381 {
15382 if (argc == 10000)
15383 tputs (argv[0], 0, 0);
15384 return 0;
15385 }
15386
15387 _ACEOF
15388 if ac_fn_c_try_link "$LINENO"; then :
15389
15390 else
15391 msg=no
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398
15399 extern void tputs (const char *, int, int (*)(int));
15400 int main (int argc, char **argv)
15401 {
15402 if (argc == 10000)
15403 tputs (argv[0], 0, 0);
15404 return 0;
15405 }
15406
15407 _ACEOF
15408 if ac_fn_c_try_run "$LINENO"; then :
15409
15410 else
15411 msg=no
15412 fi
15413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15414 conftest.$ac_objext conftest.beam conftest.$ac_ext
15415 fi
15416
15417 LIBS=$OLIBS
15418 if test "X$msg" != Xno; then
15419 break
15420 fi
15421 done
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15424 $as_echo "$msg" >&6; }
15425 if test "X$msg" = Xno; then
15426 as_fn_error "The required function \`tputs' was not found in any library.
15427 The following libraries were tried (in order):
15428 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15429 Please try installing whichever of these libraries is most appropriate
15430 for your system, together with its header files.
15431 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15432 fi
15433
15434 ## Use termcap instead of terminfo?
15435 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15436 TERMINFO=yes
15437 ## FIXME? In the cases below where we unconditionally set
15438 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15439 ## if that was found above to have tputs.
15440 ## Should we use the gnu* logic everywhere?
15441 case "$opsys" in
15442 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15443 ## The ncurses library has been moved out of the System framework in
15444 ## Mac OS X 10.2. So if configure detects it, set the command-line
15445 ## option to use it.
15446 darwin) LIBS_TERMCAP="-lncurses" ;;
15447
15448 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15449
15450 freebsd)
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15452 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15453 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15454 $as_echo_n "(cached) " >&6
15455 else
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 #include <osreldate.h>
15459 int
15460 main ()
15461 {
15462 #if __FreeBSD_version < 400000
15463 fail;
15464 #endif
15465
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 if ac_fn_c_try_link "$LINENO"; then :
15471 emacs_cv_freebsd_terminfo=yes
15472 else
15473 emacs_cv_freebsd_terminfo=no
15474 fi
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 fi
15478
15479
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15481 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15482
15483 if test $emacs_cv_freebsd_terminfo = yes; then
15484 LIBS_TERMCAP="-lncurses"
15485 else
15486 TERMINFO=no
15487 LIBS_TERMCAP="-ltermcap"
15488 fi
15489 ;;
15490
15491 mingw32)
15492 TERMINFO=no
15493 LIBS_TERMCAP=
15494 ;;
15495
15496 netbsd)
15497 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15498 TERMINFO=no
15499 LIBS_TERMCAP="-ltermcap"
15500 fi
15501 ;;
15502
15503 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15504
15505 ## hpux: Make sure we get select from libc rather than from libcurses
15506 ## because libcurses on HPUX 10.10 has a broken version of select.
15507 ## We used to use -lc -lcurses, but this may be cleaner.
15508 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15509 # set that way, now it uses the default). Isn't this a contradiction?
15510 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15511
15512 esac
15513
15514 TERMCAP_OBJ=tparam.o
15515 if test $TERMINFO = yes; then
15516
15517 $as_echo "#define TERMINFO 1" >>confdefs.h
15518
15519 TERMCAP_OBJ=terminfo.o
15520 fi
15521 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15522
15523 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15524
15525 fi
15526
15527
15528
15529
15530 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15531 # On Darwin, res_init appears not to be useful: see bug#562 and
15532 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15533 resolv=no
15534
15535 if test $opsys != darwin; then
15536
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539 #include <netinet/in.h>
15540 #include <arpa/nameser.h>
15541 #include <resolv.h>
15542 int
15543 main ()
15544 {
15545 return res_init();
15546 ;
15547 return 0;
15548 }
15549 _ACEOF
15550 if ac_fn_c_try_link "$LINENO"; then :
15551 have_res_init=yes
15552 else
15553 have_res_init=no
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557 if test "$have_res_init" = no; then
15558 OLIBS="$LIBS"
15559 LIBS="$LIBS -lresolv"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15561 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 #include <netinet/in.h>
15565 #include <arpa/nameser.h>
15566 #include <resolv.h>
15567 int
15568 main ()
15569 {
15570 return res_init();
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 if ac_fn_c_try_link "$LINENO"; then :
15576 have_res_init=yes
15577 else
15578 have_res_init=no
15579 fi
15580 rm -f core conftest.err conftest.$ac_objext \
15581 conftest$ac_exeext conftest.$ac_ext
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15583 $as_echo "$have_res_init" >&6; }
15584 if test "$have_res_init" = yes ; then
15585 resolv=yes
15586 fi
15587 LIBS="$OLIBS"
15588 fi
15589
15590 if test "$have_res_init" = yes; then
15591
15592 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15593
15594 fi
15595 fi
15596 # Do we need the Hesiod library to provide the support routines?
15597 LIBHESIOD=
15598 if test "$with_hesiod" != no ; then
15599 # Don't set $LIBS here -- see comments above. FIXME which comments?
15600 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15601 if test "x$ac_cv_func_res_send" = x""yes; then :
15602
15603 else
15604 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15605 if test "x$ac_cv_func___res_send" = x""yes; then :
15606
15607 else
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15609 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15610 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15611 $as_echo_n "(cached) " >&6
15612 else
15613 ac_check_lib_save_LIBS=$LIBS
15614 LIBS="-lresolv $LIBS"
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617
15618 /* Override any GCC internal prototype to avoid an error.
15619 Use char because int might match the return type of a GCC
15620 builtin and then its argument prototype would still apply. */
15621 #ifdef __cplusplus
15622 extern "C"
15623 #endif
15624 char res_send ();
15625 int
15626 main ()
15627 {
15628 return res_send ();
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"; then :
15634 ac_cv_lib_resolv_res_send=yes
15635 else
15636 ac_cv_lib_resolv_res_send=no
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_check_lib_save_LIBS
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15643 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15644 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15645 resolv=yes
15646 else
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15648 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15649 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15650 $as_echo_n "(cached) " >&6
15651 else
15652 ac_check_lib_save_LIBS=$LIBS
15653 LIBS="-lresolv $LIBS"
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656
15657 /* Override any GCC internal prototype to avoid an error.
15658 Use char because int might match the return type of a GCC
15659 builtin and then its argument prototype would still apply. */
15660 #ifdef __cplusplus
15661 extern "C"
15662 #endif
15663 char __res_send ();
15664 int
15665 main ()
15666 {
15667 return __res_send ();
15668 ;
15669 return 0;
15670 }
15671 _ACEOF
15672 if ac_fn_c_try_link "$LINENO"; then :
15673 ac_cv_lib_resolv___res_send=yes
15674 else
15675 ac_cv_lib_resolv___res_send=no
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15679 LIBS=$ac_check_lib_save_LIBS
15680 fi
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15682 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15683 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15684 resolv=yes
15685 fi
15686
15687 fi
15688
15689 fi
15690
15691 fi
15692
15693 if test "$resolv" = yes ; then
15694 RESOLVLIB=-lresolv
15695 else
15696 RESOLVLIB=
15697 fi
15698 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15699 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15700
15701 else
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15703 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15704 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 ac_check_lib_save_LIBS=$LIBS
15708 LIBS="-lhesiod $RESOLVLIB $LIBS"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711
15712 /* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15715 #ifdef __cplusplus
15716 extern "C"
15717 #endif
15718 char hes_getmailhost ();
15719 int
15720 main ()
15721 {
15722 return hes_getmailhost ();
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 if ac_fn_c_try_link "$LINENO"; then :
15728 ac_cv_lib_hesiod_hes_getmailhost=yes
15729 else
15730 ac_cv_lib_hesiod_hes_getmailhost=no
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
15734 LIBS=$ac_check_lib_save_LIBS
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15737 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15738 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15739 hesiod=yes
15740 else
15741 :
15742 fi
15743
15744 fi
15745
15746
15747 if test x"$hesiod" = xyes; then
15748 LIBHESIOD=-lhesiod
15749 fi
15750 fi
15751
15752
15753 # Do we need libresolv (due to res_init or Hesiod)?
15754 if test "$resolv" = yes && test $opsys != darwin; then
15755 LIBRESOLV=-lresolv
15756 else
15757 LIBRESOLV=
15758 fi
15759
15760
15761 # These tell us which Kerberos-related libraries to use.
15762 COM_ERRLIB=
15763 CRYPTOLIB=
15764 KRB5LIB=
15765 DESLIB=
15766 KRB4LIB=
15767
15768 if test "${with_kerberos}" != no; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15770 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15771 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15772 $as_echo_n "(cached) " >&6
15773 else
15774 ac_check_lib_save_LIBS=$LIBS
15775 LIBS="-lcom_err $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 char com_err ();
15786 int
15787 main ()
15788 {
15789 return com_err ();
15790 ;
15791 return 0;
15792 }
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_com_err_com_err=yes
15796 else
15797 ac_cv_lib_com_err_com_err=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15804 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15805 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15806 have_com_err=yes
15807 else
15808 have_com_err=no
15809 fi
15810
15811 if test $have_com_err = yes; then
15812 COM_ERRLIB=-lcom_err
15813 LIBS="$COM_ERRLIB $LIBS"
15814 fi
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15816 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15817 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 ac_check_lib_save_LIBS=$LIBS
15821 LIBS="-lcrypto $LIBS"
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824
15825 /* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 char mit_des_cbc_encrypt ();
15832 int
15833 main ()
15834 {
15835 return mit_des_cbc_encrypt ();
15836 ;
15837 return 0;
15838 }
15839 _ACEOF
15840 if ac_fn_c_try_link "$LINENO"; then :
15841 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15842 else
15843 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15847 LIBS=$ac_check_lib_save_LIBS
15848 fi
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15850 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15851 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15852 have_crypto=yes
15853 else
15854 have_crypto=no
15855 fi
15856
15857 if test $have_crypto = yes; then
15858 CRYPTOLIB=-lcrypto
15859 LIBS="$CRYPTOLIB $LIBS"
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15862 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15863 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 ac_check_lib_save_LIBS=$LIBS
15867 LIBS="-lk5crypto $LIBS"
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870
15871 /* Override any GCC internal prototype to avoid an error.
15872 Use char because int might match the return type of a GCC
15873 builtin and then its argument prototype would still apply. */
15874 #ifdef __cplusplus
15875 extern "C"
15876 #endif
15877 char mit_des_cbc_encrypt ();
15878 int
15879 main ()
15880 {
15881 return mit_des_cbc_encrypt ();
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"; then :
15887 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15888 else
15889 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15896 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15897 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15898 have_k5crypto=yes
15899 else
15900 have_k5crypto=no
15901 fi
15902
15903 if test $have_k5crypto = yes; then
15904 CRYPTOLIB=-lk5crypto
15905 LIBS="$CRYPTOLIB $LIBS"
15906 fi
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15908 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15909 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-lkrb5 $LIBS"
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916
15917 /* Override any GCC internal prototype to avoid an error.
15918 Use char because int might match the return type of a GCC
15919 builtin and then its argument prototype would still apply. */
15920 #ifdef __cplusplus
15921 extern "C"
15922 #endif
15923 char krb5_init_context ();
15924 int
15925 main ()
15926 {
15927 return krb5_init_context ();
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 if ac_fn_c_try_link "$LINENO"; then :
15933 ac_cv_lib_krb5_krb5_init_context=yes
15934 else
15935 ac_cv_lib_krb5_krb5_init_context=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15940 fi
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15942 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15943 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15944 have_krb5=yes
15945 else
15946 have_krb5=no
15947 fi
15948
15949 if test $have_krb5=yes; then
15950 KRB5LIB=-lkrb5
15951 LIBS="$KRB5LIB $LIBS"
15952 fi
15953 if test "${with_kerberos5}" = no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15955 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15956 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15957 $as_echo_n "(cached) " >&6
15958 else
15959 ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-ldes425 $LIBS"
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char des_cbc_encrypt ();
15971 int
15972 main ()
15973 {
15974 return des_cbc_encrypt ();
15975 ;
15976 return 0;
15977 }
15978 _ACEOF
15979 if ac_fn_c_try_link "$LINENO"; then :
15980 ac_cv_lib_des425_des_cbc_encrypt=yes
15981 else
15982 ac_cv_lib_des425_des_cbc_encrypt=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext \
15985 conftest$ac_exeext conftest.$ac_ext
15986 LIBS=$ac_check_lib_save_LIBS
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15989 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15990 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15991 have_des425=yes
15992 else
15993 have_des425=no
15994 fi
15995
15996 if test $have_des425 = yes; then
15997 DESLIB=-ldes425
15998 LIBS="$DESLIB $LIBS"
15999 else
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16001 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16002 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-ldes $LIBS"
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009
16010 /* Override any GCC internal prototype to avoid an error.
16011 Use char because int might match the return type of a GCC
16012 builtin and then its argument prototype would still apply. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 #endif
16016 char des_cbc_encrypt ();
16017 int
16018 main ()
16019 {
16020 return des_cbc_encrypt ();
16021 ;
16022 return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 ac_cv_lib_des_des_cbc_encrypt=yes
16027 else
16028 ac_cv_lib_des_des_cbc_encrypt=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16033 fi
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16035 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16036 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16037 have_des=yes
16038 else
16039 have_des=no
16040 fi
16041
16042 if test $have_des = yes; then
16043 DESLIB=-ldes
16044 LIBS="$DESLIB $LIBS"
16045 fi
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16048 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16049 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 ac_check_lib_save_LIBS=$LIBS
16053 LIBS="-lkrb4 $LIBS"
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056
16057 /* Override any GCC internal prototype to avoid an error.
16058 Use char because int might match the return type of a GCC
16059 builtin and then its argument prototype would still apply. */
16060 #ifdef __cplusplus
16061 extern "C"
16062 #endif
16063 char krb_get_cred ();
16064 int
16065 main ()
16066 {
16067 return krb_get_cred ();
16068 ;
16069 return 0;
16070 }
16071 _ACEOF
16072 if ac_fn_c_try_link "$LINENO"; then :
16073 ac_cv_lib_krb4_krb_get_cred=yes
16074 else
16075 ac_cv_lib_krb4_krb_get_cred=no
16076 fi
16077 rm -f core conftest.err conftest.$ac_objext \
16078 conftest$ac_exeext conftest.$ac_ext
16079 LIBS=$ac_check_lib_save_LIBS
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16082 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16083 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
16084 have_krb4=yes
16085 else
16086 have_krb4=no
16087 fi
16088
16089 if test $have_krb4 = yes; then
16090 KRB4LIB=-lkrb4
16091 LIBS="$KRB4LIB $LIBS"
16092 else
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16094 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16095 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 ac_check_lib_save_LIBS=$LIBS
16099 LIBS="-lkrb $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102
16103 /* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 char krb_get_cred ();
16110 int
16111 main ()
16112 {
16113 return krb_get_cred ();
16114 ;
16115 return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_krb_krb_get_cred=yes
16120 else
16121 ac_cv_lib_krb_krb_get_cred=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16128 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16129 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
16130 have_krb=yes
16131 else
16132 have_krb=no
16133 fi
16134
16135 if test $have_krb = yes; then
16136 KRB4LIB=-lkrb
16137 LIBS="$KRB4LIB $LIBS"
16138 fi
16139 fi
16140 fi
16141
16142 if test "${with_kerberos5}" != no; then
16143 for ac_header in krb5.h
16144 do :
16145 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16146 if test "x$ac_cv_header_krb5_h" = x""yes; then :
16147 cat >>confdefs.h <<_ACEOF
16148 #define HAVE_KRB5_H 1
16149 _ACEOF
16150 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16151 "
16152 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
16153
16154 cat >>confdefs.h <<_ACEOF
16155 #define HAVE_KRB5_ERROR_TEXT 1
16156 _ACEOF
16157
16158
16159 fi
16160 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16161 "
16162 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
16163
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_KRB5_ERROR_E_TEXT 1
16166 _ACEOF
16167
16168
16169 fi
16170
16171 fi
16172
16173 done
16174
16175 else
16176 for ac_header in krb.h
16177 do :
16178 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16179 if test "x$ac_cv_header_krb_h" = x""yes; then :
16180 cat >>confdefs.h <<_ACEOF
16181 #define HAVE_KRB_H 1
16182 _ACEOF
16183
16184 else
16185 for ac_header in kerberosIV/krb.h
16186 do :
16187 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16188 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
16189 cat >>confdefs.h <<_ACEOF
16190 #define HAVE_KERBEROSIV_KRB_H 1
16191 _ACEOF
16192
16193 else
16194 for ac_header in kerberos/krb.h
16195 do :
16196 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16197 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
16198 cat >>confdefs.h <<_ACEOF
16199 #define HAVE_KERBEROS_KRB_H 1
16200 _ACEOF
16201
16202 fi
16203
16204 done
16205
16206 fi
16207
16208 done
16209
16210 fi
16211
16212 done
16213
16214 fi
16215 for ac_header in com_err.h
16216 do :
16217 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16218 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16219 cat >>confdefs.h <<_ACEOF
16220 #define HAVE_COM_ERR_H 1
16221 _ACEOF
16222
16223 fi
16224
16225 done
16226
16227 fi
16228
16229
16230
16231
16232
16233
16234
16235 for ac_header in valgrind/valgrind.h
16236 do :
16237 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16238 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
16239 cat >>confdefs.h <<_ACEOF
16240 #define HAVE_VALGRIND_VALGRIND_H 1
16241 _ACEOF
16242
16243 fi
16244
16245 done
16246
16247
16248
16249
16250
16251 for ac_func in $ac_func_list
16252 do :
16253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16255 eval as_val=\$$as_ac_var
16256 if test "x$as_val" = x""yes; then :
16257 cat >>confdefs.h <<_ACEOF
16258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16259 _ACEOF
16260
16261 fi
16262 done
16263
16264
16265
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16268 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16269 if test "${emacs_cv_localtime_cache+set}" = set; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 if test x$ac_cv_func_tzset = xyes; then
16273 if test "$cross_compiling" = yes; then :
16274 # If we have tzset, assume the worst when cross-compiling.
16275 emacs_cv_localtime_cache=yes
16276 else
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <time.h>
16280 char TZ_GMT0[] = "TZ=GMT0";
16281 char TZ_PST8[] = "TZ=PST8";
16282 main()
16283 {
16284 time_t now = time ((time_t *) 0);
16285 int hour_GMT0, hour_unset;
16286 if (putenv (TZ_GMT0) != 0)
16287 exit (1);
16288 hour_GMT0 = localtime (&now)->tm_hour;
16289 unsetenv("TZ");
16290 hour_unset = localtime (&now)->tm_hour;
16291 if (putenv (TZ_PST8) != 0)
16292 exit (1);
16293 if (localtime (&now)->tm_hour == hour_GMT0)
16294 exit (1);
16295 unsetenv("TZ");
16296 if (localtime (&now)->tm_hour != hour_unset)
16297 exit (1);
16298 exit (0);
16299 }
16300 _ACEOF
16301 if ac_fn_c_try_run "$LINENO"; then :
16302 emacs_cv_localtime_cache=no
16303 else
16304 emacs_cv_localtime_cache=yes
16305 fi
16306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16307 conftest.$ac_objext conftest.beam conftest.$ac_ext
16308 fi
16309
16310 else
16311 # If we lack tzset, report that localtime does not cache TZ,
16312 # since we can't invalidate the cache if we don't have tzset.
16313 emacs_cv_localtime_cache=no
16314 fi
16315 fi
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16317 $as_echo "$emacs_cv_localtime_cache" >&6; }
16318 if test $emacs_cv_localtime_cache = yes; then
16319
16320 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16321
16322 fi
16323
16324 ok_so_far=yes
16325 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16326 if test "x$ac_cv_func_socket" = x""yes; then :
16327
16328 else
16329 ok_so_far=no
16330 fi
16331
16332 if test $ok_so_far = yes; then
16333 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16334 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16335
16336 else
16337 ok_so_far=no
16338 fi
16339
16340
16341 fi
16342 if test $ok_so_far = yes; then
16343 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16344 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16345
16346 else
16347 ok_so_far=no
16348 fi
16349
16350
16351 fi
16352 if test $ok_so_far = yes; then
16353
16354 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16355
16356 fi
16357
16358 case $canonical in
16359 *-solaris2.4 | *-solaris2.4.*)
16360 : ${ac_cv_func_vfork_works=no};;
16361 esac
16362
16363 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16364 if test "x$ac_cv_type_pid_t" = x""yes; then :
16365
16366 else
16367
16368 cat >>confdefs.h <<_ACEOF
16369 #define pid_t int
16370 _ACEOF
16371
16372 fi
16373
16374 for ac_header in vfork.h
16375 do :
16376 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16377 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16378 cat >>confdefs.h <<_ACEOF
16379 #define HAVE_VFORK_H 1
16380 _ACEOF
16381
16382 fi
16383
16384 done
16385
16386 for ac_func in fork vfork
16387 do :
16388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16390 eval as_val=\$$as_ac_var
16391 if test "x$as_val" = x""yes; then :
16392 cat >>confdefs.h <<_ACEOF
16393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16394 _ACEOF
16395
16396 fi
16397 done
16398
16399 if test "x$ac_cv_func_fork" = xyes; then
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16401 $as_echo_n "checking for working fork... " >&6; }
16402 if test "${ac_cv_func_fork_works+set}" = set; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test "$cross_compiling" = yes; then :
16406 ac_cv_func_fork_works=cross
16407 else
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 $ac_includes_default
16411 int
16412 main ()
16413 {
16414
16415 /* By Ruediger Kuhlmann. */
16416 return fork () < 0;
16417
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_run "$LINENO"; then :
16423 ac_cv_func_fork_works=yes
16424 else
16425 ac_cv_func_fork_works=no
16426 fi
16427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16428 conftest.$ac_objext conftest.beam conftest.$ac_ext
16429 fi
16430
16431 fi
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16433 $as_echo "$ac_cv_func_fork_works" >&6; }
16434
16435 else
16436 ac_cv_func_fork_works=$ac_cv_func_fork
16437 fi
16438 if test "x$ac_cv_func_fork_works" = xcross; then
16439 case $host in
16440 *-*-amigaos* | *-*-msdosdjgpp*)
16441 # Override, as these systems have only a dummy fork() stub
16442 ac_cv_func_fork_works=no
16443 ;;
16444 *)
16445 ac_cv_func_fork_works=yes
16446 ;;
16447 esac
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16450 fi
16451 ac_cv_func_vfork_works=$ac_cv_func_vfork
16452 if test "x$ac_cv_func_vfork" = xyes; then
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16454 $as_echo_n "checking for working vfork... " >&6; }
16455 if test "${ac_cv_func_vfork_works+set}" = set; then :
16456 $as_echo_n "(cached) " >&6
16457 else
16458 if test "$cross_compiling" = yes; then :
16459 ac_cv_func_vfork_works=cross
16460 else
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 /* Thanks to Paul Eggert for this test. */
16464 $ac_includes_default
16465 #include <sys/wait.h>
16466 #ifdef HAVE_VFORK_H
16467 # include <vfork.h>
16468 #endif
16469 /* On some sparc systems, changes by the child to local and incoming
16470 argument registers are propagated back to the parent. The compiler
16471 is told about this with #include <vfork.h>, but some compilers
16472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16473 static variable whose address is put into a register that is
16474 clobbered by the vfork. */
16475 static void
16476 #ifdef __cplusplus
16477 sparc_address_test (int arg)
16478 # else
16479 sparc_address_test (arg) int arg;
16480 #endif
16481 {
16482 static pid_t child;
16483 if (!child) {
16484 child = vfork ();
16485 if (child < 0) {
16486 perror ("vfork");
16487 _exit(2);
16488 }
16489 if (!child) {
16490 arg = getpid();
16491 write(-1, "", 0);
16492 _exit (arg);
16493 }
16494 }
16495 }
16496
16497 int
16498 main ()
16499 {
16500 pid_t parent = getpid ();
16501 pid_t child;
16502
16503 sparc_address_test (0);
16504
16505 child = vfork ();
16506
16507 if (child == 0) {
16508 /* Here is another test for sparc vfork register problems. This
16509 test uses lots of local variables, at least as many local
16510 variables as main has allocated so far including compiler
16511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16513 reuse the register of parent for one of the local variables,
16514 since it will think that parent can't possibly be used any more
16515 in this routine. Assigning to the local variable will thus
16516 munge parent in the parent process. */
16517 pid_t
16518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16520 /* Convince the compiler that p..p7 are live; otherwise, it might
16521 use the same hardware register for all 8 local variables. */
16522 if (p != p1 || p != p2 || p != p3 || p != p4
16523 || p != p5 || p != p6 || p != p7)
16524 _exit(1);
16525
16526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16527 from child file descriptors. If the child closes a descriptor
16528 before it execs or exits, this munges the parent's descriptor
16529 as well. Test for this by closing stdout in the child. */
16530 _exit(close(fileno(stdout)) != 0);
16531 } else {
16532 int status;
16533 struct stat st;
16534
16535 while (wait(&status) != child)
16536 ;
16537 return (
16538 /* Was there some problem with vforking? */
16539 child < 0
16540
16541 /* Did the child fail? (This shouldn't happen.) */
16542 || status
16543
16544 /* Did the vfork/compiler bug occur? */
16545 || parent != getpid()
16546
16547 /* Did the file descriptor bug occur? */
16548 || fstat(fileno(stdout), &st) != 0
16549 );
16550 }
16551 }
16552 _ACEOF
16553 if ac_fn_c_try_run "$LINENO"; then :
16554 ac_cv_func_vfork_works=yes
16555 else
16556 ac_cv_func_vfork_works=no
16557 fi
16558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16559 conftest.$ac_objext conftest.beam conftest.$ac_ext
16560 fi
16561
16562 fi
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16564 $as_echo "$ac_cv_func_vfork_works" >&6; }
16565
16566 fi;
16567 if test "x$ac_cv_func_fork_works" = xcross; then
16568 ac_cv_func_vfork_works=$ac_cv_func_vfork
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16571 fi
16572
16573 if test "x$ac_cv_func_vfork_works" = xyes; then
16574
16575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16576
16577 else
16578
16579 $as_echo "#define vfork fork" >>confdefs.h
16580
16581 fi
16582 if test "x$ac_cv_func_fork_works" = xyes; then
16583
16584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16585
16586 fi
16587
16588
16589 for ac_func in snprintf
16590 do :
16591 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16592 if test "x$ac_cv_func_snprintf" = x""yes; then :
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_SNPRINTF 1
16595 _ACEOF
16596
16597 fi
16598 done
16599
16600
16601 XGSELOBJ=
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16603 $as_echo_n "checking whether GLib is linked in... " >&6; }
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16606 #include <glib.h>
16607
16608 int
16609 main ()
16610 {
16611 g_print ("Hello world");
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_c_try_link "$LINENO"; then :
16617 links_glib=yes
16618 else
16619 links_glib=no
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16624 $as_echo "$links_glib" >&6; }
16625 if test "${links_glib}" = "yes"; then
16626
16627 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16628
16629 if test "$HAVE_NS" = no;then
16630 XGSELOBJ=xgselect.o
16631 fi
16632 fi
16633
16634
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16636 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16637 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 #include <langinfo.h>
16643 int
16644 main ()
16645 {
16646 char* cs = nl_langinfo(CODESET);
16647 ;
16648 return 0;
16649 }
16650 _ACEOF
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 emacs_cv_langinfo_codeset=yes
16653 else
16654 emacs_cv_langinfo_codeset=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16658
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16661 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16662 if test $emacs_cv_langinfo_codeset = yes; then
16663
16664 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16665
16666 fi
16667
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16669 $as_echo_n "checking for mbstate_t... " >&6; }
16670 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 $ac_includes_default
16676 # include <wchar.h>
16677 int
16678 main ()
16679 {
16680 mbstate_t x; return sizeof x;
16681 ;
16682 return 0;
16683 }
16684 _ACEOF
16685 if ac_fn_c_try_compile "$LINENO"; then :
16686 ac_cv_type_mbstate_t=yes
16687 else
16688 ac_cv_type_mbstate_t=no
16689 fi
16690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691 fi
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16693 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16694 if test $ac_cv_type_mbstate_t = yes; then
16695
16696 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16697
16698 else
16699
16700 $as_echo "#define mbstate_t int" >>confdefs.h
16701
16702 fi
16703
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16705 $as_echo_n "checking for C restricted array declarations... " >&6; }
16706 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 void fred (int x[__restrict]);
16712 int
16713 main ()
16714 {
16715
16716 ;
16717 return 0;
16718 }
16719 _ACEOF
16720 if ac_fn_c_try_compile "$LINENO"; then :
16721 emacs_cv_c_restrict_arr=yes
16722 else
16723 emacs_cv_c_restrict_arr=no
16724 fi
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 fi
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16728 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16729 if test "$emacs_cv_c_restrict_arr" = yes; then
16730
16731 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16732
16733 fi
16734
16735
16736 if test "${opsys}" != "mingw32"; then
16737
16738 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16739
16740 fi
16741
16742
16743 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16744
16745
16746 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16747 if test "${opsys}" != "mingw32"; then
16748
16749 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16750
16751 fi
16752
16753
16754 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16755
16756
16757
16758
16759
16760 if test "${opsys}" = "mingw32"; then
16761 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16762
16763 else
16764 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16765
16766 fi
16767
16768
16769 if test "${opsys}" = "mingw32"; then
16770 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16771
16772 else
16773 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16774
16775 fi
16776
16777
16778 $as_echo "#define subprocesses 1" >>confdefs.h
16779
16780
16781
16782 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16783
16784
16785
16786
16787 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16788
16789
16790 if test "${opsys}" = "mingw32"; then
16791
16792 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16793
16794
16795
16796 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16797
16798
16799
16800 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16801
16802 else
16803
16804 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16805
16806
16807
16808 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16809
16810
16811
16812 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16813
16814 fi
16815
16816
16817
16818 case $opsys in
16819 aix4-2)
16820 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16821 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16822
16823 fi
16824 ;;
16825
16826 hpux*)
16827 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16828
16829 ;;
16830 esac
16831
16832
16833 case $opsys in
16834 irix6-5 | sol2* | unixware )
16835
16836 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16837
16838 ;;
16839 esac
16840
16841 emacs_broken_SIGIO=no
16842
16843 case $opsys in
16844 hpux* | irix6-5 | openbsd | sol2* | unixware )
16845 emacs_broken_SIGIO=yes
16846 ;;
16847
16848 aix4-2)
16849
16850 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16851
16852 ;;
16853
16854 freebsd)
16855
16856 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16857
16858 ;;
16859 esac
16860
16861 case $opsys in
16862 gnu-* | sol2-10 )
16863
16864 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16865
16866 ;;
16867 esac
16868
16869 case $opsys in
16870 darwin | dragonfly | freebsd | netbsd | openbsd )
16871
16872 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16873
16874 ;;
16875 esac
16876
16877 case $opsys in
16878 netbsd | openbsd) sound_device="/dev/audio" ;;
16879 *) sound_device="/dev/dsp" ;;
16880 esac
16881
16882
16883 cat >>confdefs.h <<_ACEOF
16884 #define DEFAULT_SOUND_DEVICE "$sound_device"
16885 _ACEOF
16886
16887
16888
16889 case $opsys in
16890 darwin | gnu-linux | gnu-kfreebsd )
16891
16892 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16893
16894 ;;
16895 esac
16896
16897
16898 case $opsys in
16899 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16900
16901 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16902
16903 ;;
16904 esac
16905
16906
16907
16908
16909
16910
16911
16912
16913 case $opsys in
16914 aix4-2 )
16915 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16916
16917 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16918
16919 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16920
16921 ;;
16922
16923 cygwin )
16924 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16925
16926 $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
16927
16928 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16929
16930 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16931
16932 ;;
16933
16934 darwin )
16935 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16936
16937 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16938
16939 $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
16940
16941 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16942
16943 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16944
16945 ;;
16946
16947 gnu | openbsd )
16948 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16949
16950 ;;
16951
16952 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16953 if test "x$ac_cv_func_grantpt" = xyes; then
16954
16955 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16956
16957 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16958
16959 $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) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16960
16961 if test "x$ac_cv_func_posix_openpt" = xyes; then
16962 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16963
16964 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16965
16966 elif test "x$ac_cv_func_getpt" = xyes; then
16967 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16968
16969 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16970
16971 else
16972 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16973
16974 fi
16975 else
16976 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16977
16978 fi
16979 ;;
16980
16981 hpux*)
16982 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16983
16984 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16985
16986 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16987
16988 ;;
16989
16990 irix6-5 )
16991 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16992
16993 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16994
16995 $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(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &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
16996
16997 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16998
16999 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
17000
17001 ;;
17002
17003 sol2* )
17004 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
17005
17006 ;;
17007
17008 unixware )
17009 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
17010
17011 ;;
17012 esac
17013
17014
17015 case $opsys in
17016 sol2* | unixware )
17017 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
17018
17019 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
17020
17021
17022 $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
17023
17024 ;;
17025 esac
17026
17027
17028
17029
17030 case $opsys in
17031 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
17032 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17033
17034 ;;
17035
17036 gnu-linux | gnu-kfreebsd )
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
17039 $as_echo_n "checking for signals via characters... " >&6; }
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042
17043 #include <linux/version.h>
17044 #if LINUX_VERSION_CODE < 0x20400
17045 # error "Linux version too old"
17046 #endif
17047
17048 int
17049 main ()
17050 {
17051
17052 ;
17053 return 0;
17054 }
17055 _ACEOF
17056 if ac_fn_c_try_cpp "$LINENO"; then :
17057 emacs_signals_via_chars=yes
17058 else
17059 emacs_signals_via_chars=no
17060 fi
17061 rm -f conftest.err conftest.$ac_ext
17062
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
17064 $as_echo "$emacs_signals_via_chars" >&6; }
17065 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17066
17067 ;;
17068 esac
17069
17070
17071
17072
17073 case $opsys in
17074 aix*)
17075 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
17076
17077 ;;
17078 hpux*)
17079 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
17080
17081 ;;
17082 irix6-5)
17083 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
17084
17085 ;;
17086 esac
17087
17088
17089
17090
17091 case $opsys in
17092 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17093 ;;
17094
17095 gnu | dragonfly | freebsd | netbsd | openbsd )
17096
17097 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17098
17099 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17100
17101 ;;
17102
17103 gnu-linux | gnu-kfreebsd )
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106
17107 #ifndef __ia64__
17108 # error "not ia64"
17109 #endif
17110
17111 int
17112 main ()
17113 {
17114
17115 ;
17116 return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_cpp "$LINENO"; then :
17120
17121 $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
17122
17123 fi
17124 rm -f conftest.err conftest.$ac_ext
17125 ;;
17126
17127 hpux*)
17128
17129 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17130
17131 ;;
17132 esac
17133
17134
17135
17136
17137
17138 case $opsys in
17139 gnu-linux | gnu-kfreebsd )
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17142
17143 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17144 || defined __alpha__ || defined __mips__ || defined __s390__ \
17145 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17146 || defined __ia64__ || defined __sh__
17147 /* ok */
17148 #else
17149 # error "setjmp not known to work on this arch"
17150 #endif
17151
17152 int
17153 main ()
17154 {
17155
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_cpp "$LINENO"; then :
17161 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17162
17163 fi
17164 rm -f conftest.err conftest.$ac_ext
17165 ;;
17166 esac
17167
17168
17169 if test x$GCC = xyes; then
17170 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17171
17172 else
17173 case $opsys in
17174 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
17175 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17176
17177 ;;
17178 esac
17179 fi
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17181 $as_echo_n "checking for _setjmp... " >&6; }
17182 if test "${emacs_cv_func__setjmp+set}" = set; then :
17183 $as_echo_n "(cached) " >&6
17184 else
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17187 #include <setjmp.h>
17188 #ifdef __MINGW32__
17189 # define _longjmp longjmp
17190 #endif
17191
17192 int
17193 main ()
17194 {
17195 jmp_buf j;
17196 if (! _setjmp (j))
17197 _longjmp (j, 1);
17198 ;
17199 return 0;
17200 }
17201 _ACEOF
17202 if ac_fn_c_try_link "$LINENO"; then :
17203 emacs_cv_func__setjmp=yes
17204 else
17205 emacs_cv_func__setjmp=no
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17209 fi
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17211 $as_echo "$emacs_cv_func__setjmp" >&6; }
17212 if test $emacs_cv_func__setjmp = yes; then
17213
17214 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17215
17216 else
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17218 $as_echo_n "checking for sigsetjmp... " >&6; }
17219 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17220 $as_echo_n "(cached) " >&6
17221 else
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17224 #include <setjmp.h>
17225
17226 int
17227 main ()
17228 {
17229 sigjmp_buf j;
17230 if (! sigsetjmp (j, 1))
17231 siglongjmp (j, 1);
17232 ;
17233 return 0;
17234 }
17235 _ACEOF
17236 if ac_fn_c_try_link "$LINENO"; then :
17237 emacs_cv_func_sigsetjmp=yes
17238 else
17239 emacs_cv_func_sigsetjmp=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext \
17242 conftest$ac_exeext conftest.$ac_ext
17243 fi
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17245 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17246 if test $emacs_cv_func_sigsetjmp = yes; then
17247
17248 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17249
17250 fi
17251 fi
17252
17253 case $opsys in
17254 sol2* | unixware )
17255
17256 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17257
17258 ;;
17259 esac
17260
17261
17262 case $opsys in
17263 hpux* | sol2* )
17264
17265 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17266
17267 ;;
17268 esac
17269
17270
17271
17272
17273
17274
17275
17276 case $opsys in
17277 aix4-2)
17278 $as_echo "#define USG /**/" >>confdefs.h
17279
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282
17283 #ifndef _AIX
17284 # error "_AIX not defined"
17285 #endif
17286
17287 int
17288 main ()
17289 {
17290
17291 ;
17292 return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_cpp "$LINENO"; then :
17296
17297 else
17298
17299 $as_echo "#define _AIX /**/" >>confdefs.h
17300
17301 fi
17302 rm -f conftest.err conftest.$ac_ext
17303 ;;
17304
17305 cygwin)
17306
17307 $as_echo "#define CYGWIN 1" >>confdefs.h
17308
17309 ;;
17310
17311 darwin)
17312
17313 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17314
17315 ;;
17316
17317 gnu-linux | gnu-kfreebsd )
17318 $as_echo "#define USG /**/" >>confdefs.h
17319
17320
17321 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17322
17323 ;;
17324
17325 hpux*)
17326 $as_echo "#define USG /**/" >>confdefs.h
17327
17328
17329 $as_echo "#define HPUX /**/" >>confdefs.h
17330
17331 ;;
17332
17333 irix6-5)
17334 $as_echo "#define USG /**/" >>confdefs.h
17335
17336 $as_echo "#define USG5_4 /**/" >>confdefs.h
17337
17338
17339 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17340
17341 ;;
17342
17343 mingw32)
17344 $as_echo "#define DOS_NT /**/" >>confdefs.h
17345
17346
17347 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17348
17349 if test "x$ac_enable_checking" != "x" ; then
17350
17351 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17352
17353 fi
17354 ;;
17355
17356 sol2*)
17357 $as_echo "#define USG /**/" >>confdefs.h
17358
17359 $as_echo "#define USG5_4 /**/" >>confdefs.h
17360
17361
17362 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17363
17364 ;;
17365
17366 unixware)
17367 $as_echo "#define USG /**/" >>confdefs.h
17368
17369 $as_echo "#define USG5_4 /**/" >>confdefs.h
17370
17371 ;;
17372 esac
17373
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17375 $as_echo_n "checking for usable FIONREAD... " >&6; }
17376 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 case $opsys in
17380 aix4-2)
17381 emacs_cv_usable_FIONREAD=no
17382 ;;
17383
17384 mingw32)
17385 emacs_cv_usable_FIONREAD=yes
17386 ;;
17387
17388 *)
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391 #include <sys/types.h>
17392 #include <sys/ioctl.h>
17393 #ifdef USG5_4
17394 # include <sys/filio.h>
17395 #endif
17396
17397 int
17398 main ()
17399 {
17400 int foo = ioctl (0, FIONREAD, &foo);
17401 ;
17402 return 0;
17403 }
17404 _ACEOF
17405 if ac_fn_c_try_compile "$LINENO"; then :
17406 emacs_cv_usable_FIONREAD=yes
17407 else
17408 emacs_cv_usable_FIONREAD=no
17409 fi
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 ;;
17412 esac
17413 fi
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17415 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17416 if test $emacs_cv_usable_FIONREAD = yes; then
17417
17418 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17419
17420
17421 if test $emacs_broken_SIGIO = no; then
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17423 $as_echo_n "checking for usable SIGIO... " >&6; }
17424 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17425 $as_echo_n "(cached) " >&6
17426 else
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 #include <fcntl.h>
17430 #include <signal.h>
17431
17432 int
17433 main ()
17434 {
17435 int foo = SIGIO | F_SETFL | FASYNC;
17436 ;
17437 return 0;
17438 }
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 emacs_cv_usable_SIGIO=yes
17442 else
17443 emacs_cv_usable_SIGIO=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17448 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17449 if test $emacs_cv_usable_SIGIO = yes; then
17450
17451 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17452
17453 fi
17454 fi
17455 fi
17456
17457
17458 case $opsys in
17459 cygwin)
17460
17461 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17462
17463 ;;
17464
17465 hpux11)
17466
17467 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17468
17469 ;;
17470
17471 irix6-5)
17472
17473 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17474
17475 ;;
17476
17477 sol2-10)
17478
17479 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17480
17481 ;;
17482 esac
17483
17484 # Set up the CFLAGS for real compilation, so we can substitute it.
17485 CFLAGS="$REAL_CFLAGS"
17486 CPPFLAGS="$REAL_CPPFLAGS"
17487
17488 ## Hack to detect a buggy GCC version.
17489 if test "x$GCC" = xyes \
17490 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17491 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17492 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17493 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17494 fi
17495
17496 version=$PACKAGE_VERSION
17497
17498 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17499
17500 cat >>confdefs.h <<_ACEOF
17501 #define COPYRIGHT "$copyright"
17502 _ACEOF
17503
17504
17505
17506 ### Specify what sort of things we'll be editing into Makefile and config.h.
17507 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17508
17509
17510 ## Unused?
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17534 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17535 ## end of LIBX_BASE, but nothing ever set it.
17536
17537
17538
17539
17540 ## Used in lwlib/Makefile.in.
17541
17542
17543
17544
17545
17546
17547
17548
17549 if test -n "${term_header}"; then
17550
17551 cat >>confdefs.h <<_ACEOF
17552 #define TERM_HEADER "${term_header}"
17553 _ACEOF
17554
17555 fi
17556
17557
17558 cat >>confdefs.h <<_ACEOF
17559 #define EMACS_CONFIGURATION "${canonical}"
17560 _ACEOF
17561
17562
17563 cat >>confdefs.h <<_ACEOF
17564 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17565 _ACEOF
17566
17567
17568
17569 case $opsys in
17570 mingw32)
17571 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17572
17573 ;;
17574 esac
17575
17576 XMENU_OBJ=
17577 XOBJ=
17578 FONT_OBJ=
17579 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17580
17581 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17582
17583 XMENU_OBJ=xmenu.o
17584 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17585 FONT_OBJ=xfont.o
17586 if test "$HAVE_XFT" = "yes"; then
17587 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17588 elif test "$HAVE_FREETYPE" = "yes"; then
17589 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17590 fi
17591
17592 fi
17593
17594
17595
17596
17597 WIDGET_OBJ=
17598 MOTIF_LIBW=
17599 if test "${USE_X_TOOLKIT}" != "none" ; then
17600 WIDGET_OBJ=widget.o
17601
17602 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17603
17604 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17605
17606 $as_echo "#define USE_LUCID 1" >>confdefs.h
17607
17608 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17609
17610 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17611
17612 MOTIF_LIBW=-lXm
17613 case "$opsys" in
17614 gnu-linux)
17615 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17616 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17617 ;;
17618
17619 unixware)
17620 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17621 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17622 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17623 ;;
17624
17625 aix4-2)
17626 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17627 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17628 ;;
17629 esac
17630 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17631 fi
17632 fi
17633
17634
17635 TOOLKIT_LIBW=
17636 case "$USE_X_TOOLKIT" in
17637 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17638 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17639 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17640 esac
17641
17642
17643 if test "${opsys}" != "mingw32"; then
17644 if test "$USE_X_TOOLKIT" = "none"; then
17645 LIBXT_OTHER="\$(LIBXSM)"
17646 OLDXMENU_TARGET="really-oldXMenu"
17647 else
17648 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17649 OLDXMENU_TARGET="really-lwlib"
17650 fi
17651 fi
17652
17653
17654 ## The X Menu stuff is present in the X10 distribution, but missing
17655 ## from X11. If we have X10, just use the installed library;
17656 ## otherwise, use our own copy.
17657 if test "${HAVE_X11}" = "yes" ; then
17658
17659 $as_echo "#define HAVE_X11 1" >>confdefs.h
17660
17661
17662 if test "$USE_X_TOOLKIT" = "none"; then
17663 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17664 else
17665 OLDXMENU="\${lwlibdir}/liblw.a"
17666 fi
17667 LIBXMENU="\$(OLDXMENU)"
17668 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17669 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17670 else
17671 ## For a syntactically valid Makefile; not actually used for anything.
17672 ## See comments in src/Makefile.in.
17673 OLDXMENU=nothing
17674 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17675 if test "${HAVE_X_WINDOWS}" = "yes"; then
17676 LIBXMENU="-lXMenu"
17677 else
17678 LIBXMENU=
17679 fi
17680 LIBX_OTHER=
17681 OLDXMENU_DEPS=
17682 fi
17683
17684 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17685 OLDXMENU_TARGET=
17686 OLDXMENU=nothing
17687 LIBXMENU=
17688 OLDXMENU_DEPS=
17689 fi
17690
17691
17692
17693
17694
17695
17696
17697 if test "${HAVE_MENUS}" = "yes" ; then
17698
17699 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17700
17701 fi
17702
17703 if test "${GNU_MALLOC}" = "yes" ; then
17704
17705 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17706
17707 fi
17708
17709 RALLOC_OBJ=
17710 if test "${REL_ALLOC}" = "yes" ; then
17711
17712 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17713
17714
17715 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17716 fi
17717
17718
17719 if test "$opsys" = "cygwin"; then
17720 CYGWIN_OBJ="sheap.o cygw32.o"
17721 ## Cygwin differs because of its unexec().
17722 PRE_ALLOC_OBJ=
17723 POST_ALLOC_OBJ=lastfile.o
17724 elif test "$opsys" = "mingw32"; then
17725 CYGWIN_OBJ=
17726 PRE_ALLOC_OBJ=
17727 POST_ALLOC_OBJ=lastfile.o
17728 else
17729 CYGWIN_OBJ=
17730 PRE_ALLOC_OBJ=lastfile.o
17731 POST_ALLOC_OBJ=
17732 fi
17733
17734
17735
17736
17737
17738
17739 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17740 # it temporarily reverts them to their pre-pkg-config values,
17741 # because gnulib needs to work with both src (which uses the
17742 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17743 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17744 # and it therefore needs to run in an environment where LIBS does not
17745 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17746 # for some package unrelated to lib-src.
17747 SAVE_CFLAGS=$CFLAGS
17748 SAVE_LIBS=$LIBS
17749 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17750 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762 LIBC_FATAL_STDERR_=1
17763 export LIBC_FATAL_STDERR_
17764
17765 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17766 # for constant arguments. Useless!
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17768 $as_echo_n "checking for working alloca.h... " >&6; }
17769 if test "${ac_cv_working_alloca_h+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774 #include <alloca.h>
17775 int
17776 main ()
17777 {
17778 char *p = (char *) alloca (2 * sizeof (int));
17779 if (p) return 0;
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 ac_cv_working_alloca_h=yes
17786 else
17787 ac_cv_working_alloca_h=no
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17793 $as_echo "$ac_cv_working_alloca_h" >&6; }
17794 if test $ac_cv_working_alloca_h = yes; then
17795
17796 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17797
17798 fi
17799
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17801 $as_echo_n "checking for alloca... " >&6; }
17802 if test "${ac_cv_func_alloca_works+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807 #ifdef __GNUC__
17808 # define alloca __builtin_alloca
17809 #else
17810 # ifdef _MSC_VER
17811 # include <malloc.h>
17812 # define alloca _alloca
17813 # else
17814 # ifdef HAVE_ALLOCA_H
17815 # include <alloca.h>
17816 # else
17817 # ifdef _AIX
17818 #pragma alloca
17819 # else
17820 # ifndef alloca /* predefined by HP cc +Olibcalls */
17821 char *alloca ();
17822 # endif
17823 # endif
17824 # endif
17825 # endif
17826 #endif
17827
17828 int
17829 main ()
17830 {
17831 char *p = (char *) alloca (1);
17832 if (p) return 0;
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 if ac_fn_c_try_link "$LINENO"; then :
17838 ac_cv_func_alloca_works=yes
17839 else
17840 ac_cv_func_alloca_works=no
17841 fi
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 fi
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17846 $as_echo "$ac_cv_func_alloca_works" >&6; }
17847
17848 if test $ac_cv_func_alloca_works = yes; then
17849
17850 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17851
17852 else
17853 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17854 # that cause trouble. Some versions do not even contain alloca or
17855 # contain a buggy version. If you still want to use their alloca,
17856 # use ar to extract alloca.o from them instead of compiling alloca.c.
17857
17858
17859
17860
17861
17862 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17863
17864 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17865
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17868 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17869 if test "${ac_cv_os_cray+set}" = set; then :
17870 $as_echo_n "(cached) " >&6
17871 else
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 #if defined CRAY && ! defined CRAY2
17875 webecray
17876 #else
17877 wenotbecray
17878 #endif
17879
17880 _ACEOF
17881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17882 $EGREP "webecray" >/dev/null 2>&1; then :
17883 ac_cv_os_cray=yes
17884 else
17885 ac_cv_os_cray=no
17886 fi
17887 rm -f conftest*
17888
17889 fi
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17891 $as_echo "$ac_cv_os_cray" >&6; }
17892 if test $ac_cv_os_cray = yes; then
17893 for ac_func in _getb67 GETB67 getb67; do
17894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17896 eval as_val=\$$as_ac_var
17897 if test "x$as_val" = x""yes; then :
17898
17899 cat >>confdefs.h <<_ACEOF
17900 #define CRAY_STACKSEG_END $ac_func
17901 _ACEOF
17902
17903 break
17904 fi
17905
17906 done
17907 fi
17908
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17910 $as_echo_n "checking stack direction for C alloca... " >&6; }
17911 if test "${ac_cv_c_stack_direction+set}" = set; then :
17912 $as_echo_n "(cached) " >&6
17913 else
17914 if test "$cross_compiling" = yes; then :
17915 ac_cv_c_stack_direction=0
17916 else
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 $ac_includes_default
17920 int
17921 find_stack_direction (int *addr, int depth)
17922 {
17923 int dir, dummy = 0;
17924 if (! addr)
17925 addr = &dummy;
17926 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17927 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17928 return dir + dummy;
17929 }
17930
17931 int
17932 main (int argc, char **argv)
17933 {
17934 return find_stack_direction (0, argc + !argv + 20) < 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_run "$LINENO"; then :
17938 ac_cv_c_stack_direction=1
17939 else
17940 ac_cv_c_stack_direction=-1
17941 fi
17942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17943 conftest.$ac_objext conftest.beam conftest.$ac_ext
17944 fi
17945
17946 fi
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17948 $as_echo "$ac_cv_c_stack_direction" >&6; }
17949 cat >>confdefs.h <<_ACEOF
17950 #define STACK_DIRECTION $ac_cv_c_stack_direction
17951 _ACEOF
17952
17953
17954 fi
17955
17956
17957
17958
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17960 $as_echo_n "checking for unsigned long long int... " >&6; }
17961 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 ac_cv_type_unsigned_long_long_int=yes
17965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17968
17969 /* For now, do not test the preprocessor; as of 2007 there are too many
17970 implementations with broken preprocessors. Perhaps this can
17971 be revisited in 2012. In the meantime, code should not expect
17972 #if to work with literals wider than 32 bits. */
17973 /* Test literals. */
17974 long long int ll = 9223372036854775807ll;
17975 long long int nll = -9223372036854775807LL;
17976 unsigned long long int ull = 18446744073709551615ULL;
17977 /* Test constant expressions. */
17978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17979 ? 1 : -1)];
17980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17981 ? 1 : -1)];
17982 int i = 63;
17983 int
17984 main ()
17985 {
17986 /* Test availability of runtime routines for shift and division. */
17987 long long int llmax = 9223372036854775807ll;
17988 unsigned long long int ullmax = 18446744073709551615ull;
17989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17990 | (llmax / ll) | (llmax % ll)
17991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17992 | (ullmax / ull) | (ullmax % ull));
17993 ;
17994 return 0;
17995 }
17996
17997 _ACEOF
17998 if ac_fn_c_try_link "$LINENO"; then :
17999
18000 else
18001 ac_cv_type_unsigned_long_long_int=no
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 fi
18006 fi
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18008 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18009 if test $ac_cv_type_unsigned_long_long_int = yes; then
18010
18011 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18012
18013 fi
18014
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18017 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18018 if test "${ac_cv_c_bigendian+set}" = set; then :
18019 $as_echo_n "(cached) " >&6
18020 else
18021 ac_cv_c_bigendian=unknown
18022 # See if we're dealing with a universal compiler.
18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h. */
18025 #ifndef __APPLE_CC__
18026 not a universal capable compiler
18027 #endif
18028 typedef int dummy;
18029
18030 _ACEOF
18031 if ac_fn_c_try_compile "$LINENO"; then :
18032
18033 # Check for potential -arch flags. It is not universal unless
18034 # there are at least two -arch flags with different values.
18035 ac_arch=
18036 ac_prev=
18037 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18038 if test -n "$ac_prev"; then
18039 case $ac_word in
18040 i?86 | x86_64 | ppc | ppc64)
18041 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18042 ac_arch=$ac_word
18043 else
18044 ac_cv_c_bigendian=universal
18045 break
18046 fi
18047 ;;
18048 esac
18049 ac_prev=
18050 elif test "x$ac_word" = "x-arch"; then
18051 ac_prev=arch
18052 fi
18053 done
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 if test $ac_cv_c_bigendian = unknown; then
18057 # See if sys/param.h defines the BYTE_ORDER macro.
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18060 #include <sys/types.h>
18061 #include <sys/param.h>
18062
18063 int
18064 main ()
18065 {
18066 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18067 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18068 && LITTLE_ENDIAN)
18069 bogus endian macros
18070 #endif
18071
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 if ac_fn_c_try_compile "$LINENO"; then :
18077 # It does; now see whether it defined to BIG_ENDIAN or not.
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 #include <sys/types.h>
18081 #include <sys/param.h>
18082
18083 int
18084 main ()
18085 {
18086 #if BYTE_ORDER != BIG_ENDIAN
18087 not big endian
18088 #endif
18089
18090 ;
18091 return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_c_try_compile "$LINENO"; then :
18095 ac_cv_c_bigendian=yes
18096 else
18097 ac_cv_c_bigendian=no
18098 fi
18099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 fi
18103 if test $ac_cv_c_bigendian = unknown; then
18104 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18107 #include <limits.h>
18108
18109 int
18110 main ()
18111 {
18112 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18113 bogus endian macros
18114 #endif
18115
18116 ;
18117 return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121 # It does; now see whether it defined to _BIG_ENDIAN or not.
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124 #include <limits.h>
18125
18126 int
18127 main ()
18128 {
18129 #ifndef _BIG_ENDIAN
18130 not big endian
18131 #endif
18132
18133 ;
18134 return 0;
18135 }
18136 _ACEOF
18137 if ac_fn_c_try_compile "$LINENO"; then :
18138 ac_cv_c_bigendian=yes
18139 else
18140 ac_cv_c_bigendian=no
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 fi
18146 if test $ac_cv_c_bigendian = unknown; then
18147 # Compile a test program.
18148 if test "$cross_compiling" = yes; then :
18149 # Try to guess by grepping values from an object file.
18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 short int ascii_mm[] =
18153 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18154 short int ascii_ii[] =
18155 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18156 int use_ascii (int i) {
18157 return ascii_mm[i] + ascii_ii[i];
18158 }
18159 short int ebcdic_ii[] =
18160 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18161 short int ebcdic_mm[] =
18162 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18163 int use_ebcdic (int i) {
18164 return ebcdic_mm[i] + ebcdic_ii[i];
18165 }
18166 extern int foo;
18167
18168 int
18169 main ()
18170 {
18171 return use_ascii (foo) == use_ebcdic (foo);
18172 ;
18173 return 0;
18174 }
18175 _ACEOF
18176 if ac_fn_c_try_compile "$LINENO"; then :
18177 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18178 ac_cv_c_bigendian=yes
18179 fi
18180 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18181 if test "$ac_cv_c_bigendian" = unknown; then
18182 ac_cv_c_bigendian=no
18183 else
18184 # finding both strings is unlikely to happen, but who knows?
18185 ac_cv_c_bigendian=unknown
18186 fi
18187 fi
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190 else
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18193 $ac_includes_default
18194 int
18195 main ()
18196 {
18197
18198 /* Are we little or big endian? From Harbison&Steele. */
18199 union
18200 {
18201 long int l;
18202 char c[sizeof (long int)];
18203 } u;
18204 u.l = 1;
18205 return u.c[sizeof (long int) - 1] == 1;
18206
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_run "$LINENO"; then :
18212 ac_cv_c_bigendian=no
18213 else
18214 ac_cv_c_bigendian=yes
18215 fi
18216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18217 conftest.$ac_objext conftest.beam conftest.$ac_ext
18218 fi
18219
18220 fi
18221 fi
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18223 $as_echo "$ac_cv_c_bigendian" >&6; }
18224 case $ac_cv_c_bigendian in #(
18225 yes)
18226 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18227 ;; #(
18228 no)
18229 ;; #(
18230 universal)
18231
18232 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18233
18234 ;; #(
18235 *)
18236 as_fn_error "unknown endianness
18237 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18238 esac
18239
18240
18241
18242 GNULIB_CHDIR=0;
18243 GNULIB_CHOWN=0;
18244 GNULIB_CLOSE=0;
18245 GNULIB_DUP=0;
18246 GNULIB_DUP2=0;
18247 GNULIB_DUP3=0;
18248 GNULIB_ENVIRON=0;
18249 GNULIB_EUIDACCESS=0;
18250 GNULIB_FACCESSAT=0;
18251 GNULIB_FCHDIR=0;
18252 GNULIB_FCHOWNAT=0;
18253 GNULIB_FDATASYNC=0;
18254 GNULIB_FSYNC=0;
18255 GNULIB_FTRUNCATE=0;
18256 GNULIB_GETCWD=0;
18257 GNULIB_GETDOMAINNAME=0;
18258 GNULIB_GETDTABLESIZE=0;
18259 GNULIB_GETGROUPS=0;
18260 GNULIB_GETHOSTNAME=0;
18261 GNULIB_GETLOGIN=0;
18262 GNULIB_GETLOGIN_R=0;
18263 GNULIB_GETPAGESIZE=0;
18264 GNULIB_GETUSERSHELL=0;
18265 GNULIB_GROUP_MEMBER=0;
18266 GNULIB_ISATTY=0;
18267 GNULIB_LCHOWN=0;
18268 GNULIB_LINK=0;
18269 GNULIB_LINKAT=0;
18270 GNULIB_LSEEK=0;
18271 GNULIB_PIPE=0;
18272 GNULIB_PIPE2=0;
18273 GNULIB_PREAD=0;
18274 GNULIB_PWRITE=0;
18275 GNULIB_READ=0;
18276 GNULIB_READLINK=0;
18277 GNULIB_READLINKAT=0;
18278 GNULIB_RMDIR=0;
18279 GNULIB_SETHOSTNAME=0;
18280 GNULIB_SLEEP=0;
18281 GNULIB_SYMLINK=0;
18282 GNULIB_SYMLINKAT=0;
18283 GNULIB_TTYNAME_R=0;
18284 GNULIB_UNISTD_H_NONBLOCKING=0;
18285 GNULIB_UNISTD_H_SIGPIPE=0;
18286 GNULIB_UNLINK=0;
18287 GNULIB_UNLINKAT=0;
18288 GNULIB_USLEEP=0;
18289 GNULIB_WRITE=0;
18290 HAVE_CHOWN=1;
18291 HAVE_DUP2=1;
18292 HAVE_DUP3=1;
18293 HAVE_EUIDACCESS=1;
18294 HAVE_FACCESSAT=1;
18295 HAVE_FCHDIR=1;
18296 HAVE_FCHOWNAT=1;
18297 HAVE_FDATASYNC=1;
18298 HAVE_FSYNC=1;
18299 HAVE_FTRUNCATE=1;
18300 HAVE_GETDTABLESIZE=1;
18301 HAVE_GETGROUPS=1;
18302 HAVE_GETHOSTNAME=1;
18303 HAVE_GETLOGIN=1;
18304 HAVE_GETPAGESIZE=1;
18305 HAVE_GROUP_MEMBER=1;
18306 HAVE_LCHOWN=1;
18307 HAVE_LINK=1;
18308 HAVE_LINKAT=1;
18309 HAVE_PIPE=1;
18310 HAVE_PIPE2=1;
18311 HAVE_PREAD=1;
18312 HAVE_PWRITE=1;
18313 HAVE_READLINK=1;
18314 HAVE_READLINKAT=1;
18315 HAVE_SETHOSTNAME=1;
18316 HAVE_SLEEP=1;
18317 HAVE_SYMLINK=1;
18318 HAVE_SYMLINKAT=1;
18319 HAVE_UNLINKAT=1;
18320 HAVE_USLEEP=1;
18321 HAVE_DECL_ENVIRON=1;
18322 HAVE_DECL_FCHDIR=1;
18323 HAVE_DECL_FDATASYNC=1;
18324 HAVE_DECL_GETDOMAINNAME=1;
18325 HAVE_DECL_GETLOGIN_R=1;
18326 HAVE_DECL_GETPAGESIZE=1;
18327 HAVE_DECL_GETUSERSHELL=1;
18328 HAVE_DECL_SETHOSTNAME=1;
18329 HAVE_DECL_TTYNAME_R=1;
18330 HAVE_OS_H=0;
18331 HAVE_SYS_PARAM_H=0;
18332 REPLACE_CHOWN=0;
18333 REPLACE_CLOSE=0;
18334 REPLACE_DUP=0;
18335 REPLACE_DUP2=0;
18336 REPLACE_FCHOWNAT=0;
18337 REPLACE_FTRUNCATE=0;
18338 REPLACE_GETCWD=0;
18339 REPLACE_GETDOMAINNAME=0;
18340 REPLACE_GETDTABLESIZE=0;
18341 REPLACE_GETLOGIN_R=0;
18342 REPLACE_GETGROUPS=0;
18343 REPLACE_GETPAGESIZE=0;
18344 REPLACE_ISATTY=0;
18345 REPLACE_LCHOWN=0;
18346 REPLACE_LINK=0;
18347 REPLACE_LINKAT=0;
18348 REPLACE_LSEEK=0;
18349 REPLACE_PREAD=0;
18350 REPLACE_PWRITE=0;
18351 REPLACE_READ=0;
18352 REPLACE_READLINK=0;
18353 REPLACE_RMDIR=0;
18354 REPLACE_SLEEP=0;
18355 REPLACE_SYMLINK=0;
18356 REPLACE_TTYNAME_R=0;
18357 REPLACE_UNLINK=0;
18358 REPLACE_UNLINKAT=0;
18359 REPLACE_USLEEP=0;
18360 REPLACE_WRITE=0;
18361 UNISTD_H_HAVE_WINSOCK2_H=0;
18362 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18363
18364
18365
18366 GNULIB_OPENDIR=0;
18367 GNULIB_READDIR=0;
18368 GNULIB_REWINDDIR=0;
18369 GNULIB_CLOSEDIR=0;
18370 GNULIB_DIRFD=0;
18371 GNULIB_FDOPENDIR=0;
18372 GNULIB_SCANDIR=0;
18373 GNULIB_ALPHASORT=0;
18374 HAVE_OPENDIR=1;
18375 HAVE_READDIR=1;
18376 HAVE_REWINDDIR=1;
18377 HAVE_CLOSEDIR=1;
18378 HAVE_DECL_DIRFD=1;
18379 HAVE_DECL_FDOPENDIR=1;
18380 HAVE_FDOPENDIR=1;
18381 HAVE_SCANDIR=1;
18382 HAVE_ALPHASORT=1;
18383 REPLACE_OPENDIR=0;
18384 REPLACE_CLOSEDIR=0;
18385 REPLACE_DIRFD=0;
18386 REPLACE_FDOPENDIR=0;
18387
18388
18389
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18391 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18392 if test "${gl_cv_have_include_next+set}" = set; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 rm -rf conftestd1a conftestd1b conftestd2
18396 mkdir conftestd1a conftestd1b conftestd2
18397 cat <<EOF > conftestd1a/conftest.h
18398 #define DEFINED_IN_CONFTESTD1
18399 #include_next <conftest.h>
18400 #ifdef DEFINED_IN_CONFTESTD2
18401 int foo;
18402 #else
18403 #error "include_next doesn't work"
18404 #endif
18405 EOF
18406 cat <<EOF > conftestd1b/conftest.h
18407 #define DEFINED_IN_CONFTESTD1
18408 #include <stdio.h>
18409 #include_next <conftest.h>
18410 #ifdef DEFINED_IN_CONFTESTD2
18411 int foo;
18412 #else
18413 #error "include_next doesn't work"
18414 #endif
18415 EOF
18416 cat <<EOF > conftestd2/conftest.h
18417 #ifndef DEFINED_IN_CONFTESTD1
18418 #error "include_next test doesn't work"
18419 #endif
18420 #define DEFINED_IN_CONFTESTD2
18421 EOF
18422 gl_save_CPPFLAGS="$CPPFLAGS"
18423 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426 #include <conftest.h>
18427 _ACEOF
18428 if ac_fn_c_try_compile "$LINENO"; then :
18429 gl_cv_have_include_next=yes
18430 else
18431 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434 #include <conftest.h>
18435 _ACEOF
18436 if ac_fn_c_try_compile "$LINENO"; then :
18437 gl_cv_have_include_next=buggy
18438 else
18439 gl_cv_have_include_next=no
18440 fi
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442
18443 fi
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 CPPFLAGS="$gl_save_CPPFLAGS"
18446 rm -rf conftestd1a conftestd1b conftestd2
18447
18448 fi
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18450 $as_echo "$gl_cv_have_include_next" >&6; }
18451 PRAGMA_SYSTEM_HEADER=
18452 if test $gl_cv_have_include_next = yes; then
18453 INCLUDE_NEXT=include_next
18454 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18455 if test -n "$GCC"; then
18456 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18457 fi
18458 else
18459 if test $gl_cv_have_include_next = buggy; then
18460 INCLUDE_NEXT=include
18461 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18462 else
18463 INCLUDE_NEXT=include
18464 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18465 fi
18466 fi
18467
18468
18469
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18471 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18472 if test "${gl_cv_pragma_columns+set}" = set; then :
18473 $as_echo_n "(cached) " >&6
18474 else
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477
18478 #ifdef __TANDEM
18479 choke me
18480 #endif
18481
18482 _ACEOF
18483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18484 $EGREP "choke me" >/dev/null 2>&1; then :
18485 gl_cv_pragma_columns=yes
18486 else
18487 gl_cv_pragma_columns=no
18488 fi
18489 rm -f conftest*
18490
18491
18492 fi
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18494 $as_echo "$gl_cv_pragma_columns" >&6; }
18495 if test $gl_cv_pragma_columns = yes; then
18496 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18497 else
18498 PRAGMA_COLUMNS=
18499 fi
18500
18501
18502
18503
18504
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18506 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18507 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512 /* On HP-UX before 11.23, strtold returns a struct instead of
18513 long double. Reject implementations like that, by requiring
18514 compatibility with the C99 prototype. */
18515 #include <stdlib.h>
18516 static long double (*p) (char const *, char **) = strtold;
18517 static long double
18518 test (char const *nptr, char **endptr)
18519 {
18520 long double r;
18521 r = strtold (nptr, endptr);
18522 return r;
18523 }
18524 int
18525 main ()
18526 {
18527 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18528 ;
18529 return 0;
18530 }
18531 _ACEOF
18532 if ac_fn_c_try_link "$LINENO"; then :
18533 gl_cv_func_c99_strtold=yes
18534 else
18535 gl_cv_func_c99_strtold=no
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18539 fi
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18541 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18542 if test $gl_cv_func_c99_strtold = yes; then
18543
18544 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18545
18546 fi
18547
18548
18549
18550
18551
18552
18553
18554
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18556 $as_echo_n "checking if environ is properly declared... " >&6; }
18557 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18558 $as_echo_n "(cached) " >&6
18559 else
18560
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 #if HAVE_UNISTD_H
18564 #include <unistd.h>
18565 #endif
18566 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18567 #include <stdlib.h>
18568
18569 extern struct { int foo; } environ;
18570 int
18571 main ()
18572 {
18573 environ.foo = 1;
18574 ;
18575 return 0;
18576 }
18577 _ACEOF
18578 if ac_fn_c_try_compile "$LINENO"; then :
18579 gt_cv_var_environ_declaration=no
18580 else
18581 gt_cv_var_environ_declaration=yes
18582 fi
18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584 fi
18585
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18587 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18588 if test $gt_cv_var_environ_declaration = yes; then
18589
18590 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18591
18592 fi
18593
18594
18595 if test $gt_cv_var_environ_declaration != yes; then
18596 HAVE_DECL_ENVIRON=0
18597 fi
18598
18599
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18602 $as_echo_n "checking for complete errno.h... " >&6; }
18603 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18609
18610 #include <errno.h>
18611 #if !defined ETXTBSY
18612 booboo
18613 #endif
18614 #if !defined ENOMSG
18615 booboo
18616 #endif
18617 #if !defined EIDRM
18618 booboo
18619 #endif
18620 #if !defined ENOLINK
18621 booboo
18622 #endif
18623 #if !defined EPROTO
18624 booboo
18625 #endif
18626 #if !defined EMULTIHOP
18627 booboo
18628 #endif
18629 #if !defined EBADMSG
18630 booboo
18631 #endif
18632 #if !defined EOVERFLOW
18633 booboo
18634 #endif
18635 #if !defined ENOTSUP
18636 booboo
18637 #endif
18638 #if !defined ENETRESET
18639 booboo
18640 #endif
18641 #if !defined ECONNABORTED
18642 booboo
18643 #endif
18644 #if !defined ESTALE
18645 booboo
18646 #endif
18647 #if !defined EDQUOT
18648 booboo
18649 #endif
18650 #if !defined ECANCELED
18651 booboo
18652 #endif
18653 #if !defined EOWNERDEAD
18654 booboo
18655 #endif
18656 #if !defined ENOTRECOVERABLE
18657 booboo
18658 #endif
18659 #if !defined EILSEQ
18660 booboo
18661 #endif
18662
18663 _ACEOF
18664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18665 $EGREP "booboo" >/dev/null 2>&1; then :
18666 gl_cv_header_errno_h_complete=no
18667 else
18668 gl_cv_header_errno_h_complete=yes
18669 fi
18670 rm -f conftest*
18671
18672
18673 fi
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18675 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18676 if test $gl_cv_header_errno_h_complete = yes; then
18677 ERRNO_H=''
18678 else
18679
18680
18681
18682
18683
18684
18685
18686
18687 if test $gl_cv_have_include_next = yes; then
18688 gl_cv_next_errno_h='<'errno.h'>'
18689 else
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18691 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18692 if test "${gl_cv_next_errno_h+set}" = set; then :
18693 $as_echo_n "(cached) " >&6
18694 else
18695
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18698 #include <errno.h>
18699
18700 _ACEOF
18701 case "$host_os" in
18702 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18703 *) gl_absname_cpp="$ac_cpp" ;;
18704 esac
18705
18706 case "$host_os" in
18707 mingw*)
18708 gl_dirsep_regex='[/\\]'
18709 ;;
18710 *)
18711 gl_dirsep_regex='\/'
18712 ;;
18713 esac
18714 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18715
18716 gl_header_literal_regex=`echo 'errno.h' \
18717 | sed -e "$gl_make_literal_regex_sed"`
18718 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18719 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18720 s|^/[^/]|//&|
18721 p
18722 q
18723 }'
18724 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18725 sed -n "$gl_absolute_header_sed"`'"'
18726
18727
18728 fi
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18730 $as_echo "$gl_cv_next_errno_h" >&6; }
18731 fi
18732 NEXT_ERRNO_H=$gl_cv_next_errno_h
18733
18734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18736 gl_next_as_first_directive='<'errno.h'>'
18737 else
18738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18739 gl_next_as_first_directive=$gl_cv_next_errno_h
18740 fi
18741 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18742
18743
18744
18745
18746 ERRNO_H='errno.h'
18747 fi
18748
18749 if test -n "$ERRNO_H"; then
18750 GL_GENERATE_ERRNO_H_TRUE=
18751 GL_GENERATE_ERRNO_H_FALSE='#'
18752 else
18753 GL_GENERATE_ERRNO_H_TRUE='#'
18754 GL_GENERATE_ERRNO_H_FALSE=
18755 fi
18756
18757
18758 if test -n "$ERRNO_H"; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18760 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18761 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18762 $as_echo_n "(cached) " >&6
18763 else
18764
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18767
18768 #include <errno.h>
18769 #ifdef EMULTIHOP
18770 yes
18771 #endif
18772
18773 _ACEOF
18774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18775 $EGREP "yes" >/dev/null 2>&1; then :
18776 gl_cv_header_errno_h_EMULTIHOP=yes
18777 else
18778 gl_cv_header_errno_h_EMULTIHOP=no
18779 fi
18780 rm -f conftest*
18781
18782 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785
18786 #define _XOPEN_SOURCE_EXTENDED 1
18787 #include <errno.h>
18788 #ifdef EMULTIHOP
18789 yes
18790 #endif
18791
18792 _ACEOF
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "yes" >/dev/null 2>&1; then :
18795 gl_cv_header_errno_h_EMULTIHOP=hidden
18796 fi
18797 rm -f conftest*
18798
18799 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18800 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18801 #define _XOPEN_SOURCE_EXTENDED 1
18802 #include <errno.h>
18803 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18804 #include <stdio.h>
18805 #include <stdlib.h>
18806 "; then :
18807
18808 fi
18809
18810 fi
18811 fi
18812
18813 fi
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18815 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18816 case $gl_cv_header_errno_h_EMULTIHOP in
18817 yes | no)
18818 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18819 ;;
18820 *)
18821 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18822 ;;
18823 esac
18824
18825
18826 fi
18827
18828
18829 if test -n "$ERRNO_H"; then
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18831 $as_echo_n "checking for ENOLINK value... " >&6; }
18832 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18838
18839 #include <errno.h>
18840 #ifdef ENOLINK
18841 yes
18842 #endif
18843
18844 _ACEOF
18845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18846 $EGREP "yes" >/dev/null 2>&1; then :
18847 gl_cv_header_errno_h_ENOLINK=yes
18848 else
18849 gl_cv_header_errno_h_ENOLINK=no
18850 fi
18851 rm -f conftest*
18852
18853 if test $gl_cv_header_errno_h_ENOLINK = no; then
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856
18857 #define _XOPEN_SOURCE_EXTENDED 1
18858 #include <errno.h>
18859 #ifdef ENOLINK
18860 yes
18861 #endif
18862
18863 _ACEOF
18864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18865 $EGREP "yes" >/dev/null 2>&1; then :
18866 gl_cv_header_errno_h_ENOLINK=hidden
18867 fi
18868 rm -f conftest*
18869
18870 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18871 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18872 #define _XOPEN_SOURCE_EXTENDED 1
18873 #include <errno.h>
18874 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18875 #include <stdio.h>
18876 #include <stdlib.h>
18877 "; then :
18878
18879 fi
18880
18881 fi
18882 fi
18883
18884 fi
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18886 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18887 case $gl_cv_header_errno_h_ENOLINK in
18888 yes | no)
18889 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18890 ;;
18891 *)
18892 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18893 ;;
18894 esac
18895
18896
18897 fi
18898
18899
18900 if test -n "$ERRNO_H"; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18902 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18903 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18904 $as_echo_n "(cached) " >&6
18905 else
18906
18907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908 /* end confdefs.h. */
18909
18910 #include <errno.h>
18911 #ifdef EOVERFLOW
18912 yes
18913 #endif
18914
18915 _ACEOF
18916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18917 $EGREP "yes" >/dev/null 2>&1; then :
18918 gl_cv_header_errno_h_EOVERFLOW=yes
18919 else
18920 gl_cv_header_errno_h_EOVERFLOW=no
18921 fi
18922 rm -f conftest*
18923
18924 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927
18928 #define _XOPEN_SOURCE_EXTENDED 1
18929 #include <errno.h>
18930 #ifdef EOVERFLOW
18931 yes
18932 #endif
18933
18934 _ACEOF
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936 $EGREP "yes" >/dev/null 2>&1; then :
18937 gl_cv_header_errno_h_EOVERFLOW=hidden
18938 fi
18939 rm -f conftest*
18940
18941 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18942 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18943 #define _XOPEN_SOURCE_EXTENDED 1
18944 #include <errno.h>
18945 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18946 #include <stdio.h>
18947 #include <stdlib.h>
18948 "; then :
18949
18950 fi
18951
18952 fi
18953 fi
18954
18955 fi
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18957 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18958 case $gl_cv_header_errno_h_EOVERFLOW in
18959 yes | no)
18960 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18961 ;;
18962 *)
18963 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18964 ;;
18965 esac
18966
18967
18968 fi
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979 GNULIB_FCNTL=0;
18980 GNULIB_NONBLOCKING=0;
18981 GNULIB_OPEN=0;
18982 GNULIB_OPENAT=0;
18983 HAVE_FCNTL=1;
18984 HAVE_OPENAT=1;
18985 REPLACE_FCNTL=0;
18986 REPLACE_OPEN=0;
18987 REPLACE_OPENAT=0;
18988
18989
18990
18991
18992 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18993 if test "x$ac_cv_type_mode_t" = x""yes; then :
18994
18995 else
18996
18997 cat >>confdefs.h <<_ACEOF
18998 #define mode_t int
18999 _ACEOF
19000
19001 fi
19002
19003 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
19004 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
19005 ac_have_decl=1
19006 else
19007 ac_have_decl=0
19008 fi
19009
19010 cat >>confdefs.h <<_ACEOF
19011 #define HAVE_DECL_FDATASYNC $ac_have_decl
19012 _ACEOF
19013
19014
19015
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
19017 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
19018 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
19019 $as_echo_n "(cached) " >&6
19020 else
19021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022 /* end confdefs.h. */
19023
19024 #include <sys/types.h>
19025 #include <sys/stat.h>
19026 int
19027 main ()
19028 {
19029 struct stat s; s.st_dm_mode;
19030 ;
19031 return 0;
19032 }
19033 _ACEOF
19034 if ac_fn_c_try_compile "$LINENO"; then :
19035 ac_cv_struct_st_dm_mode=yes
19036 else
19037 ac_cv_struct_st_dm_mode=no
19038 fi
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 fi
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
19042 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
19043
19044 if test $ac_cv_struct_st_dm_mode = yes; then
19045
19046 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
19047
19048 fi
19049
19050
19051 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
19052 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
19053 ac_have_decl=1
19054 else
19055 ac_have_decl=0
19056 fi
19057
19058 cat >>confdefs.h <<_ACEOF
19059 #define HAVE_DECL_STRMODE $ac_have_decl
19060 _ACEOF
19061
19062
19063
19064
19065 GNULIB_FCHMODAT=0;
19066 GNULIB_FSTAT=0;
19067 GNULIB_FSTATAT=0;
19068 GNULIB_FUTIMENS=0;
19069 GNULIB_LCHMOD=0;
19070 GNULIB_LSTAT=0;
19071 GNULIB_MKDIRAT=0;
19072 GNULIB_MKFIFO=0;
19073 GNULIB_MKFIFOAT=0;
19074 GNULIB_MKNOD=0;
19075 GNULIB_MKNODAT=0;
19076 GNULIB_STAT=0;
19077 GNULIB_UTIMENSAT=0;
19078 HAVE_FCHMODAT=1;
19079 HAVE_FSTATAT=1;
19080 HAVE_FUTIMENS=1;
19081 HAVE_LCHMOD=1;
19082 HAVE_LSTAT=1;
19083 HAVE_MKDIRAT=1;
19084 HAVE_MKFIFO=1;
19085 HAVE_MKFIFOAT=1;
19086 HAVE_MKNOD=1;
19087 HAVE_MKNODAT=1;
19088 HAVE_UTIMENSAT=1;
19089 REPLACE_FSTAT=0;
19090 REPLACE_FSTATAT=0;
19091 REPLACE_FUTIMENS=0;
19092 REPLACE_LSTAT=0;
19093 REPLACE_MKDIR=0;
19094 REPLACE_MKFIFO=0;
19095 REPLACE_MKNOD=0;
19096 REPLACE_STAT=0;
19097 REPLACE_UTIMENSAT=0;
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19101 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19102 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 rm -f conftest.sym conftest.file
19106 echo >conftest.file
19107 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19108 if test "$cross_compiling" = yes; then :
19109 case "$host_os" in
19110 # Guess yes on glibc systems.
19111 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19112 # If we don't know, assume the worst.
19113 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19114 esac
19115
19116 else
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19119 $ac_includes_default
19120 int
19121 main ()
19122 {
19123 struct stat sbuf;
19124 /* Linux will dereference the symlink and fail, as required by
19125 POSIX. That is better in the sense that it means we will not
19126 have to compile and use the lstat wrapper. */
19127 return lstat ("conftest.sym/", &sbuf) == 0;
19128
19129 ;
19130 return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_c_try_run "$LINENO"; then :
19134 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19135 else
19136 gl_cv_func_lstat_dereferences_slashed_symlink=no
19137 fi
19138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19139 conftest.$ac_objext conftest.beam conftest.$ac_ext
19140 fi
19141
19142 else
19143 # If the 'ln -s' command failed, then we probably don't even
19144 # have an lstat function.
19145 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19146 fi
19147 rm -f conftest.sym conftest.file
19148
19149 fi
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19151 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19152 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19153 *yes)
19154
19155 cat >>confdefs.h <<_ACEOF
19156 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19157 _ACEOF
19158
19159 ;;
19160 esac
19161
19162
19163
19164
19165
19166
19167 GNULIB__EXIT=0;
19168 GNULIB_ATOLL=0;
19169 GNULIB_CALLOC_POSIX=0;
19170 GNULIB_CANONICALIZE_FILE_NAME=0;
19171 GNULIB_GETLOADAVG=0;
19172 GNULIB_GETSUBOPT=0;
19173 GNULIB_GRANTPT=0;
19174 GNULIB_MALLOC_POSIX=0;
19175 GNULIB_MBTOWC=0;
19176 GNULIB_MKDTEMP=0;
19177 GNULIB_MKOSTEMP=0;
19178 GNULIB_MKOSTEMPS=0;
19179 GNULIB_MKSTEMP=0;
19180 GNULIB_MKSTEMPS=0;
19181 GNULIB_POSIX_OPENPT=0;
19182 GNULIB_PTSNAME=0;
19183 GNULIB_PTSNAME_R=0;
19184 GNULIB_PUTENV=0;
19185 GNULIB_RANDOM=0;
19186 GNULIB_RANDOM_R=0;
19187 GNULIB_REALLOC_POSIX=0;
19188 GNULIB_REALPATH=0;
19189 GNULIB_RPMATCH=0;
19190 GNULIB_SECURE_GETENV=0;
19191 GNULIB_SETENV=0;
19192 GNULIB_STRTOD=0;
19193 GNULIB_STRTOLL=0;
19194 GNULIB_STRTOULL=0;
19195 GNULIB_SYSTEM_POSIX=0;
19196 GNULIB_UNLOCKPT=0;
19197 GNULIB_UNSETENV=0;
19198 GNULIB_WCTOMB=0;
19199 HAVE__EXIT=1;
19200 HAVE_ATOLL=1;
19201 HAVE_CANONICALIZE_FILE_NAME=1;
19202 HAVE_DECL_GETLOADAVG=1;
19203 HAVE_GETSUBOPT=1;
19204 HAVE_GRANTPT=1;
19205 HAVE_MKDTEMP=1;
19206 HAVE_MKOSTEMP=1;
19207 HAVE_MKOSTEMPS=1;
19208 HAVE_MKSTEMP=1;
19209 HAVE_MKSTEMPS=1;
19210 HAVE_POSIX_OPENPT=1;
19211 HAVE_PTSNAME=1;
19212 HAVE_PTSNAME_R=1;
19213 HAVE_RANDOM=1;
19214 HAVE_RANDOM_H=1;
19215 HAVE_RANDOM_R=1;
19216 HAVE_REALPATH=1;
19217 HAVE_RPMATCH=1;
19218 HAVE_SECURE_GETENV=1;
19219 HAVE_SETENV=1;
19220 HAVE_DECL_SETENV=1;
19221 HAVE_STRTOD=1;
19222 HAVE_STRTOLL=1;
19223 HAVE_STRTOULL=1;
19224 HAVE_STRUCT_RANDOM_DATA=1;
19225 HAVE_SYS_LOADAVG_H=0;
19226 HAVE_UNLOCKPT=1;
19227 HAVE_DECL_UNSETENV=1;
19228 REPLACE_CALLOC=0;
19229 REPLACE_CANONICALIZE_FILE_NAME=0;
19230 REPLACE_MALLOC=0;
19231 REPLACE_MBTOWC=0;
19232 REPLACE_MKSTEMP=0;
19233 REPLACE_PTSNAME=0;
19234 REPLACE_PTSNAME_R=0;
19235 REPLACE_PUTENV=0;
19236 REPLACE_RANDOM_R=0;
19237 REPLACE_REALLOC=0;
19238 REPLACE_REALPATH=0;
19239 REPLACE_SETENV=0;
19240 REPLACE_STRTOD=0;
19241 REPLACE_UNSETENV=0;
19242 REPLACE_WCTOMB=0;
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259 if test $gl_cv_have_include_next = yes; then
19260 gl_cv_next_getopt_h='<'getopt.h'>'
19261 else
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19263 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19264 if test "${gl_cv_next_getopt_h+set}" = set; then :
19265 $as_echo_n "(cached) " >&6
19266 else
19267
19268 if test $ac_cv_header_getopt_h = yes; then
19269
19270
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19273 #include <getopt.h>
19274
19275 _ACEOF
19276 case "$host_os" in
19277 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19278 *) gl_absname_cpp="$ac_cpp" ;;
19279 esac
19280
19281 case "$host_os" in
19282 mingw*)
19283 gl_dirsep_regex='[/\\]'
19284 ;;
19285 *)
19286 gl_dirsep_regex='\/'
19287 ;;
19288 esac
19289 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19290
19291 gl_header_literal_regex=`echo 'getopt.h' \
19292 | sed -e "$gl_make_literal_regex_sed"`
19293 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19295 s|^/[^/]|//&|
19296 p
19297 q
19298 }'
19299 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19300 sed -n "$gl_absolute_header_sed"`'"'
19301 else
19302 gl_cv_next_getopt_h='<'getopt.h'>'
19303 fi
19304
19305
19306 fi
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19308 $as_echo "$gl_cv_next_getopt_h" >&6; }
19309 fi
19310 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19311
19312 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19314 gl_next_as_first_directive='<'getopt.h'>'
19315 else
19316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19317 gl_next_as_first_directive=$gl_cv_next_getopt_h
19318 fi
19319 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19320
19321
19322
19323
19324 if test $ac_cv_header_getopt_h = yes; then
19325 HAVE_GETOPT_H=1
19326 else
19327 HAVE_GETOPT_H=0
19328 fi
19329
19330
19331 gl_replace_getopt=
19332
19333 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19334 for ac_header in getopt.h
19335 do :
19336 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19337 if test "x$ac_cv_header_getopt_h" = x""yes; then :
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_GETOPT_H 1
19340 _ACEOF
19341
19342 else
19343 gl_replace_getopt=yes
19344 fi
19345
19346 done
19347
19348 fi
19349
19350 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19351 for ac_func in getopt_long_only
19352 do :
19353 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19354 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_GETOPT_LONG_ONLY 1
19357 _ACEOF
19358
19359 else
19360 gl_replace_getopt=yes
19361 fi
19362 done
19363
19364 fi
19365
19366 if test -z "$gl_replace_getopt"; then
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19368 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19369 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19370 $as_echo_n "(cached) " >&6
19371 else
19372
19373 if test $cross_compiling = no; then
19374 if test "$cross_compiling" = yes; then :
19375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19377 as_fn_error "cannot run test program while cross compiling
19378 See \`config.log' for more details." "$LINENO" 5; }
19379 else
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19382
19383 #include <unistd.h>
19384 #include <stdlib.h>
19385 #include <string.h>
19386
19387 int
19388 main ()
19389 {
19390 static char program[] = "program";
19391 static char a[] = "-a";
19392 static char foo[] = "foo";
19393 static char bar[] = "bar";
19394 char *argv[] = { program, a, foo, bar, NULL };
19395 int c;
19396
19397 c = getopt (4, argv, "ab");
19398 if (!(c == 'a'))
19399 return 1;
19400 c = getopt (4, argv, "ab");
19401 if (!(c == -1))
19402 return 2;
19403 if (!(optind == 2))
19404 return 3;
19405 return 0;
19406 }
19407
19408 _ACEOF
19409 if ac_fn_c_try_run "$LINENO"; then :
19410 gl_cv_func_getopt_posix=maybe
19411 else
19412 gl_cv_func_getopt_posix=no
19413 fi
19414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19415 conftest.$ac_objext conftest.beam conftest.$ac_ext
19416 fi
19417
19418 if test $gl_cv_func_getopt_posix = maybe; then
19419 if test "$cross_compiling" = yes; then :
19420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19422 as_fn_error "cannot run test program while cross compiling
19423 See \`config.log' for more details." "$LINENO" 5; }
19424 else
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427
19428 #include <unistd.h>
19429 #include <stdlib.h>
19430 #include <string.h>
19431
19432 int
19433 main ()
19434 {
19435 static char program[] = "program";
19436 static char donald[] = "donald";
19437 static char p[] = "-p";
19438 static char billy[] = "billy";
19439 static char duck[] = "duck";
19440 static char a[] = "-a";
19441 static char bar[] = "bar";
19442 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19443 int c;
19444
19445 c = getopt (7, argv, "+abp:q:");
19446 if (!(c == -1))
19447 return 4;
19448 if (!(strcmp (argv[0], "program") == 0))
19449 return 5;
19450 if (!(strcmp (argv[1], "donald") == 0))
19451 return 6;
19452 if (!(strcmp (argv[2], "-p") == 0))
19453 return 7;
19454 if (!(strcmp (argv[3], "billy") == 0))
19455 return 8;
19456 if (!(strcmp (argv[4], "duck") == 0))
19457 return 9;
19458 if (!(strcmp (argv[5], "-a") == 0))
19459 return 10;
19460 if (!(strcmp (argv[6], "bar") == 0))
19461 return 11;
19462 if (!(optind == 1))
19463 return 12;
19464 return 0;
19465 }
19466
19467 _ACEOF
19468 if ac_fn_c_try_run "$LINENO"; then :
19469 gl_cv_func_getopt_posix=maybe
19470 else
19471 gl_cv_func_getopt_posix=no
19472 fi
19473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19474 conftest.$ac_objext conftest.beam conftest.$ac_ext
19475 fi
19476
19477 fi
19478 if test $gl_cv_func_getopt_posix = maybe; then
19479 if test "$cross_compiling" = yes; then :
19480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19482 as_fn_error "cannot run test program while cross compiling
19483 See \`config.log' for more details." "$LINENO" 5; }
19484 else
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19487
19488 #include <unistd.h>
19489 #include <stdlib.h>
19490 #include <string.h>
19491
19492 int
19493 main ()
19494 {
19495 static char program[] = "program";
19496 static char ab[] = "-ab";
19497 char *argv[3] = { program, ab, NULL };
19498 if (getopt (2, argv, "ab:") != 'a')
19499 return 13;
19500 if (getopt (2, argv, "ab:") != '?')
19501 return 14;
19502 if (optopt != 'b')
19503 return 15;
19504 if (optind != 2)
19505 return 16;
19506 return 0;
19507 }
19508
19509 _ACEOF
19510 if ac_fn_c_try_run "$LINENO"; then :
19511 gl_cv_func_getopt_posix=yes
19512 else
19513 gl_cv_func_getopt_posix=no
19514 fi
19515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19516 conftest.$ac_objext conftest.beam conftest.$ac_ext
19517 fi
19518
19519 fi
19520 else
19521 case "$host_os" in
19522 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19523 *) gl_cv_func_getopt_posix="guessing yes";;
19524 esac
19525 fi
19526
19527 fi
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19529 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19530 case "$gl_cv_func_getopt_posix" in
19531 *no) gl_replace_getopt=yes ;;
19532 esac
19533 fi
19534
19535 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19537 $as_echo_n "checking for working GNU getopt function... " >&6; }
19538 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19542 # optstring is necessary for programs like m4 that have POSIX-mandated
19543 # semantics for supporting options interspersed with files.
19544 # Also, since getopt_long is a GNU extension, we require optind=0.
19545 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19546 # so take care to revert to the correct (non-)export state.
19547 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19548 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19549 xx) gl_had_POSIXLY_CORRECT=exported ;;
19550 x) gl_had_POSIXLY_CORRECT=yes ;;
19551 *) gl_had_POSIXLY_CORRECT= ;;
19552 esac
19553 POSIXLY_CORRECT=1
19554 export POSIXLY_CORRECT
19555 if test "$cross_compiling" = yes; then :
19556 gl_cv_func_getopt_gnu="guessing no"
19557
19558 else
19559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19561 #include <getopt.h>
19562 #include <stddef.h>
19563 #include <string.h>
19564
19565 #include <stdlib.h>
19566 #if defined __MACH__ && defined __APPLE__
19567 /* Avoid a crash on Mac OS X. */
19568 #include <mach/mach.h>
19569 #include <mach/mach_error.h>
19570 #include <mach/thread_status.h>
19571 #include <mach/exception.h>
19572 #include <mach/task.h>
19573 #include <pthread.h>
19574 /* The exception port on which our thread listens. */
19575 static mach_port_t our_exception_port;
19576 /* The main function of the thread listening for exceptions of type
19577 EXC_BAD_ACCESS. */
19578 static void *
19579 mach_exception_thread (void *arg)
19580 {
19581 /* Buffer for a message to be received. */
19582 struct {
19583 mach_msg_header_t head;
19584 mach_msg_body_t msgh_body;
19585 char data[1024];
19586 } msg;
19587 mach_msg_return_t retval;
19588 /* Wait for a message on the exception port. */
19589 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19590 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19591 if (retval != MACH_MSG_SUCCESS)
19592 abort ();
19593 exit (1);
19594 }
19595 static void
19596 nocrash_init (void)
19597 {
19598 mach_port_t self = mach_task_self ();
19599 /* Allocate a port on which the thread shall listen for exceptions. */
19600 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19601 == KERN_SUCCESS) {
19602 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19603 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19604 MACH_MSG_TYPE_MAKE_SEND)
19605 == KERN_SUCCESS) {
19606 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19607 for us. */
19608 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19609 /* Create the thread listening on the exception port. */
19610 pthread_attr_t attr;
19611 pthread_t thread;
19612 if (pthread_attr_init (&attr) == 0
19613 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19614 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19615 pthread_attr_destroy (&attr);
19616 /* Replace the exception port info for these exceptions with our own.
19617 Note that we replace the exception port for the entire task, not only
19618 for a particular thread. This has the effect that when our exception
19619 port gets the message, the thread specific exception port has already
19620 been asked, and we don't need to bother about it.
19621 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19622 task_set_exception_ports (self, mask, our_exception_port,
19623 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19624 }
19625 }
19626 }
19627 }
19628 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19629 /* Avoid a crash on native Windows. */
19630 #define WIN32_LEAN_AND_MEAN
19631 #include <windows.h>
19632 #include <winerror.h>
19633 static LONG WINAPI
19634 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19635 {
19636 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19637 {
19638 case EXCEPTION_ACCESS_VIOLATION:
19639 case EXCEPTION_IN_PAGE_ERROR:
19640 case EXCEPTION_STACK_OVERFLOW:
19641 case EXCEPTION_GUARD_PAGE:
19642 case EXCEPTION_PRIV_INSTRUCTION:
19643 case EXCEPTION_ILLEGAL_INSTRUCTION:
19644 case EXCEPTION_DATATYPE_MISALIGNMENT:
19645 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19646 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19647 exit (1);
19648 }
19649 return EXCEPTION_CONTINUE_SEARCH;
19650 }
19651 static void
19652 nocrash_init (void)
19653 {
19654 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19655 }
19656 #else
19657 /* Avoid a crash on POSIX systems. */
19658 #include <signal.h>
19659 /* A POSIX signal handler. */
19660 static void
19661 exception_handler (int sig)
19662 {
19663 exit (1);
19664 }
19665 static void
19666 nocrash_init (void)
19667 {
19668 #ifdef SIGSEGV
19669 signal (SIGSEGV, exception_handler);
19670 #endif
19671 #ifdef SIGBUS
19672 signal (SIGBUS, exception_handler);
19673 #endif
19674 }
19675 #endif
19676
19677
19678 int
19679 main ()
19680 {
19681
19682 int result = 0;
19683
19684 nocrash_init();
19685
19686 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19687 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19688 OSF/1 5.1, Solaris 10. */
19689 {
19690 static char conftest[] = "conftest";
19691 static char plus[] = "-+";
19692 char *argv[3] = { conftest, plus, NULL };
19693 opterr = 0;
19694 if (getopt (2, argv, "+a") != '?')
19695 result |= 1;
19696 }
19697 /* This code succeeds on glibc 2.8, mingw,
19698 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19699 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19700 {
19701 static char program[] = "program";
19702 static char p[] = "-p";
19703 static char foo[] = "foo";
19704 static char bar[] = "bar";
19705 char *argv[] = { program, p, foo, bar, NULL };
19706
19707 optind = 1;
19708 if (getopt (4, argv, "p::") != 'p')
19709 result |= 2;
19710 else if (optarg != NULL)
19711 result |= 4;
19712 else if (getopt (4, argv, "p::") != -1)
19713 result |= 6;
19714 else if (optind != 2)
19715 result |= 8;
19716 }
19717 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19718 {
19719 static char program[] = "program";
19720 static char foo[] = "foo";
19721 static char p[] = "-p";
19722 char *argv[] = { program, foo, p, NULL };
19723 optind = 0;
19724 if (getopt (3, argv, "-p") != 1)
19725 result |= 16;
19726 else if (getopt (3, argv, "-p") != 'p')
19727 result |= 16;
19728 }
19729 /* This code fails on glibc 2.11. */
19730 {
19731 static char program[] = "program";
19732 static char b[] = "-b";
19733 static char a[] = "-a";
19734 char *argv[] = { program, b, a, NULL };
19735 optind = opterr = 0;
19736 if (getopt (3, argv, "+:a:b") != 'b')
19737 result |= 32;
19738 else if (getopt (3, argv, "+:a:b") != ':')
19739 result |= 32;
19740 }
19741 /* This code dumps core on glibc 2.14. */
19742 {
19743 static char program[] = "program";
19744 static char w[] = "-W";
19745 static char dummy[] = "dummy";
19746 char *argv[] = { program, w, dummy, NULL };
19747 optind = opterr = 1;
19748 if (getopt (3, argv, "W;") != 'W')
19749 result |= 64;
19750 }
19751 return result;
19752
19753 ;
19754 return 0;
19755 }
19756 _ACEOF
19757 if ac_fn_c_try_run "$LINENO"; then :
19758 gl_cv_func_getopt_gnu=yes
19759 else
19760 gl_cv_func_getopt_gnu=no
19761 fi
19762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19763 conftest.$ac_objext conftest.beam conftest.$ac_ext
19764 fi
19765
19766 case $gl_had_POSIXLY_CORRECT in
19767 exported) ;;
19768 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19769 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19770 esac
19771
19772 fi
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19774 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19775 if test "$gl_cv_func_getopt_gnu" != yes; then
19776 gl_replace_getopt=yes
19777 else
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19779 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19780 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19781 $as_echo_n "(cached) " >&6
19782 else
19783 if test "$cross_compiling" = yes; then :
19784 case "$host_os" in
19785 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19786 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19787 esac
19788
19789 else
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h. */
19792 #include <getopt.h>
19793 #include <stddef.h>
19794 #include <string.h>
19795
19796 int
19797 main ()
19798 {
19799 static const struct option long_options[] =
19800 {
19801 { "xtremely-",no_argument, NULL, 1003 },
19802 { "xtra", no_argument, NULL, 1001 },
19803 { "xtreme", no_argument, NULL, 1002 },
19804 { "xtremely", no_argument, NULL, 1003 },
19805 { NULL, 0, NULL, 0 }
19806 };
19807 /* This code fails on OpenBSD 5.0. */
19808 {
19809 static char program[] = "program";
19810 static char xtremel[] = "--xtremel";
19811 char *argv[] = { program, xtremel, NULL };
19812 int option_index;
19813 optind = 1; opterr = 0;
19814 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19815 return 1;
19816 }
19817 return 0;
19818
19819 ;
19820 return 0;
19821 }
19822 _ACEOF
19823 if ac_fn_c_try_run "$LINENO"; then :
19824 gl_cv_func_getopt_long_gnu=yes
19825 else
19826 gl_cv_func_getopt_long_gnu=no
19827 fi
19828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19829 conftest.$ac_objext conftest.beam conftest.$ac_ext
19830 fi
19831
19832
19833 fi
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19835 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19836 case "$gl_cv_func_getopt_long_gnu" in
19837 *yes) ;;
19838 *) gl_replace_getopt=yes ;;
19839 esac
19840 fi
19841 fi
19842
19843
19844
19845
19846
19847
19848 REPLACE_GETOPT=0
19849 if test -n "$gl_replace_getopt"; then
19850 REPLACE_GETOPT=1
19851 fi
19852
19853 if test $REPLACE_GETOPT = 1; then
19854
19855 GETOPT_H=getopt.h
19856
19857 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19858
19859
19860
19861 fi
19862
19863 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19864 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19865 ac_have_decl=1
19866 else
19867 ac_have_decl=0
19868 fi
19869
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_DECL_GETENV $ac_have_decl
19872 _ACEOF
19873
19874 :
19875
19876
19877
19878
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19880 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19881 if test "${ac_cv_c_restrict+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19883 else
19884 ac_cv_c_restrict=no
19885 # The order here caters to the fact that C++ does not require restrict.
19886 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889 typedef int * int_ptr;
19890 int foo (int_ptr $ac_kw ip) {
19891 return ip[0];
19892 }
19893 int
19894 main ()
19895 {
19896 int s[1];
19897 int * $ac_kw t = s;
19898 t[0] = 0;
19899 return foo(t)
19900 ;
19901 return 0;
19902 }
19903 _ACEOF
19904 if ac_fn_c_try_compile "$LINENO"; then :
19905 ac_cv_c_restrict=$ac_kw
19906 fi
19907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908 test "$ac_cv_c_restrict" != no && break
19909 done
19910
19911 fi
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19913 $as_echo "$ac_cv_c_restrict" >&6; }
19914
19915 case $ac_cv_c_restrict in
19916 restrict) ;;
19917 no) $as_echo "#define restrict /**/" >>confdefs.h
19918 ;;
19919 *) cat >>confdefs.h <<_ACEOF
19920 #define restrict $ac_cv_c_restrict
19921 _ACEOF
19922 ;;
19923 esac
19924
19925
19926 GNULIB_GETTIMEOFDAY=0;
19927 HAVE_GETTIMEOFDAY=1;
19928 HAVE_STRUCT_TIMEVAL=1;
19929 HAVE_SYS_TIME_H=1;
19930 REPLACE_GETTIMEOFDAY=0;
19931 REPLACE_STRUCT_TIMEVAL=0;
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948 if test $gl_cv_have_include_next = yes; then
19949 gl_cv_next_sys_time_h='<'sys/time.h'>'
19950 else
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19952 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19953 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19954 $as_echo_n "(cached) " >&6
19955 else
19956
19957 if test $ac_cv_header_sys_time_h = yes; then
19958
19959
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962 #include <sys/time.h>
19963
19964 _ACEOF
19965 case "$host_os" in
19966 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19967 *) gl_absname_cpp="$ac_cpp" ;;
19968 esac
19969
19970 case "$host_os" in
19971 mingw*)
19972 gl_dirsep_regex='[/\\]'
19973 ;;
19974 *)
19975 gl_dirsep_regex='\/'
19976 ;;
19977 esac
19978 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19979
19980 gl_header_literal_regex=`echo 'sys/time.h' \
19981 | sed -e "$gl_make_literal_regex_sed"`
19982 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19983 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19984 s|^/[^/]|//&|
19985 p
19986 q
19987 }'
19988 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19989 sed -n "$gl_absolute_header_sed"`'"'
19990 else
19991 gl_cv_next_sys_time_h='<'sys/time.h'>'
19992 fi
19993
19994
19995 fi
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19997 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19998 fi
19999 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
20000
20001 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20003 gl_next_as_first_directive='<'sys/time.h'>'
20004 else
20005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20006 gl_next_as_first_directive=$gl_cv_next_sys_time_h
20007 fi
20008 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
20009
20010
20011
20012
20013
20014 if test $ac_cv_header_sys_time_h != yes; then
20015 HAVE_SYS_TIME_H=0
20016 fi
20017
20018
20019
20020
20021
20022 if test $ac_cv_header_sys_socket_h != yes; then
20023 for ac_header in winsock2.h
20024 do :
20025 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20026 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
20027 cat >>confdefs.h <<_ACEOF
20028 #define HAVE_WINSOCK2_H 1
20029 _ACEOF
20030
20031 fi
20032
20033 done
20034
20035 fi
20036 if test "$ac_cv_header_winsock2_h" = yes; then
20037 HAVE_WINSOCK2_H=1
20038 UNISTD_H_HAVE_WINSOCK2_H=1
20039 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20040 else
20041 HAVE_WINSOCK2_H=0
20042 fi
20043
20044
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
20046 $as_echo_n "checking for struct timeval... " >&6; }
20047 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
20048 $as_echo_n "(cached) " >&6
20049 else
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20052 #if HAVE_SYS_TIME_H
20053 #include <sys/time.h>
20054 #endif
20055 #include <time.h>
20056 #if HAVE_WINSOCK2_H
20057 # include <winsock2.h>
20058 #endif
20059
20060 int
20061 main ()
20062 {
20063 static struct timeval x; x.tv_sec = x.tv_usec;
20064 ;
20065 return 0;
20066 }
20067 _ACEOF
20068 if ac_fn_c_try_compile "$LINENO"; then :
20069 gl_cv_sys_struct_timeval=yes
20070 else
20071 gl_cv_sys_struct_timeval=no
20072 fi
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074
20075 fi
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
20077 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
20078 if test $gl_cv_sys_struct_timeval != yes; then
20079 HAVE_STRUCT_TIMEVAL=0
20080 else
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
20082 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
20083 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
20084 $as_echo_n "(cached) " >&6
20085 else
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20088 #if HAVE_SYS_TIME_H
20089 #include <sys/time.h>
20090 #endif
20091 #include <time.h>
20092 #if HAVE_WINSOCK2_H
20093 # include <winsock2.h>
20094 #endif
20095
20096 int
20097 main ()
20098 {
20099 static struct timeval x;
20100 typedef int verify_tv_sec_type[
20101 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
20102 ];
20103
20104 ;
20105 return 0;
20106 }
20107 _ACEOF
20108 if ac_fn_c_try_compile "$LINENO"; then :
20109 gl_cv_sys_struct_timeval_tv_sec=yes
20110 else
20111 gl_cv_sys_struct_timeval_tv_sec=no
20112 fi
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114
20115 fi
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
20117 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
20118 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
20119 REPLACE_STRUCT_TIMEVAL=1
20120 fi
20121 fi
20122
20123
20124
20125
20126
20127
20128
20129
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20131 $as_echo_n "checking for long long int... " >&6; }
20132 if test "${ac_cv_type_long_long_int+set}" = set; then :
20133 $as_echo_n "(cached) " >&6
20134 else
20135 ac_cv_type_long_long_int=yes
20136 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20137 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20138 if test $ac_cv_type_long_long_int = yes; then
20139 if test "$cross_compiling" = yes; then :
20140 :
20141 else
20142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144 #include <limits.h>
20145 #ifndef LLONG_MAX
20146 # define HALF \
20147 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20148 # define LLONG_MAX (HALF - 1 + HALF)
20149 #endif
20150 int
20151 main ()
20152 {
20153 long long int n = 1;
20154 int i;
20155 for (i = 0; ; i++)
20156 {
20157 long long int m = n << i;
20158 if (m >> i != n)
20159 return 1;
20160 if (LLONG_MAX / 2 < m)
20161 break;
20162 }
20163 return 0;
20164 ;
20165 return 0;
20166 }
20167 _ACEOF
20168 if ac_fn_c_try_run "$LINENO"; then :
20169
20170 else
20171 ac_cv_type_long_long_int=no
20172 fi
20173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20174 conftest.$ac_objext conftest.beam conftest.$ac_ext
20175 fi
20176
20177 fi
20178 fi
20179 fi
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20181 $as_echo "$ac_cv_type_long_long_int" >&6; }
20182 if test $ac_cv_type_long_long_int = yes; then
20183
20184 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20185
20186 fi
20187
20188
20189
20190
20191
20192
20193 gl_cv_c_multiarch=no
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20196 #ifndef __APPLE_CC__
20197 not a universal capable compiler
20198 #endif
20199 typedef int dummy;
20200
20201 _ACEOF
20202 if ac_fn_c_try_compile "$LINENO"; then :
20203
20204 arch=
20205 prev=
20206 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20207 if test -n "$prev"; then
20208 case $word in
20209 i?86 | x86_64 | ppc | ppc64)
20210 if test -z "$arch" || test "$arch" = "$word"; then
20211 arch="$word"
20212 else
20213 gl_cv_c_multiarch=yes
20214 fi
20215 ;;
20216 esac
20217 prev=
20218 else
20219 if test "x$word" = "x-arch"; then
20220 prev=arch
20221 fi
20222 fi
20223 done
20224
20225 fi
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20227 if test $gl_cv_c_multiarch = yes; then
20228 APPLE_UNIVERSAL_BUILD=1
20229 else
20230 APPLE_UNIVERSAL_BUILD=0
20231 fi
20232
20233
20234
20235
20236
20237 if test $ac_cv_type_long_long_int = yes; then
20238 HAVE_LONG_LONG_INT=1
20239 else
20240 HAVE_LONG_LONG_INT=0
20241 fi
20242
20243
20244 if test $ac_cv_type_unsigned_long_long_int = yes; then
20245 HAVE_UNSIGNED_LONG_LONG_INT=1
20246 else
20247 HAVE_UNSIGNED_LONG_LONG_INT=0
20248 fi
20249
20250
20251
20252 if test $ac_cv_header_wchar_h = yes; then
20253 HAVE_WCHAR_H=1
20254 else
20255 HAVE_WCHAR_H=0
20256 fi
20257
20258
20259 if test $ac_cv_header_inttypes_h = yes; then
20260 HAVE_INTTYPES_H=1
20261 else
20262 HAVE_INTTYPES_H=0
20263 fi
20264
20265
20266 if test $ac_cv_header_sys_types_h = yes; then
20267 HAVE_SYS_TYPES_H=1
20268 else
20269 HAVE_SYS_TYPES_H=0
20270 fi
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282 if test $gl_cv_have_include_next = yes; then
20283 gl_cv_next_stdint_h='<'stdint.h'>'
20284 else
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20286 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20287 if test "${gl_cv_next_stdint_h+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290
20291 if test $ac_cv_header_stdint_h = yes; then
20292
20293
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296 #include <stdint.h>
20297
20298 _ACEOF
20299 case "$host_os" in
20300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20301 *) gl_absname_cpp="$ac_cpp" ;;
20302 esac
20303
20304 case "$host_os" in
20305 mingw*)
20306 gl_dirsep_regex='[/\\]'
20307 ;;
20308 *)
20309 gl_dirsep_regex='\/'
20310 ;;
20311 esac
20312 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20313
20314 gl_header_literal_regex=`echo 'stdint.h' \
20315 | sed -e "$gl_make_literal_regex_sed"`
20316 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20317 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20318 s|^/[^/]|//&|
20319 p
20320 q
20321 }'
20322 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20323 sed -n "$gl_absolute_header_sed"`'"'
20324 else
20325 gl_cv_next_stdint_h='<'stdint.h'>'
20326 fi
20327
20328
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20331 $as_echo "$gl_cv_next_stdint_h" >&6; }
20332 fi
20333 NEXT_STDINT_H=$gl_cv_next_stdint_h
20334
20335 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20337 gl_next_as_first_directive='<'stdint.h'>'
20338 else
20339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20340 gl_next_as_first_directive=$gl_cv_next_stdint_h
20341 fi
20342 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20343
20344
20345
20346
20347 if test $ac_cv_header_stdint_h = yes; then
20348 HAVE_STDINT_H=1
20349 else
20350 HAVE_STDINT_H=0
20351 fi
20352
20353
20354 if test $ac_cv_header_stdint_h = yes; then
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20356 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20357 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
20359 else
20360 gl_cv_header_working_stdint_h=no
20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362 /* end confdefs.h. */
20363
20364
20365 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20366 #include <stdint.h>
20367 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20368 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20369 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20370 #endif
20371
20372
20373 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20374 included before <wchar.h>. */
20375 #include <stddef.h>
20376 #include <signal.h>
20377 #if HAVE_WCHAR_H
20378 # include <stdio.h>
20379 # include <time.h>
20380 # include <wchar.h>
20381 #endif
20382
20383
20384 #ifdef INT8_MAX
20385 int8_t a1 = INT8_MAX;
20386 int8_t a1min = INT8_MIN;
20387 #endif
20388 #ifdef INT16_MAX
20389 int16_t a2 = INT16_MAX;
20390 int16_t a2min = INT16_MIN;
20391 #endif
20392 #ifdef INT32_MAX
20393 int32_t a3 = INT32_MAX;
20394 int32_t a3min = INT32_MIN;
20395 #endif
20396 #ifdef INT64_MAX
20397 int64_t a4 = INT64_MAX;
20398 int64_t a4min = INT64_MIN;
20399 #endif
20400 #ifdef UINT8_MAX
20401 uint8_t b1 = UINT8_MAX;
20402 #else
20403 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20404 #endif
20405 #ifdef UINT16_MAX
20406 uint16_t b2 = UINT16_MAX;
20407 #endif
20408 #ifdef UINT32_MAX
20409 uint32_t b3 = UINT32_MAX;
20410 #endif
20411 #ifdef UINT64_MAX
20412 uint64_t b4 = UINT64_MAX;
20413 #endif
20414 int_least8_t c1 = INT8_C (0x7f);
20415 int_least8_t c1max = INT_LEAST8_MAX;
20416 int_least8_t c1min = INT_LEAST8_MIN;
20417 int_least16_t c2 = INT16_C (0x7fff);
20418 int_least16_t c2max = INT_LEAST16_MAX;
20419 int_least16_t c2min = INT_LEAST16_MIN;
20420 int_least32_t c3 = INT32_C (0x7fffffff);
20421 int_least32_t c3max = INT_LEAST32_MAX;
20422 int_least32_t c3min = INT_LEAST32_MIN;
20423 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20424 int_least64_t c4max = INT_LEAST64_MAX;
20425 int_least64_t c4min = INT_LEAST64_MIN;
20426 uint_least8_t d1 = UINT8_C (0xff);
20427 uint_least8_t d1max = UINT_LEAST8_MAX;
20428 uint_least16_t d2 = UINT16_C (0xffff);
20429 uint_least16_t d2max = UINT_LEAST16_MAX;
20430 uint_least32_t d3 = UINT32_C (0xffffffff);
20431 uint_least32_t d3max = UINT_LEAST32_MAX;
20432 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20433 uint_least64_t d4max = UINT_LEAST64_MAX;
20434 int_fast8_t e1 = INT_FAST8_MAX;
20435 int_fast8_t e1min = INT_FAST8_MIN;
20436 int_fast16_t e2 = INT_FAST16_MAX;
20437 int_fast16_t e2min = INT_FAST16_MIN;
20438 int_fast32_t e3 = INT_FAST32_MAX;
20439 int_fast32_t e3min = INT_FAST32_MIN;
20440 int_fast64_t e4 = INT_FAST64_MAX;
20441 int_fast64_t e4min = INT_FAST64_MIN;
20442 uint_fast8_t f1 = UINT_FAST8_MAX;
20443 uint_fast16_t f2 = UINT_FAST16_MAX;
20444 uint_fast32_t f3 = UINT_FAST32_MAX;
20445 uint_fast64_t f4 = UINT_FAST64_MAX;
20446 #ifdef INTPTR_MAX
20447 intptr_t g = INTPTR_MAX;
20448 intptr_t gmin = INTPTR_MIN;
20449 #endif
20450 #ifdef UINTPTR_MAX
20451 uintptr_t h = UINTPTR_MAX;
20452 #endif
20453 intmax_t i = INTMAX_MAX;
20454 uintmax_t j = UINTMAX_MAX;
20455
20456 #include <limits.h> /* for CHAR_BIT */
20457 #define TYPE_MINIMUM(t) \
20458 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20459 #define TYPE_MAXIMUM(t) \
20460 ((t) ((t) 0 < (t) -1 \
20461 ? (t) -1 \
20462 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20463 struct s {
20464 int check_PTRDIFF:
20465 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20466 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20467 ? 1 : -1;
20468 /* Detect bug in FreeBSD 6.0 / ia64. */
20469 int check_SIG_ATOMIC:
20470 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20471 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20472 ? 1 : -1;
20473 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20474 int check_WCHAR:
20475 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20476 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20477 ? 1 : -1;
20478 /* Detect bug in mingw. */
20479 int check_WINT:
20480 WINT_MIN == TYPE_MINIMUM (wint_t)
20481 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20482 ? 1 : -1;
20483
20484 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20485 int check_UINT8_C:
20486 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20487 int check_UINT16_C:
20488 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20489
20490 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20491 #ifdef UINT8_MAX
20492 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20493 #endif
20494 #ifdef UINT16_MAX
20495 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20496 #endif
20497 #ifdef UINT32_MAX
20498 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20499 #endif
20500 #ifdef UINT64_MAX
20501 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20502 #endif
20503 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20504 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20505 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20506 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20507 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20508 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20509 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20510 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20511 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20512 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20513 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20514 };
20515
20516 int
20517 main ()
20518 {
20519
20520 ;
20521 return 0;
20522 }
20523 _ACEOF
20524 if ac_fn_c_try_compile "$LINENO"; then :
20525 if test "$cross_compiling" = yes; then :
20526 gl_cv_header_working_stdint_h=yes
20527
20528 else
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531
20532
20533 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20534 #include <stdint.h>
20535
20536
20537 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20538 included before <wchar.h>. */
20539 #include <stddef.h>
20540 #include <signal.h>
20541 #if HAVE_WCHAR_H
20542 # include <stdio.h>
20543 # include <time.h>
20544 # include <wchar.h>
20545 #endif
20546
20547
20548 #include <stdio.h>
20549 #include <string.h>
20550 #define MVAL(macro) MVAL1(macro)
20551 #define MVAL1(expression) #expression
20552 static const char *macro_values[] =
20553 {
20554 #ifdef INT8_MAX
20555 MVAL (INT8_MAX),
20556 #endif
20557 #ifdef INT16_MAX
20558 MVAL (INT16_MAX),
20559 #endif
20560 #ifdef INT32_MAX
20561 MVAL (INT32_MAX),
20562 #endif
20563 #ifdef INT64_MAX
20564 MVAL (INT64_MAX),
20565 #endif
20566 #ifdef UINT8_MAX
20567 MVAL (UINT8_MAX),
20568 #endif
20569 #ifdef UINT16_MAX
20570 MVAL (UINT16_MAX),
20571 #endif
20572 #ifdef UINT32_MAX
20573 MVAL (UINT32_MAX),
20574 #endif
20575 #ifdef UINT64_MAX
20576 MVAL (UINT64_MAX),
20577 #endif
20578 NULL
20579 };
20580
20581 int
20582 main ()
20583 {
20584
20585 const char **mv;
20586 for (mv = macro_values; *mv != NULL; mv++)
20587 {
20588 const char *value = *mv;
20589 /* Test whether it looks like a cast expression. */
20590 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20591 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20592 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20593 || strncmp (value, "((int)"/*)*/, 6) == 0
20594 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20595 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20596 return mv - macro_values + 1;
20597 }
20598 return 0;
20599
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 if ac_fn_c_try_run "$LINENO"; then :
20605 gl_cv_header_working_stdint_h=yes
20606 fi
20607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608 conftest.$ac_objext conftest.beam conftest.$ac_ext
20609 fi
20610
20611
20612 fi
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614
20615 fi
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20617 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20618 fi
20619 if test "$gl_cv_header_working_stdint_h" = yes; then
20620 STDINT_H=
20621 else
20622 for ac_header in sys/inttypes.h sys/bitypes.h
20623 do :
20624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20625 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20626 eval as_val=\$$as_ac_Header
20627 if test "x$as_val" = x""yes; then :
20628 cat >>confdefs.h <<_ACEOF
20629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20630 _ACEOF
20631
20632 fi
20633
20634 done
20635
20636 if test $ac_cv_header_sys_inttypes_h = yes; then
20637 HAVE_SYS_INTTYPES_H=1
20638 else
20639 HAVE_SYS_INTTYPES_H=0
20640 fi
20641
20642 if test $ac_cv_header_sys_bitypes_h = yes; then
20643 HAVE_SYS_BITYPES_H=1
20644 else
20645 HAVE_SYS_BITYPES_H=0
20646 fi
20647
20648
20649
20650
20651 if test $APPLE_UNIVERSAL_BUILD = 0; then
20652
20653
20654 for gltype in ptrdiff_t size_t ; do
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20656 $as_echo_n "checking for bit size of $gltype... " >&6; }
20657 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20658 $as_echo_n "(cached) " >&6
20659 else
20660 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20661 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20662 included before <wchar.h>. */
20663 #include <stddef.h>
20664 #include <signal.h>
20665 #if HAVE_WCHAR_H
20666 # include <stdio.h>
20667 # include <time.h>
20668 # include <wchar.h>
20669 #endif
20670
20671 #include <limits.h>"; then :
20672
20673 else
20674 result=unknown
20675 fi
20676
20677 eval gl_cv_bitsizeof_${gltype}=\$result
20678
20679 fi
20680 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20682 $as_echo "$ac_res" >&6; }
20683 eval result=\$gl_cv_bitsizeof_${gltype}
20684 if test $result = unknown; then
20685 result=0
20686 fi
20687 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20688 cat >>confdefs.h <<_ACEOF
20689 #define BITSIZEOF_${GLTYPE} $result
20690 _ACEOF
20691
20692 eval BITSIZEOF_${GLTYPE}=\$result
20693 done
20694
20695
20696 fi
20697
20698
20699 for gltype in sig_atomic_t wchar_t wint_t ; do
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20701 $as_echo_n "checking for bit size of $gltype... " >&6; }
20702 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20703 $as_echo_n "(cached) " >&6
20704 else
20705 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20707 included before <wchar.h>. */
20708 #include <stddef.h>
20709 #include <signal.h>
20710 #if HAVE_WCHAR_H
20711 # include <stdio.h>
20712 # include <time.h>
20713 # include <wchar.h>
20714 #endif
20715
20716 #include <limits.h>"; then :
20717
20718 else
20719 result=unknown
20720 fi
20721
20722 eval gl_cv_bitsizeof_${gltype}=\$result
20723
20724 fi
20725 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20727 $as_echo "$ac_res" >&6; }
20728 eval result=\$gl_cv_bitsizeof_${gltype}
20729 if test $result = unknown; then
20730 result=0
20731 fi
20732 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20733 cat >>confdefs.h <<_ACEOF
20734 #define BITSIZEOF_${GLTYPE} $result
20735 _ACEOF
20736
20737 eval BITSIZEOF_${GLTYPE}=\$result
20738 done
20739
20740
20741
20742
20743 for gltype in sig_atomic_t wchar_t wint_t ; do
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20745 $as_echo_n "checking whether $gltype is signed... " >&6; }
20746 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20747 $as_echo_n "(cached) " >&6
20748 else
20749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h. */
20751
20752 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20753 included before <wchar.h>. */
20754 #include <stddef.h>
20755 #include <signal.h>
20756 #if HAVE_WCHAR_H
20757 # include <stdio.h>
20758 # include <time.h>
20759 # include <wchar.h>
20760 #endif
20761
20762 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20763 int
20764 main ()
20765 {
20766
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 if ac_fn_c_try_compile "$LINENO"; then :
20772 result=yes
20773 else
20774 result=no
20775 fi
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 eval gl_cv_type_${gltype}_signed=\$result
20778
20779 fi
20780 eval ac_res=\$gl_cv_type_${gltype}_signed
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20782 $as_echo "$ac_res" >&6; }
20783 eval result=\$gl_cv_type_${gltype}_signed
20784 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20785 if test "$result" = yes; then
20786 cat >>confdefs.h <<_ACEOF
20787 #define HAVE_SIGNED_${GLTYPE} 1
20788 _ACEOF
20789
20790 eval HAVE_SIGNED_${GLTYPE}=1
20791 else
20792 eval HAVE_SIGNED_${GLTYPE}=0
20793 fi
20794 done
20795
20796
20797 gl_cv_type_ptrdiff_t_signed=yes
20798 gl_cv_type_size_t_signed=no
20799 if test $APPLE_UNIVERSAL_BUILD = 0; then
20800
20801
20802 for gltype in ptrdiff_t size_t ; do
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20804 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20805 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20806 $as_echo_n "(cached) " >&6
20807 else
20808 eval gl_cv_type_${gltype}_suffix=no
20809 eval result=\$gl_cv_type_${gltype}_signed
20810 if test "$result" = yes; then
20811 glsufu=
20812 else
20813 glsufu=u
20814 fi
20815 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20816 case $glsuf in
20817 '') gltype1='int';;
20818 l) gltype1='long int';;
20819 ll) gltype1='long long int';;
20820 i64) gltype1='__int64';;
20821 u) gltype1='unsigned int';;
20822 ul) gltype1='unsigned long int';;
20823 ull) gltype1='unsigned long long int';;
20824 ui64)gltype1='unsigned __int64';;
20825 esac
20826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h. */
20828
20829 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20830 included before <wchar.h>. */
20831 #include <stddef.h>
20832 #include <signal.h>
20833 #if HAVE_WCHAR_H
20834 # include <stdio.h>
20835 # include <time.h>
20836 # include <wchar.h>
20837 #endif
20838
20839 extern $gltype foo;
20840 extern $gltype1 foo;
20841 int
20842 main ()
20843 {
20844
20845 ;
20846 return 0;
20847 }
20848 _ACEOF
20849 if ac_fn_c_try_compile "$LINENO"; then :
20850 eval gl_cv_type_${gltype}_suffix=\$glsuf
20851 fi
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 eval result=\$gl_cv_type_${gltype}_suffix
20854 test "$result" != no && break
20855 done
20856 fi
20857 eval ac_res=\$gl_cv_type_${gltype}_suffix
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20859 $as_echo "$ac_res" >&6; }
20860 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20861 eval result=\$gl_cv_type_${gltype}_suffix
20862 test "$result" = no && result=
20863 eval ${GLTYPE}_SUFFIX=\$result
20864 cat >>confdefs.h <<_ACEOF
20865 #define ${GLTYPE}_SUFFIX $result
20866 _ACEOF
20867
20868 done
20869
20870
20871 fi
20872
20873
20874 for gltype in sig_atomic_t wchar_t wint_t ; do
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20876 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20877 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20878 $as_echo_n "(cached) " >&6
20879 else
20880 eval gl_cv_type_${gltype}_suffix=no
20881 eval result=\$gl_cv_type_${gltype}_signed
20882 if test "$result" = yes; then
20883 glsufu=
20884 else
20885 glsufu=u
20886 fi
20887 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20888 case $glsuf in
20889 '') gltype1='int';;
20890 l) gltype1='long int';;
20891 ll) gltype1='long long int';;
20892 i64) gltype1='__int64';;
20893 u) gltype1='unsigned int';;
20894 ul) gltype1='unsigned long int';;
20895 ull) gltype1='unsigned long long int';;
20896 ui64)gltype1='unsigned __int64';;
20897 esac
20898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20900
20901 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20902 included before <wchar.h>. */
20903 #include <stddef.h>
20904 #include <signal.h>
20905 #if HAVE_WCHAR_H
20906 # include <stdio.h>
20907 # include <time.h>
20908 # include <wchar.h>
20909 #endif
20910
20911 extern $gltype foo;
20912 extern $gltype1 foo;
20913 int
20914 main ()
20915 {
20916
20917 ;
20918 return 0;
20919 }
20920 _ACEOF
20921 if ac_fn_c_try_compile "$LINENO"; then :
20922 eval gl_cv_type_${gltype}_suffix=\$glsuf
20923 fi
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 eval result=\$gl_cv_type_${gltype}_suffix
20926 test "$result" != no && break
20927 done
20928 fi
20929 eval ac_res=\$gl_cv_type_${gltype}_suffix
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20931 $as_echo "$ac_res" >&6; }
20932 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20933 eval result=\$gl_cv_type_${gltype}_suffix
20934 test "$result" = no && result=
20935 eval ${GLTYPE}_SUFFIX=\$result
20936 cat >>confdefs.h <<_ACEOF
20937 #define ${GLTYPE}_SUFFIX $result
20938 _ACEOF
20939
20940 done
20941
20942
20943
20944 if test $BITSIZEOF_WINT_T -lt 32; then
20945 BITSIZEOF_WINT_T=32
20946 fi
20947
20948 STDINT_H=stdint.h
20949 fi
20950
20951 if test -n "$STDINT_H"; then
20952 GL_GENERATE_STDINT_H_TRUE=
20953 GL_GENERATE_STDINT_H_FALSE='#'
20954 else
20955 GL_GENERATE_STDINT_H_TRUE='#'
20956 GL_GENERATE_STDINT_H_FALSE=
20957 fi
20958
20959
20960
20961
20962
20963 GNULIB_IMAXABS=0;
20964 GNULIB_IMAXDIV=0;
20965 GNULIB_STRTOIMAX=0;
20966 GNULIB_STRTOUMAX=0;
20967 HAVE_DECL_IMAXABS=1;
20968 HAVE_DECL_IMAXDIV=1;
20969 HAVE_DECL_STRTOIMAX=1;
20970 HAVE_DECL_STRTOUMAX=1;
20971 REPLACE_STRTOIMAX=0;
20972 INT32_MAX_LT_INTMAX_MAX=1;
20973 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20974 PRI_MACROS_BROKEN=0;
20975 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20976 UINT32_MAX_LT_UINTMAX_MAX=1;
20977 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993 if test $gl_cv_have_include_next = yes; then
20994 gl_cv_next_inttypes_h='<'inttypes.h'>'
20995 else
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20997 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20998 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001
21002 if test $ac_cv_header_inttypes_h = yes; then
21003
21004
21005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21007 #include <inttypes.h>
21008
21009 _ACEOF
21010 case "$host_os" in
21011 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21012 *) gl_absname_cpp="$ac_cpp" ;;
21013 esac
21014
21015 case "$host_os" in
21016 mingw*)
21017 gl_dirsep_regex='[/\\]'
21018 ;;
21019 *)
21020 gl_dirsep_regex='\/'
21021 ;;
21022 esac
21023 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21024
21025 gl_header_literal_regex=`echo 'inttypes.h' \
21026 | sed -e "$gl_make_literal_regex_sed"`
21027 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21028 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21029 s|^/[^/]|//&|
21030 p
21031 q
21032 }'
21033 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21034 sed -n "$gl_absolute_header_sed"`'"'
21035 else
21036 gl_cv_next_inttypes_h='<'inttypes.h'>'
21037 fi
21038
21039
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21042 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21043 fi
21044 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21045
21046 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21047 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21048 gl_next_as_first_directive='<'inttypes.h'>'
21049 else
21050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21051 gl_next_as_first_directive=$gl_cv_next_inttypes_h
21052 fi
21053 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065 case "$host_os" in
21066 mingw*)
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21068 $as_echo_n "checking for 64-bit off_t... " >&6; }
21069 if test "${gl_cv_type_off_t_64+set}" = set; then :
21070 $as_echo_n "(cached) " >&6
21071 else
21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h. */
21074 #include <sys/types.h>
21075 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21076
21077 int
21078 main ()
21079 {
21080
21081 ;
21082 return 0;
21083 }
21084 _ACEOF
21085 if ac_fn_c_try_compile "$LINENO"; then :
21086 gl_cv_type_off_t_64=yes
21087 else
21088 gl_cv_type_off_t_64=no
21089 fi
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091
21092 fi
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21094 $as_echo "$gl_cv_type_off_t_64" >&6; }
21095 if test $gl_cv_type_off_t_64 = no; then
21096 WINDOWS_64_BIT_OFF_T=1
21097 else
21098 WINDOWS_64_BIT_OFF_T=0
21099 fi
21100 WINDOWS_64_BIT_ST_SIZE=1
21101 ;;
21102 *)
21103 WINDOWS_64_BIT_OFF_T=0
21104 WINDOWS_64_BIT_ST_SIZE=0
21105 ;;
21106 esac
21107
21108
21109
21110
21111 GNULIB_FFSL=0;
21112 GNULIB_FFSLL=0;
21113 GNULIB_MEMCHR=0;
21114 GNULIB_MEMMEM=0;
21115 GNULIB_MEMPCPY=0;
21116 GNULIB_MEMRCHR=0;
21117 GNULIB_RAWMEMCHR=0;
21118 GNULIB_STPCPY=0;
21119 GNULIB_STPNCPY=0;
21120 GNULIB_STRCHRNUL=0;
21121 GNULIB_STRDUP=0;
21122 GNULIB_STRNCAT=0;
21123 GNULIB_STRNDUP=0;
21124 GNULIB_STRNLEN=0;
21125 GNULIB_STRPBRK=0;
21126 GNULIB_STRSEP=0;
21127 GNULIB_STRSTR=0;
21128 GNULIB_STRCASESTR=0;
21129 GNULIB_STRTOK_R=0;
21130 GNULIB_MBSLEN=0;
21131 GNULIB_MBSNLEN=0;
21132 GNULIB_MBSCHR=0;
21133 GNULIB_MBSRCHR=0;
21134 GNULIB_MBSSTR=0;
21135 GNULIB_MBSCASECMP=0;
21136 GNULIB_MBSNCASECMP=0;
21137 GNULIB_MBSPCASECMP=0;
21138 GNULIB_MBSCASESTR=0;
21139 GNULIB_MBSCSPN=0;
21140 GNULIB_MBSPBRK=0;
21141 GNULIB_MBSSPN=0;
21142 GNULIB_MBSSEP=0;
21143 GNULIB_MBSTOK_R=0;
21144 GNULIB_STRERROR=0;
21145 GNULIB_STRERROR_R=0;
21146 GNULIB_STRSIGNAL=0;
21147 GNULIB_STRVERSCMP=0;
21148 HAVE_MBSLEN=0;
21149 HAVE_FFSL=1;
21150 HAVE_FFSLL=1;
21151 HAVE_MEMCHR=1;
21152 HAVE_DECL_MEMMEM=1;
21153 HAVE_MEMPCPY=1;
21154 HAVE_DECL_MEMRCHR=1;
21155 HAVE_RAWMEMCHR=1;
21156 HAVE_STPCPY=1;
21157 HAVE_STPNCPY=1;
21158 HAVE_STRCHRNUL=1;
21159 HAVE_DECL_STRDUP=1;
21160 HAVE_DECL_STRNDUP=1;
21161 HAVE_DECL_STRNLEN=1;
21162 HAVE_STRPBRK=1;
21163 HAVE_STRSEP=1;
21164 HAVE_STRCASESTR=1;
21165 HAVE_DECL_STRTOK_R=1;
21166 HAVE_DECL_STRERROR_R=1;
21167 HAVE_DECL_STRSIGNAL=1;
21168 HAVE_STRVERSCMP=1;
21169 REPLACE_MEMCHR=0;
21170 REPLACE_MEMMEM=0;
21171 REPLACE_STPNCPY=0;
21172 REPLACE_STRDUP=0;
21173 REPLACE_STRSTR=0;
21174 REPLACE_STRCASESTR=0;
21175 REPLACE_STRCHRNUL=0;
21176 REPLACE_STRERROR=0;
21177 REPLACE_STRERROR_R=0;
21178 REPLACE_STRNCAT=0;
21179 REPLACE_STRNDUP=0;
21180 REPLACE_STRNLEN=0;
21181 REPLACE_STRSIGNAL=0;
21182 REPLACE_STRTOK_R=0;
21183 UNDEFINE_STRTOK_R=0;
21184
21185 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21186 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
21187 ac_have_decl=1
21188 else
21189 ac_have_decl=0
21190 fi
21191
21192 cat >>confdefs.h <<_ACEOF
21193 #define HAVE_DECL_MEMRCHR $ac_have_decl
21194 _ACEOF
21195
21196
21197
21198
21199 GNULIB_MKTIME=0;
21200 GNULIB_NANOSLEEP=0;
21201 GNULIB_STRPTIME=0;
21202 GNULIB_TIMEGM=0;
21203 GNULIB_TIME_R=0;
21204 HAVE_DECL_LOCALTIME_R=1;
21205 HAVE_NANOSLEEP=1;
21206 HAVE_STRPTIME=1;
21207 HAVE_TIMEGM=1;
21208 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21209 REPLACE_MKTIME=GNULIB_PORTCHECK;
21210 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21211 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21212
21213 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21214 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
21215 ac_have_decl=1
21216 else
21217 ac_have_decl=0
21218 fi
21219
21220 cat >>confdefs.h <<_ACEOF
21221 #define HAVE_DECL_ALARM $ac_have_decl
21222 _ACEOF
21223
21224
21225
21226
21227 GNULIB_PSELECT=0;
21228 GNULIB_SELECT=0;
21229 HAVE_PSELECT=1;
21230 REPLACE_PSELECT=0;
21231 REPLACE_SELECT=0;
21232
21233
21234
21235
21236
21237
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21239 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21240 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21241 $as_echo_n "(cached) " >&6
21242 else
21243
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h. */
21246 #include <sys/select.h>
21247 int
21248 main ()
21249 {
21250 struct timeval b;
21251 ;
21252 return 0;
21253 }
21254 _ACEOF
21255 if ac_fn_c_try_compile "$LINENO"; then :
21256 gl_cv_header_sys_select_h_selfcontained=yes
21257 else
21258 gl_cv_header_sys_select_h_selfcontained=no
21259 fi
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263 /* end confdefs.h. */
21264 #include <sys/select.h>
21265 int
21266 main ()
21267 {
21268 int memset; int bzero;
21269 ;
21270 return 0;
21271 }
21272
21273 _ACEOF
21274 if ac_fn_c_try_compile "$LINENO"; then :
21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21277 #include <sys/select.h>
21278 int
21279 main ()
21280 {
21281
21282 #undef memset
21283 #define memset nonexistent_memset
21284 extern
21285 #ifdef __cplusplus
21286 "C"
21287 #endif
21288 void *memset (void *, int, unsigned long);
21289 #undef bzero
21290 #define bzero nonexistent_bzero
21291 extern
21292 #ifdef __cplusplus
21293 "C"
21294 #endif
21295 void bzero (void *, unsigned long);
21296 fd_set fds;
21297 FD_ZERO (&fds);
21298
21299 ;
21300 return 0;
21301 }
21302
21303 _ACEOF
21304 if ac_fn_c_try_link "$LINENO"; then :
21305
21306 else
21307 gl_cv_header_sys_select_h_selfcontained=no
21308 fi
21309 rm -f core conftest.err conftest.$ac_objext \
21310 conftest$ac_exeext conftest.$ac_ext
21311
21312 fi
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315
21316 fi
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21318 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328 if test $gl_cv_have_include_next = yes; then
21329 gl_cv_next_sys_select_h='<'sys/select.h'>'
21330 else
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21332 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21333 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21334 $as_echo_n "(cached) " >&6
21335 else
21336
21337 if test $ac_cv_header_sys_select_h = yes; then
21338
21339
21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341 /* end confdefs.h. */
21342 #include <sys/select.h>
21343
21344 _ACEOF
21345 case "$host_os" in
21346 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21347 *) gl_absname_cpp="$ac_cpp" ;;
21348 esac
21349
21350 case "$host_os" in
21351 mingw*)
21352 gl_dirsep_regex='[/\\]'
21353 ;;
21354 *)
21355 gl_dirsep_regex='\/'
21356 ;;
21357 esac
21358 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21359
21360 gl_header_literal_regex=`echo 'sys/select.h' \
21361 | sed -e "$gl_make_literal_regex_sed"`
21362 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21363 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21364 s|^/[^/]|//&|
21365 p
21366 q
21367 }'
21368 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21369 sed -n "$gl_absolute_header_sed"`'"'
21370 else
21371 gl_cv_next_sys_select_h='<'sys/select.h'>'
21372 fi
21373
21374
21375 fi
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21377 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21378 fi
21379 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21380
21381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21383 gl_next_as_first_directive='<'sys/select.h'>'
21384 else
21385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21386 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21387 fi
21388 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21389
21390
21391
21392
21393 if test $ac_cv_header_sys_select_h = yes; then
21394 HAVE_SYS_SELECT_H=1
21395 else
21396 HAVE_SYS_SELECT_H=0
21397 fi
21398
21399
21400
21401
21402
21403 if test $ac_cv_header_sys_socket_h != yes; then
21404 for ac_header in winsock2.h
21405 do :
21406 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21407 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21408 cat >>confdefs.h <<_ACEOF
21409 #define HAVE_WINSOCK2_H 1
21410 _ACEOF
21411
21412 fi
21413
21414 done
21415
21416 fi
21417 if test "$ac_cv_header_winsock2_h" = yes; then
21418 HAVE_WINSOCK2_H=1
21419 UNISTD_H_HAVE_WINSOCK2_H=1
21420 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21421 else
21422 HAVE_WINSOCK2_H=0
21423 fi
21424
21425
21426
21427
21428
21429
21430
21431
21432 GNULIB_PTHREAD_SIGMASK=0;
21433 GNULIB_RAISE=0;
21434 GNULIB_SIGNAL_H_SIGPIPE=0;
21435 GNULIB_SIGPROCMASK=0;
21436 GNULIB_SIGACTION=0;
21437 HAVE_POSIX_SIGNALBLOCKING=1;
21438 HAVE_PTHREAD_SIGMASK=1;
21439 HAVE_RAISE=1;
21440 HAVE_SIGSET_T=1;
21441 HAVE_SIGINFO_T=1;
21442 HAVE_SIGACTION=1;
21443 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21444
21445 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21446
21447 HAVE_SIGHANDLER_T=1;
21448 REPLACE_PTHREAD_SIGMASK=0;
21449 REPLACE_RAISE=0;
21450
21451
21452
21453
21454
21455
21456
21457 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21458 #include <signal.h>
21459 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21460 #include <sys/types.h>
21461
21462 "
21463 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21464
21465 cat >>confdefs.h <<_ACEOF
21466 #define HAVE_SIGSET_T 1
21467 _ACEOF
21468
21469 gl_cv_type_sigset_t=yes
21470 else
21471 gl_cv_type_sigset_t=no
21472 fi
21473
21474 if test $gl_cv_type_sigset_t != yes; then
21475 HAVE_SIGSET_T=0
21476 fi
21477
21478
21479
21480 if test $ac_cv_header_sys_socket_h = no; then
21481 for ac_header in ws2tcpip.h
21482 do :
21483 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21484 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21485 cat >>confdefs.h <<_ACEOF
21486 #define HAVE_WS2TCPIP_H 1
21487 _ACEOF
21488
21489 fi
21490
21491 done
21492
21493 fi
21494
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21496 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21497 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21499 else
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21502
21503 #include <stdbool.h>
21504 #ifndef bool
21505 "error: bool is not defined"
21506 #endif
21507 #ifndef false
21508 "error: false is not defined"
21509 #endif
21510 #if false
21511 "error: false is not 0"
21512 #endif
21513 #ifndef true
21514 "error: true is not defined"
21515 #endif
21516 #if true != 1
21517 "error: true is not 1"
21518 #endif
21519 #ifndef __bool_true_false_are_defined
21520 "error: __bool_true_false_are_defined is not defined"
21521 #endif
21522
21523 struct s { _Bool s: 1; _Bool t; } s;
21524
21525 char a[true == 1 ? 1 : -1];
21526 char b[false == 0 ? 1 : -1];
21527 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21528 char d[(bool) 0.5 == true ? 1 : -1];
21529 /* See body of main program for 'e'. */
21530 char f[(_Bool) 0.0 == false ? 1 : -1];
21531 char g[true];
21532 char h[sizeof (_Bool)];
21533 char i[sizeof s.t];
21534 enum { j = false, k = true, l = false * true, m = true * 256 };
21535 /* The following fails for
21536 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21537 _Bool n[m];
21538 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21539 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21540 /* Catch a bug in an HP-UX C compiler. See
21541 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21542 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21543 */
21544 _Bool q = true;
21545 _Bool *pq = &q;
21546
21547 int
21548 main ()
21549 {
21550
21551 bool e = &s;
21552 *pq |= q;
21553 *pq |= ! q;
21554 /* Refer to every declared value, to avoid compiler optimizations. */
21555 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21556 + !m + !n + !o + !p + !q + !pq);
21557
21558 ;
21559 return 0;
21560 }
21561 _ACEOF
21562 if ac_fn_c_try_compile "$LINENO"; then :
21563 ac_cv_header_stdbool_h=yes
21564 else
21565 ac_cv_header_stdbool_h=no
21566 fi
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 fi
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21570 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21571 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21572 if test "x$ac_cv_type__Bool" = x""yes; then :
21573
21574 cat >>confdefs.h <<_ACEOF
21575 #define HAVE__BOOL 1
21576 _ACEOF
21577
21578
21579 fi
21580
21581
21582
21583 REPLACE_NULL=0;
21584 HAVE_WCHAR_T=1;
21585
21586
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21588 $as_echo_n "checking for wchar_t... " >&6; }
21589 if test "${gt_cv_c_wchar_t+set}" = set; then :
21590 $as_echo_n "(cached) " >&6
21591 else
21592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21594 #include <stddef.h>
21595 wchar_t foo = (wchar_t)'\0';
21596 int
21597 main ()
21598 {
21599
21600 ;
21601 return 0;
21602 }
21603 _ACEOF
21604 if ac_fn_c_try_compile "$LINENO"; then :
21605 gt_cv_c_wchar_t=yes
21606 else
21607 gt_cv_c_wchar_t=no
21608 fi
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 fi
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21612 $as_echo "$gt_cv_c_wchar_t" >&6; }
21613 if test $gt_cv_c_wchar_t = yes; then
21614
21615 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21616
21617 fi
21618
21619
21620 GNULIB_DPRINTF=0;
21621 GNULIB_FCLOSE=0;
21622 GNULIB_FDOPEN=0;
21623 GNULIB_FFLUSH=0;
21624 GNULIB_FGETC=0;
21625 GNULIB_FGETS=0;
21626 GNULIB_FOPEN=0;
21627 GNULIB_FPRINTF=0;
21628 GNULIB_FPRINTF_POSIX=0;
21629 GNULIB_FPURGE=0;
21630 GNULIB_FPUTC=0;
21631 GNULIB_FPUTS=0;
21632 GNULIB_FREAD=0;
21633 GNULIB_FREOPEN=0;
21634 GNULIB_FSCANF=0;
21635 GNULIB_FSEEK=0;
21636 GNULIB_FSEEKO=0;
21637 GNULIB_FTELL=0;
21638 GNULIB_FTELLO=0;
21639 GNULIB_FWRITE=0;
21640 GNULIB_GETC=0;
21641 GNULIB_GETCHAR=0;
21642 GNULIB_GETDELIM=0;
21643 GNULIB_GETLINE=0;
21644 GNULIB_OBSTACK_PRINTF=0;
21645 GNULIB_OBSTACK_PRINTF_POSIX=0;
21646 GNULIB_PCLOSE=0;
21647 GNULIB_PERROR=0;
21648 GNULIB_POPEN=0;
21649 GNULIB_PRINTF=0;
21650 GNULIB_PRINTF_POSIX=0;
21651 GNULIB_PUTC=0;
21652 GNULIB_PUTCHAR=0;
21653 GNULIB_PUTS=0;
21654 GNULIB_REMOVE=0;
21655 GNULIB_RENAME=0;
21656 GNULIB_RENAMEAT=0;
21657 GNULIB_SCANF=0;
21658 GNULIB_SNPRINTF=0;
21659 GNULIB_SPRINTF_POSIX=0;
21660 GNULIB_STDIO_H_NONBLOCKING=0;
21661 GNULIB_STDIO_H_SIGPIPE=0;
21662 GNULIB_TMPFILE=0;
21663 GNULIB_VASPRINTF=0;
21664 GNULIB_VFSCANF=0;
21665 GNULIB_VSCANF=0;
21666 GNULIB_VDPRINTF=0;
21667 GNULIB_VFPRINTF=0;
21668 GNULIB_VFPRINTF_POSIX=0;
21669 GNULIB_VPRINTF=0;
21670 GNULIB_VPRINTF_POSIX=0;
21671 GNULIB_VSNPRINTF=0;
21672 GNULIB_VSPRINTF_POSIX=0;
21673 HAVE_DECL_FPURGE=1;
21674 HAVE_DECL_FSEEKO=1;
21675 HAVE_DECL_FTELLO=1;
21676 HAVE_DECL_GETDELIM=1;
21677 HAVE_DECL_GETLINE=1;
21678 HAVE_DECL_OBSTACK_PRINTF=1;
21679 HAVE_DECL_SNPRINTF=1;
21680 HAVE_DECL_VSNPRINTF=1;
21681 HAVE_DPRINTF=1;
21682 HAVE_FSEEKO=1;
21683 HAVE_FTELLO=1;
21684 HAVE_PCLOSE=1;
21685 HAVE_POPEN=1;
21686 HAVE_RENAMEAT=1;
21687 HAVE_VASPRINTF=1;
21688 HAVE_VDPRINTF=1;
21689 REPLACE_DPRINTF=0;
21690 REPLACE_FCLOSE=0;
21691 REPLACE_FDOPEN=0;
21692 REPLACE_FFLUSH=0;
21693 REPLACE_FOPEN=0;
21694 REPLACE_FPRINTF=0;
21695 REPLACE_FPURGE=0;
21696 REPLACE_FREOPEN=0;
21697 REPLACE_FSEEK=0;
21698 REPLACE_FSEEKO=0;
21699 REPLACE_FTELL=0;
21700 REPLACE_FTELLO=0;
21701 REPLACE_GETDELIM=0;
21702 REPLACE_GETLINE=0;
21703 REPLACE_OBSTACK_PRINTF=0;
21704 REPLACE_PERROR=0;
21705 REPLACE_POPEN=0;
21706 REPLACE_PRINTF=0;
21707 REPLACE_REMOVE=0;
21708 REPLACE_RENAME=0;
21709 REPLACE_RENAMEAT=0;
21710 REPLACE_SNPRINTF=0;
21711 REPLACE_SPRINTF=0;
21712 REPLACE_STDIO_READ_FUNCS=0;
21713 REPLACE_STDIO_WRITE_FUNCS=0;
21714 REPLACE_TMPFILE=0;
21715 REPLACE_VASPRINTF=0;
21716 REPLACE_VDPRINTF=0;
21717 REPLACE_VFPRINTF=0;
21718 REPLACE_VPRINTF=0;
21719 REPLACE_VSNPRINTF=0;
21720 REPLACE_VSPRINTF=0;
21721
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21723 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21724 if test "${ac_cv_struct_tm+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21726 else
21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21729 #include <sys/types.h>
21730 #include <time.h>
21731
21732 int
21733 main ()
21734 {
21735 struct tm tm;
21736 int *p = &tm.tm_sec;
21737 return !p;
21738 ;
21739 return 0;
21740 }
21741 _ACEOF
21742 if ac_fn_c_try_compile "$LINENO"; then :
21743 ac_cv_struct_tm=time.h
21744 else
21745 ac_cv_struct_tm=sys/time.h
21746 fi
21747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21750 $as_echo "$ac_cv_struct_tm" >&6; }
21751 if test $ac_cv_struct_tm = sys/time.h; then
21752
21753 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21754
21755 fi
21756
21757 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21758 #include <$ac_cv_struct_tm>
21759
21760 "
21761 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21762
21763 cat >>confdefs.h <<_ACEOF
21764 #define HAVE_STRUCT_TM_TM_ZONE 1
21765 _ACEOF
21766
21767
21768 fi
21769
21770 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21771
21772 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21773
21774 else
21775 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21776 "
21777 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21778 ac_have_decl=1
21779 else
21780 ac_have_decl=0
21781 fi
21782
21783 cat >>confdefs.h <<_ACEOF
21784 #define HAVE_DECL_TZNAME $ac_have_decl
21785 _ACEOF
21786
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21788 $as_echo_n "checking for tzname... " >&6; }
21789 if test "${ac_cv_var_tzname+set}" = set; then :
21790 $as_echo_n "(cached) " >&6
21791 else
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21794 #include <time.h>
21795 #if !HAVE_DECL_TZNAME
21796 extern char *tzname[];
21797 #endif
21798
21799 int
21800 main ()
21801 {
21802 return tzname[0][0];
21803 ;
21804 return 0;
21805 }
21806 _ACEOF
21807 if ac_fn_c_try_link "$LINENO"; then :
21808 ac_cv_var_tzname=yes
21809 else
21810 ac_cv_var_tzname=no
21811 fi
21812 rm -f core conftest.err conftest.$ac_objext \
21813 conftest$ac_exeext conftest.$ac_ext
21814 fi
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21816 $as_echo "$ac_cv_var_tzname" >&6; }
21817 if test $ac_cv_var_tzname = yes; then
21818
21819 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21820
21821 fi
21822 fi
21823
21824
21825 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21826 "
21827 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21828
21829 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21830
21831 fi
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845 if test $gl_cv_have_include_next = yes; then
21846 gl_cv_next_string_h='<'string.h'>'
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21849 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21850 if test "${gl_cv_next_string_h+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853
21854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855 /* end confdefs.h. */
21856 #include <string.h>
21857
21858 _ACEOF
21859 case "$host_os" in
21860 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21861 *) gl_absname_cpp="$ac_cpp" ;;
21862 esac
21863
21864 case "$host_os" in
21865 mingw*)
21866 gl_dirsep_regex='[/\\]'
21867 ;;
21868 *)
21869 gl_dirsep_regex='\/'
21870 ;;
21871 esac
21872 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21873
21874 gl_header_literal_regex=`echo 'string.h' \
21875 | sed -e "$gl_make_literal_regex_sed"`
21876 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21877 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21878 s|^/[^/]|//&|
21879 p
21880 q
21881 }'
21882 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21883 sed -n "$gl_absolute_header_sed"`'"'
21884
21885
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21888 $as_echo "$gl_cv_next_string_h" >&6; }
21889 fi
21890 NEXT_STRING_H=$gl_cv_next_string_h
21891
21892 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21894 gl_next_as_first_directive='<'string.h'>'
21895 else
21896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21897 gl_next_as_first_directive=$gl_cv_next_string_h
21898 fi
21899 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21910 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21911 ac_have_decl=1
21912 else
21913 ac_have_decl=0
21914 fi
21915
21916 cat >>confdefs.h <<_ACEOF
21917 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21918 _ACEOF
21919
21920
21921
21922 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21923 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21924 ac_have_decl=1
21925 else
21926 ac_have_decl=0
21927 fi
21928
21929 cat >>confdefs.h <<_ACEOF
21930 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21931 _ACEOF
21932
21933
21934
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21936 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21937 if test "${ac_cv_header_stat_broken+set}" = set; then :
21938 $as_echo_n "(cached) " >&6
21939 else
21940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21942 #include <sys/types.h>
21943 #include <sys/stat.h>
21944
21945 #if defined S_ISBLK && defined S_IFDIR
21946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21947 #endif
21948
21949 #if defined S_ISBLK && defined S_IFCHR
21950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21951 #endif
21952
21953 #if defined S_ISLNK && defined S_IFREG
21954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21955 #endif
21956
21957 #if defined S_ISSOCK && defined S_IFREG
21958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21959 #endif
21960
21961 _ACEOF
21962 if ac_fn_c_try_compile "$LINENO"; then :
21963 ac_cv_header_stat_broken=no
21964 else
21965 ac_cv_header_stat_broken=yes
21966 fi
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 fi
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21970 $as_echo "$ac_cv_header_stat_broken" >&6; }
21971 if test $ac_cv_header_stat_broken = yes; then
21972
21973 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21974
21975 fi
21976
21977
21978
21979
21980
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21982 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21983 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #include <time.h>
21989
21990 int
21991 main ()
21992 {
21993 static struct timespec x; x.tv_sec = x.tv_nsec;
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 if ac_fn_c_try_compile "$LINENO"; then :
21999 gl_cv_sys_struct_timespec_in_time_h=yes
22000 else
22001 gl_cv_sys_struct_timespec_in_time_h=no
22002 fi
22003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 fi
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22006 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22007
22008 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22009 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22010 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22011 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22012 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22013 else
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22015 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22016 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
22018 else
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include <sys/time.h>
22022
22023 int
22024 main ()
22025 {
22026 static struct timespec x; x.tv_sec = x.tv_nsec;
22027 ;
22028 return 0;
22029 }
22030 _ACEOF
22031 if ac_fn_c_try_compile "$LINENO"; then :
22032 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22033 else
22034 gl_cv_sys_struct_timespec_in_sys_time_h=no
22035 fi
22036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 fi
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22039 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22040 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22041 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22042 else
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22044 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22045 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22047 else
22048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h. */
22050 #include <pthread.h>
22051
22052 int
22053 main ()
22054 {
22055 static struct timespec x; x.tv_sec = x.tv_nsec;
22056 ;
22057 return 0;
22058 }
22059 _ACEOF
22060 if ac_fn_c_try_compile "$LINENO"; then :
22061 gl_cv_sys_struct_timespec_in_pthread_h=yes
22062 else
22063 gl_cv_sys_struct_timespec_in_pthread_h=no
22064 fi
22065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 fi
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22068 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22069 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22070 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22071 fi
22072 fi
22073 fi
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089 if test $gl_cv_have_include_next = yes; then
22090 gl_cv_next_time_h='<'time.h'>'
22091 else
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22093 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22094 if test "${gl_cv_next_time_h+set}" = set; then :
22095 $as_echo_n "(cached) " >&6
22096 else
22097
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22100 #include <time.h>
22101
22102 _ACEOF
22103 case "$host_os" in
22104 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22105 *) gl_absname_cpp="$ac_cpp" ;;
22106 esac
22107
22108 case "$host_os" in
22109 mingw*)
22110 gl_dirsep_regex='[/\\]'
22111 ;;
22112 *)
22113 gl_dirsep_regex='\/'
22114 ;;
22115 esac
22116 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22117
22118 gl_header_literal_regex=`echo 'time.h' \
22119 | sed -e "$gl_make_literal_regex_sed"`
22120 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22121 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22122 s|^/[^/]|//&|
22123 p
22124 q
22125 }'
22126 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22127 sed -n "$gl_absolute_header_sed"`'"'
22128
22129
22130 fi
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22132 $as_echo "$gl_cv_next_time_h" >&6; }
22133 fi
22134 NEXT_TIME_H=$gl_cv_next_time_h
22135
22136 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22138 gl_next_as_first_directive='<'time.h'>'
22139 else
22140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22141 gl_next_as_first_directive=$gl_cv_next_time_h
22142 fi
22143 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22159 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
22160 ac_have_decl=1
22161 else
22162 ac_have_decl=0
22163 fi
22164
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_DECL_UNSETENV $ac_have_decl
22167 _ACEOF
22168
22169
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22171 $as_echo_n "checking whether the utimes function works... " >&6; }
22172 if test "${gl_cv_func_working_utimes+set}" = set; then :
22173 $as_echo_n "(cached) " >&6
22174 else
22175
22176 if test "$cross_compiling" = yes; then :
22177 gl_cv_func_working_utimes=no
22178 else
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22181
22182 #include <sys/types.h>
22183 #include <sys/stat.h>
22184 #include <fcntl.h>
22185 #include <sys/time.h>
22186 #include <time.h>
22187 #include <unistd.h>
22188 #include <stdlib.h>
22189 #include <stdio.h>
22190 #include <utime.h>
22191
22192 static int
22193 inorder (time_t a, time_t b, time_t c)
22194 {
22195 return a <= b && b <= c;
22196 }
22197
22198 int
22199 main ()
22200 {
22201 int result = 0;
22202 char const *file = "conftest.utimes";
22203 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22204
22205 /* Test whether utimes() essentially works. */
22206 {
22207 struct stat sbuf;
22208 FILE *f = fopen (file, "w");
22209 if (f == NULL)
22210 result |= 1;
22211 else if (fclose (f) != 0)
22212 result |= 1;
22213 else if (utimes (file, timeval) != 0)
22214 result |= 2;
22215 else if (lstat (file, &sbuf) != 0)
22216 result |= 1;
22217 else if (!(sbuf.st_atime == timeval[0].tv_sec
22218 && sbuf.st_mtime == timeval[1].tv_sec))
22219 result |= 4;
22220 if (unlink (file) != 0)
22221 result |= 1;
22222 }
22223
22224 /* Test whether utimes() with a NULL argument sets the file's timestamp
22225 to the current time. Use 'fstat' as well as 'time' to
22226 determine the "current" time, to accommodate NFS file systems
22227 if there is a time skew between the host and the NFS server. */
22228 {
22229 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22230 if (fd < 0)
22231 result |= 1;
22232 else
22233 {
22234 time_t t0, t2;
22235 struct stat st0, st1, st2;
22236 if (time (&t0) == (time_t) -1)
22237 result |= 1;
22238 else if (fstat (fd, &st0) != 0)
22239 result |= 1;
22240 else if (utimes (file, timeval) != 0)
22241 result |= 2;
22242 else if (utimes (file, NULL) != 0)
22243 result |= 8;
22244 else if (fstat (fd, &st1) != 0)
22245 result |= 1;
22246 else if (write (fd, "\n", 1) != 1)
22247 result |= 1;
22248 else if (fstat (fd, &st2) != 0)
22249 result |= 1;
22250 else if (time (&t2) == (time_t) -1)
22251 result |= 1;
22252 else
22253 {
22254 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22255 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22256 if (! (st1.st_atime == st1.st_mtime))
22257 result |= 16;
22258 if (! (m_ok_POSIX || m_ok_NFS))
22259 result |= 32;
22260 }
22261 if (close (fd) != 0)
22262 result |= 1;
22263 }
22264 if (unlink (file) != 0)
22265 result |= 1;
22266 }
22267
22268 /* Test whether utimes() with a NULL argument works on read-only files. */
22269 {
22270 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22271 if (fd < 0)
22272 result |= 1;
22273 else if (close (fd) != 0)
22274 result |= 1;
22275 else if (utimes (file, NULL) != 0)
22276 result |= 64;
22277 if (unlink (file) != 0)
22278 result |= 1;
22279 }
22280
22281 return result;
22282 }
22283
22284 _ACEOF
22285 if ac_fn_c_try_run "$LINENO"; then :
22286 gl_cv_func_working_utimes=yes
22287 else
22288 gl_cv_func_working_utimes=no
22289 fi
22290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22291 conftest.$ac_objext conftest.beam conftest.$ac_ext
22292 fi
22293
22294 fi
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22296 $as_echo "$gl_cv_func_working_utimes" >&6; }
22297
22298 if test $gl_cv_func_working_utimes = yes; then
22299
22300 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22301
22302 fi
22303
22304
22305
22306
22307
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22309 $as_echo_n "checking for struct utimbuf... " >&6; }
22310 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22312 else
22313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22315 #if HAVE_SYS_TIME_H
22316 #include <sys/time.h>
22317 #endif
22318 #include <time.h>
22319 #ifdef HAVE_UTIME_H
22320 #include <utime.h>
22321 #endif
22322
22323 int
22324 main ()
22325 {
22326 static struct utimbuf x; x.actime = x.modtime;
22327 ;
22328 return 0;
22329 }
22330 _ACEOF
22331 if ac_fn_c_try_compile "$LINENO"; then :
22332 gl_cv_sys_struct_utimbuf=yes
22333 else
22334 gl_cv_sys_struct_utimbuf=no
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 fi
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22339 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22340
22341 if test $gl_cv_sys_struct_utimbuf = yes; then
22342
22343 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22344
22345 fi
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22358 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22359 if test "${ac_cv_type_getgroups+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22361 else
22362 if test "$cross_compiling" = yes; then :
22363 ac_cv_type_getgroups=cross
22364 else
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22367 /* Thanks to Mike Rendell for this test. */
22368 $ac_includes_default
22369 #define NGID 256
22370 #undef MAX
22371 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22372
22373 int
22374 main ()
22375 {
22376 gid_t gidset[NGID];
22377 int i, n;
22378 union { gid_t gval; long int lval; } val;
22379
22380 val.lval = -1;
22381 for (i = 0; i < NGID; i++)
22382 gidset[i] = val.gval;
22383 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22384 gidset);
22385 /* Exit non-zero if getgroups seems to require an array of ints. This
22386 happens when gid_t is short int but getgroups modifies an array
22387 of ints. */
22388 return n > 0 && gidset[n] != val.gval;
22389 }
22390 _ACEOF
22391 if ac_fn_c_try_run "$LINENO"; then :
22392 ac_cv_type_getgroups=gid_t
22393 else
22394 ac_cv_type_getgroups=int
22395 fi
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22397 conftest.$ac_objext conftest.beam conftest.$ac_ext
22398 fi
22399
22400 if test $ac_cv_type_getgroups = cross; then
22401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22402 /* end confdefs.h. */
22403 #include <unistd.h>
22404
22405 _ACEOF
22406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22407 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22408 ac_cv_type_getgroups=gid_t
22409 else
22410 ac_cv_type_getgroups=int
22411 fi
22412 rm -f conftest*
22413
22414 fi
22415 fi
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22417 $as_echo "$ac_cv_type_getgroups" >&6; }
22418
22419 cat >>confdefs.h <<_ACEOF
22420 #define GETGROUPS_T $ac_cv_type_getgroups
22421 _ACEOF
22422
22423
22424
22425
22426
22427
22428
22429
22430 if false; then
22431 GL_COND_LIBTOOL_TRUE=
22432 GL_COND_LIBTOOL_FALSE='#'
22433 else
22434 GL_COND_LIBTOOL_TRUE='#'
22435 GL_COND_LIBTOOL_FALSE=
22436 fi
22437
22438 gl_cond_libtool=false
22439 gl_libdeps=
22440 gl_ltlibdeps=
22441 gl_m4_base='m4'
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451 gl_source_base='lib'
22452
22453
22454 if test $ac_cv_func_alloca_works = no; then
22455 :
22456 fi
22457
22458 # Define an additional variable used in the Makefile substitution.
22459 if test $ac_cv_working_alloca_h = yes; then
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22461 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22462 if test "${gl_cv_rpl_alloca+set}" = set; then :
22463 $as_echo_n "(cached) " >&6
22464 else
22465
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22468
22469 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22470 Need own alloca
22471 #endif
22472
22473 _ACEOF
22474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22475 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22476 gl_cv_rpl_alloca=yes
22477 else
22478 gl_cv_rpl_alloca=no
22479 fi
22480 rm -f conftest*
22481
22482
22483 fi
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22485 $as_echo "$gl_cv_rpl_alloca" >&6; }
22486 if test $gl_cv_rpl_alloca = yes; then
22487
22488 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22489
22490 ALLOCA_H=alloca.h
22491 else
22492 ALLOCA_H=
22493 fi
22494 else
22495 ALLOCA_H=alloca.h
22496 fi
22497
22498 if test -n "$ALLOCA_H"; then
22499 GL_GENERATE_ALLOCA_H_TRUE=
22500 GL_GENERATE_ALLOCA_H_FALSE='#'
22501 else
22502 GL_GENERATE_ALLOCA_H_TRUE='#'
22503 GL_GENERATE_ALLOCA_H_FALSE=
22504 fi
22505
22506
22507
22508 for ac_header in byteswap.h
22509 do :
22510 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22511 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
22512 cat >>confdefs.h <<_ACEOF
22513 #define HAVE_BYTESWAP_H 1
22514 _ACEOF
22515
22516 BYTESWAP_H=''
22517
22518 else
22519
22520 BYTESWAP_H='byteswap.h'
22521
22522 fi
22523
22524 done
22525
22526
22527 if test -n "$BYTESWAP_H"; then
22528 GL_GENERATE_BYTESWAP_H_TRUE=
22529 GL_GENERATE_BYTESWAP_H_FALSE='#'
22530 else
22531 GL_GENERATE_BYTESWAP_H_TRUE='#'
22532 GL_GENERATE_BYTESWAP_H_FALSE=
22533 fi
22534
22535
22536
22537
22538
22539
22540 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22541 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22542
22543 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22544 # programs in the package would end up linked with that potentially-shared
22545 # library, inducing unnecessary run-time overhead.
22546 LIB_CLOCK_GETTIME=
22547
22548 gl_saved_libs=$LIBS
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22550 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22551 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 ac_func_search_save_LIBS=$LIBS
22555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556 /* end confdefs.h. */
22557
22558 /* Override any GCC internal prototype to avoid an error.
22559 Use char because int might match the return type of a GCC
22560 builtin and then its argument prototype would still apply. */
22561 #ifdef __cplusplus
22562 extern "C"
22563 #endif
22564 char clock_gettime ();
22565 int
22566 main ()
22567 {
22568 return clock_gettime ();
22569 ;
22570 return 0;
22571 }
22572 _ACEOF
22573 for ac_lib in '' rt posix4; do
22574 if test -z "$ac_lib"; then
22575 ac_res="none required"
22576 else
22577 ac_res=-l$ac_lib
22578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22579 fi
22580 if ac_fn_c_try_link "$LINENO"; then :
22581 ac_cv_search_clock_gettime=$ac_res
22582 fi
22583 rm -f core conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext
22585 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22586 break
22587 fi
22588 done
22589 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22590
22591 else
22592 ac_cv_search_clock_gettime=no
22593 fi
22594 rm conftest.$ac_ext
22595 LIBS=$ac_func_search_save_LIBS
22596 fi
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22598 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22599 ac_res=$ac_cv_search_clock_gettime
22600 if test "$ac_res" != no; then :
22601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22602 test "$ac_cv_search_clock_gettime" = "none required" ||
22603 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22604 fi
22605
22606 for ac_func in clock_gettime clock_settime
22607 do :
22608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22610 eval as_val=\$$as_ac_var
22611 if test "x$as_val" = x""yes; then :
22612 cat >>confdefs.h <<_ACEOF
22613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22614 _ACEOF
22615
22616 fi
22617 done
22618
22619 LIBS=$gl_saved_libs
22620
22621
22622 :
22623
22624
22625
22626 cat >>confdefs.h <<_ACEOF
22627 #define GNULIB_CLOSE_STREAM 1
22628 _ACEOF
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639 :
22640
22641
22642
22643 :
22644
22645
22646
22647 :
22648
22649
22650
22651 :
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665 if test $gl_cv_have_include_next = yes; then
22666 gl_cv_next_dirent_h='<'dirent.h'>'
22667 else
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22669 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22670 if test "${gl_cv_next_dirent_h+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673
22674 if test $ac_cv_header_dirent_h = yes; then
22675
22676
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22679 #include <dirent.h>
22680
22681 _ACEOF
22682 case "$host_os" in
22683 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22684 *) gl_absname_cpp="$ac_cpp" ;;
22685 esac
22686
22687 case "$host_os" in
22688 mingw*)
22689 gl_dirsep_regex='[/\\]'
22690 ;;
22691 *)
22692 gl_dirsep_regex='\/'
22693 ;;
22694 esac
22695 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22696
22697 gl_header_literal_regex=`echo 'dirent.h' \
22698 | sed -e "$gl_make_literal_regex_sed"`
22699 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22700 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22701 s|^/[^/]|//&|
22702 p
22703 q
22704 }'
22705 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22706 sed -n "$gl_absolute_header_sed"`'"'
22707 else
22708 gl_cv_next_dirent_h='<'dirent.h'>'
22709 fi
22710
22711
22712 fi
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22714 $as_echo "$gl_cv_next_dirent_h" >&6; }
22715 fi
22716 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22717
22718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22720 gl_next_as_first_directive='<'dirent.h'>'
22721 else
22722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22723 gl_next_as_first_directive=$gl_cv_next_dirent_h
22724 fi
22725 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22726
22727
22728
22729
22730 if test $ac_cv_header_dirent_h = yes; then
22731 HAVE_DIRENT_H=1
22732 else
22733 HAVE_DIRENT_H=0
22734 fi
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22746
22747
22748 if test $HAVE_DUP2 = 1; then
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22750 $as_echo_n "checking whether dup2 works... " >&6; }
22751 if test "${gl_cv_func_dup2_works+set}" = set; then :
22752 $as_echo_n "(cached) " >&6
22753 else
22754 if test "$cross_compiling" = yes; then :
22755 case "$host_os" in
22756 mingw*) # on this platform, dup2 always returns 0 for success
22757 gl_cv_func_dup2_works="guessing no" ;;
22758 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22759 gl_cv_func_dup2_works="guessing no" ;;
22760 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22761 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22762 gl_cv_func_dup2_works="guessing no" ;;
22763 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22764 gl_cv_func_dup2_works="guessing no" ;;
22765 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22766 gl_cv_func_dup2_works="guessing no" ;;
22767 *) gl_cv_func_dup2_works="guessing yes" ;;
22768 esac
22769 else
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22772
22773 #include <unistd.h>
22774 #include <fcntl.h>
22775 #include <errno.h>
22776 int
22777 main ()
22778 {
22779 int result = 0;
22780 #ifdef FD_CLOEXEC
22781 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22782 result |= 1;
22783 #endif
22784 if (dup2 (1, 1) == 0)
22785 result |= 2;
22786 #ifdef FD_CLOEXEC
22787 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22788 result |= 4;
22789 #endif
22790 close (0);
22791 if (dup2 (0, 0) != -1)
22792 result |= 8;
22793 /* Many gnulib modules require POSIX conformance of EBADF. */
22794 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22795 result |= 16;
22796 /* Flush out some cygwin core dumps. */
22797 if (dup2 (2, -1) != -1 || errno != EBADF)
22798 result |= 32;
22799 dup2 (2, 255);
22800 dup2 (2, 256);
22801 return result;
22802
22803 ;
22804 return 0;
22805 }
22806
22807 _ACEOF
22808 if ac_fn_c_try_run "$LINENO"; then :
22809 gl_cv_func_dup2_works=yes
22810 else
22811 gl_cv_func_dup2_works=no
22812 fi
22813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22814 conftest.$ac_objext conftest.beam conftest.$ac_ext
22815 fi
22816
22817
22818 fi
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22820 $as_echo "$gl_cv_func_dup2_works" >&6; }
22821 case "$gl_cv_func_dup2_works" in
22822 *yes) ;;
22823 *)
22824 REPLACE_DUP2=1
22825 for ac_func in setdtablesize
22826 do :
22827 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22828 if test "x$ac_cv_func_setdtablesize" = x""yes; then :
22829 cat >>confdefs.h <<_ACEOF
22830 #define HAVE_SETDTABLESIZE 1
22831 _ACEOF
22832
22833 fi
22834 done
22835
22836 ;;
22837 esac
22838 fi
22839
22840
22841 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22842
22843
22844
22845
22846
22847
22848
22849
22850 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22851
22852
22853 fi
22854
22855
22856
22857
22858
22859 GNULIB_DUP2=1
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871 GNULIB_ENVIRON=1
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881 LIB_EXECINFO=''
22882 EXECINFO_H='execinfo.h'
22883
22884 if test $ac_cv_header_execinfo_h = yes; then
22885 gl_saved_libs=$LIBS
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22887 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22888 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22890 else
22891 ac_func_search_save_LIBS=$LIBS
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22894
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22898 #ifdef __cplusplus
22899 extern "C"
22900 #endif
22901 char backtrace_symbols_fd ();
22902 int
22903 main ()
22904 {
22905 return backtrace_symbols_fd ();
22906 ;
22907 return 0;
22908 }
22909 _ACEOF
22910 for ac_lib in '' execinfo; do
22911 if test -z "$ac_lib"; then
22912 ac_res="none required"
22913 else
22914 ac_res=-l$ac_lib
22915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22916 fi
22917 if ac_fn_c_try_link "$LINENO"; then :
22918 ac_cv_search_backtrace_symbols_fd=$ac_res
22919 fi
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext
22922 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22923 break
22924 fi
22925 done
22926 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22927
22928 else
22929 ac_cv_search_backtrace_symbols_fd=no
22930 fi
22931 rm conftest.$ac_ext
22932 LIBS=$ac_func_search_save_LIBS
22933 fi
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22935 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22936 ac_res=$ac_cv_search_backtrace_symbols_fd
22937 if test "$ac_res" != no; then :
22938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22939 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22940 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22941 fi
22942
22943 LIBS=$gl_saved_libs
22944 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22945 fi
22946
22947 if test -n "$EXECINFO_H"; then
22948
22949
22950
22951
22952
22953
22954
22955
22956 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22957
22958 fi
22959
22960
22961
22962 if test -n "$EXECINFO_H"; then
22963 GL_GENERATE_EXECINFO_H_TRUE=
22964 GL_GENERATE_EXECINFO_H_FALSE='#'
22965 else
22966 GL_GENERATE_EXECINFO_H_TRUE='#'
22967 GL_GENERATE_EXECINFO_H_FALSE=
22968 fi
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978 if test $ac_cv_func_faccessat = no; then
22979 HAVE_FACCESSAT=0
22980 fi
22981
22982 if test $HAVE_FACCESSAT = 0; then
22983
22984
22985
22986
22987
22988
22989
22990
22991 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22992
22993
22994 for ac_func in access
22995 do :
22996 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22997 if test "x$ac_cv_func_access" = x""yes; then :
22998 cat >>confdefs.h <<_ACEOF
22999 #define HAVE_ACCESS 1
23000 _ACEOF
23001
23002 fi
23003 done
23004
23005
23006 fi
23007
23008
23009 cat >>confdefs.h <<_ACEOF
23010 #define GNULIB_FACCESSAT 1
23011 _ACEOF
23012
23013
23014
23015
23016
23017
23018
23019 GNULIB_FACCESSAT=1
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030 if test $ac_cv_func_fcntl = no; then
23031
23032
23033
23034 if test $ac_cv_func_fcntl = no; then
23035 HAVE_FCNTL=0
23036 else
23037 REPLACE_FCNTL=1
23038 fi
23039
23040 else
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23042 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23043 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 if test "$cross_compiling" = yes; then :
23047 # Guess that it works on glibc systems
23048 case $host_os in #((
23049 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
23050 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
23051 esac
23052 else
23053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054 /* end confdefs.h. */
23055
23056 #include <fcntl.h>
23057 #include <errno.h>
23058
23059 int
23060 main ()
23061 {
23062 int result = 0;
23063 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23064 if (errno != EINVAL) result |= 2;
23065 return result;
23066
23067 ;
23068 return 0;
23069 }
23070 _ACEOF
23071 if ac_fn_c_try_run "$LINENO"; then :
23072 gl_cv_func_fcntl_f_dupfd_works=yes
23073 else
23074 gl_cv_func_fcntl_f_dupfd_works=no
23075 fi
23076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23077 conftest.$ac_objext conftest.beam conftest.$ac_ext
23078 fi
23079
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23082 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23083 case $gl_cv_func_fcntl_f_dupfd_works in
23084 *yes) ;;
23085 *)
23086
23087
23088 if test $ac_cv_func_fcntl = no; then
23089 HAVE_FCNTL=0
23090 else
23091 REPLACE_FCNTL=1
23092 fi
23093
23094
23095 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23096 ;;
23097 esac
23098
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23100 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23101 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23103 else
23104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h. */
23106
23107 #include <fcntl.h>
23108 #ifndef F_DUPFD_CLOEXEC
23109 choke me
23110 #endif
23111
23112 int
23113 main ()
23114 {
23115
23116 ;
23117 return 0;
23118 }
23119 _ACEOF
23120 if ac_fn_c_try_compile "$LINENO"; then :
23121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122 /* end confdefs.h. */
23123
23124 #ifdef __linux__
23125 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23126 it to support the semantics on older kernels that failed with EINVAL. */
23127 choke me
23128 #endif
23129
23130 int
23131 main ()
23132 {
23133
23134 ;
23135 return 0;
23136 }
23137 _ACEOF
23138 if ac_fn_c_try_compile "$LINENO"; then :
23139 gl_cv_func_fcntl_f_dupfd_cloexec=yes
23140 else
23141 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23142 fi
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 else
23145 gl_cv_func_fcntl_f_dupfd_cloexec=no
23146 fi
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 fi
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23150 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23151 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23152
23153
23154
23155 if test $ac_cv_func_fcntl = no; then
23156 HAVE_FCNTL=0
23157 else
23158 REPLACE_FCNTL=1
23159 fi
23160
23161 fi
23162 fi
23163
23164
23165 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23166
23167
23168
23169
23170
23171
23172
23173
23174 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23175
23176 fi
23177
23178
23179
23180
23181
23182 GNULIB_FCNTL=1
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199 if test $gl_cv_have_include_next = yes; then
23200 gl_cv_next_fcntl_h='<'fcntl.h'>'
23201 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23203 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23204 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23205 $as_echo_n "(cached) " >&6
23206 else
23207
23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23210 #include <fcntl.h>
23211
23212 _ACEOF
23213 case "$host_os" in
23214 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23215 *) gl_absname_cpp="$ac_cpp" ;;
23216 esac
23217
23218 case "$host_os" in
23219 mingw*)
23220 gl_dirsep_regex='[/\\]'
23221 ;;
23222 *)
23223 gl_dirsep_regex='\/'
23224 ;;
23225 esac
23226 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23227
23228 gl_header_literal_regex=`echo 'fcntl.h' \
23229 | sed -e "$gl_make_literal_regex_sed"`
23230 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23231 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23232 s|^/[^/]|//&|
23233 p
23234 q
23235 }'
23236 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23237 sed -n "$gl_absolute_header_sed"`'"'
23238
23239
23240 fi
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23242 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23243 fi
23244 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23245
23246 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23248 gl_next_as_first_directive='<'fcntl.h'>'
23249 else
23250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23251 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23252 fi
23253 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269 LIB_FDATASYNC=
23270
23271
23272 if test $ac_cv_have_decl_fdatasync = no; then
23273 HAVE_DECL_FDATASYNC=0
23274 for ac_func in fdatasync
23275 do :
23276 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23277 if test "x$ac_cv_func_fdatasync" = x""yes; then :
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_FDATASYNC 1
23280 _ACEOF
23281
23282 fi
23283 done
23284
23285 if test $ac_cv_func_fdatasync = no; then
23286 HAVE_FDATASYNC=0
23287 fi
23288 else
23289 gl_saved_libs=$LIBS
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23291 $as_echo_n "checking for library containing fdatasync... " >&6; }
23292 if test "${ac_cv_search_fdatasync+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23294 else
23295 ac_func_search_save_LIBS=$LIBS
23296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23297 /* end confdefs.h. */
23298
23299 /* Override any GCC internal prototype to avoid an error.
23300 Use char because int might match the return type of a GCC
23301 builtin and then its argument prototype would still apply. */
23302 #ifdef __cplusplus
23303 extern "C"
23304 #endif
23305 char fdatasync ();
23306 int
23307 main ()
23308 {
23309 return fdatasync ();
23310 ;
23311 return 0;
23312 }
23313 _ACEOF
23314 for ac_lib in '' rt posix4; do
23315 if test -z "$ac_lib"; then
23316 ac_res="none required"
23317 else
23318 ac_res=-l$ac_lib
23319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23320 fi
23321 if ac_fn_c_try_link "$LINENO"; then :
23322 ac_cv_search_fdatasync=$ac_res
23323 fi
23324 rm -f core conftest.err conftest.$ac_objext \
23325 conftest$ac_exeext
23326 if test "${ac_cv_search_fdatasync+set}" = set; then :
23327 break
23328 fi
23329 done
23330 if test "${ac_cv_search_fdatasync+set}" = set; then :
23331
23332 else
23333 ac_cv_search_fdatasync=no
23334 fi
23335 rm conftest.$ac_ext
23336 LIBS=$ac_func_search_save_LIBS
23337 fi
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23339 $as_echo "$ac_cv_search_fdatasync" >&6; }
23340 ac_res=$ac_cv_search_fdatasync
23341 if test "$ac_res" != no; then :
23342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23343 test "$ac_cv_search_fdatasync" = "none required" ||
23344 LIB_FDATASYNC=$ac_cv_search_fdatasync
23345 fi
23346
23347 LIBS=$gl_saved_libs
23348 fi
23349
23350 if test $HAVE_FDATASYNC = 0; then
23351
23352
23353
23354
23355
23356
23357
23358
23359 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
23360
23361 fi
23362
23363
23364
23365
23366
23367 GNULIB_FDATASYNC=1
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23379 #include <dirent.h>
23380
23381 "
23382 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
23383 ac_have_decl=1
23384 else
23385 ac_have_decl=0
23386 fi
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23390 _ACEOF
23391 if test $ac_have_decl = 1; then :
23392
23393 else
23394 HAVE_DECL_FDOPENDIR=0
23395 fi
23396
23397
23398 if test $ac_cv_func_fdopendir = no; then
23399 HAVE_FDOPENDIR=0
23400 else
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23402 $as_echo_n "checking whether fdopendir works... " >&6; }
23403 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23404 $as_echo_n "(cached) " >&6
23405 else
23406 if test "$cross_compiling" = yes; then :
23407 case "$host_os" in
23408 # Guess yes on glibc systems.
23409 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23410 # If we don't know, assume the worst.
23411 *) gl_cv_func_fdopendir_works="guessing no" ;;
23412 esac
23413
23414 else
23415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23416 /* end confdefs.h. */
23417
23418 #include <dirent.h>
23419 #include <fcntl.h>
23420 #include <unistd.h>
23421 #if !HAVE_DECL_FDOPENDIR
23422 extern
23423 # ifdef __cplusplus
23424 "C"
23425 # endif
23426 DIR *fdopendir (int);
23427 #endif
23428
23429 int
23430 main ()
23431 {
23432 int result = 0;
23433 int fd = open ("conftest.c", O_RDONLY);
23434 if (fd < 0) result |= 1;
23435 if (fdopendir (fd)) result |= 2;
23436 if (close (fd)) result |= 4;
23437 return result;
23438 ;
23439 return 0;
23440 }
23441 _ACEOF
23442 if ac_fn_c_try_run "$LINENO"; then :
23443 gl_cv_func_fdopendir_works=yes
23444 else
23445 gl_cv_func_fdopendir_works=no
23446 fi
23447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23448 conftest.$ac_objext conftest.beam conftest.$ac_ext
23449 fi
23450
23451 fi
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23453 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23454 case "$gl_cv_func_fdopendir_works" in
23455 *yes) ;;
23456 *)
23457 REPLACE_FDOPENDIR=1
23458 ;;
23459 esac
23460 fi
23461
23462 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23463
23464
23465
23466
23467
23468
23469
23470
23471 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23472
23473 fi
23474
23475
23476
23477
23478
23479 GNULIB_FDOPENDIR=1
23480
23481
23482
23483
23484
23485
23486
23487 cat >>confdefs.h <<_ACEOF
23488 #define GNULIB_FDOPENDIR 1
23489 _ACEOF
23490
23491
23492
23493
23494
23495
23496
23497
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23499 $as_echo_n "checking for __fpending... " >&6; }
23500 if test "${gl_cv_func___fpending+set}" = set; then :
23501 $as_echo_n "(cached) " >&6
23502 else
23503
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h. */
23506 #include <stdio.h>
23507 #if HAVE_STDIO_EXT_H
23508 # include <stdio_ext.h>
23509 #endif
23510
23511 int
23512 main ()
23513 {
23514 return ! __fpending (stdin);
23515 ;
23516 return 0;
23517 }
23518 _ACEOF
23519 if ac_fn_c_try_link "$LINENO"; then :
23520 gl_cv_func___fpending=yes
23521 else
23522 gl_cv_func___fpending=no
23523 fi
23524 rm -f core conftest.err conftest.$ac_objext \
23525 conftest$ac_exeext conftest.$ac_ext
23526
23527 fi
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23529 $as_echo "$gl_cv_func___fpending" >&6; }
23530
23531 if test $gl_cv_func___fpending = no; then
23532
23533
23534
23535
23536
23537
23538
23539
23540 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23541
23542
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23544 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23545 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23546 $as_echo_n "(cached) " >&6
23547 else
23548
23549 for ac_expr in \
23550 \
23551 '# glibc2' \
23552 'fp->_IO_write_ptr - fp->_IO_write_base' \
23553 \
23554 '# traditional Unix' \
23555 'fp->_ptr - fp->_base' \
23556 \
23557 '# BSD' \
23558 'fp->_p - fp->_bf._base' \
23559 \
23560 '# SCO, Unixware' \
23561 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23562 \
23563 '# QNX' \
23564 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23565 \
23566 '# old glibc?' \
23567 'fp->__bufp - fp->__buffer' \
23568 \
23569 '# old glibc iostream?' \
23570 'fp->_pptr - fp->_pbase' \
23571 \
23572 '# emx+gcc' \
23573 'fp->_ptr - fp->_buffer' \
23574 \
23575 '# Minix' \
23576 'fp->_ptr - fp->_buf' \
23577 \
23578 '# Plan9' \
23579 'fp->wp - fp->buf' \
23580 \
23581 '# VMS' \
23582 '(*fp)->_ptr - (*fp)->_base' \
23583 \
23584 '# e.g., DGUX R4.11; the info is not available' \
23585 1 \
23586 ; do
23587
23588 # Skip each embedded comment.
23589 case "$ac_expr" in '#'*) continue;; esac
23590
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593 #include <stdio.h>
23594 int
23595 main ()
23596 {
23597 FILE *fp = stdin; (void) ($ac_expr);
23598 ;
23599 return 0;
23600 }
23601 _ACEOF
23602 if ac_fn_c_try_compile "$LINENO"; then :
23603 fp_done=yes
23604
23605 fi
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23607 test "$fp_done" = yes && break
23608 done
23609
23610 ac_cv_sys_pending_output_n_bytes=$ac_expr
23611
23612
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23615 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23616
23617 cat >>confdefs.h <<_ACEOF
23618 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23619 _ACEOF
23620
23621
23622 fi
23623
23624
23625
23626
23627
23628
23629 if test $ac_cv_func_fstatat = no; then
23630 HAVE_FSTATAT=0
23631 else
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23633 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23634 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23636 else
23637 if test "$cross_compiling" = yes; then :
23638 case "$host_os" in
23639 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23640 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23641 esac
23642
23643 else
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23646
23647 #include <fcntl.h>
23648 #include <sys/stat.h>
23649 int
23650 main (void)
23651 {
23652 struct stat a;
23653 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23654 }
23655
23656 _ACEOF
23657 if ac_fn_c_try_run "$LINENO"; then :
23658 gl_cv_func_fstatat_zero_flag=yes
23659 else
23660 gl_cv_func_fstatat_zero_flag=no
23661 fi
23662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23663 conftest.$ac_objext conftest.beam conftest.$ac_ext
23664 fi
23665
23666
23667 fi
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23669 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23670
23671 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23672 *yes+*yes) ;;
23673 *) REPLACE_FSTATAT=1
23674 case $gl_cv_func_fstatat_zero_flag in
23675 *yes)
23676
23677 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23678
23679 ;;
23680 esac
23681 ;;
23682 esac
23683 fi
23684
23685 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23686
23687
23688
23689
23690
23691
23692
23693
23694 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23695
23696 fi
23697
23698
23699
23700
23701
23702 GNULIB_FSTATAT=1
23703
23704
23705
23706
23707
23708
23709
23710
23711 if test $ac_cv_func_fsync = no; then
23712 HAVE_FSYNC=0
23713 fi
23714
23715 if test $HAVE_FSYNC = 0; then
23716
23717
23718
23719
23720
23721
23722
23723
23724 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23725
23726 :
23727 fi
23728
23729
23730
23731
23732
23733 GNULIB_FSYNC=1
23734
23735
23736
23737
23738
23739
23740
23741 # Persuade glibc <stdlib.h> to declare getloadavg().
23742
23743
23744 gl_save_LIBS=$LIBS
23745
23746 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23747 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23748 HAVE_GETLOADAVG=1
23749 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23750 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23751
23752 else
23753 gl_func_getloadavg_done=no
23754
23755 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23756 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23757 # to get the right answer into the cache.
23758 # For kstat on solaris, we need to test for libelf and libkvm to force the
23759 # definition of SVR4 below.
23760 if test $gl_func_getloadavg_done = no; then
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23762 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23763 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23764 $as_echo_n "(cached) " >&6
23765 else
23766 ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lelf $LIBS"
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770
23771 /* Override any GCC internal prototype to avoid an error.
23772 Use char because int might match the return type of a GCC
23773 builtin and then its argument prototype would still apply. */
23774 #ifdef __cplusplus
23775 extern "C"
23776 #endif
23777 char elf_begin ();
23778 int
23779 main ()
23780 {
23781 return elf_begin ();
23782 ;
23783 return 0;
23784 }
23785 _ACEOF
23786 if ac_fn_c_try_link "$LINENO"; then :
23787 ac_cv_lib_elf_elf_begin=yes
23788 else
23789 ac_cv_lib_elf_elf_begin=no
23790 fi
23791 rm -f core conftest.err conftest.$ac_objext \
23792 conftest$ac_exeext conftest.$ac_ext
23793 LIBS=$ac_check_lib_save_LIBS
23794 fi
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23796 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23797 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23798 LIBS="-lelf $LIBS"
23799 fi
23800
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23802 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23803 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lkvm $LIBS"
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809 /* end confdefs.h. */
23810
23811 /* Override any GCC internal prototype to avoid an error.
23812 Use char because int might match the return type of a GCC
23813 builtin and then its argument prototype would still apply. */
23814 #ifdef __cplusplus
23815 extern "C"
23816 #endif
23817 char kvm_open ();
23818 int
23819 main ()
23820 {
23821 return kvm_open ();
23822 ;
23823 return 0;
23824 }
23825 _ACEOF
23826 if ac_fn_c_try_link "$LINENO"; then :
23827 ac_cv_lib_kvm_kvm_open=yes
23828 else
23829 ac_cv_lib_kvm_kvm_open=no
23830 fi
23831 rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23833 LIBS=$ac_check_lib_save_LIBS
23834 fi
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23836 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23837 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23838 LIBS="-lkvm $LIBS"
23839 fi
23840
23841 # Check for the 4.4BSD definition of getloadavg.
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23843 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23844 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23845 $as_echo_n "(cached) " >&6
23846 else
23847 ac_check_lib_save_LIBS=$LIBS
23848 LIBS="-lutil $LIBS"
23849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23850 /* end confdefs.h. */
23851
23852 /* Override any GCC internal prototype to avoid an error.
23853 Use char because int might match the return type of a GCC
23854 builtin and then its argument prototype would still apply. */
23855 #ifdef __cplusplus
23856 extern "C"
23857 #endif
23858 char getloadavg ();
23859 int
23860 main ()
23861 {
23862 return getloadavg ();
23863 ;
23864 return 0;
23865 }
23866 _ACEOF
23867 if ac_fn_c_try_link "$LINENO"; then :
23868 ac_cv_lib_util_getloadavg=yes
23869 else
23870 ac_cv_lib_util_getloadavg=no
23871 fi
23872 rm -f core conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23875 fi
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23877 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23878 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23879 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23880 fi
23881
23882 fi
23883
23884 if test $gl_func_getloadavg_done = no; then
23885 # There is a commonly available library for RS/6000 AIX.
23886 # Since it is not a standard part of AIX, it might be installed locally.
23887 gl_getloadavg_LIBS=$LIBS
23888 LIBS="-L/usr/local/lib $LIBS"
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23890 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23891 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23892 $as_echo_n "(cached) " >&6
23893 else
23894 ac_check_lib_save_LIBS=$LIBS
23895 LIBS="-lgetloadavg $LIBS"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23898
23899 /* Override any GCC internal prototype to avoid an error.
23900 Use char because int might match the return type of a GCC
23901 builtin and then its argument prototype would still apply. */
23902 #ifdef __cplusplus
23903 extern "C"
23904 #endif
23905 char getloadavg ();
23906 int
23907 main ()
23908 {
23909 return getloadavg ();
23910 ;
23911 return 0;
23912 }
23913 _ACEOF
23914 if ac_fn_c_try_link "$LINENO"; then :
23915 ac_cv_lib_getloadavg_getloadavg=yes
23916 else
23917 ac_cv_lib_getloadavg_getloadavg=no
23918 fi
23919 rm -f core conftest.err conftest.$ac_objext \
23920 conftest$ac_exeext conftest.$ac_ext
23921 LIBS=$ac_check_lib_save_LIBS
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23924 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23925 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23926 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23927 else
23928 LIBS=$gl_getloadavg_LIBS
23929 fi
23930
23931 fi
23932
23933 # Set up the replacement function if necessary.
23934 if test $gl_func_getloadavg_done = no; then
23935 HAVE_GETLOADAVG=0
23936
23937 # Solaris has libkstat which does not require root.
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23939 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23940 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23941 $as_echo_n "(cached) " >&6
23942 else
23943 ac_check_lib_save_LIBS=$LIBS
23944 LIBS="-lkstat $LIBS"
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h. */
23947
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char kstat_open ();
23955 int
23956 main ()
23957 {
23958 return kstat_open ();
23959 ;
23960 return 0;
23961 }
23962 _ACEOF
23963 if ac_fn_c_try_link "$LINENO"; then :
23964 ac_cv_lib_kstat_kstat_open=yes
23965 else
23966 ac_cv_lib_kstat_kstat_open=no
23967 fi
23968 rm -f core conftest.err conftest.$ac_objext \
23969 conftest$ac_exeext conftest.$ac_ext
23970 LIBS=$ac_check_lib_save_LIBS
23971 fi
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23973 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23974 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23975 cat >>confdefs.h <<_ACEOF
23976 #define HAVE_LIBKSTAT 1
23977 _ACEOF
23978
23979 LIBS="-lkstat $LIBS"
23980
23981 fi
23982
23983 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23984
23985 # AIX has libperfstat which does not require root
23986 if test $gl_func_getloadavg_done = no; then
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23988 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23989 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23991 else
23992 ac_check_lib_save_LIBS=$LIBS
23993 LIBS="-lperfstat $LIBS"
23994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995 /* end confdefs.h. */
23996
23997 /* Override any GCC internal prototype to avoid an error.
23998 Use char because int might match the return type of a GCC
23999 builtin and then its argument prototype would still apply. */
24000 #ifdef __cplusplus
24001 extern "C"
24002 #endif
24003 char perfstat_cpu_total ();
24004 int
24005 main ()
24006 {
24007 return perfstat_cpu_total ();
24008 ;
24009 return 0;
24010 }
24011 _ACEOF
24012 if ac_fn_c_try_link "$LINENO"; then :
24013 ac_cv_lib_perfstat_perfstat_cpu_total=yes
24014 else
24015 ac_cv_lib_perfstat_perfstat_cpu_total=no
24016 fi
24017 rm -f core conftest.err conftest.$ac_objext \
24018 conftest$ac_exeext conftest.$ac_ext
24019 LIBS=$ac_check_lib_save_LIBS
24020 fi
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
24022 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
24023 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
24024 cat >>confdefs.h <<_ACEOF
24025 #define HAVE_LIBPERFSTAT 1
24026 _ACEOF
24027
24028 LIBS="-lperfstat $LIBS"
24029
24030 fi
24031
24032 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
24033 fi
24034
24035 if test $gl_func_getloadavg_done = no; then
24036 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
24037 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
24038 gl_func_getloadavg_done=yes
24039
24040 $as_echo "#define DGUX 1" >>confdefs.h
24041
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
24043 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
24044 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
24045 $as_echo_n "(cached) " >&6
24046 else
24047 ac_check_lib_save_LIBS=$LIBS
24048 LIBS="-ldgc $LIBS"
24049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24051
24052 /* Override any GCC internal prototype to avoid an error.
24053 Use char because int might match the return type of a GCC
24054 builtin and then its argument prototype would still apply. */
24055 #ifdef __cplusplus
24056 extern "C"
24057 #endif
24058 char dg_sys_info ();
24059 int
24060 main ()
24061 {
24062 return dg_sys_info ();
24063 ;
24064 return 0;
24065 }
24066 _ACEOF
24067 if ac_fn_c_try_link "$LINENO"; then :
24068 ac_cv_lib_dgc_dg_sys_info=yes
24069 else
24070 ac_cv_lib_dgc_dg_sys_info=no
24071 fi
24072 rm -f core conftest.err conftest.$ac_objext \
24073 conftest$ac_exeext conftest.$ac_ext
24074 LIBS=$ac_check_lib_save_LIBS
24075 fi
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
24077 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
24078 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
24079 cat >>confdefs.h <<_ACEOF
24080 #define HAVE_LIBDGC 1
24081 _ACEOF
24082
24083 LIBS="-ldgc $LIBS"
24084
24085 fi
24086
24087 fi
24088
24089
24090 fi
24091 fi
24092 fi
24093
24094
24095 if test "x$gl_save_LIBS" = x; then
24096 GETLOADAVG_LIBS=$LIBS
24097 else
24098 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24099 fi
24100 LIBS=$gl_save_LIBS
24101
24102
24103 # Test whether the system declares getloadavg. Solaris has the function
24104 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24105 for ac_header in sys/loadavg.h
24106 do :
24107 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24108 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
24109 cat >>confdefs.h <<_ACEOF
24110 #define HAVE_SYS_LOADAVG_H 1
24111 _ACEOF
24112
24113 fi
24114
24115 done
24116
24117 if test $ac_cv_header_sys_loadavg_h = yes; then
24118 HAVE_SYS_LOADAVG_H=1
24119 else
24120 HAVE_SYS_LOADAVG_H=0
24121 fi
24122 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24123 # include <sys/loadavg.h>
24124 #endif
24125 #include <stdlib.h>
24126 "
24127 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
24128
24129 else
24130 HAVE_DECL_GETLOADAVG=0
24131 fi
24132
24133
24134 if test $HAVE_GETLOADAVG = 0; then
24135
24136
24137
24138
24139
24140
24141
24142
24143 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
24144
24145
24146 # Figure out what our getloadavg.c needs.
24147
24148
24149
24150 # On HPUX9, an unprivileged user can get load averages this way.
24151 if test $gl_func_getloadavg_done = no; then
24152 for ac_func in pstat_getdynamic
24153 do :
24154 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24155 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
24156 cat >>confdefs.h <<_ACEOF
24157 #define HAVE_PSTAT_GETDYNAMIC 1
24158 _ACEOF
24159 gl_func_getloadavg_done=yes
24160 fi
24161 done
24162
24163 fi
24164
24165 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24166 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24167 # Irix 4.0.5F has the header but not the library.
24168 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
24169 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24170 gl_func_getloadavg_done=yes
24171
24172 $as_echo "#define SVR4 1" >>confdefs.h
24173
24174 fi
24175
24176 if test $gl_func_getloadavg_done = no; then
24177 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24178 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
24179 gl_func_getloadavg_done=yes
24180
24181 $as_echo "#define UMAX 1" >>confdefs.h
24182
24183
24184 $as_echo "#define UMAX4_3 1" >>confdefs.h
24185
24186 fi
24187
24188
24189 fi
24190
24191 if test $gl_func_getloadavg_done = no; then
24192 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24193 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
24194 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
24195
24196 fi
24197
24198
24199 fi
24200
24201 if test $gl_func_getloadavg_done = no; then
24202 for ac_header in mach/mach.h
24203 do :
24204 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24205 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
24206 cat >>confdefs.h <<_ACEOF
24207 #define HAVE_MACH_MACH_H 1
24208 _ACEOF
24209
24210 fi
24211
24212 done
24213
24214 fi
24215
24216 for ac_header in nlist.h
24217 do :
24218 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24219 if test "x$ac_cv_header_nlist_h" = x""yes; then :
24220 cat >>confdefs.h <<_ACEOF
24221 #define HAVE_NLIST_H 1
24222 _ACEOF
24223 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24224 "
24225 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
24226
24227 cat >>confdefs.h <<_ACEOF
24228 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24229 _ACEOF
24230
24231
24232 fi
24233
24234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235 /* end confdefs.h. */
24236 #include <nlist.h>
24237 int
24238 main ()
24239 {
24240 struct nlist x;
24241 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24242 x.n_un.n_name = "";
24243 #else
24244 x.n_name = "";
24245 #endif
24246 ;
24247 return 0;
24248 }
24249 _ACEOF
24250 if ac_fn_c_try_link "$LINENO"; then :
24251
24252 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24253
24254 fi
24255 rm -f core conftest.err conftest.$ac_objext \
24256 conftest$ac_exeext conftest.$ac_ext
24257
24258 fi
24259
24260 done
24261
24262 fi
24263
24264
24265
24266
24267
24268 GNULIB_GETLOADAVG=1
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279 if test $REPLACE_GETOPT = 1; then
24280
24281
24282
24283
24284
24285
24286
24287
24288 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24299
24300
24301
24302
24303 GNULIB_GL_UNISTD_H_GETOPT=1
24304 fi
24305
24306
24307
24308
24309
24310
24311
24312 REPLACE_GETOPT=0
24313 if test -n "$gl_replace_getopt"; then
24314 REPLACE_GETOPT=1
24315 fi
24316
24317 if test $REPLACE_GETOPT = 1; then
24318
24319 GETOPT_H=getopt.h
24320
24321 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24322
24323
24324
24325 fi
24326
24327 if test $REPLACE_GETOPT = 1; then
24328
24329
24330
24331
24332
24333
24334
24335
24336 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24347
24348
24349
24350
24351 GNULIB_GL_UNISTD_H_GETOPT=1
24352 fi
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365 gl_gettimeofday_timezone=void
24366 if test $ac_cv_func_gettimeofday != yes; then
24367 HAVE_GETTIMEOFDAY=0
24368 else
24369
24370
24371
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24373 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24374 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24375 $as_echo_n "(cached) " >&6
24376 else
24377 if test "$cross_compiling" = yes; then :
24378 # When cross-compiling:
24379 case "$host_os" in
24380 # Guess all is fine on glibc systems.
24381 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
24382 # If we don't know, assume the worst.
24383 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
24384 esac
24385
24386 else
24387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24388 /* end confdefs.h. */
24389 #include <string.h>
24390 #include <sys/time.h>
24391 #include <time.h>
24392 #include <stdlib.h>
24393
24394 int
24395 main ()
24396 {
24397
24398 time_t t = 0;
24399 struct tm *lt;
24400 struct tm saved_lt;
24401 struct timeval tv;
24402 lt = localtime (&t);
24403 saved_lt = *lt;
24404 gettimeofday (&tv, NULL);
24405 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24406
24407 ;
24408 return 0;
24409 }
24410 _ACEOF
24411 if ac_fn_c_try_run "$LINENO"; then :
24412 gl_cv_func_gettimeofday_clobber=no
24413 else
24414 gl_cv_func_gettimeofday_clobber=yes
24415 fi
24416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24417 conftest.$ac_objext conftest.beam conftest.$ac_ext
24418 fi
24419
24420 fi
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24422 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24423
24424 case "$gl_cv_func_gettimeofday_clobber" in
24425 *yes)
24426 REPLACE_GETTIMEOFDAY=1
24427
24428
24429 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24430
24431
24432 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24433
24434
24435
24436 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24437
24438 ;;
24439 esac
24440
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24442 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24443 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24445 else
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h. */
24448 #include <sys/time.h>
24449 struct timeval c;
24450 int gettimeofday (struct timeval *restrict, void *restrict);
24451
24452 int
24453 main ()
24454 {
24455 /* glibc uses struct timezone * rather than the POSIX void *
24456 if _GNU_SOURCE is defined. However, since the only portable
24457 use of gettimeofday uses NULL as the second parameter, and
24458 since the glibc definition is actually more typesafe, it is
24459 not worth wrapping this to get a compliant signature. */
24460 int (*f) (struct timeval *restrict, void *restrict)
24461 = gettimeofday;
24462 int x = f (&c, 0);
24463 return !(x | c.tv_sec | c.tv_usec);
24464
24465 ;
24466 return 0;
24467 }
24468 _ACEOF
24469 if ac_fn_c_try_compile "$LINENO"; then :
24470 gl_cv_func_gettimeofday_posix_signature=yes
24471 else
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24474 #include <sys/time.h>
24475 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24476
24477 int
24478 main ()
24479 {
24480
24481 ;
24482 return 0;
24483 }
24484 _ACEOF
24485 if ac_fn_c_try_compile "$LINENO"; then :
24486 gl_cv_func_gettimeofday_posix_signature=almost
24487 else
24488 gl_cv_func_gettimeofday_posix_signature=no
24489 fi
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 fi
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493 fi
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24495 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24496 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24497 gl_gettimeofday_timezone='struct timezone'
24498 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24499 REPLACE_GETTIMEOFDAY=1
24500 fi
24501 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24502 REPLACE_GETTIMEOFDAY=1
24503 fi
24504
24505 fi
24506
24507 cat >>confdefs.h <<_ACEOF
24508 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24509 _ACEOF
24510
24511
24512 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24513
24514
24515
24516
24517
24518
24519
24520
24521 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24522
24523
24524 for ac_header in sys/timeb.h
24525 do :
24526 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24527 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24528 cat >>confdefs.h <<_ACEOF
24529 #define HAVE_SYS_TIMEB_H 1
24530 _ACEOF
24531
24532 fi
24533
24534 done
24535
24536 for ac_func in _ftime
24537 do :
24538 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24539 if test "x$ac_cv_func__ftime" = x""yes; then :
24540 cat >>confdefs.h <<_ACEOF
24541 #define HAVE__FTIME 1
24542 _ACEOF
24543
24544 fi
24545 done
24546
24547
24548 fi
24549
24550
24551
24552
24553
24554 GNULIB_GETTIMEOFDAY=1
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565 if test $ac_cv_func_lstat = yes; then
24566
24567 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24568 *no)
24569 REPLACE_LSTAT=1
24570 ;;
24571 esac
24572 else
24573 HAVE_LSTAT=0
24574 fi
24575
24576 if test $REPLACE_LSTAT = 1; then
24577
24578
24579
24580
24581
24582
24583
24584
24585 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24586
24587 :
24588 fi
24589
24590
24591
24592
24593
24594 GNULIB_LSTAT=1
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605 if test $ac_cv_have_decl_memrchr = no; then
24606 HAVE_DECL_MEMRCHR=0
24607 fi
24608
24609 for ac_func in memrchr
24610 do :
24611 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24612 if test "x$ac_cv_func_memrchr" = x""yes; then :
24613 cat >>confdefs.h <<_ACEOF
24614 #define HAVE_MEMRCHR 1
24615 _ACEOF
24616
24617 fi
24618 done
24619
24620
24621 if test $ac_cv_func_memrchr = no; then
24622
24623
24624
24625
24626
24627
24628
24629
24630 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24631
24632 :
24633 fi
24634
24635
24636
24637
24638
24639 GNULIB_MEMRCHR=1
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651 if test $ac_cv_func_mkostemp != yes; then
24652 HAVE_MKOSTEMP=0
24653 fi
24654
24655 if test $HAVE_MKOSTEMP = 0; then
24656
24657
24658
24659
24660
24661
24662
24663
24664 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24665
24666
24667
24668 fi
24669
24670
24671 cat >>confdefs.h <<_ACEOF
24672 #define GNULIB_MKOSTEMP 1
24673 _ACEOF
24674
24675
24676
24677
24678
24679
24680
24681 GNULIB_MKOSTEMP=1
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693 if test $APPLE_UNIVERSAL_BUILD = 1; then
24694 # A universal build on Apple Mac OS X platforms.
24695 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24696 # But we need a configuration result that is valid in both modes.
24697 gl_cv_func_working_mktime=no
24698 fi
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24700 $as_echo_n "checking for working mktime... " >&6; }
24701 if test "${gl_cv_func_working_mktime+set}" = set; then :
24702 $as_echo_n "(cached) " >&6
24703 else
24704 if test "$cross_compiling" = yes; then :
24705 gl_cv_func_working_mktime=no
24706 else
24707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24708 /* end confdefs.h. */
24709 /* Test program from Paul Eggert and Tony Leneis. */
24710 #include <limits.h>
24711 #include <stdlib.h>
24712 #include <time.h>
24713
24714 #ifdef HAVE_UNISTD_H
24715 # include <unistd.h>
24716 #endif
24717
24718 #if HAVE_DECL_ALARM
24719 # include <signal.h>
24720 #endif
24721
24722 /* Work around redefinition to rpl_putenv by other config tests. */
24723 #undef putenv
24724
24725 static time_t time_t_max;
24726 static time_t time_t_min;
24727
24728 /* Values we'll use to set the TZ environment variable. */
24729 static char *tz_strings[] = {
24730 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24731 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24732 };
24733 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24734
24735 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24736 Based on a problem report from Andreas Jaeger. */
24737 static int
24738 spring_forward_gap ()
24739 {
24740 /* glibc (up to about 1998-10-07) failed this test. */
24741 struct tm tm;
24742
24743 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24744 instead of "TZ=America/Vancouver" in order to detect the bug even
24745 on systems that don't support the Olson extension, or don't have the
24746 full zoneinfo tables installed. */
24747 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24748
24749 tm.tm_year = 98;
24750 tm.tm_mon = 3;
24751 tm.tm_mday = 5;
24752 tm.tm_hour = 2;
24753 tm.tm_min = 0;
24754 tm.tm_sec = 0;
24755 tm.tm_isdst = -1;
24756 return mktime (&tm) != (time_t) -1;
24757 }
24758
24759 static int
24760 mktime_test1 (time_t now)
24761 {
24762 struct tm *lt;
24763 return ! (lt = localtime (&now)) || mktime (lt) == now;
24764 }
24765
24766 static int
24767 mktime_test (time_t now)
24768 {
24769 return (mktime_test1 (now)
24770 && mktime_test1 ((time_t) (time_t_max - now))
24771 && mktime_test1 ((time_t) (time_t_min + now)));
24772 }
24773
24774 static int
24775 irix_6_4_bug ()
24776 {
24777 /* Based on code from Ariel Faigon. */
24778 struct tm tm;
24779 tm.tm_year = 96;
24780 tm.tm_mon = 3;
24781 tm.tm_mday = 0;
24782 tm.tm_hour = 0;
24783 tm.tm_min = 0;
24784 tm.tm_sec = 0;
24785 tm.tm_isdst = -1;
24786 mktime (&tm);
24787 return tm.tm_mon == 2 && tm.tm_mday == 31;
24788 }
24789
24790 static int
24791 bigtime_test (int j)
24792 {
24793 struct tm tm;
24794 time_t now;
24795 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24796 now = mktime (&tm);
24797 if (now != (time_t) -1)
24798 {
24799 struct tm *lt = localtime (&now);
24800 if (! (lt
24801 && lt->tm_year == tm.tm_year
24802 && lt->tm_mon == tm.tm_mon
24803 && lt->tm_mday == tm.tm_mday
24804 && lt->tm_hour == tm.tm_hour
24805 && lt->tm_min == tm.tm_min
24806 && lt->tm_sec == tm.tm_sec
24807 && lt->tm_yday == tm.tm_yday
24808 && lt->tm_wday == tm.tm_wday
24809 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24810 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24811 return 0;
24812 }
24813 return 1;
24814 }
24815
24816 static int
24817 year_2050_test ()
24818 {
24819 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24820 ignoring leap seconds. */
24821 unsigned long int answer = 2527315200UL;
24822
24823 struct tm tm;
24824 time_t t;
24825 tm.tm_year = 2050 - 1900;
24826 tm.tm_mon = 2 - 1;
24827 tm.tm_mday = 1;
24828 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24829 tm.tm_isdst = -1;
24830
24831 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24832 instead of "TZ=America/Vancouver" in order to detect the bug even
24833 on systems that don't support the Olson extension, or don't have the
24834 full zoneinfo tables installed. */
24835 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24836
24837 t = mktime (&tm);
24838
24839 /* Check that the result is either a failure, or close enough
24840 to the correct answer that we can assume the discrepancy is
24841 due to leap seconds. */
24842 return (t == (time_t) -1
24843 || (0 < t && answer - 120 <= t && t <= answer + 120));
24844 }
24845
24846 int
24847 main ()
24848 {
24849 int result = 0;
24850 time_t t, delta;
24851 int i, j;
24852 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24853 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24854
24855 #if HAVE_DECL_ALARM
24856 /* This test makes some buggy mktime implementations loop.
24857 Give up after 60 seconds; a mktime slower than that
24858 isn't worth using anyway. */
24859 signal (SIGALRM, SIG_DFL);
24860 alarm (60);
24861 #endif
24862
24863 time_t_max = (! time_t_signed
24864 ? (time_t) -1
24865 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24866 * 2 + 1));
24867 time_t_min = (! time_t_signed
24868 ? (time_t) 0
24869 : time_t_signed_magnitude
24870 ? ~ (time_t) 0
24871 : ~ time_t_max);
24872
24873 delta = time_t_max / 997; /* a suitable prime number */
24874 for (i = 0; i < N_STRINGS; i++)
24875 {
24876 if (tz_strings[i])
24877 putenv (tz_strings[i]);
24878
24879 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24880 if (! mktime_test (t))
24881 result |= 1;
24882 if ((result & 2) == 0
24883 && ! (mktime_test ((time_t) 1)
24884 && mktime_test ((time_t) (60 * 60))
24885 && mktime_test ((time_t) (60 * 60 * 24))))
24886 result |= 2;
24887
24888 for (j = 1; (result & 4) == 0; j <<= 1)
24889 {
24890 if (! bigtime_test (j))
24891 result |= 4;
24892 if (INT_MAX / 2 < j)
24893 break;
24894 }
24895 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24896 result |= 8;
24897 }
24898 if (! irix_6_4_bug ())
24899 result |= 16;
24900 if (! spring_forward_gap ())
24901 result |= 32;
24902 if (! year_2050_test ())
24903 result |= 64;
24904 return result;
24905 }
24906 _ACEOF
24907 if ac_fn_c_try_run "$LINENO"; then :
24908 gl_cv_func_working_mktime=yes
24909 else
24910 gl_cv_func_working_mktime=no
24911 fi
24912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24913 conftest.$ac_objext conftest.beam conftest.$ac_ext
24914 fi
24915
24916
24917 fi
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24919 $as_echo "$gl_cv_func_working_mktime" >&6; }
24920
24921 if test $gl_cv_func_working_mktime = no; then
24922 REPLACE_MKTIME=1
24923 else
24924 REPLACE_MKTIME=0
24925 fi
24926
24927 if test $REPLACE_MKTIME = 1; then
24928
24929
24930
24931
24932
24933
24934
24935
24936 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24937
24938 :
24939 fi
24940
24941
24942
24943
24944
24945 GNULIB_MKTIME=1
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958 if test $ac_cv_func_pipe2 != yes; then
24959 HAVE_PIPE2=0
24960 fi
24961
24962
24963
24964
24965
24966
24967 GNULIB_PIPE2=1
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978 if test $ac_cv_func_pselect = yes; then
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24980 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24981 if test "${gl_cv_sig_pselect+set}" = set; then :
24982 $as_echo_n "(cached) " >&6
24983 else
24984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24985 /* end confdefs.h. */
24986 #include <sys/select.h>
24987
24988 int
24989 main ()
24990 {
24991 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24992 struct timespec const *restrict,
24993 sigset_t const *restrict) = pselect;
24994 return !p;
24995 ;
24996 return 0;
24997 }
24998 _ACEOF
24999 if ac_fn_c_try_link "$LINENO"; then :
25000 gl_cv_sig_pselect=yes
25001 else
25002 gl_cv_sig_pselect=no
25003 fi
25004 rm -f core conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
25006 fi
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
25008 $as_echo "$gl_cv_sig_pselect" >&6; }
25009
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
25011 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
25012 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015
25016 if test "$cross_compiling" = yes; then :
25017
25018 case "$host_os" in
25019 # Guess yes on glibc systems.
25020 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
25021 # If we don't know, assume the worst.
25022 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
25023 esac
25024
25025 else
25026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027 /* end confdefs.h. */
25028
25029 #include <sys/types.h>
25030 #include <sys/time.h>
25031 #if HAVE_SYS_SELECT_H
25032 # include <sys/select.h>
25033 #endif
25034 #include <unistd.h>
25035 #include <errno.h>
25036
25037 int
25038 main ()
25039 {
25040
25041 fd_set set;
25042 dup2(0, 16);
25043 FD_ZERO(&set);
25044 FD_SET(16, &set);
25045 close(16);
25046 struct timespec timeout;
25047 timeout.tv_sec = 0;
25048 timeout.tv_nsec = 5000;
25049 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
25050
25051 ;
25052 return 0;
25053 }
25054 _ACEOF
25055 if ac_fn_c_try_run "$LINENO"; then :
25056 gl_cv_func_pselect_detects_ebadf=yes
25057 else
25058 gl_cv_func_pselect_detects_ebadf=no
25059 fi
25060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25061 conftest.$ac_objext conftest.beam conftest.$ac_ext
25062 fi
25063
25064
25065 fi
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
25067 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
25068 case $gl_cv_func_pselect_detects_ebadf in
25069 *yes) ;;
25070 *) REPLACE_PSELECT=1 ;;
25071 esac
25072 fi
25073
25074 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
25075 REPLACE_PSELECT=1
25076 fi
25077
25078 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
25079
25080
25081
25082
25083
25084
25085
25086
25087 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
25088
25089 fi
25090
25091
25092
25093
25094
25095 GNULIB_PSELECT=1
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105 LIB_PTHREAD_SIGMASK=
25106
25107
25108
25109
25110 if test "$gl_threads_api" = posix; then
25111 if test $ac_cv_func_pthread_sigmask = yes; then
25112 :
25113 else
25114 if test -n "$LIBMULTITHREAD"; then
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25116 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25117 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25118 $as_echo_n "(cached) " >&6
25119 else
25120 gl_save_LIBS="$LIBS"
25121 LIBS="$LIBS $LIBMULTITHREAD"
25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h. */
25124 #include <pthread.h>
25125 #include <signal.h>
25126
25127 int
25128 main ()
25129 {
25130 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25131 ;
25132 return 0;
25133 }
25134
25135 _ACEOF
25136 if ac_fn_c_try_link "$LINENO"; then :
25137 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
25138 else
25139 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
25140 fi
25141 rm -f core conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
25143 LIBS="$gl_save_LIBS"
25144
25145 fi
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25147 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25148 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25149 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
25150 else
25151 HAVE_PTHREAD_SIGMASK=0
25152 fi
25153 else
25154 HAVE_PTHREAD_SIGMASK=0
25155 fi
25156 fi
25157 else
25158 if test $ac_cv_func_pthread_sigmask = yes; then
25159 REPLACE_PTHREAD_SIGMASK=1
25160 else
25161 HAVE_PTHREAD_SIGMASK=0
25162 fi
25163 fi
25164
25165
25166
25167
25168 if test $HAVE_PTHREAD_SIGMASK = 1; then
25169
25170
25171 if test -z "$LIB_PTHREAD_SIGMASK"; then
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25173 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25174 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25175 $as_echo_n "(cached) " >&6
25176 else
25177
25178 if test "$cross_compiling" = yes; then :
25179
25180 case "$host_os" in
25181 freebsd* | hpux* | solaris | solaris2.[2-9]*)
25182 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
25183 *)
25184 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
25185 esac
25186
25187 else
25188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25189 /* end confdefs.h. */
25190
25191 #include <pthread.h>
25192 #include <signal.h>
25193 #include <stddef.h>
25194 int main ()
25195 {
25196 sigset_t set;
25197 sigemptyset (&set);
25198 return pthread_sigmask (1729, &set, NULL) != 0;
25199 }
25200 _ACEOF
25201 if ac_fn_c_try_run "$LINENO"; then :
25202 gl_cv_func_pthread_sigmask_in_libc_works=no
25203 else
25204 gl_cv_func_pthread_sigmask_in_libc_works=yes
25205 fi
25206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25207 conftest.$ac_objext conftest.beam conftest.$ac_ext
25208 fi
25209
25210
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25213 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25214 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25215 *no)
25216 REPLACE_PTHREAD_SIGMASK=1
25217
25218 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25219
25220 ;;
25221 esac
25222 fi
25223
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25225 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25226 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25228 else
25229
25230 gl_save_LIBS="$LIBS"
25231 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
25232 if test "$cross_compiling" = yes; then :
25233 case "$host_os" in
25234 cygwin*)
25235 gl_cv_func_pthread_sigmask_return_works="guessing no";;
25236 *)
25237 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
25238 esac
25239
25240 else
25241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25242 /* end confdefs.h. */
25243
25244 #include <pthread.h>
25245 #include <signal.h>
25246 #include <stddef.h>
25247 int main ()
25248 {
25249 sigset_t set;
25250 sigemptyset (&set);
25251 if (pthread_sigmask (1729, &set, NULL) == -1)
25252 return 1;
25253 return 0;
25254 }
25255 _ACEOF
25256 if ac_fn_c_try_run "$LINENO"; then :
25257 gl_cv_func_pthread_sigmask_return_works=yes
25258 else
25259 gl_cv_func_pthread_sigmask_return_works=no
25260 fi
25261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25262 conftest.$ac_objext conftest.beam conftest.$ac_ext
25263 fi
25264
25265 LIBS="$gl_save_LIBS"
25266
25267 fi
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25269 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25270 case "$gl_cv_func_pthread_sigmask_return_works" in
25271 *no)
25272 REPLACE_PTHREAD_SIGMASK=1
25273
25274 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25275
25276 ;;
25277 esac
25278
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25280 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25281 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25283 else
25284
25285 case "$host_os" in
25286 irix*)
25287 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
25288 *)
25289 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
25290 esac
25291 gl_save_LIBS="$LIBS"
25292 LIBS="$LIBS $LIBMULTITHREAD"
25293 if test "$cross_compiling" = yes; then :
25294 :
25295 else
25296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h. */
25298
25299 #include <pthread.h>
25300 #include <signal.h>
25301 #include <stdio.h>
25302 #include <stdlib.h>
25303 #include <unistd.h>
25304 static volatile int sigint_occurred;
25305 static void
25306 sigint_handler (int sig)
25307 {
25308 sigint_occurred++;
25309 }
25310 int main ()
25311 {
25312 sigset_t set;
25313 int pid = getpid ();
25314 char command[80];
25315 signal (SIGINT, sigint_handler);
25316 sigemptyset (&set);
25317 sigaddset (&set, SIGINT);
25318 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25319 return 1;
25320 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25321 if (!(system (command) == 0))
25322 return 2;
25323 sleep (2);
25324 if (!(sigint_occurred == 0))
25325 return 3;
25326 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25327 return 4;
25328 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25329 return 5;
25330 return 0;
25331 }
25332 _ACEOF
25333 if ac_fn_c_try_run "$LINENO"; then :
25334 :
25335 else
25336 gl_cv_func_pthread_sigmask_unblock_works=no
25337 fi
25338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25339 conftest.$ac_objext conftest.beam conftest.$ac_ext
25340 fi
25341
25342 LIBS="$gl_save_LIBS"
25343
25344 fi
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25346 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25347 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25348 *no)
25349 REPLACE_PTHREAD_SIGMASK=1
25350
25351 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25352
25353 ;;
25354 esac
25355 fi
25356
25357 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
25358
25359
25360
25361
25362
25363
25364
25365
25366 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25367
25368
25369 if test $HAVE_PTHREAD_SIGMASK = 1; then
25370
25371 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25372
25373 fi
25374
25375 fi
25376
25377
25378
25379
25380
25381 GNULIB_PTHREAD_SIGMASK=1
25382
25383
25384
25385
25386
25387
25388
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25390 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25391 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 if test "$cross_compiling" = yes; then :
25395 case "$host_os" in
25396 # Guess yes on glibc systems.
25397 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
25398 # If we don't know, assume the worst.
25399 *) gl_cv_func_svid_putenv="guessing no" ;;
25400 esac
25401
25402 else
25403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25404 /* end confdefs.h. */
25405 $ac_includes_default
25406 int
25407 main ()
25408 {
25409
25410 /* Put it in env. */
25411 if (putenv ("CONFTEST_putenv=val"))
25412 return 1;
25413
25414 /* Try to remove it. */
25415 if (putenv ("CONFTEST_putenv"))
25416 return 2;
25417
25418 /* Make sure it was deleted. */
25419 if (getenv ("CONFTEST_putenv") != 0)
25420 return 3;
25421
25422 return 0;
25423
25424 ;
25425 return 0;
25426 }
25427 _ACEOF
25428 if ac_fn_c_try_run "$LINENO"; then :
25429 gl_cv_func_svid_putenv=yes
25430 else
25431 gl_cv_func_svid_putenv=no
25432 fi
25433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25434 conftest.$ac_objext conftest.beam conftest.$ac_ext
25435 fi
25436
25437
25438 fi
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25440 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25441 case "$gl_cv_func_svid_putenv" in
25442 *yes) ;;
25443 *)
25444 REPLACE_PUTENV=1
25445 ;;
25446 esac
25447
25448 if test $REPLACE_PUTENV = 1; then
25449
25450
25451
25452
25453
25454
25455
25456
25457 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25458
25459
25460 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25461 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25462 ac_have_decl=1
25463 else
25464 ac_have_decl=0
25465 fi
25466
25467 cat >>confdefs.h <<_ACEOF
25468 #define HAVE_DECL__PUTENV $ac_have_decl
25469 _ACEOF
25470
25471
25472 fi
25473
25474
25475
25476
25477
25478 GNULIB_PUTENV=1
25479
25480
25481
25482
25483
25484
25485 # Check whether --enable-acl was given.
25486 if test "${enable_acl+set}" = set; then :
25487 enableval=$enable_acl;
25488 else
25489 enable_acl=auto
25490 fi
25491
25492
25493 LIB_ACL=
25494 use_acl=0
25495 if test "x$enable_acl" != "xno"; then
25496 for ac_header in sys/acl.h
25497 do :
25498 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25499 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25500 cat >>confdefs.h <<_ACEOF
25501 #define HAVE_SYS_ACL_H 1
25502 _ACEOF
25503
25504 fi
25505
25506 done
25507
25508 if test $ac_cv_header_sys_acl_h = yes; then
25509 ac_save_LIBS=$LIBS
25510
25511 if test $use_acl = 0; then
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25513 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25514 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25516 else
25517 ac_func_search_save_LIBS=$LIBS
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25520
25521 /* Override any GCC internal prototype to avoid an error.
25522 Use char because int might match the return type of a GCC
25523 builtin and then its argument prototype would still apply. */
25524 #ifdef __cplusplus
25525 extern "C"
25526 #endif
25527 char acl_get_file ();
25528 int
25529 main ()
25530 {
25531 return acl_get_file ();
25532 ;
25533 return 0;
25534 }
25535 _ACEOF
25536 for ac_lib in '' acl pacl; do
25537 if test -z "$ac_lib"; then
25538 ac_res="none required"
25539 else
25540 ac_res=-l$ac_lib
25541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25542 fi
25543 if ac_fn_c_try_link "$LINENO"; then :
25544 ac_cv_search_acl_get_file=$ac_res
25545 fi
25546 rm -f core conftest.err conftest.$ac_objext \
25547 conftest$ac_exeext
25548 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25549 break
25550 fi
25551 done
25552 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25553
25554 else
25555 ac_cv_search_acl_get_file=no
25556 fi
25557 rm conftest.$ac_ext
25558 LIBS=$ac_func_search_save_LIBS
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25561 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25562 ac_res=$ac_cv_search_acl_get_file
25563 if test "$ac_res" != no; then :
25564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25565 if test "$ac_cv_search_acl_get_file" != "none required"; then
25566 LIB_ACL=$ac_cv_search_acl_get_file
25567 fi
25568 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25569 acl_free acl_from_mode acl_from_text \
25570 acl_delete_def_file acl_extended_file \
25571 acl_delete_fd_np acl_delete_file_np \
25572 acl_copy_ext_native acl_create_entry_np \
25573 acl_to_short_text acl_free_text
25574 do :
25575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25577 eval as_val=\$$as_ac_var
25578 if test "x$as_val" = x""yes; then :
25579 cat >>confdefs.h <<_ACEOF
25580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25581 _ACEOF
25582
25583 fi
25584 done
25585
25586 # If the acl_get_file bug is detected, don't enable the ACL support.
25587
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25589 $as_echo_n "checking for working acl_get_file... " >&6; }
25590 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
25592 else
25593 if test "$cross_compiling" = yes; then :
25594 gl_cv_func_working_acl_get_file=cross-compiling
25595 else
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 #include <sys/types.h>
25599 #include <sys/acl.h>
25600 #include <errno.h>
25601
25602 int
25603 main ()
25604 {
25605 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25606 return 1;
25607 return 0;
25608
25609 ;
25610 return 0;
25611 }
25612 _ACEOF
25613 if ac_fn_c_try_run "$LINENO"; then :
25614 gl_cv_func_working_acl_get_file=yes
25615 else
25616 gl_cv_func_working_acl_get_file=no
25617 fi
25618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25619 conftest.$ac_objext conftest.beam conftest.$ac_ext
25620 fi
25621
25622 fi
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25624 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25625
25626 if test $gl_cv_func_working_acl_get_file = yes; then :
25627 use_acl=1
25628 fi
25629
25630 if test $use_acl = 1; then
25631 for ac_header in acl/libacl.h
25632 do :
25633 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25634 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25635 cat >>confdefs.h <<_ACEOF
25636 #define HAVE_ACL_LIBACL_H 1
25637 _ACEOF
25638
25639 fi
25640
25641 done
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651 for ac_func in acl_entries
25652 do :
25653 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25654 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25655 cat >>confdefs.h <<_ACEOF
25656 #define HAVE_ACL_ENTRIES 1
25657 _ACEOF
25658
25659 else
25660
25661 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25662
25663 fi
25664 done
25665
25666
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25668 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25669 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25670 $as_echo_n "(cached) " >&6
25671 else
25672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h. */
25674 #include <sys/types.h>
25675 #include <sys/acl.h>
25676 int type = ACL_FIRST_ENTRY;
25677 int
25678 main ()
25679 {
25680
25681 ;
25682 return 0;
25683 }
25684 _ACEOF
25685 if ac_fn_c_try_compile "$LINENO"; then :
25686 gl_cv_acl_ACL_FIRST_ENTRY=yes
25687 else
25688 gl_cv_acl_ACL_FIRST_ENTRY=no
25689 fi
25690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25691 fi
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25693 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25694 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25695
25696 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25697
25698 fi
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25700 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25701 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25703 else
25704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705 /* end confdefs.h. */
25706 #include <sys/types.h>
25707 #include <sys/acl.h>
25708 int type = ACL_TYPE_EXTENDED;
25709 int
25710 main ()
25711 {
25712
25713 ;
25714 return 0;
25715 }
25716 _ACEOF
25717 if ac_fn_c_try_compile "$LINENO"; then :
25718 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25719 else
25720 gl_cv_acl_ACL_TYPE_EXTENDED=no
25721 fi
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 fi
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25725 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25726 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25727
25728 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25729
25730 fi
25731 else
25732 LIB_ACL=
25733 fi
25734
25735 fi
25736
25737 fi
25738
25739 if test $use_acl = 0; then
25740 for ac_func in facl
25741 do :
25742 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25743 if test "x$ac_cv_func_facl" = x""yes; then :
25744 cat >>confdefs.h <<_ACEOF
25745 #define HAVE_FACL 1
25746 _ACEOF
25747
25748 fi
25749 done
25750
25751 if test $ac_cv_func_facl = yes; then
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25753 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25754 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25755 $as_echo_n "(cached) " >&6
25756 else
25757 ac_func_search_save_LIBS=$LIBS
25758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h. */
25760
25761 /* Override any GCC internal prototype to avoid an error.
25762 Use char because int might match the return type of a GCC
25763 builtin and then its argument prototype would still apply. */
25764 #ifdef __cplusplus
25765 extern "C"
25766 #endif
25767 char acl_trivial ();
25768 int
25769 main ()
25770 {
25771 return acl_trivial ();
25772 ;
25773 return 0;
25774 }
25775 _ACEOF
25776 for ac_lib in '' sec; do
25777 if test -z "$ac_lib"; then
25778 ac_res="none required"
25779 else
25780 ac_res=-l$ac_lib
25781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25782 fi
25783 if ac_fn_c_try_link "$LINENO"; then :
25784 ac_cv_search_acl_trivial=$ac_res
25785 fi
25786 rm -f core conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext
25788 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25789 break
25790 fi
25791 done
25792 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25793
25794 else
25795 ac_cv_search_acl_trivial=no
25796 fi
25797 rm conftest.$ac_ext
25798 LIBS=$ac_func_search_save_LIBS
25799 fi
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25801 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25802 ac_res=$ac_cv_search_acl_trivial
25803 if test "$ac_res" != no; then :
25804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25805 if test "$ac_cv_search_acl_trivial" != "none required"; then
25806 LIB_ACL=$ac_cv_search_acl_trivial
25807 fi
25808
25809 fi
25810
25811 for ac_func in acl_trivial
25812 do :
25813 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25814 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25815 cat >>confdefs.h <<_ACEOF
25816 #define HAVE_ACL_TRIVIAL 1
25817 _ACEOF
25818
25819 fi
25820 done
25821
25822 use_acl=1
25823 fi
25824 fi
25825
25826 if test $use_acl = 0; then
25827 for ac_func in getacl
25828 do :
25829 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25830 if test "x$ac_cv_func_getacl" = x""yes; then :
25831 cat >>confdefs.h <<_ACEOF
25832 #define HAVE_GETACL 1
25833 _ACEOF
25834
25835 fi
25836 done
25837
25838 if test $ac_cv_func_getacl = yes; then
25839 use_acl=1
25840 fi
25841 for ac_header in aclv.h
25842 do :
25843 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25844 "
25845 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25846 cat >>confdefs.h <<_ACEOF
25847 #define HAVE_ACLV_H 1
25848 _ACEOF
25849
25850 fi
25851
25852 done
25853
25854 fi
25855
25856 if test $use_acl = 0; then
25857 for ac_func in aclx_get
25858 do :
25859 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25860 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25861 cat >>confdefs.h <<_ACEOF
25862 #define HAVE_ACLX_GET 1
25863 _ACEOF
25864
25865 fi
25866 done
25867
25868 if test $ac_cv_func_aclx_get = yes; then
25869 use_acl=1
25870 fi
25871 fi
25872
25873 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25874 for ac_func in statacl
25875 do :
25876 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25877 if test "x$ac_cv_func_statacl" = x""yes; then :
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_STATACL 1
25880 _ACEOF
25881
25882 fi
25883 done
25884
25885 if test $ac_cv_func_statacl = yes; then
25886 use_acl=1
25887 fi
25888 fi
25889
25890 if test $use_acl = 0; then
25891 for ac_func in aclsort
25892 do :
25893 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25894 if test "x$ac_cv_func_aclsort" = x""yes; then :
25895 cat >>confdefs.h <<_ACEOF
25896 #define HAVE_ACLSORT 1
25897 _ACEOF
25898
25899 fi
25900 done
25901
25902 if test $ac_cv_func_aclsort = yes; then
25903 use_acl=1
25904 fi
25905 fi
25906
25907 LIBS=$ac_save_LIBS
25908 fi
25909 if test "x$enable_acl$use_acl" = "xyes0"; then
25910 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25911 elif test "x$enable_acl$use_acl" = "xauto0"; then
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25913 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25915 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25916 fi
25917 fi
25918
25919
25920 cat >>confdefs.h <<_ACEOF
25921 #define USE_ACL $use_acl
25922 _ACEOF
25923
25924 USE_ACL=$use_acl
25925
25926
25927
25928
25929
25930 if test $ac_cv_func_readlink = no; then
25931 HAVE_READLINK=0
25932 else
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25934 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25935 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25936 $as_echo_n "(cached) " >&6
25937 else
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25940 #include <unistd.h>
25941 /* Cause compilation failure if original declaration has wrong type. */
25942 ssize_t readlink (const char *, char *, size_t);
25943 int
25944 main ()
25945 {
25946
25947 ;
25948 return 0;
25949 }
25950 _ACEOF
25951 if ac_fn_c_try_compile "$LINENO"; then :
25952 gl_cv_decl_readlink_works=yes
25953 else
25954 gl_cv_decl_readlink_works=no
25955 fi
25956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25957 fi
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25959 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25961 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25962 if test "${gl_cv_func_readlink_works+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25965 # We have readlink, so assume ln -s works.
25966 ln -s conftest.no-such conftest.link
25967 ln -s conftest.link conftest.lnk2
25968 if test "$cross_compiling" = yes; then :
25969 case "$host_os" in
25970 # Guess yes on glibc systems.
25971 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25972 # If we don't know, assume the worst.
25973 *) gl_cv_func_readlink_works="guessing no" ;;
25974 esac
25975
25976 else
25977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25978 /* end confdefs.h. */
25979 #include <unistd.h>
25980
25981 int
25982 main ()
25983 {
25984 char buf[20];
25985 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25986 ;
25987 return 0;
25988 }
25989 _ACEOF
25990 if ac_fn_c_try_run "$LINENO"; then :
25991 gl_cv_func_readlink_works=yes
25992 else
25993 gl_cv_func_readlink_works=no
25994 fi
25995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25996 conftest.$ac_objext conftest.beam conftest.$ac_ext
25997 fi
25998
25999 rm -f conftest.link conftest.lnk2
26000 fi
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
26002 $as_echo "$gl_cv_func_readlink_works" >&6; }
26003 case "$gl_cv_func_readlink_works" in
26004 *yes)
26005 if test "$gl_cv_decl_readlink_works" != yes; then
26006 REPLACE_READLINK=1
26007 fi
26008 ;;
26009 *)
26010
26011 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26012
26013 REPLACE_READLINK=1
26014 ;;
26015 esac
26016 fi
26017
26018 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26019
26020
26021
26022
26023
26024
26025
26026
26027 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
26028
26029
26030 :
26031
26032 fi
26033
26034
26035
26036
26037
26038 GNULIB_READLINK=1
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048 if test $ac_cv_func_readlinkat = no; then
26049 HAVE_READLINKAT=0
26050 fi
26051
26052 if test $HAVE_READLINKAT = 0; then
26053
26054
26055
26056
26057
26058
26059
26060
26061 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
26062
26063 fi
26064
26065
26066
26067
26068
26069 GNULIB_READLINKAT=1
26070
26071
26072
26073
26074
26075
26076 for ac_func in sig2str
26077 do :
26078 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
26079 if test "x$ac_cv_func_sig2str" = x""yes; then :
26080 cat >>confdefs.h <<_ACEOF
26081 #define HAVE_SIG2STR 1
26082 _ACEOF
26083
26084 fi
26085 done
26086
26087
26088 if test $ac_cv_func_sig2str = no; then
26089
26090
26091
26092
26093
26094
26095
26096
26097 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
26098
26099
26100 :
26101
26102 fi
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114 if test $gl_cv_have_include_next = yes; then
26115 gl_cv_next_signal_h='<'signal.h'>'
26116 else
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26118 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26119 if test "${gl_cv_next_signal_h+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26121 else
26122
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h. */
26125 #include <signal.h>
26126
26127 _ACEOF
26128 case "$host_os" in
26129 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26130 *) gl_absname_cpp="$ac_cpp" ;;
26131 esac
26132
26133 case "$host_os" in
26134 mingw*)
26135 gl_dirsep_regex='[/\\]'
26136 ;;
26137 *)
26138 gl_dirsep_regex='\/'
26139 ;;
26140 esac
26141 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26142
26143 gl_header_literal_regex=`echo 'signal.h' \
26144 | sed -e "$gl_make_literal_regex_sed"`
26145 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26146 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26147 s|^/[^/]|//&|
26148 p
26149 q
26150 }'
26151 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26152 sed -n "$gl_absolute_header_sed"`'"'
26153
26154
26155 fi
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26157 $as_echo "$gl_cv_next_signal_h" >&6; }
26158 fi
26159 NEXT_SIGNAL_H=$gl_cv_next_signal_h
26160
26161 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26163 gl_next_as_first_directive='<'signal.h'>'
26164 else
26165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26166 gl_next_as_first_directive=$gl_cv_next_signal_h
26167 fi
26168 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26169
26170
26171
26172
26173
26174 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26175 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26176 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26177 #include <signal.h>
26178
26179 "
26180 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
26181
26182 else
26183 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
26184 fi
26185
26186
26187
26188
26189
26190
26191
26192 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26193 #include <signal.h>
26194
26195 "
26196 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
26197
26198 else
26199 HAVE_SIGHANDLER_T=0
26200 fi
26201
26202
26203
26204
26205 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26206 /* <sys/types.h> is not needed according to POSIX, but the
26207 <sys/socket.h> in i386-unknown-freebsd4.10 and
26208 powerpc-apple-darwin5.5 required it. */
26209 #include <sys/types.h>
26210 #if HAVE_SYS_SOCKET_H
26211 # include <sys/socket.h>
26212 #elif HAVE_WS2TCPIP_H
26213 # include <ws2tcpip.h>
26214 #endif
26215
26216 "
26217 if test "x$ac_cv_type_socklen_t" = x""yes; then :
26218
26219 else
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26221 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26222 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26223 $as_echo_n "(cached) " >&6
26224 else
26225 # Systems have either "struct sockaddr *" or
26226 # "void *" as the second argument to getpeername
26227 gl_cv_socklen_t_equiv=
26228 for arg2 in "struct sockaddr" void; do
26229 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
26230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26231 /* end confdefs.h. */
26232 #include <sys/types.h>
26233 #include <sys/socket.h>
26234
26235 int getpeername (int, $arg2 *, $t *);
26236 int
26237 main ()
26238 {
26239 $t len;
26240 getpeername (0, 0, &len);
26241 ;
26242 return 0;
26243 }
26244 _ACEOF
26245 if ac_fn_c_try_compile "$LINENO"; then :
26246 gl_cv_socklen_t_equiv="$t"
26247 fi
26248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 test "$gl_cv_socklen_t_equiv" != "" && break
26250 done
26251 test "$gl_cv_socklen_t_equiv" != "" && break
26252 done
26253
26254 fi
26255
26256 if test "$gl_cv_socklen_t_equiv" = ""; then
26257 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26260 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26261
26262 cat >>confdefs.h <<_ACEOF
26263 #define socklen_t $gl_cv_socklen_t_equiv
26264 _ACEOF
26265
26266 fi
26267
26268
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26270 $as_echo_n "checking for ssize_t... " >&6; }
26271 if test "${gt_cv_ssize_t+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26273 else
26274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275 /* end confdefs.h. */
26276 #include <sys/types.h>
26277 int
26278 main ()
26279 {
26280 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26281 return !x;
26282 ;
26283 return 0;
26284 }
26285 _ACEOF
26286 if ac_fn_c_try_compile "$LINENO"; then :
26287 gt_cv_ssize_t=yes
26288 else
26289 gt_cv_ssize_t=no
26290 fi
26291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 fi
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26294 $as_echo "$gt_cv_ssize_t" >&6; }
26295 if test $gt_cv_ssize_t = no; then
26296
26297 $as_echo "#define ssize_t int" >>confdefs.h
26298
26299 fi
26300
26301
26302
26303
26304
26305 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>
26306 #include <sys/stat.h>
26307 "
26308 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
26309
26310 cat >>confdefs.h <<_ACEOF
26311 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26312 _ACEOF
26313
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26315 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26316 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320 /* end confdefs.h. */
26321
26322 #include <sys/types.h>
26323 #include <sys/stat.h>
26324 #if HAVE_SYS_TIME_H
26325 # include <sys/time.h>
26326 #endif
26327 #include <time.h>
26328 struct timespec ts;
26329 struct stat st;
26330
26331 int
26332 main ()
26333 {
26334
26335 st.st_atim = ts;
26336
26337 ;
26338 return 0;
26339 }
26340 _ACEOF
26341 if ac_fn_c_try_compile "$LINENO"; then :
26342 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26343 else
26344 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26345 fi
26346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26349 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26350 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26351
26352 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26353
26354 fi
26355 else
26356 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>
26357 #include <sys/stat.h>
26358 "
26359 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
26360
26361 cat >>confdefs.h <<_ACEOF
26362 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26363 _ACEOF
26364
26365
26366 else
26367 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26368 #include <sys/stat.h>
26369 "
26370 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
26371
26372 cat >>confdefs.h <<_ACEOF
26373 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26374 _ACEOF
26375
26376
26377 else
26378 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>
26379 #include <sys/stat.h>
26380 "
26381 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
26382
26383 cat >>confdefs.h <<_ACEOF
26384 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26385 _ACEOF
26386
26387
26388 fi
26389
26390 fi
26391
26392 fi
26393
26394 fi
26395
26396
26397
26398
26399
26400 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>
26401 #include <sys/stat.h>
26402 "
26403 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26404
26405 cat >>confdefs.h <<_ACEOF
26406 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26407 _ACEOF
26408
26409
26410 else
26411 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26412 #include <sys/stat.h>
26413 "
26414 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26415
26416 cat >>confdefs.h <<_ACEOF
26417 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26418 _ACEOF
26419
26420
26421 else
26422 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>
26423 #include <sys/stat.h>
26424 "
26425 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26426
26427 cat >>confdefs.h <<_ACEOF
26428 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26429 _ACEOF
26430
26431
26432 fi
26433
26434 fi
26435
26436 fi
26437
26438
26439
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26441 $as_echo_n "checking for working stdalign.h... " >&6; }
26442 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26443 $as_echo_n "(cached) " >&6
26444 else
26445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26446 /* end confdefs.h. */
26447 #include <stdalign.h>
26448 #include <stddef.h>
26449
26450 /* Test that alignof yields a result consistent with offsetof.
26451 This catches GCC bug 52023
26452 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26453 #ifdef __cplusplus
26454 template <class t> struct alignof_helper { char a; t b; };
26455 # define ao(type) offsetof (alignof_helper<type>, b)
26456 #else
26457 # define ao(type) offsetof (struct { char a; type b; }, b)
26458 #endif
26459 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26460 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26461 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26462
26463 /* Test _Alignas only on platforms where gnulib can help. */
26464 #if \
26465 ((defined __cplusplus && 201103 <= __cplusplus) \
26466 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26467 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26468 struct alignas_test { char c; char alignas (8) alignas_8; };
26469 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26470 ? 1 : -1];
26471 #endif
26472
26473 int
26474 main ()
26475 {
26476
26477 ;
26478 return 0;
26479 }
26480 _ACEOF
26481 if ac_fn_c_try_compile "$LINENO"; then :
26482 gl_cv_header_working_stdalign_h=yes
26483 else
26484 gl_cv_header_working_stdalign_h=no
26485 fi
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26489 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26490
26491 if test $gl_cv_header_working_stdalign_h = yes; then
26492 STDALIGN_H=''
26493 else
26494 STDALIGN_H='stdalign.h'
26495 fi
26496
26497
26498 if test -n "$STDALIGN_H"; then
26499 GL_GENERATE_STDALIGN_H_TRUE=
26500 GL_GENERATE_STDALIGN_H_FALSE='#'
26501 else
26502 GL_GENERATE_STDALIGN_H_TRUE='#'
26503 GL_GENERATE_STDALIGN_H_FALSE=
26504 fi
26505
26506
26507
26508 STDARG_H=''
26509 NEXT_STDARG_H='<stdarg.h>'
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26511 $as_echo_n "checking for va_copy... " >&6; }
26512 if test "${gl_cv_func_va_copy+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26514 else
26515
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26518 #include <stdarg.h>
26519 int
26520 main ()
26521 {
26522
26523 #ifndef va_copy
26524 void (*func) (va_list, va_list) = va_copy;
26525 #endif
26526
26527 ;
26528 return 0;
26529 }
26530 _ACEOF
26531 if ac_fn_c_try_compile "$LINENO"; then :
26532 gl_cv_func_va_copy=yes
26533 else
26534 gl_cv_func_va_copy=no
26535 fi
26536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26537 fi
26538
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26540 $as_echo "$gl_cv_func_va_copy" >&6; }
26541 if test $gl_cv_func_va_copy = no; then
26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26544 #if defined _AIX && !defined __GNUC__
26545 AIX vaccine
26546 #endif
26547
26548 _ACEOF
26549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26550 $EGREP "vaccine" >/dev/null 2>&1; then :
26551 gl_aixcc=yes
26552 else
26553 gl_aixcc=no
26554 fi
26555 rm -f conftest*
26556
26557 if test $gl_aixcc = yes; then
26558 STDARG_H=stdarg.h
26559
26560
26561
26562
26563
26564
26565
26566
26567 if test $gl_cv_have_include_next = yes; then
26568 gl_cv_next_stdarg_h='<'stdarg.h'>'
26569 else
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26571 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26572 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575
26576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26577 /* end confdefs.h. */
26578 #include <stdarg.h>
26579
26580 _ACEOF
26581 case "$host_os" in
26582 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26583 *) gl_absname_cpp="$ac_cpp" ;;
26584 esac
26585
26586 case "$host_os" in
26587 mingw*)
26588 gl_dirsep_regex='[/\\]'
26589 ;;
26590 *)
26591 gl_dirsep_regex='\/'
26592 ;;
26593 esac
26594 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26595
26596 gl_header_literal_regex=`echo 'stdarg.h' \
26597 | sed -e "$gl_make_literal_regex_sed"`
26598 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26599 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26600 s|^/[^/]|//&|
26601 p
26602 q
26603 }'
26604 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26605 sed -n "$gl_absolute_header_sed"`'"'
26606
26607
26608 fi
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26610 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26611 fi
26612 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26613
26614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26616 gl_next_as_first_directive='<'stdarg.h'>'
26617 else
26618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26619 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26620 fi
26621 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26622
26623
26624
26625
26626 if test "$gl_cv_next_stdarg_h" = '""'; then
26627 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26628 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26629 fi
26630 else
26631
26632 saved_as_echo_n="$as_echo_n"
26633 as_echo_n=':'
26634 if test "${gl_cv_func___va_copy+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637
26638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26639 /* end confdefs.h. */
26640 #include <stdarg.h>
26641 int
26642 main ()
26643 {
26644
26645 #ifndef __va_copy
26646 error, bail out
26647 #endif
26648
26649 ;
26650 return 0;
26651 }
26652 _ACEOF
26653 if ac_fn_c_try_compile "$LINENO"; then :
26654 gl_cv_func___va_copy=yes
26655 else
26656 gl_cv_func___va_copy=no
26657 fi
26658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659 fi
26660
26661 as_echo_n="$saved_as_echo_n"
26662
26663 if test $gl_cv_func___va_copy = yes; then
26664
26665 $as_echo "#define va_copy __va_copy" >>confdefs.h
26666
26667 else
26668
26669
26670 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26671
26672 fi
26673 fi
26674 fi
26675
26676 if test -n "$STDARG_H"; then
26677 GL_GENERATE_STDARG_H_TRUE=
26678 GL_GENERATE_STDARG_H_FALSE='#'
26679 else
26680 GL_GENERATE_STDARG_H_TRUE='#'
26681 GL_GENERATE_STDARG_H_FALSE=
26682 fi
26683
26684
26685
26686
26687
26688
26689 # Define two additional variables used in the Makefile substitution.
26690
26691 if test "$ac_cv_header_stdbool_h" = yes; then
26692 STDBOOL_H=''
26693 else
26694 STDBOOL_H='stdbool.h'
26695 fi
26696
26697 if test -n "$STDBOOL_H"; then
26698 GL_GENERATE_STDBOOL_H_TRUE=
26699 GL_GENERATE_STDBOOL_H_FALSE='#'
26700 else
26701 GL_GENERATE_STDBOOL_H_TRUE='#'
26702 GL_GENERATE_STDBOOL_H_FALSE=
26703 fi
26704
26705
26706 if test "$ac_cv_type__Bool" = yes; then
26707 HAVE__BOOL=1
26708 else
26709 HAVE__BOOL=0
26710 fi
26711
26712
26713
26714
26715
26716 STDDEF_H=
26717 if test $gt_cv_c_wchar_t = no; then
26718 HAVE_WCHAR_T=0
26719 STDDEF_H=stddef.h
26720 fi
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26722 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26723 if test "${gl_cv_decl_null_works+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26725 else
26726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26727 /* end confdefs.h. */
26728 #include <stddef.h>
26729 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26730
26731 int
26732 main ()
26733 {
26734
26735 ;
26736 return 0;
26737 }
26738 _ACEOF
26739 if ac_fn_c_try_compile "$LINENO"; then :
26740 gl_cv_decl_null_works=yes
26741 else
26742 gl_cv_decl_null_works=no
26743 fi
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745 fi
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26747 $as_echo "$gl_cv_decl_null_works" >&6; }
26748 if test $gl_cv_decl_null_works = no; then
26749 REPLACE_NULL=1
26750 STDDEF_H=stddef.h
26751 fi
26752
26753 if test -n "$STDDEF_H"; then
26754 GL_GENERATE_STDDEF_H_TRUE=
26755 GL_GENERATE_STDDEF_H_FALSE='#'
26756 else
26757 GL_GENERATE_STDDEF_H_TRUE='#'
26758 GL_GENERATE_STDDEF_H_FALSE=
26759 fi
26760
26761 if test -n "$STDDEF_H"; then
26762
26763
26764
26765
26766
26767
26768
26769
26770 if test $gl_cv_have_include_next = yes; then
26771 gl_cv_next_stddef_h='<'stddef.h'>'
26772 else
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26774 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26775 if test "${gl_cv_next_stddef_h+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26777 else
26778
26779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26780 /* end confdefs.h. */
26781 #include <stddef.h>
26782
26783 _ACEOF
26784 case "$host_os" in
26785 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26786 *) gl_absname_cpp="$ac_cpp" ;;
26787 esac
26788
26789 case "$host_os" in
26790 mingw*)
26791 gl_dirsep_regex='[/\\]'
26792 ;;
26793 *)
26794 gl_dirsep_regex='\/'
26795 ;;
26796 esac
26797 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26798
26799 gl_header_literal_regex=`echo 'stddef.h' \
26800 | sed -e "$gl_make_literal_regex_sed"`
26801 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26802 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26803 s|^/[^/]|//&|
26804 p
26805 q
26806 }'
26807 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26808 sed -n "$gl_absolute_header_sed"`'"'
26809
26810
26811 fi
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26813 $as_echo "$gl_cv_next_stddef_h" >&6; }
26814 fi
26815 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26816
26817 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26818 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26819 gl_next_as_first_directive='<'stddef.h'>'
26820 else
26821 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26822 gl_next_as_first_directive=$gl_cv_next_stddef_h
26823 fi
26824 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26825
26826
26827
26828
26829 fi
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842 if test $gl_cv_have_include_next = yes; then
26843 gl_cv_next_stdio_h='<'stdio.h'>'
26844 else
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26846 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26847 if test "${gl_cv_next_stdio_h+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850
26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26852 /* end confdefs.h. */
26853 #include <stdio.h>
26854
26855 _ACEOF
26856 case "$host_os" in
26857 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26858 *) gl_absname_cpp="$ac_cpp" ;;
26859 esac
26860
26861 case "$host_os" in
26862 mingw*)
26863 gl_dirsep_regex='[/\\]'
26864 ;;
26865 *)
26866 gl_dirsep_regex='\/'
26867 ;;
26868 esac
26869 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26870
26871 gl_header_literal_regex=`echo 'stdio.h' \
26872 | sed -e "$gl_make_literal_regex_sed"`
26873 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26874 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26875 s|^/[^/]|//&|
26876 p
26877 q
26878 }'
26879 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26880 sed -n "$gl_absolute_header_sed"`'"'
26881
26882
26883 fi
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26885 $as_echo "$gl_cv_next_stdio_h" >&6; }
26886 fi
26887 NEXT_STDIO_H=$gl_cv_next_stdio_h
26888
26889 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26891 gl_next_as_first_directive='<'stdio.h'>'
26892 else
26893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26894 gl_next_as_first_directive=$gl_cv_next_stdio_h
26895 fi
26896 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26897
26898
26899
26900
26901
26902 GNULIB_FSCANF=1
26903
26904
26905 cat >>confdefs.h <<_ACEOF
26906 #define GNULIB_FSCANF 1
26907 _ACEOF
26908
26909
26910 GNULIB_SCANF=1
26911
26912
26913 cat >>confdefs.h <<_ACEOF
26914 #define GNULIB_SCANF 1
26915 _ACEOF
26916
26917
26918 GNULIB_FGETC=1
26919 GNULIB_GETC=1
26920 GNULIB_GETCHAR=1
26921 GNULIB_FGETS=1
26922 GNULIB_FREAD=1
26923
26924
26925 GNULIB_FPRINTF=1
26926 GNULIB_PRINTF=1
26927 GNULIB_VFPRINTF=1
26928 GNULIB_VPRINTF=1
26929 GNULIB_FPUTC=1
26930 GNULIB_PUTC=1
26931 GNULIB_PUTCHAR=1
26932 GNULIB_FPUTS=1
26933 GNULIB_PUTS=1
26934 GNULIB_FWRITE=1
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950 if test $gl_cv_have_include_next = yes; then
26951 gl_cv_next_stdlib_h='<'stdlib.h'>'
26952 else
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26954 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26955 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26956 $as_echo_n "(cached) " >&6
26957 else
26958
26959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h. */
26961 #include <stdlib.h>
26962
26963 _ACEOF
26964 case "$host_os" in
26965 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26966 *) gl_absname_cpp="$ac_cpp" ;;
26967 esac
26968
26969 case "$host_os" in
26970 mingw*)
26971 gl_dirsep_regex='[/\\]'
26972 ;;
26973 *)
26974 gl_dirsep_regex='\/'
26975 ;;
26976 esac
26977 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26978
26979 gl_header_literal_regex=`echo 'stdlib.h' \
26980 | sed -e "$gl_make_literal_regex_sed"`
26981 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26982 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26983 s|^/[^/]|//&|
26984 p
26985 q
26986 }'
26987 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26988 sed -n "$gl_absolute_header_sed"`'"'
26989
26990
26991 fi
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26993 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26994 fi
26995 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26996
26997 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26999 gl_next_as_first_directive='<'stdlib.h'>'
27000 else
27001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27002 gl_next_as_first_directive=$gl_cv_next_stdlib_h
27003 fi
27004 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
27015
27016
27017
27018
27019
27020
27021
27022 $as_echo "#define my_strftime nstrftime" >>confdefs.h
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034 if test "$ac_cv_have_decl_strtoimax" != yes; then
27035 HAVE_DECL_STRTOIMAX=0
27036 fi
27037
27038 if test $ac_cv_func_strtoimax = yes; then
27039 HAVE_STRTOIMAX=1
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
27041 $as_echo_n "checking whether strtoimax works... " >&6; }
27042 if test "${gl_cv_func_strtoimax+set}" = set; then :
27043 $as_echo_n "(cached) " >&6
27044 else
27045 if test "$cross_compiling" = yes; then :
27046 case "$host_os" in
27047 # Guess no on AIX 5.
27048 aix5*) gl_cv_func_strtoimax="guessing no" ;;
27049 # Guess yes otherwise.
27050 *) gl_cv_func_strtoimax="guessing yes" ;;
27051 esac
27052
27053 else
27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055 /* end confdefs.h. */
27056
27057 #include <errno.h>
27058 #include <string.h>
27059 #include <inttypes.h>
27060 int main ()
27061 {
27062 if (sizeof (intmax_t) > sizeof (int))
27063 {
27064 const char *s = "4294967295";
27065 char *p;
27066 intmax_t res;
27067 errno = 0;
27068 res = strtoimax (s, &p, 10);
27069 if (p != s + strlen (s))
27070 return 1;
27071 if (errno != 0)
27072 return 2;
27073 if (res != (intmax_t) 65535 * (intmax_t) 65537)
27074 return 3;
27075 }
27076 else
27077 {
27078 const char *s = "2147483647";
27079 char *p;
27080 intmax_t res;
27081 errno = 0;
27082 res = strtoimax (s, &p, 10);
27083 if (p != s + strlen (s))
27084 return 1;
27085 if (errno != 0)
27086 return 2;
27087 if (res != 2147483647)
27088 return 3;
27089 }
27090 return 0;
27091 }
27092
27093 _ACEOF
27094 if ac_fn_c_try_run "$LINENO"; then :
27095 gl_cv_func_strtoimax=yes
27096 else
27097 gl_cv_func_strtoimax=no
27098 fi
27099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27100 conftest.$ac_objext conftest.beam conftest.$ac_ext
27101 fi
27102
27103
27104 fi
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27106 $as_echo "$gl_cv_func_strtoimax" >&6; }
27107 case "$gl_cv_func_strtoimax" in
27108 *no) REPLACE_STRTOIMAX=1 ;;
27109 esac
27110 else
27111 HAVE_STRTOIMAX=0
27112 fi
27113
27114 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
27115
27116
27117
27118
27119
27120
27121
27122
27123 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
27124
27125
27126 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27127 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
27128 ac_have_decl=1
27129 else
27130 ac_have_decl=0
27131 fi
27132
27133 cat >>confdefs.h <<_ACEOF
27134 #define HAVE_DECL_STRTOLL $ac_have_decl
27135 _ACEOF
27136
27137
27138
27139 fi
27140
27141
27142
27143
27144
27145 GNULIB_STRTOIMAX=1
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155 if test "$ac_cv_have_decl_strtoumax" != yes; then
27156 HAVE_DECL_STRTOUMAX=0
27157 fi
27158
27159 if test $ac_cv_func_strtoumax = no; then
27160
27161
27162
27163
27164
27165
27166
27167
27168 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
27169
27170
27171 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27172 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
27173 ac_have_decl=1
27174 else
27175 ac_have_decl=0
27176 fi
27177
27178 cat >>confdefs.h <<_ACEOF
27179 #define HAVE_DECL_STRTOULL $ac_have_decl
27180 _ACEOF
27181
27182
27183
27184 fi
27185
27186
27187
27188
27189
27190 GNULIB_STRTOUMAX=1
27191
27192
27193
27194
27195
27196
27197
27198 if test $ac_cv_func_symlink = no; then
27199 HAVE_SYMLINK=0
27200 else
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27202 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27203 if test "${gl_cv_func_symlink_works+set}" = set; then :
27204 $as_echo_n "(cached) " >&6
27205 else
27206 if test "$cross_compiling" = yes; then :
27207 case "$host_os" in
27208 # Guess yes on glibc systems.
27209 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
27210 # If we don't know, assume the worst.
27211 *) gl_cv_func_symlink_works="guessing no" ;;
27212 esac
27213
27214 else
27215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27216 /* end confdefs.h. */
27217 #include <unistd.h>
27218
27219 int
27220 main ()
27221 {
27222 int result = 0;
27223 if (!symlink ("a", "conftest.link/"))
27224 result |= 1;
27225 if (symlink ("conftest.f", "conftest.lnk2"))
27226 result |= 2;
27227 else if (!symlink ("a", "conftest.lnk2/"))
27228 result |= 4;
27229 return result;
27230
27231 ;
27232 return 0;
27233 }
27234 _ACEOF
27235 if ac_fn_c_try_run "$LINENO"; then :
27236 gl_cv_func_symlink_works=yes
27237 else
27238 gl_cv_func_symlink_works=no
27239 fi
27240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27241 conftest.$ac_objext conftest.beam conftest.$ac_ext
27242 fi
27243
27244 rm -f conftest.f conftest.link conftest.lnk2
27245 fi
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27247 $as_echo "$gl_cv_func_symlink_works" >&6; }
27248 case "$gl_cv_func_symlink_works" in
27249 *yes) ;;
27250 *)
27251 REPLACE_SYMLINK=1
27252 ;;
27253 esac
27254 fi
27255
27256 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
27257
27258
27259
27260
27261
27262
27263
27264
27265 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
27266
27267 fi
27268
27269
27270
27271
27272
27273 GNULIB_SYMLINK=1
27274
27275
27276
27277
27278
27279
27280
27281
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27283 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27284 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287
27288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27289 /* end confdefs.h. */
27290 #include <sys/select.h>
27291 int
27292 main ()
27293 {
27294 struct timeval b;
27295 ;
27296 return 0;
27297 }
27298 _ACEOF
27299 if ac_fn_c_try_compile "$LINENO"; then :
27300 gl_cv_header_sys_select_h_selfcontained=yes
27301 else
27302 gl_cv_header_sys_select_h_selfcontained=no
27303 fi
27304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27305 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27307 /* end confdefs.h. */
27308 #include <sys/select.h>
27309 int
27310 main ()
27311 {
27312 int memset; int bzero;
27313 ;
27314 return 0;
27315 }
27316
27317 _ACEOF
27318 if ac_fn_c_try_compile "$LINENO"; then :
27319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27320 /* end confdefs.h. */
27321 #include <sys/select.h>
27322 int
27323 main ()
27324 {
27325
27326 #undef memset
27327 #define memset nonexistent_memset
27328 extern
27329 #ifdef __cplusplus
27330 "C"
27331 #endif
27332 void *memset (void *, int, unsigned long);
27333 #undef bzero
27334 #define bzero nonexistent_bzero
27335 extern
27336 #ifdef __cplusplus
27337 "C"
27338 #endif
27339 void bzero (void *, unsigned long);
27340 fd_set fds;
27341 FD_ZERO (&fds);
27342
27343 ;
27344 return 0;
27345 }
27346
27347 _ACEOF
27348 if ac_fn_c_try_link "$LINENO"; then :
27349
27350 else
27351 gl_cv_header_sys_select_h_selfcontained=no
27352 fi
27353 rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
27355
27356 fi
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27358 fi
27359
27360 fi
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27362 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372 if test $gl_cv_have_include_next = yes; then
27373 gl_cv_next_sys_select_h='<'sys/select.h'>'
27374 else
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27376 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27377 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380
27381 if test $ac_cv_header_sys_select_h = yes; then
27382
27383
27384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27385 /* end confdefs.h. */
27386 #include <sys/select.h>
27387
27388 _ACEOF
27389 case "$host_os" in
27390 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27391 *) gl_absname_cpp="$ac_cpp" ;;
27392 esac
27393
27394 case "$host_os" in
27395 mingw*)
27396 gl_dirsep_regex='[/\\]'
27397 ;;
27398 *)
27399 gl_dirsep_regex='\/'
27400 ;;
27401 esac
27402 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27403
27404 gl_header_literal_regex=`echo 'sys/select.h' \
27405 | sed -e "$gl_make_literal_regex_sed"`
27406 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27407 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27408 s|^/[^/]|//&|
27409 p
27410 q
27411 }'
27412 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27413 sed -n "$gl_absolute_header_sed"`'"'
27414 else
27415 gl_cv_next_sys_select_h='<'sys/select.h'>'
27416 fi
27417
27418
27419 fi
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27421 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27422 fi
27423 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27424
27425 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27427 gl_next_as_first_directive='<'sys/select.h'>'
27428 else
27429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27430 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27431 fi
27432 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27433
27434
27435
27436
27437 if test $ac_cv_header_sys_select_h = yes; then
27438 HAVE_SYS_SELECT_H=1
27439 else
27440 HAVE_SYS_SELECT_H=0
27441 fi
27442
27443
27444
27445
27446
27447 if test $ac_cv_header_sys_socket_h != yes; then
27448 for ac_header in winsock2.h
27449 do :
27450 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27451 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27452 cat >>confdefs.h <<_ACEOF
27453 #define HAVE_WINSOCK2_H 1
27454 _ACEOF
27455
27456 fi
27457
27458 done
27459
27460 fi
27461 if test "$ac_cv_header_winsock2_h" = yes; then
27462 HAVE_WINSOCK2_H=1
27463 UNISTD_H_HAVE_WINSOCK2_H=1
27464 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27465 else
27466 HAVE_WINSOCK2_H=0
27467 fi
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488 if test $gl_cv_have_include_next = yes; then
27489 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27490 else
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27492 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27493 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27494 $as_echo_n "(cached) " >&6
27495 else
27496
27497 if test $ac_cv_header_sys_stat_h = yes; then
27498
27499
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27502 #include <sys/stat.h>
27503
27504 _ACEOF
27505 case "$host_os" in
27506 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27507 *) gl_absname_cpp="$ac_cpp" ;;
27508 esac
27509
27510 case "$host_os" in
27511 mingw*)
27512 gl_dirsep_regex='[/\\]'
27513 ;;
27514 *)
27515 gl_dirsep_regex='\/'
27516 ;;
27517 esac
27518 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27519
27520 gl_header_literal_regex=`echo 'sys/stat.h' \
27521 | sed -e "$gl_make_literal_regex_sed"`
27522 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27523 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27524 s|^/[^/]|//&|
27525 p
27526 q
27527 }'
27528 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27529 sed -n "$gl_absolute_header_sed"`'"'
27530 else
27531 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27532 fi
27533
27534
27535 fi
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27537 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27538 fi
27539 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27540
27541 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27543 gl_next_as_first_directive='<'sys/stat.h'>'
27544 else
27545 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27546 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27547 fi
27548 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27561
27562 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27563
27564 fi
27565
27566 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27567 #include <sys/stat.h>
27568 "
27569 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27570
27571 else
27572
27573 $as_echo "#define nlink_t int" >>confdefs.h
27574
27575 fi
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27595 "
27596 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27597 ac_have_decl=1
27598 else
27599 ac_have_decl=0
27600 fi
27601
27602 cat >>confdefs.h <<_ACEOF
27603 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27604 _ACEOF
27605
27606 if test $ac_cv_have_decl_localtime_r = no; then
27607 HAVE_DECL_LOCALTIME_R=0
27608 fi
27609
27610
27611 if test $ac_cv_func_localtime_r = yes; then
27612 HAVE_LOCALTIME_R=1
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27614 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27615 if test "${gl_cv_time_r_posix+set}" = set; then :
27616 $as_echo_n "(cached) " >&6
27617 else
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27620 #include <time.h>
27621 int
27622 main ()
27623 {
27624 /* We don't need to append 'restrict's to the argument types,
27625 even though the POSIX signature has the 'restrict's,
27626 since C99 says they can't affect type compatibility. */
27627 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27628 if (ptr) return 0;
27629 /* Check the return type is a pointer.
27630 On HP-UX 10 it is 'int'. */
27631 *localtime_r (0, 0);
27632 ;
27633 return 0;
27634 }
27635
27636 _ACEOF
27637 if ac_fn_c_try_compile "$LINENO"; then :
27638 gl_cv_time_r_posix=yes
27639 else
27640 gl_cv_time_r_posix=no
27641 fi
27642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27643
27644 fi
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27646 $as_echo "$gl_cv_time_r_posix" >&6; }
27647 if test $gl_cv_time_r_posix = yes; then
27648 REPLACE_LOCALTIME_R=0
27649 else
27650 REPLACE_LOCALTIME_R=1
27651 fi
27652 else
27653 HAVE_LOCALTIME_R=0
27654 fi
27655
27656 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27657
27658
27659
27660
27661
27662
27663
27664
27665 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27666
27667
27668 :
27669
27670 fi
27671
27672
27673
27674
27675
27676 GNULIB_TIME_R=1
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687 LIB_TIMER_TIME=
27688
27689 gl_saved_libs=$LIBS
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27691 $as_echo_n "checking for library containing timer_settime... " >&6; }
27692 if test "${ac_cv_search_timer_settime+set}" = set; then :
27693 $as_echo_n "(cached) " >&6
27694 else
27695 ac_func_search_save_LIBS=$LIBS
27696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27697 /* end confdefs.h. */
27698
27699 /* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27702 #ifdef __cplusplus
27703 extern "C"
27704 #endif
27705 char timer_settime ();
27706 int
27707 main ()
27708 {
27709 return timer_settime ();
27710 ;
27711 return 0;
27712 }
27713 _ACEOF
27714 for ac_lib in '' rt posix4; do
27715 if test -z "$ac_lib"; then
27716 ac_res="none required"
27717 else
27718 ac_res=-l$ac_lib
27719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27720 fi
27721 if ac_fn_c_try_link "$LINENO"; then :
27722 ac_cv_search_timer_settime=$ac_res
27723 fi
27724 rm -f core conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext
27726 if test "${ac_cv_search_timer_settime+set}" = set; then :
27727 break
27728 fi
27729 done
27730 if test "${ac_cv_search_timer_settime+set}" = set; then :
27731
27732 else
27733 ac_cv_search_timer_settime=no
27734 fi
27735 rm conftest.$ac_ext
27736 LIBS=$ac_func_search_save_LIBS
27737 fi
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27739 $as_echo "$ac_cv_search_timer_settime" >&6; }
27740 ac_res=$ac_cv_search_timer_settime
27741 if test "$ac_res" != no; then :
27742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27743 test "$ac_cv_search_timer_settime" = "none required" ||
27744 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27745 fi
27746
27747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h. */
27749
27750 #include <features.h>
27751 #ifdef __GNU_LIBRARY__
27752 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27753 && !defined __UCLIBC__
27754 Thread emulation available
27755 #endif
27756 #endif
27757
27758 _ACEOF
27759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27760 $EGREP "Thread" >/dev/null 2>&1; then :
27761 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27762 fi
27763 rm -f conftest*
27764
27765 for ac_func in timer_settime
27766 do :
27767 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27768 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27769 cat >>confdefs.h <<_ACEOF
27770 #define HAVE_TIMER_SETTIME 1
27771 _ACEOF
27772
27773 fi
27774 done
27775
27776 LIBS=$gl_saved_libs
27777
27778 :
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791 if test $gl_cv_have_include_next = yes; then
27792 gl_cv_next_unistd_h='<'unistd.h'>'
27793 else
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27795 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27796 if test "${gl_cv_next_unistd_h+set}" = set; then :
27797 $as_echo_n "(cached) " >&6
27798 else
27799
27800 if test $ac_cv_header_unistd_h = yes; then
27801
27802
27803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27804 /* end confdefs.h. */
27805 #include <unistd.h>
27806
27807 _ACEOF
27808 case "$host_os" in
27809 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27810 *) gl_absname_cpp="$ac_cpp" ;;
27811 esac
27812
27813 case "$host_os" in
27814 mingw*)
27815 gl_dirsep_regex='[/\\]'
27816 ;;
27817 *)
27818 gl_dirsep_regex='\/'
27819 ;;
27820 esac
27821 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27822
27823 gl_header_literal_regex=`echo 'unistd.h' \
27824 | sed -e "$gl_make_literal_regex_sed"`
27825 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27827 s|^/[^/]|//&|
27828 p
27829 q
27830 }'
27831 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27832 sed -n "$gl_absolute_header_sed"`'"'
27833 else
27834 gl_cv_next_unistd_h='<'unistd.h'>'
27835 fi
27836
27837
27838 fi
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27840 $as_echo "$gl_cv_next_unistd_h" >&6; }
27841 fi
27842 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27843
27844 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27846 gl_next_as_first_directive='<'unistd.h'>'
27847 else
27848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27849 gl_next_as_first_directive=$gl_cv_next_unistd_h
27850 fi
27851 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27852
27853
27854
27855
27856 if test $ac_cv_header_unistd_h = yes; then
27857 HAVE_UNISTD_H=1
27858 else
27859 HAVE_UNISTD_H=0
27860 fi
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872 if test $ac_cv_have_decl_unsetenv = no; then
27873 HAVE_DECL_UNSETENV=0
27874 fi
27875 for ac_func in unsetenv
27876 do :
27877 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27878 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27879 cat >>confdefs.h <<_ACEOF
27880 #define HAVE_UNSETENV 1
27881 _ACEOF
27882
27883 fi
27884 done
27885
27886 if test $ac_cv_func_unsetenv = no; then
27887 HAVE_UNSETENV=0
27888 else
27889 HAVE_UNSETENV=1
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27891 $as_echo_n "checking for unsetenv() return type... " >&6; }
27892 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27893 $as_echo_n "(cached) " >&6
27894 else
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27897
27898 #undef _BSD
27899 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27900 #include <stdlib.h>
27901 extern
27902 #ifdef __cplusplus
27903 "C"
27904 #endif
27905 int unsetenv (const char *name);
27906
27907 int
27908 main ()
27909 {
27910
27911 ;
27912 return 0;
27913 }
27914 _ACEOF
27915 if ac_fn_c_try_compile "$LINENO"; then :
27916 gt_cv_func_unsetenv_ret='int'
27917 else
27918 gt_cv_func_unsetenv_ret='void'
27919 fi
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 fi
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27923 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27924 if test $gt_cv_func_unsetenv_ret = 'void'; then
27925
27926 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27927
27928 REPLACE_UNSETENV=1
27929 fi
27930
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27932 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27933 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27934 $as_echo_n "(cached) " >&6
27935 else
27936 if test "$cross_compiling" = yes; then :
27937 case "$host_os" in
27938 # Guess yes on glibc systems.
27939 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27940 # If we don't know, assume the worst.
27941 *) gl_cv_func_unsetenv_works="guessing no" ;;
27942 esac
27943
27944 else
27945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27946 /* end confdefs.h. */
27947
27948 #include <stdlib.h>
27949 #include <errno.h>
27950 extern char **environ;
27951
27952 int
27953 main ()
27954 {
27955
27956 char entry1[] = "a=1";
27957 char entry2[] = "b=2";
27958 char *env[] = { entry1, entry2, NULL };
27959 if (putenv ((char *) "a=1")) return 1;
27960 if (putenv (entry2)) return 2;
27961 entry2[0] = 'a';
27962 unsetenv ("a");
27963 if (getenv ("a")) return 3;
27964 if (!unsetenv ("") || errno != EINVAL) return 4;
27965 entry2[0] = 'b';
27966 environ = env;
27967 if (!getenv ("a")) return 5;
27968 entry2[0] = 'a';
27969 unsetenv ("a");
27970 if (getenv ("a")) return 6;
27971
27972 ;
27973 return 0;
27974 }
27975 _ACEOF
27976 if ac_fn_c_try_run "$LINENO"; then :
27977 gl_cv_func_unsetenv_works=yes
27978 else
27979 gl_cv_func_unsetenv_works=no
27980 fi
27981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27982 conftest.$ac_objext conftest.beam conftest.$ac_ext
27983 fi
27984
27985 fi
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27987 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27988 case "$gl_cv_func_unsetenv_works" in
27989 *yes) ;;
27990 *)
27991 REPLACE_UNSETENV=1
27992 ;;
27993 esac
27994 fi
27995
27996 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27997
27998
27999
28000
28001
28002
28003
28004
28005 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
28006
28007
28008
28009
28010
28011 fi
28012
28013
28014
28015
28016
28017 GNULIB_UNSETENV=1
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28031 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
28032 if test "${gl_cv_func_futimesat_works+set}" = set; then :
28033 $as_echo_n "(cached) " >&6
28034 else
28035 touch conftest.file
28036 if test "$cross_compiling" = yes; then :
28037 case "$host_os" in
28038 # Guess yes on glibc systems.
28039 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
28040 # If we don't know, assume the worst.
28041 *) gl_cv_func_futimesat_works="guessing no" ;;
28042 esac
28043
28044 else
28045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28046 /* end confdefs.h. */
28047
28048 #include <stddef.h>
28049 #include <sys/times.h>
28050 #include <fcntl.h>
28051
28052 int
28053 main ()
28054 {
28055 int fd = open ("conftest.file", O_RDWR);
28056 if (fd < 0) return 1;
28057 if (futimesat (fd, NULL, NULL)) return 2;
28058
28059 ;
28060 return 0;
28061 }
28062 _ACEOF
28063 if ac_fn_c_try_run "$LINENO"; then :
28064 gl_cv_func_futimesat_works=yes
28065 else
28066 gl_cv_func_futimesat_works=no
28067 fi
28068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28069 conftest.$ac_objext conftest.beam conftest.$ac_ext
28070 fi
28071
28072 rm -f conftest.file
28073 fi
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28075 $as_echo "$gl_cv_func_futimesat_works" >&6; }
28076 case "$gl_cv_func_futimesat_works" in
28077 *yes) ;;
28078 *)
28079
28080 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28081
28082 ;;
28083 esac
28084 fi
28085
28086 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
28087 gl_gnulib_enabled_dosname=false
28088 gl_gnulib_enabled_euidaccess=false
28089 gl_gnulib_enabled_getdtablesize=false
28090 gl_gnulib_enabled_getgroups=false
28091 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
28092 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
28093 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
28094 gl_gnulib_enabled_pathmax=false
28095 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
28096 gl_gnulib_enabled_secure_getenv=false
28097 gl_gnulib_enabled_stat=false
28098 gl_gnulib_enabled_strtoll=false
28099 gl_gnulib_enabled_strtoull=false
28100 gl_gnulib_enabled_tempname=false
28101 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
28102 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
28103 {
28104 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28105
28106
28107
28108
28109
28110
28111
28112
28113 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
28114
28115 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
28116 fi
28117 }
28118 func_gl_gnulib_m4code_dosname ()
28119 {
28120 if ! $gl_gnulib_enabled_dosname; then
28121 gl_gnulib_enabled_dosname=true
28122 fi
28123 }
28124 func_gl_gnulib_m4code_euidaccess ()
28125 {
28126 if ! $gl_gnulib_enabled_euidaccess; then
28127
28128
28129
28130
28131
28132 for ac_func in euidaccess
28133 do :
28134 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28135 if test "x$ac_cv_func_euidaccess" = x""yes; then :
28136 cat >>confdefs.h <<_ACEOF
28137 #define HAVE_EUIDACCESS 1
28138 _ACEOF
28139
28140 fi
28141 done
28142
28143 if test $ac_cv_func_euidaccess = no; then
28144 HAVE_EUIDACCESS=0
28145 fi
28146
28147 if test $HAVE_EUIDACCESS = 0; then
28148
28149
28150
28151
28152
28153
28154
28155
28156 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
28157
28158
28159
28160 for ac_header in libgen.h
28161 do :
28162 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28163 if test "x$ac_cv_header_libgen_h" = x""yes; then :
28164 cat >>confdefs.h <<_ACEOF
28165 #define HAVE_LIBGEN_H 1
28166 _ACEOF
28167
28168 fi
28169
28170 done
28171
28172
28173 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28174 if test "x$ac_cv_func_getgroups" = x""yes; then :
28175
28176 fi
28177
28178
28179 # If we don't yet have getgroups, see if it's in -lbsd.
28180 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28181 ac_save_LIBS=$LIBS
28182 if test $ac_cv_func_getgroups = no; then
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28184 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28185 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28186 $as_echo_n "(cached) " >&6
28187 else
28188 ac_check_lib_save_LIBS=$LIBS
28189 LIBS="-lbsd $LIBS"
28190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28191 /* end confdefs.h. */
28192
28193 /* Override any GCC internal prototype to avoid an error.
28194 Use char because int might match the return type of a GCC
28195 builtin and then its argument prototype would still apply. */
28196 #ifdef __cplusplus
28197 extern "C"
28198 #endif
28199 char getgroups ();
28200 int
28201 main ()
28202 {
28203 return getgroups ();
28204 ;
28205 return 0;
28206 }
28207 _ACEOF
28208 if ac_fn_c_try_link "$LINENO"; then :
28209 ac_cv_lib_bsd_getgroups=yes
28210 else
28211 ac_cv_lib_bsd_getgroups=no
28212 fi
28213 rm -f core conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
28215 LIBS=$ac_check_lib_save_LIBS
28216 fi
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28218 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28219 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28220 GETGROUPS_LIB=-lbsd
28221 fi
28222
28223 fi
28224
28225 # Run the program to test the functionality of the system-supplied
28226 # getgroups function only if there is such a function.
28227 if test $ac_cv_func_getgroups = yes; then
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28229 $as_echo_n "checking for working getgroups... " >&6; }
28230 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28231 $as_echo_n "(cached) " >&6
28232 else
28233 if test "$cross_compiling" = yes; then :
28234 case "$host_os" in # ((
28235 # Guess yes on glibc systems.
28236 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28237 # If we don't know, assume the worst.
28238 *) ac_cv_func_getgroups_works="guessing no" ;;
28239 esac
28240
28241 else
28242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28243 /* end confdefs.h. */
28244 $ac_includes_default
28245 int
28246 main ()
28247 {
28248 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28249 return getgroups (0, 0) == -1;
28250 ;
28251 return 0;
28252 }
28253
28254 _ACEOF
28255 if ac_fn_c_try_run "$LINENO"; then :
28256 ac_cv_func_getgroups_works=yes
28257 else
28258 ac_cv_func_getgroups_works=no
28259 fi
28260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28261 conftest.$ac_objext conftest.beam conftest.$ac_ext
28262 fi
28263
28264
28265 fi
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28267 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28268 else
28269 ac_cv_func_getgroups_works=no
28270 fi
28271 case "$ac_cv_func_getgroups_works" in
28272 *yes)
28273
28274 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28275
28276 ;;
28277 esac
28278 LIBS=$ac_save_LIBS
28279
28280
28281 # Solaris 9 and 10 need -lgen to get the eaccess function.
28282 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28283 # programs in the package would end up linked with that potentially-shared
28284 # library, inducing unnecessary run-time overhead.
28285 LIB_EACCESS=
28286
28287 gl_saved_libs=$LIBS
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28289 $as_echo_n "checking for library containing eaccess... " >&6; }
28290 if test "${ac_cv_search_eaccess+set}" = set; then :
28291 $as_echo_n "(cached) " >&6
28292 else
28293 ac_func_search_save_LIBS=$LIBS
28294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28295 /* end confdefs.h. */
28296
28297 /* Override any GCC internal prototype to avoid an error.
28298 Use char because int might match the return type of a GCC
28299 builtin and then its argument prototype would still apply. */
28300 #ifdef __cplusplus
28301 extern "C"
28302 #endif
28303 char eaccess ();
28304 int
28305 main ()
28306 {
28307 return eaccess ();
28308 ;
28309 return 0;
28310 }
28311 _ACEOF
28312 for ac_lib in '' gen; do
28313 if test -z "$ac_lib"; then
28314 ac_res="none required"
28315 else
28316 ac_res=-l$ac_lib
28317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28318 fi
28319 if ac_fn_c_try_link "$LINENO"; then :
28320 ac_cv_search_eaccess=$ac_res
28321 fi
28322 rm -f core conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext
28324 if test "${ac_cv_search_eaccess+set}" = set; then :
28325 break
28326 fi
28327 done
28328 if test "${ac_cv_search_eaccess+set}" = set; then :
28329
28330 else
28331 ac_cv_search_eaccess=no
28332 fi
28333 rm conftest.$ac_ext
28334 LIBS=$ac_func_search_save_LIBS
28335 fi
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28337 $as_echo "$ac_cv_search_eaccess" >&6; }
28338 ac_res=$ac_cv_search_eaccess
28339 if test "$ac_res" != no; then :
28340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28341 test "$ac_cv_search_eaccess" = "none required" ||
28342 LIB_EACCESS=$ac_cv_search_eaccess
28343 fi
28344
28345 for ac_func in eaccess
28346 do :
28347 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
28348 if test "x$ac_cv_func_eaccess" = x""yes; then :
28349 cat >>confdefs.h <<_ACEOF
28350 #define HAVE_EACCESS 1
28351 _ACEOF
28352
28353 fi
28354 done
28355
28356 LIBS=$gl_saved_libs
28357
28358 fi
28359
28360
28361
28362
28363
28364 GNULIB_EUIDACCESS=1
28365
28366
28367
28368
28369
28370 gl_gnulib_enabled_euidaccess=true
28371 if test $HAVE_EUIDACCESS = 0; then
28372 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28373 fi
28374 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28375 if test $HAVE_EUIDACCESS = 0; then
28376 func_gl_gnulib_m4code_stat
28377 fi
28378 fi
28379 }
28380 func_gl_gnulib_m4code_getdtablesize ()
28381 {
28382 if ! $gl_gnulib_enabled_getdtablesize; then
28383
28384
28385
28386
28387 if test $ac_cv_func_getdtablesize = yes; then
28388 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28389 # up to an unchangeable hard limit; all other platforms correctly
28390 # require setrlimit before getdtablesize() can report a larger value.
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28392 $as_echo_n "checking whether getdtablesize works... " >&6; }
28393 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28394 $as_echo_n "(cached) " >&6
28395 else
28396 if test "$cross_compiling" = yes; then :
28397 case "$host_os" in
28398 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
28399 gl_cv_func_getdtablesize_works="guessing no" ;;
28400 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
28401 esac
28402 else
28403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28404 /* end confdefs.h. */
28405
28406 #include <unistd.h>
28407 int
28408 main ()
28409 {
28410 int size = getdtablesize();
28411 if (dup2 (0, getdtablesize()) != -1)
28412 return 1;
28413 if (size != getdtablesize())
28414 return 2;
28415
28416 ;
28417 return 0;
28418 }
28419 _ACEOF
28420 if ac_fn_c_try_run "$LINENO"; then :
28421 gl_cv_func_getdtablesize_works=yes
28422 else
28423 gl_cv_func_getdtablesize_works=no
28424 fi
28425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28426 conftest.$ac_objext conftest.beam conftest.$ac_ext
28427 fi
28428
28429
28430 fi
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28432 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28433 case "$gl_cv_func_getdtablesize_works" in
28434 *yes) ;;
28435 *) REPLACE_GETDTABLESIZE=1 ;;
28436 esac
28437 else
28438 HAVE_GETDTABLESIZE=0
28439 fi
28440
28441 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
28442
28443
28444
28445
28446
28447
28448
28449
28450 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28451
28452 :
28453 fi
28454
28455
28456
28457
28458
28459 GNULIB_GETDTABLESIZE=1
28460
28461
28462
28463
28464
28465 gl_gnulib_enabled_getdtablesize=true
28466 fi
28467 }
28468 func_gl_gnulib_m4code_getgroups ()
28469 {
28470 if ! $gl_gnulib_enabled_getgroups; then
28471
28472
28473
28474
28475
28476 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28477 if test "x$ac_cv_func_getgroups" = x""yes; then :
28478
28479 fi
28480
28481
28482 # If we don't yet have getgroups, see if it's in -lbsd.
28483 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28484 ac_save_LIBS=$LIBS
28485 if test $ac_cv_func_getgroups = no; then
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28487 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28488 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28489 $as_echo_n "(cached) " >&6
28490 else
28491 ac_check_lib_save_LIBS=$LIBS
28492 LIBS="-lbsd $LIBS"
28493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28494 /* end confdefs.h. */
28495
28496 /* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28499 #ifdef __cplusplus
28500 extern "C"
28501 #endif
28502 char getgroups ();
28503 int
28504 main ()
28505 {
28506 return getgroups ();
28507 ;
28508 return 0;
28509 }
28510 _ACEOF
28511 if ac_fn_c_try_link "$LINENO"; then :
28512 ac_cv_lib_bsd_getgroups=yes
28513 else
28514 ac_cv_lib_bsd_getgroups=no
28515 fi
28516 rm -f core conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
28518 LIBS=$ac_check_lib_save_LIBS
28519 fi
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28521 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28522 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28523 GETGROUPS_LIB=-lbsd
28524 fi
28525
28526 fi
28527
28528 # Run the program to test the functionality of the system-supplied
28529 # getgroups function only if there is such a function.
28530 if test $ac_cv_func_getgroups = yes; then
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28532 $as_echo_n "checking for working getgroups... " >&6; }
28533 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28534 $as_echo_n "(cached) " >&6
28535 else
28536 if test "$cross_compiling" = yes; then :
28537 case "$host_os" in # ((
28538 # Guess yes on glibc systems.
28539 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28540 # If we don't know, assume the worst.
28541 *) ac_cv_func_getgroups_works="guessing no" ;;
28542 esac
28543
28544 else
28545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546 /* end confdefs.h. */
28547 $ac_includes_default
28548 int
28549 main ()
28550 {
28551 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28552 return getgroups (0, 0) == -1;
28553 ;
28554 return 0;
28555 }
28556
28557 _ACEOF
28558 if ac_fn_c_try_run "$LINENO"; then :
28559 ac_cv_func_getgroups_works=yes
28560 else
28561 ac_cv_func_getgroups_works=no
28562 fi
28563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28564 conftest.$ac_objext conftest.beam conftest.$ac_ext
28565 fi
28566
28567
28568 fi
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28570 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28571 else
28572 ac_cv_func_getgroups_works=no
28573 fi
28574 case "$ac_cv_func_getgroups_works" in
28575 *yes)
28576
28577 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28578
28579 ;;
28580 esac
28581 LIBS=$ac_save_LIBS
28582
28583 if test $ac_cv_func_getgroups != yes; then
28584 HAVE_GETGROUPS=0
28585 else
28586 if test "$ac_cv_type_getgroups" != gid_t \
28587 || { case "$ac_cv_func_getgroups_works" in
28588 *yes) false;;
28589 *) true;;
28590 esac
28591 }; then
28592 REPLACE_GETGROUPS=1
28593
28594 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28595
28596 else
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28598 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28599 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28600 $as_echo_n "(cached) " >&6
28601 else
28602 if test "$cross_compiling" = yes; then :
28603 case "$host_os" in
28604 # Guess yes on glibc systems.
28605 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28606 # If we don't know, assume the worst.
28607 *) gl_cv_func_getgroups_works="guessing no" ;;
28608 esac
28609
28610 else
28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h. */
28613 $ac_includes_default
28614 int
28615 main ()
28616 {
28617 int size = getgroups (0, 0);
28618 gid_t *list = malloc (size * sizeof *list);
28619 return getgroups (-1, list) != -1;
28620 ;
28621 return 0;
28622 }
28623 _ACEOF
28624 if ac_fn_c_try_run "$LINENO"; then :
28625 gl_cv_func_getgroups_works=yes
28626 else
28627 gl_cv_func_getgroups_works=no
28628 fi
28629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28630 conftest.$ac_objext conftest.beam conftest.$ac_ext
28631 fi
28632
28633 fi
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28635 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28636 case "$gl_cv_func_getgroups_works" in
28637 *yes) ;;
28638 *) REPLACE_GETGROUPS=1 ;;
28639 esac
28640 fi
28641 fi
28642 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28643
28644 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28645
28646
28647
28648
28649
28650
28651
28652
28653 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28654
28655 fi
28656
28657
28658
28659
28660
28661 GNULIB_GETGROUPS=1
28662
28663
28664
28665
28666
28667 gl_gnulib_enabled_getgroups=true
28668 fi
28669 }
28670 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28671 {
28672 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28673
28674
28675 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28676 fi
28677 }
28678 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28679 {
28680 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28681
28682
28683
28684
28685
28686 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28687 if test "x$ac_cv_func_group_member" = x""yes; then :
28688
28689 else
28690
28691 HAVE_GROUP_MEMBER=0
28692
28693 fi
28694
28695
28696 if test $HAVE_GROUP_MEMBER = 0; then
28697
28698
28699
28700
28701
28702
28703
28704
28705 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28706
28707
28708
28709
28710 fi
28711
28712
28713
28714
28715
28716 GNULIB_GROUP_MEMBER=1
28717
28718
28719
28720
28721
28722 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28723 if test $HAVE_GROUP_MEMBER = 0; then
28724 func_gl_gnulib_m4code_getgroups
28725 fi
28726 if test $HAVE_GROUP_MEMBER = 0; then
28727 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28728 fi
28729 fi
28730 }
28731 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28732 {
28733 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28734 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28735 fi
28736 }
28737 func_gl_gnulib_m4code_pathmax ()
28738 {
28739 if ! $gl_gnulib_enabled_pathmax; then
28740
28741
28742
28743 gl_gnulib_enabled_pathmax=true
28744 fi
28745 }
28746 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28747 {
28748 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28749 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28750 fi
28751 }
28752 func_gl_gnulib_m4code_secure_getenv ()
28753 {
28754 if ! $gl_gnulib_enabled_secure_getenv; then
28755
28756
28757
28758
28759
28760 if test $ac_cv_func_secure_getenv = no; then
28761 HAVE_SECURE_GETENV=0
28762 fi
28763
28764 if test $HAVE_SECURE_GETENV = 0; then
28765
28766
28767
28768
28769
28770
28771
28772
28773 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28774
28775
28776 for ac_func in __secure_getenv
28777 do :
28778 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28779 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28780 cat >>confdefs.h <<_ACEOF
28781 #define HAVE___SECURE_GETENV 1
28782 _ACEOF
28783
28784 fi
28785 done
28786
28787 if test $ac_cv_func___secure_getenv = no; then
28788 for ac_func in issetugid
28789 do :
28790 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28791 if test "x$ac_cv_func_issetugid" = x""yes; then :
28792 cat >>confdefs.h <<_ACEOF
28793 #define HAVE_ISSETUGID 1
28794 _ACEOF
28795
28796 fi
28797 done
28798
28799 fi
28800
28801 fi
28802
28803
28804
28805
28806
28807 GNULIB_SECURE_GETENV=1
28808
28809
28810
28811
28812
28813 gl_gnulib_enabled_secure_getenv=true
28814 fi
28815 }
28816 func_gl_gnulib_m4code_stat ()
28817 {
28818 if ! $gl_gnulib_enabled_stat; then
28819
28820
28821
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28823 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28824 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28825 $as_echo_n "(cached) " >&6
28826 else
28827 if test "$cross_compiling" = yes; then :
28828 case $host_os in
28829 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28830 *) gl_cv_func_stat_dir_slash="guessing yes";;
28831 esac
28832 else
28833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28834 /* end confdefs.h. */
28835 #include <sys/stat.h>
28836
28837 int
28838 main ()
28839 {
28840 struct stat st; return stat (".", &st) != stat ("./", &st);
28841 ;
28842 return 0;
28843 }
28844 _ACEOF
28845 if ac_fn_c_try_run "$LINENO"; then :
28846 gl_cv_func_stat_dir_slash=yes
28847 else
28848 gl_cv_func_stat_dir_slash=no
28849 fi
28850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28851 conftest.$ac_objext conftest.beam conftest.$ac_ext
28852 fi
28853
28854 fi
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28856 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28858 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28859 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28860 $as_echo_n "(cached) " >&6
28861 else
28862 touch conftest.tmp
28863 # Assume that if we have lstat, we can also check symlinks.
28864 if test $ac_cv_func_lstat = yes; then
28865 ln -s conftest.tmp conftest.lnk
28866 fi
28867 if test "$cross_compiling" = yes; then :
28868 case "$host_os" in
28869 # Guess yes on glibc systems.
28870 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28871 # If we don't know, assume the worst.
28872 *) gl_cv_func_stat_file_slash="guessing no" ;;
28873 esac
28874
28875 else
28876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h. */
28878 #include <sys/stat.h>
28879
28880 int
28881 main ()
28882 {
28883 int result = 0;
28884 struct stat st;
28885 if (!stat ("conftest.tmp/", &st))
28886 result |= 1;
28887 #if HAVE_LSTAT
28888 if (!stat ("conftest.lnk/", &st))
28889 result |= 2;
28890 #endif
28891 return result;
28892
28893 ;
28894 return 0;
28895 }
28896 _ACEOF
28897 if ac_fn_c_try_run "$LINENO"; then :
28898 gl_cv_func_stat_file_slash=yes
28899 else
28900 gl_cv_func_stat_file_slash=no
28901 fi
28902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28903 conftest.$ac_objext conftest.beam conftest.$ac_ext
28904 fi
28905
28906 rm -f conftest.tmp conftest.lnk
28907 fi
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28909 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28910 case $gl_cv_func_stat_dir_slash in
28911 *no) REPLACE_STAT=1
28912
28913 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28914 ;;
28915 esac
28916 case $gl_cv_func_stat_file_slash in
28917 *no) REPLACE_STAT=1
28918
28919 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28920 ;;
28921 esac
28922
28923 if test $REPLACE_STAT = 1; then
28924
28925
28926
28927
28928
28929
28930
28931
28932 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28933
28934 :
28935 fi
28936
28937
28938
28939
28940
28941 GNULIB_STAT=1
28942
28943
28944
28945
28946
28947 gl_gnulib_enabled_stat=true
28948 if test $REPLACE_STAT = 1; then
28949 func_gl_gnulib_m4code_dosname
28950 fi
28951 if test $REPLACE_STAT = 1; then
28952 func_gl_gnulib_m4code_pathmax
28953 fi
28954 fi
28955 }
28956 func_gl_gnulib_m4code_strtoll ()
28957 {
28958 if ! $gl_gnulib_enabled_strtoll; then
28959
28960
28961
28962 if test "$ac_cv_type_long_long_int" = yes; then
28963 for ac_func in strtoll
28964 do :
28965 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28966 if test "x$ac_cv_func_strtoll" = x""yes; then :
28967 cat >>confdefs.h <<_ACEOF
28968 #define HAVE_STRTOLL 1
28969 _ACEOF
28970
28971 fi
28972 done
28973
28974 if test $ac_cv_func_strtoll = no; then
28975 HAVE_STRTOLL=0
28976 fi
28977 fi
28978
28979 if test $HAVE_STRTOLL = 0; then
28980
28981
28982
28983
28984
28985
28986
28987
28988 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28989
28990
28991 :
28992
28993 fi
28994
28995
28996
28997
28998
28999 GNULIB_STRTOLL=1
29000
29001
29002
29003
29004
29005 gl_gnulib_enabled_strtoll=true
29006 fi
29007 }
29008 func_gl_gnulib_m4code_strtoull ()
29009 {
29010 if ! $gl_gnulib_enabled_strtoull; then
29011
29012
29013
29014 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
29015 for ac_func in strtoull
29016 do :
29017 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
29018 if test "x$ac_cv_func_strtoull" = x""yes; then :
29019 cat >>confdefs.h <<_ACEOF
29020 #define HAVE_STRTOULL 1
29021 _ACEOF
29022
29023 fi
29024 done
29025
29026 if test $ac_cv_func_strtoull = no; then
29027 HAVE_STRTOULL=0
29028 fi
29029 fi
29030
29031 if test $HAVE_STRTOULL = 0; then
29032
29033
29034
29035
29036
29037
29038
29039
29040 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
29041
29042
29043 :
29044
29045 fi
29046
29047
29048
29049
29050
29051 GNULIB_STRTOULL=1
29052
29053
29054
29055
29056
29057 gl_gnulib_enabled_strtoull=true
29058 fi
29059 }
29060 func_gl_gnulib_m4code_tempname ()
29061 {
29062 if ! $gl_gnulib_enabled_tempname; then
29063
29064
29065 :
29066
29067
29068 gl_gnulib_enabled_tempname=true
29069 func_gl_gnulib_m4code_secure_getenv
29070 fi
29071 }
29072 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
29073 {
29074 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29075 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
29076 fi
29077 }
29078 if test $HAVE_FACCESSAT = 0; then
29079 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29080 fi
29081 if test $HAVE_FACCESSAT = 0; then
29082 func_gl_gnulib_m4code_dosname
29083 fi
29084 if test $HAVE_FACCESSAT = 0; then
29085 func_gl_gnulib_m4code_euidaccess
29086 fi
29087 if test $HAVE_FACCESSAT = 0; then
29088 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29089 fi
29090 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
29091 func_gl_gnulib_m4code_getdtablesize
29092 fi
29093 if test $HAVE_FDOPENDIR = 0; then
29094 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29095 fi
29096 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29097 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29098 fi
29099 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29100 func_gl_gnulib_m4code_dosname
29101 fi
29102 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29103 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29104 fi
29105 if test $REPLACE_GETOPT = 1; then
29106 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29107 fi
29108 if test $REPLACE_LSTAT = 1; then
29109 func_gl_gnulib_m4code_dosname
29110 fi
29111 if test $REPLACE_LSTAT = 1; then
29112 func_gl_gnulib_m4code_stat
29113 fi
29114 if test $HAVE_MKOSTEMP = 0; then
29115 func_gl_gnulib_m4code_tempname
29116 fi
29117 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29118 func_gl_gnulib_m4code_stat
29119 fi
29120 if test $HAVE_READLINKAT = 0; then
29121 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29122 fi
29123 if test $HAVE_READLINKAT = 0; then
29124 func_gl_gnulib_m4code_dosname
29125 fi
29126 if test $HAVE_READLINKAT = 0; then
29127 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29128 fi
29129 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29130 func_gl_gnulib_m4code_strtoll
29131 fi
29132 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
29133 func_gl_gnulib_m4code_strtoull
29134 fi
29135
29136 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29137 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
29138 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
29139 else
29140 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
29141 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
29142 fi
29143
29144 if $gl_gnulib_enabled_dosname; then
29145 gl_GNULIB_ENABLED_dosname_TRUE=
29146 gl_GNULIB_ENABLED_dosname_FALSE='#'
29147 else
29148 gl_GNULIB_ENABLED_dosname_TRUE='#'
29149 gl_GNULIB_ENABLED_dosname_FALSE=
29150 fi
29151
29152 if $gl_gnulib_enabled_euidaccess; then
29153 gl_GNULIB_ENABLED_euidaccess_TRUE=
29154 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
29155 else
29156 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
29157 gl_GNULIB_ENABLED_euidaccess_FALSE=
29158 fi
29159
29160 if $gl_gnulib_enabled_getdtablesize; then
29161 gl_GNULIB_ENABLED_getdtablesize_TRUE=
29162 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
29163 else
29164 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
29165 gl_GNULIB_ENABLED_getdtablesize_FALSE=
29166 fi
29167
29168 if $gl_gnulib_enabled_getgroups; then
29169 gl_GNULIB_ENABLED_getgroups_TRUE=
29170 gl_GNULIB_ENABLED_getgroups_FALSE='#'
29171 else
29172 gl_GNULIB_ENABLED_getgroups_TRUE='#'
29173 gl_GNULIB_ENABLED_getgroups_FALSE=
29174 fi
29175
29176 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29177 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
29178 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
29179 else
29180 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
29181 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
29182 fi
29183
29184 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29185 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
29186 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
29187 else
29188 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
29189 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
29190 fi
29191
29192 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29193 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
29194 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
29195 else
29196 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
29197 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
29198 fi
29199
29200 if $gl_gnulib_enabled_pathmax; then
29201 gl_GNULIB_ENABLED_pathmax_TRUE=
29202 gl_GNULIB_ENABLED_pathmax_FALSE='#'
29203 else
29204 gl_GNULIB_ENABLED_pathmax_TRUE='#'
29205 gl_GNULIB_ENABLED_pathmax_FALSE=
29206 fi
29207
29208 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29209 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
29210 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
29211 else
29212 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
29213 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
29214 fi
29215
29216 if $gl_gnulib_enabled_secure_getenv; then
29217 gl_GNULIB_ENABLED_secure_getenv_TRUE=
29218 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
29219 else
29220 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
29221 gl_GNULIB_ENABLED_secure_getenv_FALSE=
29222 fi
29223
29224 if $gl_gnulib_enabled_stat; then
29225 gl_GNULIB_ENABLED_stat_TRUE=
29226 gl_GNULIB_ENABLED_stat_FALSE='#'
29227 else
29228 gl_GNULIB_ENABLED_stat_TRUE='#'
29229 gl_GNULIB_ENABLED_stat_FALSE=
29230 fi
29231
29232 if $gl_gnulib_enabled_strtoll; then
29233 gl_GNULIB_ENABLED_strtoll_TRUE=
29234 gl_GNULIB_ENABLED_strtoll_FALSE='#'
29235 else
29236 gl_GNULIB_ENABLED_strtoll_TRUE='#'
29237 gl_GNULIB_ENABLED_strtoll_FALSE=
29238 fi
29239
29240 if $gl_gnulib_enabled_strtoull; then
29241 gl_GNULIB_ENABLED_strtoull_TRUE=
29242 gl_GNULIB_ENABLED_strtoull_FALSE='#'
29243 else
29244 gl_GNULIB_ENABLED_strtoull_TRUE='#'
29245 gl_GNULIB_ENABLED_strtoull_FALSE=
29246 fi
29247
29248 if $gl_gnulib_enabled_tempname; then
29249 gl_GNULIB_ENABLED_tempname_TRUE=
29250 gl_GNULIB_ENABLED_tempname_FALSE='#'
29251 else
29252 gl_GNULIB_ENABLED_tempname_TRUE='#'
29253 gl_GNULIB_ENABLED_tempname_FALSE=
29254 fi
29255
29256 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29257 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
29258 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
29259 else
29260 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
29261 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
29262 fi
29263
29264 # End of code from modules
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274 gltests_libdeps=
29275 gltests_ltlibdeps=
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285 gl_source_base='tests'
29286 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
29287
29288 gl_module_indicator_condition=$gltests_WITNESS
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299 LIBGNU_LIBDEPS="$gl_libdeps"
29300
29301 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
29302
29303
29304 CFLAGS=$SAVE_CFLAGS
29305 LIBS=$SAVE_LIBS
29306
29307 if test "${opsys}" = "mingw32"; then
29308 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
29309 # Remove unneeded switches from the value of CC that goes to Makefiles
29310 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29311 fi
29312
29313 case "$opsys" in
29314 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
29315
29316 darwin)
29317 ## The -headerpad option tells ld (see man page) to leave room at the
29318 ## end of the header for adding load commands. Needed for dumping.
29319 ## 0x690 is the total size of 30 segment load commands (at 56
29320 ## each); under Cocoa 31 commands are required.
29321 if test "$HAVE_NS" = "yes"; then
29322 libs_nsgui="-framework AppKit"
29323 if test "$NS_IMPL_COCOA" = "yes"; then
29324 libs_nsgui="$libs_nsgui -framework IOKit"
29325 fi
29326 headerpad_extra=6C8
29327 else
29328 libs_nsgui=
29329 headerpad_extra=690
29330 fi
29331 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29332
29333 ## This is here because src/Makefile.in did some extra fiddling around
29334 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29335 ## LD_SWITCH_SYSTEM_TEMACS instead,
29336 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29337 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
29338 ;;
29339
29340 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29341 ## find X at run-time.
29342 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29343 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29344 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29345 ## had different values in configure (in ac_link) and src/Makefile.in.
29346 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29347 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29348
29349 mingw32)
29350 ## MinGW64 does not prepend an underscore to symbols, so we must
29351 ## pass a different -entry switch to linker. FIXME: It is better
29352 ## to make the entry points the same by changing unexw32.c.
29353 case "$canonical" in
29354 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29355 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29356 esac
29357 ;;
29358
29359 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
29360
29361 *) LD_SWITCH_SYSTEM_TEMACS= ;;
29362 esac
29363
29364 if test x$ac_enable_profiling != x ; then
29365 case $opsys in
29366 *freebsd | gnu-linux) ;;
29367 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29368 esac
29369 fi
29370
29371 LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29372
29373
29374
29375 ## MinGW-specific post-link processing of temacs.
29376 TEMACS_POST_LINK=":"
29377 ADDSECTION=
29378 EMACS_HEAPSIZE=
29379 if test "${opsys}" = "mingw32"; then
29380 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
29381 ADDSECTION="../nt/addsection\$(EXEEXT)"
29382 ## Preload heap size of temacs.exe in MB.
29383 case "$canonical" in
29384 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
29385 *) EMACS_HEAPSIZE=27 ;;
29386 esac
29387 fi
29388
29389
29390
29391
29392
29393 ## Common for all window systems
29394 if test "$window_system" != "none"; then
29395
29396 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29397
29398 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
29399 fi
29400
29401
29402
29403
29404
29405 #### Report on what we decided to do.
29406 #### Report GTK as a toolkit, even if it doesn't use Xt.
29407 #### It makes printing result more understandable as using GTK sets
29408 #### toolkit_scroll_bars to yes by default.
29409 if test "${HAVE_GTK}" = "yes"; then
29410 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
29411 fi
29412
29413 if test $USE_ACL -ne 0; then
29414 acl_summary="yes $LIB_ACL"
29415 else
29416 acl_summary=no
29417 fi
29418
29419 echo "
29420 Configured for \`${canonical}'.
29421
29422 Where should the build process find the source code? ${srcdir}
29423 What compiler should emacs be built with? ${CC} ${CFLAGS}
29424 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29425 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29426 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29427 What window system should Emacs use? ${window_system}
29428 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29429
29430 if test -n "${x_includes}"; then
29431 echo " Where do we find X Windows header files? ${x_includes}"
29432 else
29433 echo " Where do we find X Windows header files? Standard dirs"
29434 fi
29435 if test -n "${x_libraries}"; then
29436 echo " Where do we find X Windows libraries? ${x_libraries}"
29437 else
29438 echo " Where do we find X Windows libraries? Standard dirs"
29439 fi
29440
29441 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29442 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29443 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29444 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29445 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29446 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29447 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29448 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29449
29450 echo " Does Emacs support sound? ${HAVE_SOUND}"
29451
29452 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29453 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29454 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29455 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29456 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29457 echo " Does Emacs use access control lists? ${acl_summary}"
29458 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29459 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29460 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29461
29462 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29463 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29464 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29465 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29466 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29467
29468 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29469 echo
29470
29471 if test -n "${EMACSDATA}"; then
29472 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29473 fi
29474 if test -n "${EMACSDOC}"; then
29475 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29476 fi
29477
29478 echo
29479
29480 if test "$HAVE_NS" = "yes"; then
29481 echo
29482 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29483 The installed application will go to nextstep/Emacs.app and can be
29484 run or moved from there."
29485 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29486 echo "The application will be fully self-contained."
29487 else
29488 echo "The lisp resources for the application will be installed under ${prefix}.
29489 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29490 to run if these resources are not installed."
29491 fi
29492 echo
29493 fi
29494
29495 if test "${opsys}" = "cygwin"; then
29496 case `uname -r` in
29497 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29498 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29499 echo
29500 ;;
29501 esac
29502 fi
29503
29504 # Remove any trailing slashes in these variables.
29505 test "${prefix}" != NONE &&
29506 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29507 test "${exec_prefix}" != NONE &&
29508 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29509
29510 if test "$HAVE_NS" = "yes"; then
29511 if test "$NS_IMPL_GNUSTEP" = yes; then
29512 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"
29513
29514 ns_check_file=Resources/Info-gnustep.plist
29515 else
29516 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"
29517
29518 ns_check_file=Contents/Info.plist
29519 fi
29520
29521 fi
29522
29523 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 nt/Makefile"
29524
29525 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 nt/Makefile"
29526
29527
29528 opt_makefile=test/automated/Makefile
29529
29530 if test -f "$srcdir/$opt_makefile.in"; then
29531 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29532 ac_config_files="$ac_config_files test/automated/Makefile"
29533
29534 fi
29535
29536
29537 opt_makefile=admin/unidata/Makefile
29538
29539 if test -f "$srcdir/$opt_makefile.in"; then
29540 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29541 ac_config_files="$ac_config_files admin/unidata/Makefile"
29542
29543 fi
29544
29545
29546 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29547
29548
29549
29550 ac_config_commands="$ac_config_commands src/epaths.h"
29551
29552
29553 ac_config_commands="$ac_config_commands src/.gdbinit"
29554
29555
29556 cat >confcache <<\_ACEOF
29557 # This file is a shell script that caches the results of configure
29558 # tests run on this system so they can be shared between configure
29559 # scripts and configure runs, see configure's option --config-cache.
29560 # It is not useful on other systems. If it contains results you don't
29561 # want to keep, you may remove or edit it.
29562 #
29563 # config.status only pays attention to the cache file if you give it
29564 # the --recheck option to rerun configure.
29565 #
29566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29568 # following values.
29569
29570 _ACEOF
29571
29572 # The following way of writing the cache mishandles newlines in values,
29573 # but we know of no workaround that is simple, portable, and efficient.
29574 # So, we kill variables containing newlines.
29575 # Ultrix sh set writes to stderr and can't be redirected directly,
29576 # and sets the high bit in the cache file unless we assign to the vars.
29577 (
29578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29579 eval ac_val=\$$ac_var
29580 case $ac_val in #(
29581 *${as_nl}*)
29582 case $ac_var in #(
29583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29585 esac
29586 case $ac_var in #(
29587 _ | IFS | as_nl) ;; #(
29588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29589 *) { eval $ac_var=; unset $ac_var;} ;;
29590 esac ;;
29591 esac
29592 done
29593
29594 (set) 2>&1 |
29595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29596 *${as_nl}ac_space=\ *)
29597 # `set' does not quote correctly, so add quotes: double-quote
29598 # substitution turns \\\\ into \\, and sed turns \\ into \.
29599 sed -n \
29600 "s/'/'\\\\''/g;
29601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29602 ;; #(
29603 *)
29604 # `set' quotes correctly as required by POSIX, so do not add quotes.
29605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29606 ;;
29607 esac |
29608 sort
29609 ) |
29610 sed '
29611 /^ac_cv_env_/b end
29612 t clear
29613 :clear
29614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29615 t end
29616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29617 :end' >>confcache
29618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29619 if test -w "$cache_file"; then
29620 test "x$cache_file" != "x/dev/null" &&
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29622 $as_echo "$as_me: updating cache $cache_file" >&6;}
29623 cat confcache >$cache_file
29624 else
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29626 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29627 fi
29628 fi
29629 rm -f confcache
29630
29631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29632 # Let make expand exec_prefix.
29633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29634
29635 DEFS=-DHAVE_CONFIG_H
29636
29637 ac_libobjs=
29638 ac_ltlibobjs=
29639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29640 # 1. Remove the extension, and $U if already installed.
29641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29644 # will be set to the directory where LIBOBJS objects are built.
29645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29647 done
29648 LIBOBJS=$ac_libobjs
29649
29650 LTLIBOBJS=$ac_ltlibobjs
29651
29652
29653 if test -n "$EXEEXT"; then
29654 am__EXEEXT_TRUE=
29655 am__EXEEXT_FALSE='#'
29656 else
29657 am__EXEEXT_TRUE='#'
29658 am__EXEEXT_FALSE=
29659 fi
29660
29661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29662 as_fn_error "conditional \"AMDEP\" was never defined.
29663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29664 fi
29665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29666 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29668 fi
29669 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29670 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29672 fi
29673 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29674 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29676 fi
29677 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29678 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29680 fi
29681 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29682 as_fn_error "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29684 fi
29685
29686 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29687 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29689 fi
29690 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29691 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29693 fi
29694 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29695 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29697 fi
29698 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29699 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29701 fi
29702 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29703 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29705 fi
29706 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29707 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29709 fi
29710 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29711 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29713 fi
29714 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29715 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29717 fi
29718 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29719 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29721 fi
29722 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29723 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29725 fi
29726 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29727 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29729 fi
29730 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29731 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29733 fi
29734 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29735 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29737 fi
29738 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29739 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29741 fi
29742 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29743 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29745 fi
29746 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29747 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29749 fi
29750 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29751 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29753 fi
29754 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29755 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29757 fi
29758 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29759 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29761 fi
29762 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29763 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29765 fi
29766 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29767 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29769 fi
29770 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29771 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29773 fi
29774 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29775 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29777 fi
29778
29779 gl_libobjs=
29780 gl_ltlibobjs=
29781 if test -n "$gl_LIBOBJS"; then
29782 # Remove the extension.
29783 sed_drop_objext='s/\.o$//;s/\.obj$//'
29784 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29785 gl_libobjs="$gl_libobjs $i.$ac_objext"
29786 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29787 done
29788 fi
29789 gl_LIBOBJS=$gl_libobjs
29790
29791 gl_LTLIBOBJS=$gl_ltlibobjs
29792
29793
29794
29795 gltests_libobjs=
29796 gltests_ltlibobjs=
29797 if test -n "$gltests_LIBOBJS"; then
29798 # Remove the extension.
29799 sed_drop_objext='s/\.o$//;s/\.obj$//'
29800 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29801 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29802 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29803 done
29804 fi
29805 gltests_LIBOBJS=$gltests_libobjs
29806
29807 gltests_LTLIBOBJS=$gltests_ltlibobjs
29808
29809
29810
29811 : ${CONFIG_STATUS=./config.status}
29812 ac_write_fail=0
29813 ac_clean_files_save=$ac_clean_files
29814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29817 as_write_fail=0
29818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29819 #! $SHELL
29820 # Generated by $as_me.
29821 # Run this file to recreate the current configuration.
29822 # Compiler output produced by configure, useful for debugging
29823 # configure, is in config.log if it exists.
29824
29825 debug=false
29826 ac_cs_recheck=false
29827 ac_cs_silent=false
29828
29829 SHELL=\${CONFIG_SHELL-$SHELL}
29830 export SHELL
29831 _ASEOF
29832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29833 ## -------------------- ##
29834 ## M4sh Initialization. ##
29835 ## -------------------- ##
29836
29837 # Be more Bourne compatible
29838 DUALCASE=1; export DUALCASE # for MKS sh
29839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29840 emulate sh
29841 NULLCMD=:
29842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29843 # is contrary to our usage. Disable this feature.
29844 alias -g '${1+"$@"}'='"$@"'
29845 setopt NO_GLOB_SUBST
29846 else
29847 case `(set -o) 2>/dev/null` in #(
29848 *posix*) :
29849 set -o posix ;; #(
29850 *) :
29851 ;;
29852 esac
29853 fi
29854
29855
29856 as_nl='
29857 '
29858 export as_nl
29859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29863 # Prefer a ksh shell builtin over an external printf program on Solaris,
29864 # but without wasting forks for bash or zsh.
29865 if test -z "$BASH_VERSION$ZSH_VERSION" \
29866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29867 as_echo='print -r --'
29868 as_echo_n='print -rn --'
29869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29870 as_echo='printf %s\n'
29871 as_echo_n='printf %s'
29872 else
29873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29875 as_echo_n='/usr/ucb/echo -n'
29876 else
29877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29878 as_echo_n_body='eval
29879 arg=$1;
29880 case $arg in #(
29881 *"$as_nl"*)
29882 expr "X$arg" : "X\\(.*\\)$as_nl";
29883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29884 esac;
29885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29886 '
29887 export as_echo_n_body
29888 as_echo_n='sh -c $as_echo_n_body as_echo'
29889 fi
29890 export as_echo_body
29891 as_echo='sh -c $as_echo_body as_echo'
29892 fi
29893
29894 # The user is always right.
29895 if test "${PATH_SEPARATOR+set}" != set; then
29896 PATH_SEPARATOR=:
29897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29899 PATH_SEPARATOR=';'
29900 }
29901 fi
29902
29903
29904 # IFS
29905 # We need space, tab and new line, in precisely that order. Quoting is
29906 # there to prevent editors from complaining about space-tab.
29907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29908 # splitting by setting IFS to empty value.)
29909 IFS=" "" $as_nl"
29910
29911 # Find who we are. Look in the path if we contain no directory separator.
29912 case $0 in #((
29913 *[\\/]* ) as_myself=$0 ;;
29914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915 for as_dir in $PATH
29916 do
29917 IFS=$as_save_IFS
29918 test -z "$as_dir" && as_dir=.
29919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29920 done
29921 IFS=$as_save_IFS
29922
29923 ;;
29924 esac
29925 # We did not find ourselves, most probably we were run as `sh COMMAND'
29926 # in which case we are not to be found in the path.
29927 if test "x$as_myself" = x; then
29928 as_myself=$0
29929 fi
29930 if test ! -f "$as_myself"; then
29931 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29932 exit 1
29933 fi
29934
29935 # Unset variables that we do not need and which cause bugs (e.g. in
29936 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29937 # suppresses any "Segmentation fault" message there. '((' could
29938 # trigger a bug in pdksh 5.2.14.
29939 for as_var in BASH_ENV ENV MAIL MAILPATH
29940 do eval test x\${$as_var+set} = xset \
29941 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29942 done
29943 PS1='$ '
29944 PS2='> '
29945 PS4='+ '
29946
29947 # NLS nuisances.
29948 LC_ALL=C
29949 export LC_ALL
29950 LANGUAGE=C
29951 export LANGUAGE
29952
29953 # CDPATH.
29954 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29955
29956
29957 # as_fn_error ERROR [LINENO LOG_FD]
29958 # ---------------------------------
29959 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29960 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29961 # script with status $?, using 1 if that was 0.
29962 as_fn_error ()
29963 {
29964 as_status=$?; test $as_status -eq 0 && as_status=1
29965 if test "$3"; then
29966 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29967 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29968 fi
29969 $as_echo "$as_me: error: $1" >&2
29970 as_fn_exit $as_status
29971 } # as_fn_error
29972
29973
29974 # as_fn_set_status STATUS
29975 # -----------------------
29976 # Set $? to STATUS, without forking.
29977 as_fn_set_status ()
29978 {
29979 return $1
29980 } # as_fn_set_status
29981
29982 # as_fn_exit STATUS
29983 # -----------------
29984 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29985 as_fn_exit ()
29986 {
29987 set +e
29988 as_fn_set_status $1
29989 exit $1
29990 } # as_fn_exit
29991
29992 # as_fn_unset VAR
29993 # ---------------
29994 # Portably unset VAR.
29995 as_fn_unset ()
29996 {
29997 { eval $1=; unset $1;}
29998 }
29999 as_unset=as_fn_unset
30000 # as_fn_append VAR VALUE
30001 # ----------------------
30002 # Append the text in VALUE to the end of the definition contained in VAR. Take
30003 # advantage of any shell optimizations that allow amortized linear growth over
30004 # repeated appends, instead of the typical quadratic growth present in naive
30005 # implementations.
30006 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30007 eval 'as_fn_append ()
30008 {
30009 eval $1+=\$2
30010 }'
30011 else
30012 as_fn_append ()
30013 {
30014 eval $1=\$$1\$2
30015 }
30016 fi # as_fn_append
30017
30018 # as_fn_arith ARG...
30019 # ------------------
30020 # Perform arithmetic evaluation on the ARGs, and store the result in the
30021 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30022 # must be portable across $(()) and expr.
30023 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30024 eval 'as_fn_arith ()
30025 {
30026 as_val=$(( $* ))
30027 }'
30028 else
30029 as_fn_arith ()
30030 {
30031 as_val=`expr "$@" || test $? -eq 1`
30032 }
30033 fi # as_fn_arith
30034
30035
30036 if expr a : '\(a\)' >/dev/null 2>&1 &&
30037 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30038 as_expr=expr
30039 else
30040 as_expr=false
30041 fi
30042
30043 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30044 as_basename=basename
30045 else
30046 as_basename=false
30047 fi
30048
30049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30050 as_dirname=dirname
30051 else
30052 as_dirname=false
30053 fi
30054
30055 as_me=`$as_basename -- "$0" ||
30056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30057 X"$0" : 'X\(//\)$' \| \
30058 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30059 $as_echo X/"$0" |
30060 sed '/^.*\/\([^/][^/]*\)\/*$/{
30061 s//\1/
30062 q
30063 }
30064 /^X\/\(\/\/\)$/{
30065 s//\1/
30066 q
30067 }
30068 /^X\/\(\/\).*/{
30069 s//\1/
30070 q
30071 }
30072 s/.*/./; q'`
30073
30074 # Avoid depending upon Character Ranges.
30075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30078 as_cr_digits='0123456789'
30079 as_cr_alnum=$as_cr_Letters$as_cr_digits
30080
30081 ECHO_C= ECHO_N= ECHO_T=
30082 case `echo -n x` in #(((((
30083 -n*)
30084 case `echo 'xy\c'` in
30085 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30086 xy) ECHO_C='\c';;
30087 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30088 ECHO_T=' ';;
30089 esac;;
30090 *)
30091 ECHO_N='-n';;
30092 esac
30093
30094 rm -f conf$$ conf$$.exe conf$$.file
30095 if test -d conf$$.dir; then
30096 rm -f conf$$.dir/conf$$.file
30097 else
30098 rm -f conf$$.dir
30099 mkdir conf$$.dir 2>/dev/null
30100 fi
30101 if (echo >conf$$.file) 2>/dev/null; then
30102 if ln -s conf$$.file conf$$ 2>/dev/null; then
30103 as_ln_s='ln -s'
30104 # ... but there are two gotchas:
30105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30107 # In both cases, we have to default to `cp -p'.
30108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30109 as_ln_s='cp -p'
30110 elif ln conf$$.file conf$$ 2>/dev/null; then
30111 as_ln_s=ln
30112 else
30113 as_ln_s='cp -p'
30114 fi
30115 else
30116 as_ln_s='cp -p'
30117 fi
30118 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30119 rmdir conf$$.dir 2>/dev/null
30120
30121
30122 # as_fn_mkdir_p
30123 # -------------
30124 # Create "$as_dir" as a directory, including parents if necessary.
30125 as_fn_mkdir_p ()
30126 {
30127
30128 case $as_dir in #(
30129 -*) as_dir=./$as_dir;;
30130 esac
30131 test -d "$as_dir" || eval $as_mkdir_p || {
30132 as_dirs=
30133 while :; do
30134 case $as_dir in #(
30135 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30136 *) as_qdir=$as_dir;;
30137 esac
30138 as_dirs="'$as_qdir' $as_dirs"
30139 as_dir=`$as_dirname -- "$as_dir" ||
30140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30141 X"$as_dir" : 'X\(//\)[^/]' \| \
30142 X"$as_dir" : 'X\(//\)$' \| \
30143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30144 $as_echo X"$as_dir" |
30145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30146 s//\1/
30147 q
30148 }
30149 /^X\(\/\/\)[^/].*/{
30150 s//\1/
30151 q
30152 }
30153 /^X\(\/\/\)$/{
30154 s//\1/
30155 q
30156 }
30157 /^X\(\/\).*/{
30158 s//\1/
30159 q
30160 }
30161 s/.*/./; q'`
30162 test -d "$as_dir" && break
30163 done
30164 test -z "$as_dirs" || eval "mkdir $as_dirs"
30165 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30166
30167
30168 } # as_fn_mkdir_p
30169 if mkdir -p . 2>/dev/null; then
30170 as_mkdir_p='mkdir -p "$as_dir"'
30171 else
30172 test -d ./-p && rmdir ./-p
30173 as_mkdir_p=false
30174 fi
30175
30176 if test -x / >/dev/null 2>&1; then
30177 as_test_x='test -x'
30178 else
30179 if ls -dL / >/dev/null 2>&1; then
30180 as_ls_L_option=L
30181 else
30182 as_ls_L_option=
30183 fi
30184 as_test_x='
30185 eval sh -c '\''
30186 if test -d "$1"; then
30187 test -d "$1/.";
30188 else
30189 case $1 in #(
30190 -*)set "./$1";;
30191 esac;
30192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30193 ???[sx]*):;;*)false;;esac;fi
30194 '\'' sh
30195 '
30196 fi
30197 as_executable_p=$as_test_x
30198
30199 # Sed expression to map a string onto a valid CPP name.
30200 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30201
30202 # Sed expression to map a string onto a valid variable name.
30203 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30204
30205
30206 exec 6>&1
30207 ## ----------------------------------- ##
30208 ## Main body of $CONFIG_STATUS script. ##
30209 ## ----------------------------------- ##
30210 _ASEOF
30211 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30212
30213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30214 # Save the log message, to keep $0 and so on meaningful, and to
30215 # report actual input values of CONFIG_FILES etc. instead of their
30216 # values after options handling.
30217 ac_log="
30218 This file was extended by emacs $as_me 24.3.50, which was
30219 generated by GNU Autoconf 2.65. Invocation command line was
30220
30221 CONFIG_FILES = $CONFIG_FILES
30222 CONFIG_HEADERS = $CONFIG_HEADERS
30223 CONFIG_LINKS = $CONFIG_LINKS
30224 CONFIG_COMMANDS = $CONFIG_COMMANDS
30225 $ $0 $@
30226
30227 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30228 "
30229
30230 _ACEOF
30231
30232 case $ac_config_files in *"
30233 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30234 esac
30235
30236 case $ac_config_headers in *"
30237 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30238 esac
30239
30240
30241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30242 # Files that config.status was made for.
30243 config_files="$ac_config_files"
30244 config_headers="$ac_config_headers"
30245 config_commands="$ac_config_commands"
30246
30247 _ACEOF
30248
30249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30250 ac_cs_usage="\
30251 \`$as_me' instantiates files and other configuration actions
30252 from templates according to the current configuration. Unless the files
30253 and actions are specified as TAGs, all are instantiated by default.
30254
30255 Usage: $0 [OPTION]... [TAG]...
30256
30257 -h, --help print this help, then exit
30258 -V, --version print version number and configuration settings, then exit
30259 --config print configuration, then exit
30260 -q, --quiet, --silent
30261 do not print progress messages
30262 -d, --debug don't remove temporary files
30263 --recheck update $as_me by reconfiguring in the same conditions
30264 --file=FILE[:TEMPLATE]
30265 instantiate the configuration file FILE
30266 --header=FILE[:TEMPLATE]
30267 instantiate the configuration header FILE
30268
30269 Configuration files:
30270 $config_files
30271
30272 Configuration headers:
30273 $config_headers
30274
30275 Configuration commands:
30276 $config_commands
30277
30278 Report bugs to the package provider."
30279
30280 _ACEOF
30281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30282 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30283 ac_cs_version="\\
30284 emacs config.status 24.3.50
30285 configured by $0, generated by GNU Autoconf 2.65,
30286 with options \\"\$ac_cs_config\\"
30287
30288 Copyright (C) 2009 Free Software Foundation, Inc.
30289 This config.status script is free software; the Free Software Foundation
30290 gives unlimited permission to copy, distribute and modify it."
30291
30292 ac_pwd='$ac_pwd'
30293 srcdir='$srcdir'
30294 INSTALL='$INSTALL'
30295 MKDIR_P='$MKDIR_P'
30296 AWK='$AWK'
30297 test -n "\$AWK" || AWK=awk
30298 _ACEOF
30299
30300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30301 # The default lists apply if the user does not specify any file.
30302 ac_need_defaults=:
30303 while test $# != 0
30304 do
30305 case $1 in
30306 --*=*)
30307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30309 ac_shift=:
30310 ;;
30311 *)
30312 ac_option=$1
30313 ac_optarg=$2
30314 ac_shift=shift
30315 ;;
30316 esac
30317
30318 case $ac_option in
30319 # Handling of the options.
30320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30321 ac_cs_recheck=: ;;
30322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30323 $as_echo "$ac_cs_version"; exit ;;
30324 --config | --confi | --conf | --con | --co | --c )
30325 $as_echo "$ac_cs_config"; exit ;;
30326 --debug | --debu | --deb | --de | --d | -d )
30327 debug=: ;;
30328 --file | --fil | --fi | --f )
30329 $ac_shift
30330 case $ac_optarg in
30331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30332 esac
30333 as_fn_append CONFIG_FILES " '$ac_optarg'"
30334 ac_need_defaults=false;;
30335 --header | --heade | --head | --hea )
30336 $ac_shift
30337 case $ac_optarg in
30338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30339 esac
30340 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30341 ac_need_defaults=false;;
30342 --he | --h)
30343 # Conflict between --help and --header
30344 as_fn_error "ambiguous option: \`$1'
30345 Try \`$0 --help' for more information.";;
30346 --help | --hel | -h )
30347 $as_echo "$ac_cs_usage"; exit ;;
30348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30350 ac_cs_silent=: ;;
30351
30352 # This is an error.
30353 -*) as_fn_error "unrecognized option: \`$1'
30354 Try \`$0 --help' for more information." ;;
30355
30356 *) as_fn_append ac_config_targets " $1"
30357 ac_need_defaults=false ;;
30358
30359 esac
30360 shift
30361 done
30362
30363 ac_configure_extra_args=
30364
30365 if $ac_cs_silent; then
30366 exec 6>/dev/null
30367 ac_configure_extra_args="$ac_configure_extra_args --silent"
30368 fi
30369
30370 _ACEOF
30371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30372 if \$ac_cs_recheck; then
30373 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30374 shift
30375 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30376 CONFIG_SHELL='$SHELL'
30377 export CONFIG_SHELL
30378 exec "\$@"
30379 fi
30380
30381 _ACEOF
30382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30383 exec 5>>config.log
30384 {
30385 echo
30386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30387 ## Running $as_me. ##
30388 _ASBOX
30389 $as_echo "$ac_log"
30390 } >&5
30391
30392 _ACEOF
30393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30394 #
30395 # INIT-COMMANDS
30396 #
30397 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30398 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30399
30400 _ACEOF
30401
30402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30403
30404 # Handling of arguments.
30405 for ac_config_target in $ac_config_targets
30406 do
30407 case $ac_config_target in
30408 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30409 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30410 "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" ;;
30411 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30412 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30413 "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" ;;
30414 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30415 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30416 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
30417 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
30418 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
30419 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
30420 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
30421 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
30422 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30423 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
30424 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
30425 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
30426 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
30427 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
30428 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
30429 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
30430 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
30431 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
30432
30433 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30434 esac
30435 done
30436
30437
30438 # If the user did not use the arguments to specify the items to instantiate,
30439 # then the envvar interface is used. Set only those that are not.
30440 # We use the long form for the default assignment because of an extremely
30441 # bizarre bug on SunOS 4.1.3.
30442 if $ac_need_defaults; then
30443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30446 fi
30447
30448 # Have a temporary directory for convenience. Make it in the build tree
30449 # simply because there is no reason against having it here, and in addition,
30450 # creating and moving files from /tmp can sometimes cause problems.
30451 # Hook for its removal unless debugging.
30452 # Note that there is a small window in which the directory will not be cleaned:
30453 # after its creation but before its name has been assigned to `$tmp'.
30454 $debug ||
30455 {
30456 tmp=
30457 trap 'exit_status=$?
30458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30459 ' 0
30460 trap 'as_fn_exit 1' 1 2 13 15
30461 }
30462 # Create a (secure) tmp directory for tmp files.
30463
30464 {
30465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30466 test -n "$tmp" && test -d "$tmp"
30467 } ||
30468 {
30469 tmp=./conf$$-$RANDOM
30470 (umask 077 && mkdir "$tmp")
30471 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30472
30473 # Set up the scripts for CONFIG_FILES section.
30474 # No need to generate them if there are no CONFIG_FILES.
30475 # This happens for instance with `./config.status config.h'.
30476 if test -n "$CONFIG_FILES"; then
30477
30478 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30479 ac_cs_awk_getline=:
30480 ac_cs_awk_pipe_init=
30481 ac_cs_awk_read_file='
30482 while ((getline aline < (F[key])) > 0)
30483 print(aline)
30484 close(F[key])'
30485 ac_cs_awk_pipe_fini=
30486 else
30487 ac_cs_awk_getline=false
30488 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30489 ac_cs_awk_read_file='
30490 print "|#_!!_#|"
30491 print "cat " F[key] " &&"
30492 '$ac_cs_awk_pipe_init
30493 # The final `:' finishes the AND list.
30494 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30495 fi
30496 ac_cr=`echo X | tr X '\015'`
30497 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30498 # But we know of no other shell where ac_cr would be empty at this
30499 # point, so we can use a bashism as a fallback.
30500 if test "x$ac_cr" = x; then
30501 eval ac_cr=\$\'\\r\'
30502 fi
30503 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30505 ac_cs_awk_cr='\r'
30506 else
30507 ac_cs_awk_cr=$ac_cr
30508 fi
30509
30510 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30511 _ACEOF
30512
30513 # Create commands to substitute file output variables.
30514 {
30515 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30516 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30517 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30518 echo "_ACAWK" &&
30519 echo "_ACEOF"
30520 } >conf$$files.sh &&
30521 . ./conf$$files.sh ||
30522 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30523 rm -f conf$$files.sh
30524
30525 {
30526 echo "cat >conf$$subs.awk <<_ACEOF" &&
30527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30528 echo "_ACEOF"
30529 } >conf$$subs.sh ||
30530 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30532 ac_delim='%!_!# '
30533 for ac_last_try in false false false false false :; do
30534 . ./conf$$subs.sh ||
30535 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30536
30537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30538 if test $ac_delim_n = $ac_delim_num; then
30539 break
30540 elif $ac_last_try; then
30541 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30542 else
30543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30544 fi
30545 done
30546 rm -f conf$$subs.sh
30547
30548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30549 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30550 _ACEOF
30551 sed -n '
30552 h
30553 s/^/S["/; s/!.*/"]=/
30554 p
30555 g
30556 s/^[^!]*!//
30557 :repl
30558 t repl
30559 s/'"$ac_delim"'$//
30560 t delim
30561 :nl
30562 h
30563 s/\(.\{148\}\)..*/\1/
30564 t more1
30565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30566 p
30567 n
30568 b repl
30569 :more1
30570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30571 p
30572 g
30573 s/.\{148\}//
30574 t nl
30575 :delim
30576 h
30577 s/\(.\{148\}\)..*/\1/
30578 t more2
30579 s/["\\]/\\&/g; s/^/"/; s/$/"/
30580 p
30581 b
30582 :more2
30583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30584 p
30585 g
30586 s/.\{148\}//
30587 t delim
30588 ' <conf$$subs.awk | sed '
30589 /^[^""]/{
30590 N
30591 s/\n//
30592 }
30593 ' >>$CONFIG_STATUS || ac_write_fail=1
30594 rm -f conf$$subs.awk
30595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30596 _ACAWK
30597 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30598 for (key in S) S_is_set[key] = 1
30599 FS = "\a"
30600 \$ac_cs_awk_pipe_init
30601 }
30602 {
30603 line = $ 0
30604 nfields = split(line, field, "@")
30605 substed = 0
30606 len = length(field[1])
30607 for (i = 2; i < nfields; i++) {
30608 key = field[i]
30609 keylen = length(key)
30610 if (S_is_set[key]) {
30611 value = S[key]
30612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30613 len += length(value) + length(field[++i])
30614 substed = 1
30615 } else
30616 len += 1 + keylen
30617 }
30618 if (nfields == 3 && !substed) {
30619 key = field[2]
30620 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30621 \$ac_cs_awk_read_file
30622 next
30623 }
30624 }
30625 print line
30626 }
30627 \$ac_cs_awk_pipe_fini
30628 _ACAWK
30629 _ACEOF
30630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30631 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30632 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30633 else
30634 cat
30635 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30636 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30637 _ACEOF
30638
30639 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30640 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30641 # trailing colons and then remove the whole line if VPATH becomes empty
30642 # (actually we leave an empty line to preserve line numbers).
30643 if test "x$srcdir" = x.; then
30644 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30645 s/:*\$(srcdir):*/:/
30646 s/:*\${srcdir}:*/:/
30647 s/:*@srcdir@:*/:/
30648 s/^\([^=]*=[ ]*\):*/\1/
30649 s/:*$//
30650 s/^[^=]*=[ ]*$//
30651 }'
30652 fi
30653
30654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30655 fi # test -n "$CONFIG_FILES"
30656
30657 # Set up the scripts for CONFIG_HEADERS section.
30658 # No need to generate them if there are no CONFIG_HEADERS.
30659 # This happens for instance with `./config.status Makefile'.
30660 if test -n "$CONFIG_HEADERS"; then
30661 cat >"$tmp/defines.awk" <<\_ACAWK ||
30662 BEGIN {
30663 _ACEOF
30664
30665 # Transform confdefs.h into an awk script `defines.awk', embedded as
30666 # here-document in config.status, that substitutes the proper values into
30667 # config.h.in to produce config.h.
30668
30669 # Create a delimiter string that does not exist in confdefs.h, to ease
30670 # handling of long lines.
30671 ac_delim='%!_!# '
30672 for ac_last_try in false false :; do
30673 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30674 if test -z "$ac_t"; then
30675 break
30676 elif $ac_last_try; then
30677 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30678 else
30679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30680 fi
30681 done
30682
30683 # For the awk script, D is an array of macro values keyed by name,
30684 # likewise P contains macro parameters if any. Preserve backslash
30685 # newline sequences.
30686
30687 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30688 sed -n '
30689 s/.\{148\}/&'"$ac_delim"'/g
30690 t rset
30691 :rset
30692 s/^[ ]*#[ ]*define[ ][ ]*/ /
30693 t def
30694 d
30695 :def
30696 s/\\$//
30697 t bsnl
30698 s/["\\]/\\&/g
30699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30700 D["\1"]=" \3"/p
30701 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30702 d
30703 :bsnl
30704 s/["\\]/\\&/g
30705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30706 D["\1"]=" \3\\\\\\n"\\/p
30707 t cont
30708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30709 t cont
30710 d
30711 :cont
30712 n
30713 s/.\{148\}/&'"$ac_delim"'/g
30714 t clear
30715 :clear
30716 s/\\$//
30717 t bsnlc
30718 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30719 d
30720 :bsnlc
30721 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30722 b cont
30723 ' <confdefs.h | sed '
30724 s/'"$ac_delim"'/"\\\
30725 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30726
30727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30728 for (key in D) D_is_set[key] = 1
30729 FS = "\a"
30730 }
30731 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30732 line = \$ 0
30733 split(line, arg, " ")
30734 if (arg[1] == "#") {
30735 defundef = arg[2]
30736 mac1 = arg[3]
30737 } else {
30738 defundef = substr(arg[1], 2)
30739 mac1 = arg[2]
30740 }
30741 split(mac1, mac2, "(") #)
30742 macro = mac2[1]
30743 prefix = substr(line, 1, index(line, defundef) - 1)
30744 if (D_is_set[macro]) {
30745 # Preserve the white space surrounding the "#".
30746 print prefix "define", macro P[macro] D[macro]
30747 next
30748 } else {
30749 # Replace #undef with comments. This is necessary, for example,
30750 # in the case of _POSIX_SOURCE, which is predefined and required
30751 # on some systems where configure will not decide to define it.
30752 if (defundef == "undef") {
30753 print "/*", prefix defundef, macro, "*/"
30754 next
30755 }
30756 }
30757 }
30758 { print }
30759 _ACAWK
30760 _ACEOF
30761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30762 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30763 fi # test -n "$CONFIG_HEADERS"
30764
30765
30766 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30767 shift
30768 for ac_tag
30769 do
30770 case $ac_tag in
30771 :[FHLC]) ac_mode=$ac_tag; continue;;
30772 esac
30773 case $ac_mode$ac_tag in
30774 :[FHL]*:*);;
30775 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30776 :[FH]-) ac_tag=-:-;;
30777 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30778 esac
30779 ac_save_IFS=$IFS
30780 IFS=:
30781 set x $ac_tag
30782 IFS=$ac_save_IFS
30783 shift
30784 ac_file=$1
30785 shift
30786
30787 case $ac_mode in
30788 :L) ac_source=$1;;
30789 :[FH])
30790 ac_file_inputs=
30791 for ac_f
30792 do
30793 case $ac_f in
30794 -) ac_f="$tmp/stdin";;
30795 *) # Look for the file first in the build tree, then in the source tree
30796 # (if the path is not absolute). The absolute path cannot be DOS-style,
30797 # because $ac_f cannot contain `:'.
30798 test -f "$ac_f" ||
30799 case $ac_f in
30800 [\\/$]*) false;;
30801 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30802 esac ||
30803 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30804 esac
30805 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30806 as_fn_append ac_file_inputs " '$ac_f'"
30807 done
30808
30809 # Let's still pretend it is `configure' which instantiates (i.e., don't
30810 # use $as_me), people would be surprised to read:
30811 # /* config.h. Generated by config.status. */
30812 configure_input='Generated from '`
30813 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30814 `' by configure.'
30815 if test x"$ac_file" != x-; then
30816 configure_input="$ac_file. $configure_input"
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30818 $as_echo "$as_me: creating $ac_file" >&6;}
30819 fi
30820 # Neutralize special characters interpreted by sed in replacement strings.
30821 case $configure_input in #(
30822 *\&* | *\|* | *\\* )
30823 ac_sed_conf_input=`$as_echo "$configure_input" |
30824 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30825 *) ac_sed_conf_input=$configure_input;;
30826 esac
30827
30828 case $ac_tag in
30829 *:-:* | *:-) cat >"$tmp/stdin" \
30830 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30831 esac
30832 ;;
30833 esac
30834
30835 ac_dir=`$as_dirname -- "$ac_file" ||
30836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30837 X"$ac_file" : 'X\(//\)[^/]' \| \
30838 X"$ac_file" : 'X\(//\)$' \| \
30839 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30840 $as_echo X"$ac_file" |
30841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30842 s//\1/
30843 q
30844 }
30845 /^X\(\/\/\)[^/].*/{
30846 s//\1/
30847 q
30848 }
30849 /^X\(\/\/\)$/{
30850 s//\1/
30851 q
30852 }
30853 /^X\(\/\).*/{
30854 s//\1/
30855 q
30856 }
30857 s/.*/./; q'`
30858 as_dir="$ac_dir"; as_fn_mkdir_p
30859 ac_builddir=.
30860
30861 case "$ac_dir" in
30862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30863 *)
30864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30865 # A ".." for each directory in $ac_dir_suffix.
30866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30867 case $ac_top_builddir_sub in
30868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30870 esac ;;
30871 esac
30872 ac_abs_top_builddir=$ac_pwd
30873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30874 # for backward compatibility:
30875 ac_top_builddir=$ac_top_build_prefix
30876
30877 case $srcdir in
30878 .) # We are building in place.
30879 ac_srcdir=.
30880 ac_top_srcdir=$ac_top_builddir_sub
30881 ac_abs_top_srcdir=$ac_pwd ;;
30882 [\\/]* | ?:[\\/]* ) # Absolute name.
30883 ac_srcdir=$srcdir$ac_dir_suffix;
30884 ac_top_srcdir=$srcdir
30885 ac_abs_top_srcdir=$srcdir ;;
30886 *) # Relative name.
30887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30888 ac_top_srcdir=$ac_top_build_prefix$srcdir
30889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30890 esac
30891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30892
30893
30894 case $ac_mode in
30895 :F)
30896 #
30897 # CONFIG_FILE
30898 #
30899
30900 case $INSTALL in
30901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30903 esac
30904 ac_MKDIR_P=$MKDIR_P
30905 case $MKDIR_P in
30906 [\\/$]* | ?:[\\/]* ) ;;
30907 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30908 esac
30909 _ACEOF
30910
30911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30912 # If the template does not know about datarootdir, expand it.
30913 # FIXME: This hack should be removed a few years after 2.60.
30914 ac_datarootdir_hack=; ac_datarootdir_seen=
30915 ac_sed_dataroot='
30916 /datarootdir/ {
30917 p
30918 q
30919 }
30920 /@datadir@/p
30921 /@docdir@/p
30922 /@infodir@/p
30923 /@localedir@/p
30924 /@mandir@/p'
30925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30926 *datarootdir*) ac_datarootdir_seen=yes;;
30927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30930 _ACEOF
30931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30932 ac_datarootdir_hack='
30933 s&@datadir@&$datadir&g
30934 s&@docdir@&$docdir&g
30935 s&@infodir@&$infodir&g
30936 s&@localedir@&$localedir&g
30937 s&@mandir@&$mandir&g
30938 s&\\\${datarootdir}&$datarootdir&g' ;;
30939 esac
30940 _ACEOF
30941
30942 # Neutralize VPATH when `$srcdir' = `.'.
30943 # Shell code in configure.ac might set extrasub.
30944 # FIXME: do we really want to maintain this feature?
30945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30946 ac_sed_extra="$ac_vpsub
30947 $extrasub
30948 _ACEOF
30949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30950 :t
30951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30952 s|@configure_input@|$ac_sed_conf_input|;t t
30953 s&@top_builddir@&$ac_top_builddir_sub&;t t
30954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30955 s&@srcdir@&$ac_srcdir&;t t
30956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30957 s&@top_srcdir@&$ac_top_srcdir&;t t
30958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30959 s&@builddir@&$ac_builddir&;t t
30960 s&@abs_builddir@&$ac_abs_builddir&;t t
30961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30962 s&@INSTALL@&$ac_INSTALL&;t t
30963 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30964 $ac_datarootdir_hack
30965 "
30966 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30967 if $ac_cs_awk_getline; then
30968 $AWK -f "$tmp/subs.awk"
30969 else
30970 $AWK -f "$tmp/subs.awk" | $SHELL
30971 fi >$tmp/out \
30972 || as_fn_error "could not create $ac_file" "$LINENO" 5
30973
30974 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30975 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30978 which seems to be undefined. Please make sure it is defined." >&5
30979 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30980 which seems to be undefined. Please make sure it is defined." >&2;}
30981
30982 rm -f "$tmp/stdin"
30983 case $ac_file in
30984 -) cat "$tmp/out" && rm -f "$tmp/out";;
30985 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30986 esac \
30987 || as_fn_error "could not create $ac_file" "$LINENO" 5
30988 ;;
30989 :H)
30990 #
30991 # CONFIG_HEADER
30992 #
30993 if test x"$ac_file" != x-; then
30994 {
30995 $as_echo "/* $configure_input */" \
30996 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30997 } >"$tmp/config.h" \
30998 || as_fn_error "could not create $ac_file" "$LINENO" 5
30999 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31001 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31002 else
31003 rm -f "$ac_file"
31004 mv "$tmp/config.h" "$ac_file" \
31005 || as_fn_error "could not create $ac_file" "$LINENO" 5
31006 fi
31007 else
31008 $as_echo "/* $configure_input */" \
31009 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31010 || as_fn_error "could not create -" "$LINENO" 5
31011 fi
31012 # Compute "$ac_file"'s index in $config_headers.
31013 _am_arg="$ac_file"
31014 _am_stamp_count=1
31015 for _am_header in $config_headers :; do
31016 case $_am_header in
31017 $_am_arg | $_am_arg:* )
31018 break ;;
31019 * )
31020 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31021 esac
31022 done
31023 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31024 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31025 X"$_am_arg" : 'X\(//\)[^/]' \| \
31026 X"$_am_arg" : 'X\(//\)$' \| \
31027 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31028 $as_echo X"$_am_arg" |
31029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31030 s//\1/
31031 q
31032 }
31033 /^X\(\/\/\)[^/].*/{
31034 s//\1/
31035 q
31036 }
31037 /^X\(\/\/\)$/{
31038 s//\1/
31039 q
31040 }
31041 /^X\(\/\).*/{
31042 s//\1/
31043 q
31044 }
31045 s/.*/./; q'`/stamp-h$_am_stamp_count
31046 ;;
31047
31048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31049 $as_echo "$as_me: executing $ac_file commands" >&6;}
31050 ;;
31051 esac
31052
31053
31054 case $ac_file$ac_mode in
31055 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31056 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31057 # are listed without --file. Let's play safe and only enable the eval
31058 # if we detect the quoting.
31059 case $CONFIG_FILES in
31060 *\'*) eval set x "$CONFIG_FILES" ;;
31061 *) set x $CONFIG_FILES ;;
31062 esac
31063 shift
31064 for mf
31065 do
31066 # Strip MF so we end up with the name of the file.
31067 mf=`echo "$mf" | sed -e 's/:.*$//'`
31068 # Check whether this is an Automake generated Makefile or not.
31069 # We used to match only the files named `Makefile.in', but
31070 # some people rename them; so instead we look at the file content.
31071 # Grep'ing the first line is not enough: some people post-process
31072 # each Makefile.in and add a new line on top of each file to say so.
31073 # Grep'ing the whole file is not good either: AIX grep has a line
31074 # limit of 2048, but all sed's we know have understand at least 4000.
31075 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31076 dirpart=`$as_dirname -- "$mf" ||
31077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31078 X"$mf" : 'X\(//\)[^/]' \| \
31079 X"$mf" : 'X\(//\)$' \| \
31080 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31081 $as_echo X"$mf" |
31082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31083 s//\1/
31084 q
31085 }
31086 /^X\(\/\/\)[^/].*/{
31087 s//\1/
31088 q
31089 }
31090 /^X\(\/\/\)$/{
31091 s//\1/
31092 q
31093 }
31094 /^X\(\/\).*/{
31095 s//\1/
31096 q
31097 }
31098 s/.*/./; q'`
31099 else
31100 continue
31101 fi
31102 # Extract the definition of DEPDIR, am__include, and am__quote
31103 # from the Makefile without running `make'.
31104 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31105 test -z "$DEPDIR" && continue
31106 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31107 test -z "am__include" && continue
31108 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31109 # When using ansi2knr, U may be empty or an underscore; expand it
31110 U=`sed -n 's/^U = //p' < "$mf"`
31111 # Find all dependency output files, they are included files with
31112 # $(DEPDIR) in their names. We invoke sed twice because it is the
31113 # simplest approach to changing $(DEPDIR) to its actual value in the
31114 # expansion.
31115 for file in `sed -n "
31116 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31117 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31118 # Make sure the directory exists.
31119 test -f "$dirpart/$file" && continue
31120 fdir=`$as_dirname -- "$file" ||
31121 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31122 X"$file" : 'X\(//\)[^/]' \| \
31123 X"$file" : 'X\(//\)$' \| \
31124 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31125 $as_echo X"$file" |
31126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31127 s//\1/
31128 q
31129 }
31130 /^X\(\/\/\)[^/].*/{
31131 s//\1/
31132 q
31133 }
31134 /^X\(\/\/\)$/{
31135 s//\1/
31136 q
31137 }
31138 /^X\(\/\).*/{
31139 s//\1/
31140 q
31141 }
31142 s/.*/./; q'`
31143 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31144 # echo "creating $dirpart/$file"
31145 echo '# dummy' > "$dirpart/$file"
31146 done
31147 done
31148 }
31149 ;;
31150 "src/epaths.h":C)
31151 if test "${opsys}" = "mingw32"; then
31152 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
31153 else
31154 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
31155 fi
31156 ;;
31157 "src/.gdbinit":C)
31158 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
31159 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
31160 fi
31161 ;;
31162
31163 esac
31164 done # for ac_tag
31165
31166
31167 as_fn_exit 0
31168 _ACEOF
31169 ac_clean_files=$ac_clean_files_save
31170
31171 test $ac_write_fail = 0 ||
31172 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31173
31174
31175 # configure is writing to config.log, and then calls config.status.
31176 # config.status does its own redirection, appending to config.log.
31177 # Unfortunately, on DOS this fails, as config.log is still kept open
31178 # by configure, so config.status won't be able to write to it; its
31179 # output is simply discarded. So we exec the FD to /dev/null,
31180 # effectively closing config.log, so it can be properly (re)opened and
31181 # appended to by config.status. When coming back to configure, we
31182 # need to make the FD available again.
31183 if test "$no_create" != yes; then
31184 ac_cs_success=:
31185 ac_config_status_args=
31186 test "$silent" = yes &&
31187 ac_config_status_args="$ac_config_status_args --quiet"
31188 exec 5>/dev/null
31189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31190 exec 5>>config.log
31191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31192 # would make configure fail if this is the last instruction.
31193 $ac_cs_success || as_fn_exit $?
31194 fi
31195 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31197 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31198 fi
31199