Auto-commit of generated files.
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_func_list=
595 gl_getopt_required=POSIX
596 ac_header_list=
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 X_TOOLKIT_TYPE
633 GNUSTEP_CFLAGS
634 C_SWITCH_X_SITE
635 LD_SWITCH_X_SITE
636 gameuser
637 gamedir
638 bitmapdir
639 archlibdir
640 etcdir
641 x_default_search_path
642 lisppath
643 locallisppath
644 leimdir
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 LIBXML2_LIBS
663 LIBXML2_CFLAGS
664 LIBXSM
665 LIBGPM
666 LIBGIF
667 LIBTIFF
668 LIBPNG
669 LIBJPEG
670 LIBXPM
671 M17N_FLT_LIBS
672 M17N_FLT_CFLAGS
673 LIBOTF_LIBS
674 LIBOTF_CFLAGS
675 FREETYPE_LIBS
676 FREETYPE_CFLAGS
677 XFT_LIBS
678 XFT_CFLAGS
679 FONTCONFIG_LIBS
680 FONTCONFIG_CFLAGS
681 LIBXMU
682 LIBXTR6
683 LIBGNUTLS_LIBS
684 LIBGNUTLS_CFLAGS
685 LIBSELINUX_LIBS
686 SETTINGS_LIBS
687 SETTINGS_CFLAGS
688 GCONF_LIBS
689 GCONF_CFLAGS
690 GSETTINGS_LIBS
691 GSETTINGS_CFLAGS
692 DBUS_OBJ
693 DBUS_LIBS
694 DBUS_CFLAGS
695 GTK_OBJ
696 GTK_LIBS
697 GTK_CFLAGS
698 IMAGEMAGICK_LIBS
699 IMAGEMAGICK_CFLAGS
700 RSVG_LIBS
701 RSVG_CFLAGS
702 LIB_PTHREAD
703 VMLIMIT_OBJ
704 GMALLOC_OBJ
705 HAVE_XSERVER
706 LIB_STANDARD
707 NS_OBJC_OBJ
708 NS_OBJ
709 ns_self_contained
710 INSTALL_ARCH_INDEP_EXTRA
711 TEMACS_LDFLAGS2
712 LD_SWITCH_X_SITE_RPATH
713 XMKMF
714 DEPFLAGS
715 MKDEPDIR
716 CFLAGS_SOUND
717 ALSA_LIBS
718 ALSA_CFLAGS
719 LIBSOUND
720 PKG_CONFIG
721 LIBGNU_LTLIBDEPS
722 LIBGNU_LIBDEPS
723 gltests_WITNESS
724 gl_GNULIB_ENABLED_verify_FALSE
725 gl_GNULIB_ENABLED_verify_TRUE
726 gl_GNULIB_ENABLED_strtoull_FALSE
727 gl_GNULIB_ENABLED_strtoull_TRUE
728 gl_GNULIB_ENABLED_strtoll_FALSE
729 gl_GNULIB_ENABLED_strtoll_TRUE
730 gl_GNULIB_ENABLED_stat_FALSE
731 gl_GNULIB_ENABLED_stat_TRUE
732 gl_GNULIB_ENABLED_pathmax_FALSE
733 gl_GNULIB_ENABLED_pathmax_TRUE
734 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
736 gl_GNULIB_ENABLED_dosname_FALSE
737 gl_GNULIB_ENABLED_dosname_TRUE
738 LTLIBINTL
739 LIBINTL
740 WINDOWS_64_BIT_OFF_T
741 HAVE_UNISTD_H
742 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
743 NEXT_UNISTD_H
744 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
745 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
746 TIME_H_DEFINES_STRUCT_TIMESPEC
747 NEXT_AS_FIRST_DIRECTIVE_TIME_H
748 NEXT_TIME_H
749 WINDOWS_64_BIT_ST_SIZE
750 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
751 NEXT_SYS_STAT_H
752 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
753 NEXT_STDLIB_H
754 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
755 NEXT_STDIO_H
756 REPLACE_VSPRINTF
757 REPLACE_VSNPRINTF
758 REPLACE_VPRINTF
759 REPLACE_VFPRINTF
760 REPLACE_VDPRINTF
761 REPLACE_VASPRINTF
762 REPLACE_TMPFILE
763 REPLACE_STDIO_WRITE_FUNCS
764 REPLACE_STDIO_READ_FUNCS
765 REPLACE_SPRINTF
766 REPLACE_SNPRINTF
767 REPLACE_RENAMEAT
768 REPLACE_RENAME
769 REPLACE_REMOVE
770 REPLACE_PRINTF
771 REPLACE_POPEN
772 REPLACE_PERROR
773 REPLACE_OBSTACK_PRINTF
774 REPLACE_GETLINE
775 REPLACE_GETDELIM
776 REPLACE_FTELLO
777 REPLACE_FTELL
778 REPLACE_FSEEKO
779 REPLACE_FSEEK
780 REPLACE_FREOPEN
781 REPLACE_FPURGE
782 REPLACE_FPRINTF
783 REPLACE_FOPEN
784 REPLACE_FFLUSH
785 REPLACE_FDOPEN
786 REPLACE_FCLOSE
787 REPLACE_DPRINTF
788 HAVE_VDPRINTF
789 HAVE_VASPRINTF
790 HAVE_RENAMEAT
791 HAVE_POPEN
792 HAVE_PCLOSE
793 HAVE_FTELLO
794 HAVE_FSEEKO
795 HAVE_DPRINTF
796 HAVE_DECL_VSNPRINTF
797 HAVE_DECL_SNPRINTF
798 HAVE_DECL_OBSTACK_PRINTF
799 HAVE_DECL_GETLINE
800 HAVE_DECL_GETDELIM
801 HAVE_DECL_FTELLO
802 HAVE_DECL_FSEEKO
803 HAVE_DECL_FPURGE
804 GNULIB_VSPRINTF_POSIX
805 GNULIB_VSNPRINTF
806 GNULIB_VPRINTF_POSIX
807 GNULIB_VPRINTF
808 GNULIB_VFPRINTF_POSIX
809 GNULIB_VFPRINTF
810 GNULIB_VDPRINTF
811 GNULIB_VSCANF
812 GNULIB_VFSCANF
813 GNULIB_VASPRINTF
814 GNULIB_TMPFILE
815 GNULIB_STDIO_H_SIGPIPE
816 GNULIB_STDIO_H_NONBLOCKING
817 GNULIB_SPRINTF_POSIX
818 GNULIB_SNPRINTF
819 GNULIB_SCANF
820 GNULIB_RENAMEAT
821 GNULIB_RENAME
822 GNULIB_REMOVE
823 GNULIB_PUTS
824 GNULIB_PUTCHAR
825 GNULIB_PUTC
826 GNULIB_PRINTF_POSIX
827 GNULIB_PRINTF
828 GNULIB_POPEN
829 GNULIB_PERROR
830 GNULIB_PCLOSE
831 GNULIB_OBSTACK_PRINTF_POSIX
832 GNULIB_OBSTACK_PRINTF
833 GNULIB_GETLINE
834 GNULIB_GETDELIM
835 GNULIB_GETCHAR
836 GNULIB_GETC
837 GNULIB_FWRITE
838 GNULIB_FTELLO
839 GNULIB_FTELL
840 GNULIB_FSEEKO
841 GNULIB_FSEEK
842 GNULIB_FSCANF
843 GNULIB_FREOPEN
844 GNULIB_FREAD
845 GNULIB_FPUTS
846 GNULIB_FPUTC
847 GNULIB_FPURGE
848 GNULIB_FPRINTF_POSIX
849 GNULIB_FPRINTF
850 GNULIB_FOPEN
851 GNULIB_FGETS
852 GNULIB_FGETC
853 GNULIB_FFLUSH
854 GNULIB_FDOPEN
855 GNULIB_FCLOSE
856 GNULIB_DPRINTF
857 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
858 NEXT_STDDEF_H
859 GL_GENERATE_STDDEF_H_FALSE
860 GL_GENERATE_STDDEF_H_TRUE
861 STDDEF_H
862 HAVE_WCHAR_T
863 REPLACE_NULL
864 HAVE__BOOL
865 GL_GENERATE_STDBOOL_H_FALSE
866 GL_GENERATE_STDBOOL_H_TRUE
867 STDBOOL_H
868 GL_GENERATE_STDARG_H_FALSE
869 GL_GENERATE_STDARG_H_TRUE
870 STDARG_H
871 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
872 NEXT_STDARG_H
873 GL_GENERATE_STDALIGN_H_FALSE
874 GL_GENERATE_STDALIGN_H_TRUE
875 STDALIGN_H
876 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
877 NEXT_SIGNAL_H
878 LIB_PTHREAD_SIGMASK
879 REPLACE_RAISE
880 REPLACE_PTHREAD_SIGMASK
881 HAVE_SIGHANDLER_T
882 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
883 HAVE_STRUCT_SIGACTION_SA_SIGACTION
884 HAVE_SIGACTION
885 HAVE_SIGINFO_T
886 HAVE_SIGSET_T
887 HAVE_RAISE
888 HAVE_PTHREAD_SIGMASK
889 HAVE_POSIX_SIGNALBLOCKING
890 GNULIB_SIGACTION
891 GNULIB_SIGPROCMASK
892 GNULIB_SIGNAL_H_SIGPIPE
893 GNULIB_RAISE
894 GNULIB_PTHREAD_SIGMASK
895 HAVE_SYS_SELECT_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
897 NEXT_SYS_SELECT_H
898 REPLACE_SELECT
899 REPLACE_PSELECT
900 HAVE_PSELECT
901 GNULIB_SELECT
902 GNULIB_PSELECT
903 REPLACE_TIMEGM
904 REPLACE_NANOSLEEP
905 REPLACE_MKTIME
906 REPLACE_LOCALTIME_R
907 HAVE_TIMEGM
908 HAVE_STRPTIME
909 HAVE_NANOSLEEP
910 HAVE_DECL_LOCALTIME_R
911 GNULIB_TIME_R
912 GNULIB_TIMEGM
913 GNULIB_STRPTIME
914 GNULIB_NANOSLEEP
915 GNULIB_MKTIME
916 REPLACE_UTIMENSAT
917 REPLACE_STAT
918 REPLACE_MKNOD
919 REPLACE_MKFIFO
920 REPLACE_MKDIR
921 REPLACE_LSTAT
922 REPLACE_FUTIMENS
923 REPLACE_FSTATAT
924 REPLACE_FSTAT
925 HAVE_UTIMENSAT
926 HAVE_MKNODAT
927 HAVE_MKNOD
928 HAVE_MKFIFOAT
929 HAVE_MKFIFO
930 HAVE_MKDIRAT
931 HAVE_LSTAT
932 HAVE_LCHMOD
933 HAVE_FUTIMENS
934 HAVE_FSTATAT
935 HAVE_FCHMODAT
936 GNULIB_UTIMENSAT
937 GNULIB_STAT
938 GNULIB_MKNODAT
939 GNULIB_MKNOD
940 GNULIB_MKFIFOAT
941 GNULIB_MKFIFO
942 GNULIB_MKDIRAT
943 GNULIB_LSTAT
944 GNULIB_LCHMOD
945 GNULIB_FUTIMENS
946 GNULIB_FSTATAT
947 GNULIB_FSTAT
948 GNULIB_FCHMODAT
949 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
950 NEXT_INTTYPES_H
951 UINT64_MAX_EQ_ULONG_MAX
952 UINT32_MAX_LT_UINTMAX_MAX
953 PRIPTR_PREFIX
954 PRI_MACROS_BROKEN
955 INT64_MAX_EQ_LONG_MAX
956 INT32_MAX_LT_INTMAX_MAX
957 REPLACE_STRTOIMAX
958 HAVE_DECL_STRTOUMAX
959 HAVE_DECL_STRTOIMAX
960 HAVE_DECL_IMAXDIV
961 HAVE_DECL_IMAXABS
962 GNULIB_STRTOUMAX
963 GNULIB_STRTOIMAX
964 GNULIB_IMAXDIV
965 GNULIB_IMAXABS
966 GL_GENERATE_STDINT_H_FALSE
967 GL_GENERATE_STDINT_H_TRUE
968 STDINT_H
969 WINT_T_SUFFIX
970 WCHAR_T_SUFFIX
971 SIG_ATOMIC_T_SUFFIX
972 SIZE_T_SUFFIX
973 PTRDIFF_T_SUFFIX
974 HAVE_SIGNED_WINT_T
975 HAVE_SIGNED_WCHAR_T
976 HAVE_SIGNED_SIG_ATOMIC_T
977 BITSIZEOF_WINT_T
978 BITSIZEOF_WCHAR_T
979 BITSIZEOF_SIG_ATOMIC_T
980 BITSIZEOF_SIZE_T
981 BITSIZEOF_PTRDIFF_T
982 APPLE_UNIVERSAL_BUILD
983 HAVE_SYS_BITYPES_H
984 HAVE_SYS_INTTYPES_H
985 HAVE_STDINT_H
986 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
987 NEXT_STDINT_H
988 HAVE_SYS_TYPES_H
989 HAVE_INTTYPES_H
990 HAVE_WCHAR_H
991 HAVE_UNSIGNED_LONG_LONG_INT
992 HAVE_LONG_LONG_INT
993 HAVE_WINSOCK2_H
994 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
995 NEXT_SYS_TIME_H
996 REPLACE_STRUCT_TIMEVAL
997 REPLACE_GETTIMEOFDAY
998 HAVE_SYS_TIME_H
999 HAVE_STRUCT_TIMEVAL
1000 HAVE_GETTIMEOFDAY
1001 GNULIB_GETTIMEOFDAY
1002 GNULIB_GL_UNISTD_H_GETOPT
1003 GETOPT_H
1004 HAVE_GETOPT_H
1005 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1006 NEXT_GETOPT_H
1007 PRAGMA_COLUMNS
1008 PRAGMA_SYSTEM_HEADER
1009 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1010 INCLUDE_NEXT
1011 GETLOADAVG_LIBS
1012 REPLACE_WCTOMB
1013 REPLACE_UNSETENV
1014 REPLACE_STRTOD
1015 REPLACE_SETENV
1016 REPLACE_REALPATH
1017 REPLACE_REALLOC
1018 REPLACE_RANDOM_R
1019 REPLACE_PUTENV
1020 REPLACE_PTSNAME_R
1021 REPLACE_MKSTEMP
1022 REPLACE_MBTOWC
1023 REPLACE_MALLOC
1024 REPLACE_CANONICALIZE_FILE_NAME
1025 REPLACE_CALLOC
1026 HAVE_DECL_UNSETENV
1027 HAVE_UNLOCKPT
1028 HAVE_SYS_LOADAVG_H
1029 HAVE_STRUCT_RANDOM_DATA
1030 HAVE_STRTOULL
1031 HAVE_STRTOLL
1032 HAVE_STRTOD
1033 HAVE_DECL_SETENV
1034 HAVE_SETENV
1035 HAVE_RPMATCH
1036 HAVE_REALPATH
1037 HAVE_RANDOM_R
1038 HAVE_RANDOM_H
1039 HAVE_RANDOM
1040 HAVE_PTSNAME_R
1041 HAVE_PTSNAME
1042 HAVE_POSIX_OPENPT
1043 HAVE_MKSTEMPS
1044 HAVE_MKSTEMP
1045 HAVE_MKOSTEMPS
1046 HAVE_MKOSTEMP
1047 HAVE_MKDTEMP
1048 HAVE_GRANTPT
1049 HAVE_GETSUBOPT
1050 HAVE_DECL_GETLOADAVG
1051 HAVE_CANONICALIZE_FILE_NAME
1052 HAVE_ATOLL
1053 HAVE__EXIT
1054 GNULIB_WCTOMB
1055 GNULIB_UNSETENV
1056 GNULIB_UNLOCKPT
1057 GNULIB_SYSTEM_POSIX
1058 GNULIB_STRTOULL
1059 GNULIB_STRTOLL
1060 GNULIB_STRTOD
1061 GNULIB_SETENV
1062 GNULIB_RPMATCH
1063 GNULIB_REALPATH
1064 GNULIB_REALLOC_POSIX
1065 GNULIB_RANDOM_R
1066 GNULIB_RANDOM
1067 GNULIB_PUTENV
1068 GNULIB_PTSNAME_R
1069 GNULIB_PTSNAME
1070 GNULIB_POSIX_OPENPT
1071 GNULIB_MKSTEMPS
1072 GNULIB_MKSTEMP
1073 GNULIB_MKOSTEMPS
1074 GNULIB_MKOSTEMP
1075 GNULIB_MKDTEMP
1076 GNULIB_MBTOWC
1077 GNULIB_MALLOC_POSIX
1078 GNULIB_GRANTPT
1079 GNULIB_GETSUBOPT
1080 GNULIB_GETLOADAVG
1081 GNULIB_CANONICALIZE_FILE_NAME
1082 GNULIB_CALLOC_POSIX
1083 GNULIB_ATOLL
1084 GNULIB__EXIT
1085 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1086 UNISTD_H_HAVE_WINSOCK2_H
1087 REPLACE_WRITE
1088 REPLACE_USLEEP
1089 REPLACE_UNLINKAT
1090 REPLACE_UNLINK
1091 REPLACE_TTYNAME_R
1092 REPLACE_SYMLINK
1093 REPLACE_SLEEP
1094 REPLACE_RMDIR
1095 REPLACE_READLINK
1096 REPLACE_READ
1097 REPLACE_PWRITE
1098 REPLACE_PREAD
1099 REPLACE_LSEEK
1100 REPLACE_LINKAT
1101 REPLACE_LINK
1102 REPLACE_LCHOWN
1103 REPLACE_ISATTY
1104 REPLACE_GETPAGESIZE
1105 REPLACE_GETGROUPS
1106 REPLACE_GETLOGIN_R
1107 REPLACE_GETDOMAINNAME
1108 REPLACE_GETCWD
1109 REPLACE_FTRUNCATE
1110 REPLACE_FCHOWNAT
1111 REPLACE_DUP2
1112 REPLACE_DUP
1113 REPLACE_CLOSE
1114 REPLACE_CHOWN
1115 HAVE_SYS_PARAM_H
1116 HAVE_OS_H
1117 HAVE_DECL_TTYNAME_R
1118 HAVE_DECL_SETHOSTNAME
1119 HAVE_DECL_GETUSERSHELL
1120 HAVE_DECL_GETPAGESIZE
1121 HAVE_DECL_GETLOGIN_R
1122 HAVE_DECL_GETDOMAINNAME
1123 HAVE_DECL_FDATASYNC
1124 HAVE_DECL_FCHDIR
1125 HAVE_DECL_ENVIRON
1126 HAVE_USLEEP
1127 HAVE_UNLINKAT
1128 HAVE_SYMLINKAT
1129 HAVE_SYMLINK
1130 HAVE_SLEEP
1131 HAVE_SETHOSTNAME
1132 HAVE_READLINKAT
1133 HAVE_READLINK
1134 HAVE_PWRITE
1135 HAVE_PREAD
1136 HAVE_PIPE2
1137 HAVE_PIPE
1138 HAVE_LINKAT
1139 HAVE_LINK
1140 HAVE_LCHOWN
1141 HAVE_GROUP_MEMBER
1142 HAVE_GETPAGESIZE
1143 HAVE_GETLOGIN
1144 HAVE_GETHOSTNAME
1145 HAVE_GETGROUPS
1146 HAVE_GETDTABLESIZE
1147 HAVE_FTRUNCATE
1148 HAVE_FSYNC
1149 HAVE_FDATASYNC
1150 HAVE_FCHOWNAT
1151 HAVE_FCHDIR
1152 HAVE_FACCESSAT
1153 HAVE_EUIDACCESS
1154 HAVE_DUP3
1155 HAVE_DUP2
1156 HAVE_CHOWN
1157 GNULIB_WRITE
1158 GNULIB_USLEEP
1159 GNULIB_UNLINKAT
1160 GNULIB_UNLINK
1161 GNULIB_UNISTD_H_SIGPIPE
1162 GNULIB_UNISTD_H_NONBLOCKING
1163 GNULIB_TTYNAME_R
1164 GNULIB_SYMLINKAT
1165 GNULIB_SYMLINK
1166 GNULIB_SLEEP
1167 GNULIB_SETHOSTNAME
1168 GNULIB_RMDIR
1169 GNULIB_READLINKAT
1170 GNULIB_READLINK
1171 GNULIB_READ
1172 GNULIB_PWRITE
1173 GNULIB_PREAD
1174 GNULIB_PIPE2
1175 GNULIB_PIPE
1176 GNULIB_LSEEK
1177 GNULIB_LINKAT
1178 GNULIB_LINK
1179 GNULIB_LCHOWN
1180 GNULIB_ISATTY
1181 GNULIB_GROUP_MEMBER
1182 GNULIB_GETUSERSHELL
1183 GNULIB_GETPAGESIZE
1184 GNULIB_GETLOGIN_R
1185 GNULIB_GETLOGIN
1186 GNULIB_GETHOSTNAME
1187 GNULIB_GETGROUPS
1188 GNULIB_GETDTABLESIZE
1189 GNULIB_GETDOMAINNAME
1190 GNULIB_GETCWD
1191 GNULIB_FTRUNCATE
1192 GNULIB_FSYNC
1193 GNULIB_FDATASYNC
1194 GNULIB_FCHOWNAT
1195 GNULIB_FCHDIR
1196 GNULIB_FACCESSAT
1197 GNULIB_EUIDACCESS
1198 GNULIB_ENVIRON
1199 GNULIB_DUP3
1200 GNULIB_DUP2
1201 GNULIB_DUP
1202 GNULIB_CLOSE
1203 GNULIB_CHOWN
1204 GNULIB_CHDIR
1205 LIB_CLOCK_GETTIME
1206 GL_GENERATE_ALLOCA_H_FALSE
1207 GL_GENERATE_ALLOCA_H_TRUE
1208 ALLOCA_H
1209 ALLOCA
1210 GL_COND_LIBTOOL_FALSE
1211 GL_COND_LIBTOOL_TRUE
1212 CRT_DIR
1213 START_FILES
1214 LIB_MATH
1215 LIBS_SYSTEM
1216 C_SWITCH_SYSTEM
1217 UNEXEC_OBJ
1218 C_SWITCH_MACHINE
1219 LD_SWITCH_SYSTEM
1220 CANNOT_DUMP
1221 INFO_OPTS
1222 INFO_EXT
1223 HAVE_MAKEINFO
1224 PAXCTL
1225 GZIP_PROG
1226 INSTALL_INFO
1227 GNULIB_WARN_CFLAGS
1228 WARN_CFLAGS
1229 WERROR_CFLAGS
1230 RANLIB
1231 ARFLAGS
1232 AR
1233 EGREP
1234 GREP
1235 CPP
1236 am__fastdepCC_FALSE
1237 am__fastdepCC_TRUE
1238 CCDEPMODE
1239 AMDEPBACKSLASH
1240 AMDEP_FALSE
1241 AMDEP_TRUE
1242 am__quote
1243 am__include
1244 DEPDIR
1245 OBJEXT
1246 EXEEXT
1247 ac_ct_CC
1248 CPPFLAGS
1249 LDFLAGS
1250 CFLAGS
1251 CC
1252 host_os
1253 host_vendor
1254 host_cpu
1255 host
1256 build_os
1257 build_vendor
1258 build_cpu
1259 build
1260 PROFILING_CFLAGS
1261 GZIP_INFO
1262 cache_file
1263 am__untar
1264 am__tar
1265 AMTAR
1266 am__leading_dot
1267 SET_MAKE
1268 AWK
1269 mkdir_p
1270 MKDIR_P
1271 INSTALL_STRIP_PROGRAM
1272 STRIP
1273 install_sh
1274 MAKEINFO
1275 AUTOHEADER
1276 AUTOMAKE
1277 AUTOCONF
1278 ACLOCAL
1279 VERSION
1280 PACKAGE
1281 CYGPATH_W
1282 am__isrc
1283 INSTALL_DATA
1284 INSTALL_SCRIPT
1285 INSTALL_PROGRAM
1286 target_alias
1287 host_alias
1288 build_alias
1289 LIBS
1290 ECHO_T
1291 ECHO_N
1292 ECHO_C
1293 DEFS
1294 mandir
1295 localedir
1296 libdir
1297 psdir
1298 pdfdir
1299 dvidir
1300 htmldir
1301 infodir
1302 docdir
1303 oldincludedir
1304 includedir
1305 localstatedir
1306 sharedstatedir
1307 sysconfdir
1308 datadir
1309 datarootdir
1310 libexecdir
1311 sbindir
1312 bindir
1313 program_transform_name
1314 prefix
1315 exec_prefix
1316 PACKAGE_URL
1317 PACKAGE_BUGREPORT
1318 PACKAGE_STRING
1319 PACKAGE_VERSION
1320 PACKAGE_TARNAME
1321 PACKAGE_NAME
1322 PATH_SEPARATOR
1323 SHELL'
1324 ac_subst_files='deps_frag
1325 lisp_frag
1326 ns_frag'
1327 ac_user_opts='
1328 enable_option_checking
1329 with_pop
1330 with_kerberos
1331 with_kerberos5
1332 with_hesiod
1333 with_mmdf
1334 with_mail_unlink
1335 with_mailhost
1336 with_sound
1337 with_sync_input
1338 with_x_toolkit
1339 with_wide_int
1340 with_xpm
1341 with_jpeg
1342 with_tiff
1343 with_gif
1344 with_png
1345 with_rsvg
1346 with_xml2
1347 with_imagemagick
1348 with_xft
1349 with_libotf
1350 with_m17n_flt
1351 with_toolkit_scroll_bars
1352 with_xaw3d
1353 with_xim
1354 with_ns
1355 with_gpm
1356 with_dbus
1357 with_gconf
1358 with_gsettings
1359 with_selinux
1360 with_gnutls
1361 with_makeinfo
1362 with_compress_info
1363 with_pkg_config_prog
1364 with_crt_dir
1365 with_gameuser
1366 with_gnustep_conf
1367 enable_ns_self_contained
1368 enable_asserts
1369 enable_locallisppath
1370 enable_checking
1371 enable_check_lisp_object_type
1372 enable_profiling
1373 enable_autodepend
1374 enable_dependency_tracking
1375 enable_largefile
1376 enable_gcc_warnings
1377 with_x
1378 '
1379 ac_precious_vars='build_alias
1380 host_alias
1381 target_alias
1382 CC
1383 CFLAGS
1384 LDFLAGS
1385 LIBS
1386 CPPFLAGS
1387 CPP
1388 XMKMF'
1389
1390
1391 # Initialize some variables set by options.
1392 ac_init_help=
1393 ac_init_version=false
1394 ac_unrecognized_opts=
1395 ac_unrecognized_sep=
1396 # The variables have the same names as the options, with
1397 # dashes changed to underlines.
1398 cache_file=/dev/null
1399 exec_prefix=NONE
1400 no_create=
1401 no_recursion=
1402 prefix=NONE
1403 program_prefix=NONE
1404 program_suffix=NONE
1405 program_transform_name=s,x,x,
1406 silent=
1407 site=
1408 srcdir=
1409 verbose=
1410 x_includes=NONE
1411 x_libraries=NONE
1412
1413 # Installation directory options.
1414 # These are left unexpanded so users can "make install exec_prefix=/foo"
1415 # and all the variables that are supposed to be based on exec_prefix
1416 # by default will actually change.
1417 # Use braces instead of parens because sh, perl, etc. also accept them.
1418 # (The list follows the same order as the GNU Coding Standards.)
1419 bindir='${exec_prefix}/bin'
1420 sbindir='${exec_prefix}/sbin'
1421 libexecdir='${exec_prefix}/libexec'
1422 datarootdir='${prefix}/share'
1423 datadir='${datarootdir}'
1424 sysconfdir='${prefix}/etc'
1425 sharedstatedir='${prefix}/com'
1426 localstatedir='${prefix}/var'
1427 includedir='${prefix}/include'
1428 oldincludedir='/usr/include'
1429 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1430 infodir='${datarootdir}/info'
1431 htmldir='${docdir}'
1432 dvidir='${docdir}'
1433 pdfdir='${docdir}'
1434 psdir='${docdir}'
1435 libdir='${exec_prefix}/lib'
1436 localedir='${datarootdir}/locale'
1437 mandir='${datarootdir}/man'
1438
1439 ac_prev=
1440 ac_dashdash=
1441 for ac_option
1442 do
1443 # If the previous option needs an argument, assign it.
1444 if test -n "$ac_prev"; then
1445 eval $ac_prev=\$ac_option
1446 ac_prev=
1447 continue
1448 fi
1449
1450 case $ac_option in
1451 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1452 *) ac_optarg=yes ;;
1453 esac
1454
1455 # Accept the important Cygnus configure options, so we can diagnose typos.
1456
1457 case $ac_dashdash$ac_option in
1458 --)
1459 ac_dashdash=yes ;;
1460
1461 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1462 ac_prev=bindir ;;
1463 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1464 bindir=$ac_optarg ;;
1465
1466 -build | --build | --buil | --bui | --bu)
1467 ac_prev=build_alias ;;
1468 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1469 build_alias=$ac_optarg ;;
1470
1471 -cache-file | --cache-file | --cache-fil | --cache-fi \
1472 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1473 ac_prev=cache_file ;;
1474 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1475 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1476 cache_file=$ac_optarg ;;
1477
1478 --config-cache | -C)
1479 cache_file=config.cache ;;
1480
1481 -datadir | --datadir | --datadi | --datad)
1482 ac_prev=datadir ;;
1483 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1484 datadir=$ac_optarg ;;
1485
1486 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1487 | --dataroo | --dataro | --datar)
1488 ac_prev=datarootdir ;;
1489 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1490 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1491 datarootdir=$ac_optarg ;;
1492
1493 -disable-* | --disable-*)
1494 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1495 # Reject names that are not valid shell variable names.
1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497 as_fn_error "invalid feature name: $ac_useropt"
1498 ac_useropt_orig=$ac_useropt
1499 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500 case $ac_user_opts in
1501 *"
1502 "enable_$ac_useropt"
1503 "*) ;;
1504 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1505 ac_unrecognized_sep=', ';;
1506 esac
1507 eval enable_$ac_useropt=no ;;
1508
1509 -docdir | --docdir | --docdi | --doc | --do)
1510 ac_prev=docdir ;;
1511 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1512 docdir=$ac_optarg ;;
1513
1514 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1515 ac_prev=dvidir ;;
1516 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1517 dvidir=$ac_optarg ;;
1518
1519 -enable-* | --enable-*)
1520 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523 as_fn_error "invalid feature name: $ac_useropt"
1524 ac_useropt_orig=$ac_useropt
1525 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1527 *"
1528 "enable_$ac_useropt"
1529 "*) ;;
1530 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1531 ac_unrecognized_sep=', ';;
1532 esac
1533 eval enable_$ac_useropt=\$ac_optarg ;;
1534
1535 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1536 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1537 | --exec | --exe | --ex)
1538 ac_prev=exec_prefix ;;
1539 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1540 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1541 | --exec=* | --exe=* | --ex=*)
1542 exec_prefix=$ac_optarg ;;
1543
1544 -gas | --gas | --ga | --g)
1545 # Obsolete; use --with-gas.
1546 with_gas=yes ;;
1547
1548 -help | --help | --hel | --he | -h)
1549 ac_init_help=long ;;
1550 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1551 ac_init_help=recursive ;;
1552 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1553 ac_init_help=short ;;
1554
1555 -host | --host | --hos | --ho)
1556 ac_prev=host_alias ;;
1557 -host=* | --host=* | --hos=* | --ho=*)
1558 host_alias=$ac_optarg ;;
1559
1560 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1561 ac_prev=htmldir ;;
1562 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1563 | --ht=*)
1564 htmldir=$ac_optarg ;;
1565
1566 -includedir | --includedir | --includedi | --included | --include \
1567 | --includ | --inclu | --incl | --inc)
1568 ac_prev=includedir ;;
1569 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1570 | --includ=* | --inclu=* | --incl=* | --inc=*)
1571 includedir=$ac_optarg ;;
1572
1573 -infodir | --infodir | --infodi | --infod | --info | --inf)
1574 ac_prev=infodir ;;
1575 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1576 infodir=$ac_optarg ;;
1577
1578 -libdir | --libdir | --libdi | --libd)
1579 ac_prev=libdir ;;
1580 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1581 libdir=$ac_optarg ;;
1582
1583 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1584 | --libexe | --libex | --libe)
1585 ac_prev=libexecdir ;;
1586 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1587 | --libexe=* | --libex=* | --libe=*)
1588 libexecdir=$ac_optarg ;;
1589
1590 -localedir | --localedir | --localedi | --localed | --locale)
1591 ac_prev=localedir ;;
1592 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1593 localedir=$ac_optarg ;;
1594
1595 -localstatedir | --localstatedir | --localstatedi | --localstated \
1596 | --localstate | --localstat | --localsta | --localst | --locals)
1597 ac_prev=localstatedir ;;
1598 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1599 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1600 localstatedir=$ac_optarg ;;
1601
1602 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1603 ac_prev=mandir ;;
1604 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1605 mandir=$ac_optarg ;;
1606
1607 -nfp | --nfp | --nf)
1608 # Obsolete; use --without-fp.
1609 with_fp=no ;;
1610
1611 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1612 | --no-cr | --no-c | -n)
1613 no_create=yes ;;
1614
1615 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1616 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1617 no_recursion=yes ;;
1618
1619 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1620 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1621 | --oldin | --oldi | --old | --ol | --o)
1622 ac_prev=oldincludedir ;;
1623 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1624 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1625 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1626 oldincludedir=$ac_optarg ;;
1627
1628 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1629 ac_prev=prefix ;;
1630 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1631 prefix=$ac_optarg ;;
1632
1633 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1634 | --program-pre | --program-pr | --program-p)
1635 ac_prev=program_prefix ;;
1636 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1637 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1638 program_prefix=$ac_optarg ;;
1639
1640 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1641 | --program-suf | --program-su | --program-s)
1642 ac_prev=program_suffix ;;
1643 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1644 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1645 program_suffix=$ac_optarg ;;
1646
1647 -program-transform-name | --program-transform-name \
1648 | --program-transform-nam | --program-transform-na \
1649 | --program-transform-n | --program-transform- \
1650 | --program-transform | --program-transfor \
1651 | --program-transfo | --program-transf \
1652 | --program-trans | --program-tran \
1653 | --progr-tra | --program-tr | --program-t)
1654 ac_prev=program_transform_name ;;
1655 -program-transform-name=* | --program-transform-name=* \
1656 | --program-transform-nam=* | --program-transform-na=* \
1657 | --program-transform-n=* | --program-transform-=* \
1658 | --program-transform=* | --program-transfor=* \
1659 | --program-transfo=* | --program-transf=* \
1660 | --program-trans=* | --program-tran=* \
1661 | --progr-tra=* | --program-tr=* | --program-t=*)
1662 program_transform_name=$ac_optarg ;;
1663
1664 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1665 ac_prev=pdfdir ;;
1666 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1667 pdfdir=$ac_optarg ;;
1668
1669 -psdir | --psdir | --psdi | --psd | --ps)
1670 ac_prev=psdir ;;
1671 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1672 psdir=$ac_optarg ;;
1673
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1676 silent=yes ;;
1677
1678 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1679 ac_prev=sbindir ;;
1680 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1681 | --sbi=* | --sb=*)
1682 sbindir=$ac_optarg ;;
1683
1684 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1685 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1686 | --sharedst | --shareds | --shared | --share | --shar \
1687 | --sha | --sh)
1688 ac_prev=sharedstatedir ;;
1689 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1690 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1691 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1692 | --sha=* | --sh=*)
1693 sharedstatedir=$ac_optarg ;;
1694
1695 -site | --site | --sit)
1696 ac_prev=site ;;
1697 -site=* | --site=* | --sit=*)
1698 site=$ac_optarg ;;
1699
1700 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1701 ac_prev=srcdir ;;
1702 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1703 srcdir=$ac_optarg ;;
1704
1705 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1706 | --syscon | --sysco | --sysc | --sys | --sy)
1707 ac_prev=sysconfdir ;;
1708 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1709 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1710 sysconfdir=$ac_optarg ;;
1711
1712 -target | --target | --targe | --targ | --tar | --ta | --t)
1713 ac_prev=target_alias ;;
1714 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1715 target_alias=$ac_optarg ;;
1716
1717 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1718 verbose=yes ;;
1719
1720 -version | --version | --versio | --versi | --vers | -V)
1721 ac_init_version=: ;;
1722
1723 -with-* | --with-*)
1724 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1725 # Reject names that are not valid shell variable names.
1726 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1727 as_fn_error "invalid package name: $ac_useropt"
1728 ac_useropt_orig=$ac_useropt
1729 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1730 case $ac_user_opts in
1731 *"
1732 "with_$ac_useropt"
1733 "*) ;;
1734 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1735 ac_unrecognized_sep=', ';;
1736 esac
1737 eval with_$ac_useropt=\$ac_optarg ;;
1738
1739 -without-* | --without-*)
1740 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1741 # Reject names that are not valid shell variable names.
1742 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1743 as_fn_error "invalid package name: $ac_useropt"
1744 ac_useropt_orig=$ac_useropt
1745 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1746 case $ac_user_opts in
1747 *"
1748 "with_$ac_useropt"
1749 "*) ;;
1750 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1751 ac_unrecognized_sep=', ';;
1752 esac
1753 eval with_$ac_useropt=no ;;
1754
1755 --x)
1756 # Obsolete; use --with-x.
1757 with_x=yes ;;
1758
1759 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1760 | --x-incl | --x-inc | --x-in | --x-i)
1761 ac_prev=x_includes ;;
1762 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1763 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1764 x_includes=$ac_optarg ;;
1765
1766 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1767 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1768 ac_prev=x_libraries ;;
1769 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1770 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1771 x_libraries=$ac_optarg ;;
1772
1773 -*) as_fn_error "unrecognized option: \`$ac_option'
1774 Try \`$0 --help' for more information."
1775 ;;
1776
1777 *=*)
1778 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1779 # Reject names that are not valid shell variable names.
1780 case $ac_envvar in #(
1781 '' | [0-9]* | *[!_$as_cr_alnum]* )
1782 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1783 esac
1784 eval $ac_envvar=\$ac_optarg
1785 export $ac_envvar ;;
1786
1787 *)
1788 # FIXME: should be removed in autoconf 3.0.
1789 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1791 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1793 ;;
1794
1795 esac
1796 done
1797
1798 if test -n "$ac_prev"; then
1799 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1800 as_fn_error "missing argument to $ac_option"
1801 fi
1802
1803 if test -n "$ac_unrecognized_opts"; then
1804 case $enable_option_checking in
1805 no) ;;
1806 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1807 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1808 esac
1809 fi
1810
1811 # Check all directory arguments for consistency.
1812 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1813 datadir sysconfdir sharedstatedir localstatedir includedir \
1814 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1815 libdir localedir mandir
1816 do
1817 eval ac_val=\$$ac_var
1818 # Remove trailing slashes.
1819 case $ac_val in
1820 */ )
1821 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1822 eval $ac_var=\$ac_val;;
1823 esac
1824 # Be sure to have absolute directory names.
1825 case $ac_val in
1826 [\\/$]* | ?:[\\/]* ) continue;;
1827 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1828 esac
1829 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1830 done
1831
1832 # There might be people who depend on the old broken behavior: `$host'
1833 # used to hold the argument of --host etc.
1834 # FIXME: To remove some day.
1835 build=$build_alias
1836 host=$host_alias
1837 target=$target_alias
1838
1839 # FIXME: To remove some day.
1840 if test "x$host_alias" != x; then
1841 if test "x$build_alias" = x; then
1842 cross_compiling=maybe
1843 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1844 If a cross compiler is detected then cross compile mode will be used." >&2
1845 elif test "x$build_alias" != "x$host_alias"; then
1846 cross_compiling=yes
1847 fi
1848 fi
1849
1850 ac_tool_prefix=
1851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1852
1853 test "$silent" = yes && exec 6>/dev/null
1854
1855
1856 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1857 ac_ls_di=`ls -di .` &&
1858 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1859 as_fn_error "working directory cannot be determined"
1860 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1861 as_fn_error "pwd does not report name of working directory"
1862
1863
1864 # Find the source files, if location was not specified.
1865 if test -z "$srcdir"; then
1866 ac_srcdir_defaulted=yes
1867 # Try the directory containing this script, then the parent directory.
1868 ac_confdir=`$as_dirname -- "$as_myself" ||
1869 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1870 X"$as_myself" : 'X\(//\)[^/]' \| \
1871 X"$as_myself" : 'X\(//\)$' \| \
1872 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1873 $as_echo X"$as_myself" |
1874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1875 s//\1/
1876 q
1877 }
1878 /^X\(\/\/\)[^/].*/{
1879 s//\1/
1880 q
1881 }
1882 /^X\(\/\/\)$/{
1883 s//\1/
1884 q
1885 }
1886 /^X\(\/\).*/{
1887 s//\1/
1888 q
1889 }
1890 s/.*/./; q'`
1891 srcdir=$ac_confdir
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1893 srcdir=..
1894 fi
1895 else
1896 ac_srcdir_defaulted=no
1897 fi
1898 if test ! -r "$srcdir/$ac_unique_file"; then
1899 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1900 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1901 fi
1902 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1903 ac_abs_confdir=`(
1904 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1905 pwd)`
1906 # When building in place, set srcdir=.
1907 if test "$ac_abs_confdir" = "$ac_pwd"; then
1908 srcdir=.
1909 fi
1910 # Remove unnecessary trailing slashes from srcdir.
1911 # Double slashes in file names in object file debugging info
1912 # mess up M-x gdb in Emacs.
1913 case $srcdir in
1914 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1915 esac
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1918 eval ac_env_${ac_var}_value=\$${ac_var}
1919 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1921 done
1922
1923 #
1924 # Report the --help message.
1925 #
1926 if test "$ac_init_help" = "long"; then
1927 # Omit some internal or obsolete options to make the list less imposing.
1928 # This message is too long to be a string in the A/UX 3.1 sh.
1929 cat <<_ACEOF
1930 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1931
1932 Usage: $0 [OPTION]... [VAR=VALUE]...
1933
1934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1935 VAR=VALUE. See below for descriptions of some of the useful variables.
1936
1937 Defaults for the options are specified in brackets.
1938
1939 Configuration:
1940 -h, --help display this help and exit
1941 --help=short display options specific to this package
1942 --help=recursive display the short help of all the included packages
1943 -V, --version display version information and exit
1944 -q, --quiet, --silent do not print \`checking...' messages
1945 --cache-file=FILE cache test results in FILE [disabled]
1946 -C, --config-cache alias for \`--cache-file=config.cache'
1947 -n, --no-create do not create output files
1948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1949
1950 Installation directories:
1951 --prefix=PREFIX install architecture-independent files in PREFIX
1952 [$ac_default_prefix]
1953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1954 [PREFIX]
1955
1956 By default, \`make install' will install all the files in
1957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1959 for instance \`--prefix=\$HOME'.
1960
1961 For better control, use the options below.
1962
1963 Fine tuning of the installation directories:
1964 --bindir=DIR user executables [EPREFIX/bin]
1965 --sbindir=DIR system admin executables [EPREFIX/sbin]
1966 --libexecdir=DIR program executables [EPREFIX/libexec]
1967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1970 --libdir=DIR object code libraries [EPREFIX/lib]
1971 --includedir=DIR C header files [PREFIX/include]
1972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1973 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1974 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1975 --infodir=DIR info documentation [DATAROOTDIR/info]
1976 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1977 --mandir=DIR man documentation [DATAROOTDIR/man]
1978 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1979 --htmldir=DIR html documentation [DOCDIR]
1980 --dvidir=DIR dvi documentation [DOCDIR]
1981 --pdfdir=DIR pdf documentation [DOCDIR]
1982 --psdir=DIR ps documentation [DOCDIR]
1983 _ACEOF
1984
1985 cat <<\_ACEOF
1986
1987 Program names:
1988 --program-prefix=PREFIX prepend PREFIX to installed program names
1989 --program-suffix=SUFFIX append SUFFIX to installed program names
1990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1991
1992 X features:
1993 --x-includes=DIR X include files are in DIR
1994 --x-libraries=DIR X library files are in DIR
1995
1996 System types:
1997 --build=BUILD configure for building on BUILD [guessed]
1998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1999 _ACEOF
2000 fi
2001
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive ) echo "Configuration of emacs 24.1.50:";;
2005 esac
2006 cat <<\_ACEOF
2007
2008 Optional Features:
2009 --disable-option-checking ignore unrecognized --enable/--with options
2010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2012 --disable-ns-self-contained
2013 disable self contained build under NeXTstep
2014 --enable-asserts compile code with asserts enabled
2015 --enable-locallisppath=PATH
2016 directories Emacs should search for lisp files
2017 specific to this site
2018 --enable-checking[=LIST]
2019 enable expensive run-time checks. With LIST, enable
2020 only specific categories of checks. Categories are:
2021 all,yes,no. Flags are: stringbytes, stringoverrun,
2022 stringfreelist, xmallocoverrun, conslist, glyphs
2023 --enable-check-lisp-object-type
2024 enable compile time checks for the Lisp_Object data
2025 type. This is useful for development for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled if GNU Make and
2031 Gcc is found
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2036
2037 Optional Packages:
2038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2040 --without-pop don't support POP mail retrieval with movemail
2041 --with-kerberos support Kerberos-authenticated POP
2042 --with-kerberos5 support Kerberos version 5 authenticated POP
2043 --with-hesiod support Hesiod to get the POP server host
2044 --with-mmdf support MMDF mailboxes
2045 --with-mail-unlink unlink, rather than empty, mail spool after reading
2046 --with-mailhost=HOSTNAME
2047 string giving default POP mail host
2048 --without-sound don't compile with sound support
2049 --without-sync-input process async input synchronously
2050 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2051 lucid or athena, motif, no)
2052 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2053 --without-xpm don't compile with XPM image support
2054 --without-jpeg don't compile with JPEG image support
2055 --without-tiff don't compile with TIFF image support
2056 --without-gif don't compile with GIF image support
2057 --without-png don't compile with PNG image support
2058 --without-rsvg don't compile with SVG image support
2059 --without-xml2 don't compile with XML parsing support
2060 --without-imagemagick don't compile with ImageMagick image support
2061 --without-xft don't use XFT for anti aliased fonts
2062 --without-libotf don't use libotf for OpenType font support
2063 --without-m17n-flt don't use m17n-flt for text shaping
2064 --without-toolkit-scroll-bars
2065 don't use Motif or Xaw3d scroll bars
2066 --without-xaw3d don't use Xaw3d
2067 --without-xim don't use X11 XIM
2068 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2069 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2070 console
2071 --without-dbus don't compile with D-Bus support
2072 --without-gconf don't compile with GConf support
2073 --without-gsettings don't compile with GSettings support
2074 --without-selinux don't compile with SELinux support
2075 --without-gnutls don't use -lgnutls for SSL/TLS support
2076 --without-makeinfo don't require makeinfo for building manuals
2077 --without-compress-info don't compress the installed Info pages
2078 --with-pkg-config-prog=PATH
2079 path to pkg-config for finding GTK and librsvg
2080 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2081 /usr/lib, or /usr/lib64 on some platforms.
2082 --with-gameuser=USER user for shared game score files
2083 --with-gnustep-conf=PATH
2084 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2085 or /etc/GNUstep/GNUstep.conf
2086 --with-x use the X Window System
2087
2088 Some influential environment variables:
2089 CC C compiler command
2090 CFLAGS C compiler flags
2091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2092 nonstandard directory <lib dir>
2093 LIBS libraries to pass to the linker, e.g. -l<library>
2094 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2095 you have headers in a nonstandard directory <include dir>
2096 CPP C preprocessor
2097 XMKMF Path to xmkmf, Makefile generator for X Window System
2098
2099 Use these variables to override the choices made by `configure' or to help
2100 it to find libraries and programs with nonstandard names/locations.
2101
2102 Report bugs to the package provider.
2103 _ACEOF
2104 ac_status=$?
2105 fi
2106
2107 if test "$ac_init_help" = "recursive"; then
2108 # If there are subdirs, report their specific --help.
2109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2110 test -d "$ac_dir" ||
2111 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2112 continue
2113 ac_builddir=.
2114
2115 case "$ac_dir" in
2116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2117 *)
2118 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2119 # A ".." for each directory in $ac_dir_suffix.
2120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2121 case $ac_top_builddir_sub in
2122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2124 esac ;;
2125 esac
2126 ac_abs_top_builddir=$ac_pwd
2127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2128 # for backward compatibility:
2129 ac_top_builddir=$ac_top_build_prefix
2130
2131 case $srcdir in
2132 .) # We are building in place.
2133 ac_srcdir=.
2134 ac_top_srcdir=$ac_top_builddir_sub
2135 ac_abs_top_srcdir=$ac_pwd ;;
2136 [\\/]* | ?:[\\/]* ) # Absolute name.
2137 ac_srcdir=$srcdir$ac_dir_suffix;
2138 ac_top_srcdir=$srcdir
2139 ac_abs_top_srcdir=$srcdir ;;
2140 *) # Relative name.
2141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2142 ac_top_srcdir=$ac_top_build_prefix$srcdir
2143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2144 esac
2145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2146
2147 cd "$ac_dir" || { ac_status=$?; continue; }
2148 # Check for guested configure.
2149 if test -f "$ac_srcdir/configure.gnu"; then
2150 echo &&
2151 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2152 elif test -f "$ac_srcdir/configure"; then
2153 echo &&
2154 $SHELL "$ac_srcdir/configure" --help=recursive
2155 else
2156 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2157 fi || ac_status=$?
2158 cd "$ac_pwd" || { ac_status=$?; break; }
2159 done
2160 fi
2161
2162 test -n "$ac_init_help" && exit $ac_status
2163 if $ac_init_version; then
2164 cat <<\_ACEOF
2165 emacs configure 24.1.50
2166 generated by GNU Autoconf 2.65
2167
2168 Copyright (C) 2009 Free Software Foundation, Inc.
2169 This configure script is free software; the Free Software Foundation
2170 gives unlimited permission to copy, distribute and modify it.
2171 _ACEOF
2172 exit
2173 fi
2174
2175 ## ------------------------ ##
2176 ## Autoconf initialization. ##
2177 ## ------------------------ ##
2178
2179 # ac_fn_c_try_compile LINENO
2180 # --------------------------
2181 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_c_try_compile ()
2183 {
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext
2186 if { { ac_try="$ac_compile"
2187 case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_compile") 2>conftest.err
2194 ac_status=$?
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2199 fi
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_c_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest.$ac_objext; then :
2205 ac_retval=0
2206 else
2207 $as_echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 ac_retval=1
2211 fi
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 as_fn_set_status $ac_retval
2214
2215 } # ac_fn_c_try_compile
2216
2217 # ac_fn_c_try_cpp LINENO
2218 # ----------------------
2219 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2220 ac_fn_c_try_cpp ()
2221 {
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { { ac_try="$ac_cpp conftest.$ac_ext"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2236 fi
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } >/dev/null && {
2239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 }; then :
2242 ac_retval=0
2243 else
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 ac_retval=1
2248 fi
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 as_fn_set_status $ac_retval
2251
2252 } # ac_fn_c_try_cpp
2253
2254 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2255 # -------------------------------------------------------
2256 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2257 # the include files in INCLUDES and setting the cache variable VAR
2258 # accordingly.
2259 ac_fn_c_check_header_mongrel ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 $as_echo_n "(cached) " >&6
2267 fi
2268 eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 else
2272 # Is the header compilable?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2274 $as_echo_n "checking $2 usability... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 $4
2278 #include <$2>
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_header_compiler=yes
2282 else
2283 ac_header_compiler=no
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2287 $as_echo "$ac_header_compiler" >&6; }
2288
2289 # Is the header present?
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2291 $as_echo_n "checking $2 presence... " >&6; }
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 #include <$2>
2295 _ACEOF
2296 if ac_fn_c_try_cpp "$LINENO"; then :
2297 ac_header_preproc=yes
2298 else
2299 ac_header_preproc=no
2300 fi
2301 rm -f conftest.err conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2303 $as_echo "$ac_header_preproc" >&6; }
2304
2305 # So? What about this header?
2306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2307 yes:no: )
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2309 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2312 ;;
2313 no:yes:* )
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2315 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2317 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2319 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2321 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324 ;;
2325 esac
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 eval "$3=\$ac_header_compiler"
2332 fi
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 fi
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338
2339 } # ac_fn_c_check_header_mongrel
2340
2341 # ac_fn_c_try_run LINENO
2342 # ----------------------
2343 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2344 # that executables *can* be run.
2345 ac_fn_c_try_run ()
2346 {
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 if { { ac_try="$ac_link"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2359 { { case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_try") 2>&5
2366 ac_status=$?
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; }; }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: program exited with status $ac_status" >&5
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 ac_retval=$ac_status
2376 fi
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 as_fn_set_status $ac_retval
2380
2381 } # ac_fn_c_try_run
2382
2383 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2384 # -------------------------------------------------------
2385 # Tests whether HEADER exists and can be compiled using the include files in
2386 # INCLUDES, setting the cache variable VAR accordingly.
2387 ac_fn_c_check_header_compile ()
2388 {
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 #include <$2>
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 eval "$3=yes"
2402 else
2403 eval "$3=no"
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 eval ac_res=\$$3
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411
2412 } # ac_fn_c_check_header_compile
2413
2414 # ac_fn_c_try_link LINENO
2415 # -----------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2417 ac_fn_c_try_link ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_c_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444 else
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449 fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 as_fn_set_status $ac_retval
2457
2458 } # ac_fn_c_try_link
2459
2460 # ac_fn_c_check_decl LINENO SYMBOL VAR
2461 # ------------------------------------
2462 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2463 ac_fn_c_check_decl ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2467 $as_echo_n "checking whether $2 is declared... " >&6; }
2468 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2473 $4
2474 int
2475 main ()
2476 {
2477 #ifndef $2
2478 (void) $2;
2479 #endif
2480
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 eval "$3=yes"
2487 else
2488 eval "$3=no"
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496
2497 } # ac_fn_c_check_decl
2498
2499 # ac_fn_c_check_func LINENO FUNC VAR
2500 # ----------------------------------
2501 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2502 ac_fn_c_check_func ()
2503 {
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2514 #define $2 innocuous_$2
2515
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $2 (); below.
2518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2519 <limits.h> exists even on freestanding compilers. */
2520
2521 #ifdef __STDC__
2522 # include <limits.h>
2523 #else
2524 # include <assert.h>
2525 #endif
2526
2527 #undef $2
2528
2529 /* Override any GCC internal prototype to avoid an error.
2530 Use char because int might match the return type of a GCC
2531 builtin and then its argument prototype would still apply. */
2532 #ifdef __cplusplus
2533 extern "C"
2534 #endif
2535 char $2 ();
2536 /* The GNU C library defines this for functions which it implements
2537 to always fail with ENOSYS. Some functions are actually named
2538 something starting with __ and the normal name is an alias. */
2539 #if defined __stub_$2 || defined __stub___$2
2540 choke me
2541 #endif
2542
2543 int
2544 main ()
2545 {
2546 return $2 ();
2547 ;
2548 return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_c_try_link "$LINENO"; then :
2552 eval "$3=yes"
2553 else
2554 eval "$3=no"
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext \
2557 conftest$ac_exeext conftest.$ac_ext
2558 fi
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563
2564 } # ac_fn_c_check_func
2565
2566 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2567 # ----------------------------------------------------
2568 # Tries to find if the field MEMBER exists in type AGGR, after including
2569 # INCLUDES, setting cache variable VAR accordingly.
2570 ac_fn_c_check_member ()
2571 {
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2574 $as_echo_n "checking for $2.$3... " >&6; }
2575 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 $5
2581 int
2582 main ()
2583 {
2584 static $2 ac_aggr;
2585 if (ac_aggr.$3)
2586 return 0;
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592 eval "$4=yes"
2593 else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 $5
2597 int
2598 main ()
2599 {
2600 static $2 ac_aggr;
2601 if (sizeof ac_aggr.$3)
2602 return 0;
2603 ;
2604 return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$4=yes"
2609 else
2610 eval "$4=no"
2611 fi
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616 eval ac_res=\$$4
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2620
2621 } # ac_fn_c_check_member
2622
2623 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2624 # --------------------------------------------
2625 # Tries to find the compile-time value of EXPR in a program that includes
2626 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2627 # computed
2628 ac_fn_c_compute_int ()
2629 {
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 if test "$cross_compiling" = yes; then
2632 # Depending upon the size, compute the lo and hi bounds.
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2635 $4
2636 int
2637 main ()
2638 {
2639 static int test_array [1 - 2 * !(($2) >= 0)];
2640 test_array [0] = 0
2641
2642 ;
2643 return 0;
2644 }
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=0 ac_mid=0
2648 while :; do
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2651 $4
2652 int
2653 main ()
2654 {
2655 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2656 test_array [0] = 0
2657
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 ac_hi=$ac_mid; break
2664 else
2665 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2666 if test $ac_lo -le $ac_mid; then
2667 ac_lo= ac_hi=
2668 break
2669 fi
2670 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2677 $4
2678 int
2679 main ()
2680 {
2681 static int test_array [1 - 2 * !(($2) < 0)];
2682 test_array [0] = 0
2683
2684 ;
2685 return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 ac_hi=-1 ac_mid=-1
2690 while :; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2693 $4
2694 int
2695 main ()
2696 {
2697 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2698 test_array [0] = 0
2699
2700 ;
2701 return 0;
2702 }
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_lo=$ac_mid; break
2706 else
2707 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2708 if test $ac_mid -le $ac_hi; then
2709 ac_lo= ac_hi=
2710 break
2711 fi
2712 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 done
2716 else
2717 ac_lo= ac_hi=
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 fi
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 # Binary search between lo and hi bounds.
2723 while test "x$ac_lo" != "x$ac_hi"; do
2724 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2727 $4
2728 int
2729 main ()
2730 {
2731 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2732 test_array [0] = 0
2733
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739 ac_hi=$ac_mid
2740 else
2741 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2742 fi
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 done
2745 case $ac_lo in #((
2746 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2747 '') ac_retval=1 ;;
2748 esac
2749 else
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2752 $4
2753 static long int longval () { return $2; }
2754 static unsigned long int ulongval () { return $2; }
2755 #include <stdio.h>
2756 #include <stdlib.h>
2757 int
2758 main ()
2759 {
2760
2761 FILE *f = fopen ("conftest.val", "w");
2762 if (! f)
2763 return 1;
2764 if (($2) < 0)
2765 {
2766 long int i = longval ();
2767 if (i != ($2))
2768 return 1;
2769 fprintf (f, "%ld", i);
2770 }
2771 else
2772 {
2773 unsigned long int i = ulongval ();
2774 if (i != ($2))
2775 return 1;
2776 fprintf (f, "%lu", i);
2777 }
2778 /* Do not output a trailing newline, as this causes \r\n confusion
2779 on some platforms. */
2780 return ferror (f) || fclose (f) != 0;
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_c_try_run "$LINENO"; then :
2787 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2788 else
2789 ac_retval=1
2790 fi
2791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2792 conftest.$ac_objext conftest.beam conftest.$ac_ext
2793 rm -f conftest.val
2794
2795 fi
2796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2797 as_fn_set_status $ac_retval
2798
2799 } # ac_fn_c_compute_int
2800
2801 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2802 # -------------------------------------------
2803 # Tests whether TYPE exists after having included INCLUDES, setting cache
2804 # variable VAR accordingly.
2805 ac_fn_c_check_type ()
2806 {
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2809 $as_echo_n "checking for $2... " >&6; }
2810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 eval "$3=no"
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2816 $4
2817 int
2818 main ()
2819 {
2820 if (sizeof ($2))
2821 return 0;
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2829 $4
2830 int
2831 main ()
2832 {
2833 if (sizeof (($2)))
2834 return 0;
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2840
2841 else
2842 eval "$3=yes"
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 fi
2848 eval ac_res=\$$3
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2850 $as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2852
2853 } # ac_fn_c_check_type
2854
2855 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2856 # ----------------------------------------------
2857 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2858 ac_fn_c_check_header_preproc ()
2859 {
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2868 #include <$2>
2869 _ACEOF
2870 if ac_fn_c_try_cpp "$LINENO"; then :
2871 eval "$3=yes"
2872 else
2873 eval "$3=no"
2874 fi
2875 rm -f conftest.err conftest.$ac_ext
2876 fi
2877 eval ac_res=\$$3
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879 $as_echo "$ac_res" >&6; }
2880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2881
2882 } # ac_fn_c_check_header_preproc
2883 cat >config.log <<_ACEOF
2884 This file contains any messages produced by compilers while
2885 running configure, to aid debugging if configure makes a mistake.
2886
2887 It was created by emacs $as_me 24.1.50, which was
2888 generated by GNU Autoconf 2.65. Invocation command line was
2889
2890 $ $0 $@
2891
2892 _ACEOF
2893 exec 5>>config.log
2894 {
2895 cat <<_ASUNAME
2896 ## --------- ##
2897 ## Platform. ##
2898 ## --------- ##
2899
2900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2905
2906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2908
2909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2916
2917 _ASUNAME
2918
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 $as_echo "PATH: $as_dir"
2925 done
2926 IFS=$as_save_IFS
2927
2928 } >&5
2929
2930 cat >&5 <<_ACEOF
2931
2932
2933 ## ----------- ##
2934 ## Core tests. ##
2935 ## ----------- ##
2936
2937 _ACEOF
2938
2939
2940 # Keep a trace of the command line.
2941 # Strip out --no-create and --no-recursion so they do not pile up.
2942 # Strip out --silent because we don't want to record it for future runs.
2943 # Also quote any args containing shell meta-characters.
2944 # Make two passes to allow for proper duplicate-argument suppression.
2945 ac_configure_args=
2946 ac_configure_args0=
2947 ac_configure_args1=
2948 ac_must_keep_next=false
2949 for ac_pass in 1 2
2950 do
2951 for ac_arg
2952 do
2953 case $ac_arg in
2954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2956 | -silent | --silent | --silen | --sile | --sil)
2957 continue ;;
2958 *\'*)
2959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2960 esac
2961 case $ac_pass in
2962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2963 2)
2964 as_fn_append ac_configure_args1 " '$ac_arg'"
2965 if test $ac_must_keep_next = true; then
2966 ac_must_keep_next=false # Got value, back to normal.
2967 else
2968 case $ac_arg in
2969 *=* | --config-cache | -C | -disable-* | --disable-* \
2970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2972 | -with-* | --with-* | -without-* | --without-* | --x)
2973 case "$ac_configure_args0 " in
2974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2975 esac
2976 ;;
2977 -* ) ac_must_keep_next=true ;;
2978 esac
2979 fi
2980 as_fn_append ac_configure_args " '$ac_arg'"
2981 ;;
2982 esac
2983 done
2984 done
2985 { ac_configure_args0=; unset ac_configure_args0;}
2986 { ac_configure_args1=; unset ac_configure_args1;}
2987
2988 # When interrupted or exit'd, cleanup temporary files, and complete
2989 # config.log. We remove comments because anyway the quotes in there
2990 # would cause problems or look ugly.
2991 # WARNING: Use '\'' to represent an apostrophe within the trap.
2992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2993 trap 'exit_status=$?
2994 # Save into config.log some information that might help in debugging.
2995 {
2996 echo
2997
2998 cat <<\_ASBOX
2999 ## ---------------- ##
3000 ## Cache variables. ##
3001 ## ---------------- ##
3002 _ASBOX
3003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005 (
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017 *) { eval $ac_var=; unset $ac_var;} ;;
3018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033 )
3034 echo
3035
3036 cat <<\_ASBOX
3037 ## ----------------- ##
3038 ## Output variables. ##
3039 ## ----------------- ##
3040 _ASBOX
3041 echo
3042 for ac_var in $ac_subst_vars
3043 do
3044 eval ac_val=\$$ac_var
3045 case $ac_val in
3046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3047 esac
3048 $as_echo "$ac_var='\''$ac_val'\''"
3049 done | sort
3050 echo
3051
3052 if test -n "$ac_subst_files"; then
3053 cat <<\_ASBOX
3054 ## ------------------- ##
3055 ## File substitutions. ##
3056 ## ------------------- ##
3057 _ASBOX
3058 echo
3059 for ac_var in $ac_subst_files
3060 do
3061 eval ac_val=\$$ac_var
3062 case $ac_val in
3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3064 esac
3065 $as_echo "$ac_var='\''$ac_val'\''"
3066 done | sort
3067 echo
3068 fi
3069
3070 if test -s confdefs.h; then
3071 cat <<\_ASBOX
3072 ## ----------- ##
3073 ## confdefs.h. ##
3074 ## ----------- ##
3075 _ASBOX
3076 echo
3077 cat confdefs.h
3078 echo
3079 fi
3080 test "$ac_signal" != 0 &&
3081 $as_echo "$as_me: caught signal $ac_signal"
3082 $as_echo "$as_me: exit $exit_status"
3083 } >&5
3084 rm -f core *.core core.conftest.* &&
3085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3086 exit $exit_status
3087 ' 0
3088 for ac_signal in 1 2 13 15; do
3089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3090 done
3091 ac_signal=0
3092
3093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3094 rm -f -r conftest* confdefs.h
3095
3096 $as_echo "/* confdefs.h */" > confdefs.h
3097
3098 # Predefined preprocessor variables.
3099
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE_NAME "$PACKAGE_NAME"
3102 _ACEOF
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3106 _ACEOF
3107
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3110 _ACEOF
3111
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_STRING "$PACKAGE_STRING"
3114 _ACEOF
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3118 _ACEOF
3119
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_URL "$PACKAGE_URL"
3122 _ACEOF
3123
3124
3125 # Let the site file select an alternate cache file if it wants to.
3126 # Prefer an explicitly selected file to automatically selected ones.
3127 ac_site_file1=NONE
3128 ac_site_file2=NONE
3129 if test -n "$CONFIG_SITE"; then
3130 ac_site_file1=$CONFIG_SITE
3131 elif test "x$prefix" != xNONE; then
3132 ac_site_file1=$prefix/share/config.site
3133 ac_site_file2=$prefix/etc/config.site
3134 else
3135 ac_site_file1=$ac_default_prefix/share/config.site
3136 ac_site_file2=$ac_default_prefix/etc/config.site
3137 fi
3138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3139 do
3140 test "x$ac_site_file" = xNONE && continue
3141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144 sed 's/^/| /' "$ac_site_file" >&5
3145 . "$ac_site_file"
3146 fi
3147 done
3148
3149 if test -r "$cache_file"; then
3150 # Some versions of bash will fail to source /dev/null (special files
3151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3154 $as_echo "$as_me: loading cache $cache_file" >&6;}
3155 case $cache_file in
3156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3157 *) . "./$cache_file";;
3158 esac
3159 fi
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3162 $as_echo "$as_me: creating cache $cache_file" >&6;}
3163 >$cache_file
3164 fi
3165
3166 as_fn_append ac_func_list " readlinkat"
3167 gl_getopt_required=GNU
3168 as_fn_append ac_header_list " getopt.h"
3169 as_fn_append ac_func_list " gettimeofday"
3170 as_fn_append ac_func_list " nanotime"
3171 as_fn_append ac_header_list " sys/time.h"
3172 as_fn_append ac_header_list " sys/socket.h"
3173 as_fn_append ac_header_list " wchar.h"
3174 as_fn_append ac_header_list " stdint.h"
3175 as_fn_append ac_header_list " inttypes.h"
3176 as_fn_append ac_func_list " lstat"
3177 as_fn_append ac_header_list " unistd.h"
3178 as_fn_append ac_func_list " alarm"
3179 as_fn_append ac_header_list " sys/select.h"
3180 as_fn_append ac_func_list " pselect"
3181 as_fn_append ac_func_list " pthread_sigmask"
3182 as_fn_append ac_func_list " readlink"
3183 as_fn_append ac_func_list " tzset"
3184 as_fn_append ac_func_list " strtoimax"
3185 as_fn_append ac_func_list " strtoumax"
3186 as_fn_append ac_func_list " symlink"
3187 as_fn_append ac_header_list " sys/stat.h"
3188 as_fn_append ac_func_list " localtime_r"
3189 as_fn_append ac_header_list " utime.h"
3190 as_fn_append ac_func_list " futimes"
3191 as_fn_append ac_func_list " futimesat"
3192 as_fn_append ac_func_list " futimens"
3193 as_fn_append ac_func_list " utimensat"
3194 as_fn_append ac_func_list " lutimes"
3195 as_fn_append ac_header_list " sys/param.h"
3196 as_fn_append ac_header_list " linux/version.h"
3197 as_fn_append ac_header_list " sys/systeminfo.h"
3198 as_fn_append ac_header_list " stdio_ext.h"
3199 as_fn_append ac_header_list " fcntl.h"
3200 as_fn_append ac_header_list " coff.h"
3201 as_fn_append ac_header_list " pty.h"
3202 as_fn_append ac_header_list " sys/vlimit.h"
3203 as_fn_append ac_header_list " sys/resource.h"
3204 as_fn_append ac_header_list " sys/utsname.h"
3205 as_fn_append ac_header_list " pwd.h"
3206 as_fn_append ac_header_list " utmp.h"
3207 as_fn_append ac_header_list " dirent.h"
3208 as_fn_append ac_header_list " util.h"
3209 as_fn_append ac_header_list " stdlib.h"
3210 as_fn_append ac_header_list " pthread.h"
3211 as_fn_append ac_header_list " malloc/malloc.h"
3212 as_fn_append ac_header_list " maillock.h"
3213 as_fn_append ac_header_list " sys/un.h"
3214 # Check that the precious variables saved in the cache have kept the same
3215 # value.
3216 ac_cache_corrupted=false
3217 for ac_var in $ac_precious_vars; do
3218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3219 eval ac_new_set=\$ac_env_${ac_var}_set
3220 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3221 eval ac_new_val=\$ac_env_${ac_var}_value
3222 case $ac_old_set,$ac_new_set in
3223 set,)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3226 ac_cache_corrupted=: ;;
3227 ,set)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3230 ac_cache_corrupted=: ;;
3231 ,);;
3232 *)
3233 if test "x$ac_old_val" != "x$ac_new_val"; then
3234 # differences in whitespace do not lead to failure.
3235 ac_old_val_w=`echo x $ac_old_val`
3236 ac_new_val_w=`echo x $ac_new_val`
3237 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3240 ac_cache_corrupted=:
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3244 eval $ac_var=\$ac_old_val
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3247 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3249 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3250 fi;;
3251 esac
3252 # Pass precious variables to config.status.
3253 if test "$ac_new_set" = set; then
3254 case $ac_new_val in
3255 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3256 *) ac_arg=$ac_var=$ac_new_val ;;
3257 esac
3258 case " $ac_configure_args " in
3259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3260 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3261 esac
3262 fi
3263 done
3264 if $ac_cache_corrupted; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3269 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3270 fi
3271 ## -------------------- ##
3272 ## Main body of script. ##
3273 ## -------------------- ##
3274
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281
3282 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3283
3284
3285 ac_aux_dir=
3286 for ac_dir in build-aux "$srcdir"/build-aux; do
3287 for ac_t in install-sh install.sh shtool; do
3288 if test -f "$ac_dir/$ac_t"; then
3289 ac_aux_dir=$ac_dir
3290 ac_install_sh="$ac_aux_dir/$ac_t -c"
3291 break 2
3292 fi
3293 done
3294 done
3295 if test -z "$ac_aux_dir"; then
3296 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3297 fi
3298
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3304 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3305 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3306
3307
3308 am__api_version='1.11'
3309
3310 # Find a good install program. We prefer a C program (faster),
3311 # so one script is as good as another. But avoid the broken or
3312 # incompatible versions:
3313 # SysV /etc/install, /usr/sbin/install
3314 # SunOS /usr/etc/install
3315 # IRIX /sbin/install
3316 # AIX /bin/install
3317 # AmigaOS /C/install, which installs bootblocks on floppy discs
3318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3321 # OS/2's system install, which has a completely different semantic
3322 # ./install, which can be erroneously created by make from ./install.sh.
3323 # Reject install programs that cannot install multiple files.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3325 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3326 if test -z "$INSTALL"; then
3327 if test "${ac_cv_path_install+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 # Account for people who put trailing slashes in PATH elements.
3336 case $as_dir/ in #((
3337 ./ | .// | /[cC]/* | \
3338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3340 /usr/ucb/* ) ;;
3341 *)
3342 # OSF1 and SCO ODT 3.0 have their own names for install.
3343 # Don't use installbsd from OSF since it installs stuff as root
3344 # by default.
3345 for ac_prog in ginstall scoinst install; do
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3348 if test $ac_prog = install &&
3349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3350 # AIX install. It has an incompatible calling convention.
3351 :
3352 elif test $ac_prog = install &&
3353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3354 # program-specific install script used by HP pwplus--don't use.
3355 :
3356 else
3357 rm -rf conftest.one conftest.two conftest.dir
3358 echo one > conftest.one
3359 echo two > conftest.two
3360 mkdir conftest.dir
3361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3362 test -s conftest.one && test -s conftest.two &&
3363 test -s conftest.dir/conftest.one &&
3364 test -s conftest.dir/conftest.two
3365 then
3366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3367 break 3
3368 fi
3369 fi
3370 fi
3371 done
3372 done
3373 ;;
3374 esac
3375
3376 done
3377 IFS=$as_save_IFS
3378
3379 rm -rf conftest.one conftest.two conftest.dir
3380
3381 fi
3382 if test "${ac_cv_path_install+set}" = set; then
3383 INSTALL=$ac_cv_path_install
3384 else
3385 # As a last resort, use the slow shell script. Don't cache a
3386 # value for INSTALL within a source directory, because that will
3387 # break other packages using the cache if that directory is
3388 # removed, or if the value is a relative name.
3389 INSTALL=$ac_install_sh
3390 fi
3391 fi
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3393 $as_echo "$INSTALL" >&6; }
3394
3395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3396 # It thinks the first close brace ends the variable substitution.
3397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3398
3399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3400
3401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3404 $as_echo_n "checking whether build environment is sane... " >&6; }
3405 # Just in case
3406 sleep 1
3407 echo timestamp > conftest.file
3408 # Reject unsafe characters in $srcdir or the absolute working directory
3409 # name. Accept space and tab only in the latter.
3410 am_lf='
3411 '
3412 case `pwd` in
3413 *[\\\"\#\$\&\'\`$am_lf]*)
3414 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3415 esac
3416 case $srcdir in
3417 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3418 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3419 esac
3420
3421 # Do `set' in a subshell so we don't clobber the current shell's
3422 # arguments. Must try -L first in case configure is actually a
3423 # symlink; some systems play weird games with the mod time of symlinks
3424 # (eg FreeBSD returns the mod time of the symlink's containing
3425 # directory).
3426 if (
3427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3428 if test "$*" = "X"; then
3429 # -L didn't work.
3430 set X `ls -t "$srcdir/configure" conftest.file`
3431 fi
3432 rm -f conftest.file
3433 if test "$*" != "X $srcdir/configure conftest.file" \
3434 && test "$*" != "X conftest.file $srcdir/configure"; then
3435
3436 # If neither matched, then we have a broken ls. This can happen
3437 # if, for instance, CONFIG_SHELL is bash and it inherits a
3438 # broken ls alias from the environment. This has actually
3439 # happened. Such a system could not be considered "sane".
3440 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3441 alias in your environment" "$LINENO" 5
3442 fi
3443
3444 test "$2" = conftest.file
3445 )
3446 then
3447 # Ok.
3448 :
3449 else
3450 as_fn_error "newly created file is older than distributed files!
3451 Check your system clock" "$LINENO" 5
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3455 test "$program_prefix" != NONE &&
3456 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE &&
3459 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3464
3465 # expand $ac_aux_dir to an absolute path
3466 am_aux_dir=`cd $ac_aux_dir && pwd`
3467
3468 if test x"${MISSING+set}" != xset; then
3469 case $am_aux_dir in
3470 *\ * | *\ *)
3471 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3472 *)
3473 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3474 esac
3475 fi
3476 # Use eval to expand $SHELL
3477 if eval "$MISSING --run true"; then
3478 am_missing_run="$MISSING --run "
3479 else
3480 am_missing_run=
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3482 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3483 fi
3484
3485 if test x"${install_sh}" != xset; then
3486 case $am_aux_dir in
3487 *\ * | *\ *)
3488 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3489 *)
3490 install_sh="\${SHELL} $am_aux_dir/install-sh"
3491 esac
3492 fi
3493
3494 # Installed binaries are usually stripped using `strip' when the user
3495 # run `make install-strip'. However `strip' might not be the right
3496 # tool to use in cross-compilation environments, therefore Automake
3497 # will honor the `STRIP' environment variable to overrule this program.
3498 if test "$cross_compiling" != no; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501 set dummy ${ac_tool_prefix}strip; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_STRIP+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$STRIP"; then
3508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 STRIP=$ac_cv_prog_STRIP
3528 if test -n "$STRIP"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530 $as_echo "$STRIP" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 fi
3538 if test -z "$ac_cv_prog_STRIP"; then
3539 ac_ct_STRIP=$STRIP
3540 # Extract the first word of "strip", so it can be a program name with args.
3541 set dummy strip; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$ac_ct_STRIP"; then
3548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_STRIP="strip"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570 $as_echo "$ac_ct_STRIP" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576 if test "x$ac_ct_STRIP" = x; then
3577 STRIP=":"
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580 yes:)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585 STRIP=$ac_ct_STRIP
3586 fi
3587 else
3588 STRIP="$ac_cv_prog_STRIP"
3589 fi
3590
3591 fi
3592 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3593
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597 if test "${ac_cv_path_mkdir+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_prog in mkdir gmkdir; do
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609 'mkdir (GNU coreutils) '* | \
3610 'mkdir (coreutils) '* | \
3611 'mkdir (fileutils) '4.1*)
3612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3613 break 3;;
3614 esac
3615 done
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621
3622 test -d ./--version && rmdir ./--version
3623 if test "${ac_cv_path_mkdir+set}" = set; then
3624 MKDIR_P="$ac_cv_path_mkdir -p"
3625 else
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for MKDIR_P within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 MKDIR_P="$ac_install_sh -d"
3631 fi
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634 $as_echo "$MKDIR_P" >&6; }
3635
3636
3637 mkdir_p="$MKDIR_P"
3638 case $mkdir_p in
3639 [\\/$]* | ?:[\\/]*) ;;
3640 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3641 esac
3642
3643 for ac_prog in gawk mawk nawk awk
3644 do
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy $ac_prog; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_AWK+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$AWK"; then
3653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_AWK="$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 AWK=$ac_cv_prog_AWK
3673 if test -n "$AWK"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3675 $as_echo "$AWK" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 test -n "$AWK" && break
3683 done
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3687 set x ${MAKE-make}
3688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3689 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat >conftest.make <<\_ACEOF
3693 SHELL = /bin/sh
3694 all:
3695 @echo '@@@%%%=$(MAKE)=@@@%%%'
3696 _ACEOF
3697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3699 *@@@%%%=?*=@@@%%%*)
3700 eval ac_cv_prog_make_${ac_make}_set=yes;;
3701 *)
3702 eval ac_cv_prog_make_${ac_make}_set=no;;
3703 esac
3704 rm -f conftest.make
3705 fi
3706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 SET_MAKE=
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 SET_MAKE="MAKE=${MAKE-make}"
3714 fi
3715
3716 rm -rf .tst 2>/dev/null
3717 mkdir .tst 2>/dev/null
3718 if test -d .tst; then
3719 am__leading_dot=.
3720 else
3721 am__leading_dot=_
3722 fi
3723 rmdir .tst 2>/dev/null
3724
3725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3727 # is not polluted with repeated "-I."
3728 am__isrc=' -I$(srcdir)'
3729 # test to see if srcdir already configured
3730 if test -f $srcdir/config.status; then
3731 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3732 fi
3733 fi
3734
3735 # test whether we have cygpath
3736 if test -z "$CYGPATH_W"; then
3737 if (cygpath --version) >/dev/null 2>/dev/null; then
3738 CYGPATH_W='cygpath -w'
3739 else
3740 CYGPATH_W=echo
3741 fi
3742 fi
3743
3744
3745 # Define the identity of the package.
3746 PACKAGE='emacs'
3747 VERSION='24.1.50'
3748
3749
3750 cat >>confdefs.h <<_ACEOF
3751 #define PACKAGE "$PACKAGE"
3752 _ACEOF
3753
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define VERSION "$VERSION"
3757 _ACEOF
3758
3759 # Some tools Automake needs.
3760
3761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3762
3763
3764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3765
3766
3767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3768
3769
3770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3771
3772
3773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3774
3775 # We need awk for the "check" target. The system "awk" is bad on
3776 # some platforms.
3777 # Always define AMTAR for backward compatibility.
3778
3779 AMTAR=${AMTAR-"${am_missing_run}tar"}
3780
3781 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3782
3783
3784
3785
3786
3787
3788
3789
3790 lispdir='${datadir}/emacs/${version}/lisp'
3791 leimdir='${datadir}/emacs/${version}/leim'
3792 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3793 '${datadir}/emacs/site-lisp'
3794 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3795 etcdir='${datadir}/emacs/${version}/etc'
3796 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3797 docdir='${datadir}/emacs/${version}/etc'
3798 gamedir='${localstatedir}/games/emacs'
3799
3800
3801
3802
3803 # Check whether --with-pop was given.
3804 if test "${with_pop+set}" = set; then :
3805 withval=$with_pop;
3806 else
3807 with_pop=yes
3808 fi
3809
3810 if test "$with_pop" = yes; then
3811 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3812
3813 fi
3814
3815
3816 # Check whether --with-kerberos was given.
3817 if test "${with_kerberos+set}" = set; then :
3818 withval=$with_kerberos;
3819 else
3820 with_kerberos=no
3821 fi
3822
3823 if test "$with_kerberos" != no; then
3824 $as_echo "#define KERBEROS 1" >>confdefs.h
3825
3826 fi
3827
3828
3829 # Check whether --with-kerberos5 was given.
3830 if test "${with_kerberos5+set}" = set; then :
3831 withval=$with_kerberos5;
3832 else
3833 with_kerberos5=no
3834 fi
3835
3836 if test "${with_kerberos5}" != no; then
3837 if test "${with_kerberos}" = no; then
3838 with_kerberos=yes
3839 $as_echo "#define KERBEROS 1" >>confdefs.h
3840
3841 fi
3842
3843 $as_echo "#define KERBEROS5 1" >>confdefs.h
3844
3845 fi
3846
3847
3848 # Check whether --with-hesiod was given.
3849 if test "${with_hesiod+set}" = set; then :
3850 withval=$with_hesiod;
3851 else
3852 with_hesiod=no
3853 fi
3854
3855 if test "$with_hesiod" != no; then
3856
3857 $as_echo "#define HESIOD 1" >>confdefs.h
3858
3859 fi
3860
3861
3862 # Check whether --with-mmdf was given.
3863 if test "${with_mmdf+set}" = set; then :
3864 withval=$with_mmdf;
3865 else
3866 with_mmdf=no
3867 fi
3868
3869 if test "$with_mmdf" != no; then
3870
3871 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3872
3873 fi
3874
3875
3876 # Check whether --with-mail-unlink was given.
3877 if test "${with_mail_unlink+set}" = set; then :
3878 withval=$with_mail_unlink;
3879 else
3880 with_mail_unlink=no
3881 fi
3882
3883 if test "$with_mail_unlink" != no; then
3884
3885 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3886
3887 fi
3888
3889
3890 # Check whether --with-mailhost was given.
3891 if test "${with_mailhost+set}" = set; then :
3892 withval=$with_mailhost;
3893 cat >>confdefs.h <<_ACEOF
3894 #define MAILHOST "$withval"
3895 _ACEOF
3896
3897 fi
3898
3899
3900
3901 # Check whether --with-sound was given.
3902 if test "${with_sound+set}" = set; then :
3903 withval=$with_sound;
3904 else
3905 with_sound=yes
3906 fi
3907
3908
3909
3910 # Check whether --with-sync-input was given.
3911 if test "${with_sync_input+set}" = set; then :
3912 withval=$with_sync_input;
3913 else
3914 with_sync_input=yes
3915 fi
3916
3917 if test "$with_sync_input" = yes; then
3918
3919 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3920
3921 fi
3922
3923
3924 # Check whether --with-x-toolkit was given.
3925 if test "${with_x_toolkit+set}" = set; then :
3926 withval=$with_x_toolkit; case "${withval}" in
3927 y | ye | yes ) val=gtk ;;
3928 n | no ) val=no ;;
3929 l | lu | luc | luci | lucid ) val=lucid ;;
3930 a | at | ath | athe | athen | athena ) val=athena ;;
3931 m | mo | mot | moti | motif ) val=motif ;;
3932 g | gt | gtk ) val=gtk ;;
3933 gtk3 ) val=gtk3 ;;
3934 * )
3935 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3936 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3937 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3938 ;;
3939 esac
3940 with_x_toolkit=$val
3941
3942 fi
3943
3944
3945
3946 # Check whether --with-wide-int was given.
3947 if test "${with_wide_int+set}" = set; then :
3948 withval=$with_wide_int;
3949 else
3950 with_wide_int=no
3951 fi
3952
3953 if test "$with_wide_int" = yes; then
3954
3955 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3956
3957 fi
3958
3959
3960 # Check whether --with-xpm was given.
3961 if test "${with_xpm+set}" = set; then :
3962 withval=$with_xpm;
3963 else
3964 with_xpm=yes
3965 fi
3966
3967
3968 # Check whether --with-jpeg was given.
3969 if test "${with_jpeg+set}" = set; then :
3970 withval=$with_jpeg;
3971 else
3972 with_jpeg=yes
3973 fi
3974
3975
3976 # Check whether --with-tiff was given.
3977 if test "${with_tiff+set}" = set; then :
3978 withval=$with_tiff;
3979 else
3980 with_tiff=yes
3981 fi
3982
3983
3984 # Check whether --with-gif was given.
3985 if test "${with_gif+set}" = set; then :
3986 withval=$with_gif;
3987 else
3988 with_gif=yes
3989 fi
3990
3991
3992 # Check whether --with-png was given.
3993 if test "${with_png+set}" = set; then :
3994 withval=$with_png;
3995 else
3996 with_png=yes
3997 fi
3998
3999
4000 # Check whether --with-rsvg was given.
4001 if test "${with_rsvg+set}" = set; then :
4002 withval=$with_rsvg;
4003 else
4004 with_rsvg=yes
4005 fi
4006
4007
4008 # Check whether --with-xml2 was given.
4009 if test "${with_xml2+set}" = set; then :
4010 withval=$with_xml2;
4011 else
4012 with_xml2=yes
4013 fi
4014
4015
4016 # Check whether --with-imagemagick was given.
4017 if test "${with_imagemagick+set}" = set; then :
4018 withval=$with_imagemagick;
4019 else
4020 with_imagemagick=yes
4021 fi
4022
4023
4024
4025 # Check whether --with-xft was given.
4026 if test "${with_xft+set}" = set; then :
4027 withval=$with_xft;
4028 else
4029 with_xft=yes
4030 fi
4031
4032
4033 # Check whether --with-libotf was given.
4034 if test "${with_libotf+set}" = set; then :
4035 withval=$with_libotf;
4036 else
4037 with_libotf=yes
4038 fi
4039
4040
4041 # Check whether --with-m17n-flt was given.
4042 if test "${with_m17n_flt+set}" = set; then :
4043 withval=$with_m17n_flt;
4044 else
4045 with_m17n_flt=yes
4046 fi
4047
4048
4049
4050 # Check whether --with-toolkit-scroll-bars was given.
4051 if test "${with_toolkit_scroll_bars+set}" = set; then :
4052 withval=$with_toolkit_scroll_bars;
4053 else
4054 with_toolkit_scroll_bars=yes
4055 fi
4056
4057
4058 # Check whether --with-xaw3d was given.
4059 if test "${with_xaw3d+set}" = set; then :
4060 withval=$with_xaw3d;
4061 else
4062 with_xaw3d=yes
4063 fi
4064
4065
4066 # Check whether --with-xim was given.
4067 if test "${with_xim+set}" = set; then :
4068 withval=$with_xim;
4069 else
4070 with_xim=yes
4071 fi
4072
4073
4074 # Check whether --with-ns was given.
4075 if test "${with_ns+set}" = set; then :
4076 withval=$with_ns;
4077 else
4078 with_ns=no
4079 fi
4080
4081
4082
4083 # Check whether --with-gpm was given.
4084 if test "${with_gpm+set}" = set; then :
4085 withval=$with_gpm;
4086 else
4087 with_gpm=yes
4088 fi
4089
4090
4091 # Check whether --with-dbus was given.
4092 if test "${with_dbus+set}" = set; then :
4093 withval=$with_dbus;
4094 else
4095 with_dbus=yes
4096 fi
4097
4098
4099 # Check whether --with-gconf was given.
4100 if test "${with_gconf+set}" = set; then :
4101 withval=$with_gconf;
4102 else
4103 with_gconf=yes
4104 fi
4105
4106
4107 # Check whether --with-gsettings was given.
4108 if test "${with_gsettings+set}" = set; then :
4109 withval=$with_gsettings;
4110 else
4111 with_gsettings=yes
4112 fi
4113
4114
4115 # Check whether --with-selinux was given.
4116 if test "${with_selinux+set}" = set; then :
4117 withval=$with_selinux;
4118 else
4119 with_selinux=yes
4120 fi
4121
4122
4123 # Check whether --with-gnutls was given.
4124 if test "${with_gnutls+set}" = set; then :
4125 withval=$with_gnutls;
4126 else
4127 with_gnutls=yes
4128 fi
4129
4130
4131 ## For the times when you want to build Emacs but don't have
4132 ## a suitable makeinfo, and can live without the manuals.
4133
4134 # Check whether --with-makeinfo was given.
4135 if test "${with_makeinfo+set}" = set; then :
4136 withval=$with_makeinfo;
4137 else
4138 with_makeinfo=yes
4139 fi
4140
4141
4142 ## Makefile.in needs the cache file name.
4143
4144
4145 ## This is an option because I do not know if all info/man support
4146 ## compressed files, nor how to test if they do so.
4147
4148 # Check whether --with-compress-info was given.
4149 if test "${with_compress_info+set}" = set; then :
4150 withval=$with_compress_info;
4151 else
4152 with_compress_info=yes
4153 fi
4154
4155 if test $with_compress_info = yes; then
4156 GZIP_INFO=yes
4157 else
4158 GZIP_INFO=
4159 fi
4160
4161
4162
4163 # Check whether --with-pkg-config-prog was given.
4164 if test "${with_pkg_config_prog+set}" = set; then :
4165 withval=$with_pkg_config_prog;
4166 fi
4167
4168 if test "X${with_pkg_config_prog}" != X; then
4169 if test "${with_pkg_config_prog}" != yes; then
4170 PKG_CONFIG="${with_pkg_config_prog}"
4171 fi
4172 fi
4173
4174 CRT_DIR=
4175
4176 # Check whether --with-crt-dir was given.
4177 if test "${with_crt_dir+set}" = set; then :
4178 withval=$with_crt_dir;
4179 fi
4180
4181 CRT_DIR="${with_crt_dir}"
4182
4183
4184 # Check whether --with-gameuser was given.
4185 if test "${with_gameuser+set}" = set; then :
4186 withval=$with_gameuser;
4187 fi
4188
4189 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4190 && gameuser="${with_gameuser}"
4191 test "X$gameuser" = X && gameuser=games
4192
4193
4194 # Check whether --with-gnustep-conf was given.
4195 if test "${with_gnustep_conf+set}" = set; then :
4196 withval=$with_gnustep_conf;
4197 fi
4198
4199 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4200 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4201 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4202 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4203
4204 # Check whether --enable-ns-self-contained was given.
4205 if test "${enable_ns_self_contained+set}" = set; then :
4206 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4207 else
4208 EN_NS_SELF_CONTAINED=yes
4209 fi
4210
4211
4212 # Check whether --enable-asserts was given.
4213 if test "${enable_asserts+set}" = set; then :
4214 enableval=$enable_asserts; USE_XASSERTS=$enableval
4215 else
4216 USE_XASSERTS=no
4217 fi
4218
4219
4220 # Check whether --enable-locallisppath was given.
4221 if test "${enable_locallisppath+set}" = set; then :
4222 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4223 locallisppath=
4224 elif test "${enableval}" != "yes"; then
4225 locallisppath=${enableval}
4226 fi
4227 fi
4228
4229
4230 # Check whether --enable-checking was given.
4231 if test "${enable_checking+set}" = set; then :
4232 enableval=$enable_checking; ac_checking_flags="${enableval}"
4233 fi
4234
4235 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4236 for check in $ac_checking_flags
4237 do
4238 case $check in
4239 # these set all the flags to specific states
4240 yes) ac_enable_checking=1 ;;
4241 no) ac_enable_checking= ;
4242 ac_gc_check_stringbytes= ;
4243 ac_gc_check_string_overrun= ;
4244 ac_gc_check_string_free_list= ;
4245 ac_xmalloc_overrun= ;
4246 ac_gc_check_cons_list= ;
4247 ac_check_glyphs= ;;
4248 all) ac_enable_checking=1 ;
4249 ac_gc_check_stringbytes=1 ;
4250 ac_gc_check_string_overrun=1 ;
4251 ac_gc_check_string_free_list=1 ;
4252 ac_xmalloc_overrun=1 ;
4253 ac_gc_check_cons_list=1 ;
4254 ac_check_glyphs=1 ;;
4255 # these enable particular checks
4256 stringbytes) ac_gc_check_stringbytes=1 ;;
4257 stringoverrun) ac_gc_check_string_overrun=1 ;;
4258 stringfreelist) ac_gc_check_string_free_list=1 ;;
4259 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4260 conslist) ac_gc_check_cons_list=1 ;;
4261 glyphs) ac_check_glyphs=1 ;;
4262 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4263 esac
4264 done
4265 IFS="$ac_save_IFS"
4266
4267 if test x$ac_enable_checking != x ; then
4268
4269 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4270
4271 fi
4272 if test x$ac_gc_check_stringbytes != x ; then
4273
4274 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4275
4276 fi
4277 if test x$ac_gc_check_string_overrun != x ; then
4278
4279 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4280
4281 fi
4282 if test x$ac_gc_check_string_free_list != x ; then
4283
4284 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4285
4286 fi
4287 if test x$ac_xmalloc_overrun != x ; then
4288
4289 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4290
4291 fi
4292 if test x$ac_gc_check_cons_list != x ; then
4293
4294 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4295
4296 fi
4297 if test x$ac_check_glyphs != x ; then
4298
4299 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4300
4301 fi
4302
4303 # Check whether --enable-check-lisp-object-type was given.
4304 if test "${enable_check_lisp_object_type+set}" = set; then :
4305 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4306
4307 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4308
4309 fi
4310 fi
4311
4312
4313
4314 # Check whether --enable-profiling was given.
4315 if test "${enable_profiling+set}" = set; then :
4316 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4317 fi
4318
4319 if test x$ac_enable_profiling != x ; then
4320 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4321 else
4322 PROFILING_CFLAGS=
4323 fi
4324
4325
4326 # Check whether --enable-autodepend was given.
4327 if test "${enable_autodepend+set}" = set; then :
4328 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4329 else
4330 ac_enable_autodepend=yes
4331 fi
4332
4333
4334 #### Make srcdir absolute, if it isn't already. It's important to
4335 #### avoid running the path through pwd unnecessarily, since pwd can
4336 #### give you automounter prefixes, which can go away. We do all this
4337 #### so Emacs can find its files when run uninstalled.
4338 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4339 unset CDPATH
4340 case "${srcdir}" in
4341 /* ) ;;
4342 . )
4343 ## We may be able to use the $PWD environment variable to make this
4344 ## absolute. But sometimes PWD is inaccurate.
4345 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4346 ## but that tested only for a well-formed and valid PWD,
4347 ## it did not object when PWD was well-formed and valid but just wrong.
4348 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4349 then
4350 srcdir="$PWD"
4351 else
4352 srcdir="`(cd ${srcdir}; pwd)`"
4353 fi
4354 ;;
4355 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4356 esac
4357
4358 #### Given the configuration name, set opsysfile to the
4359 #### name of s/*.h file we should use.
4360
4361 ### Canonicalize the configuration name.
4362
4363 # Make sure we can run config.sub.
4364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4365 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4368 $as_echo_n "checking build system type... " >&6; }
4369 if test "${ac_cv_build+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 ac_build_alias=$build_alias
4373 test "x$ac_build_alias" = x &&
4374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4375 test "x$ac_build_alias" = x &&
4376 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4378 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4379
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4382 $as_echo "$ac_cv_build" >&6; }
4383 case $ac_cv_build in
4384 *-*-*) ;;
4385 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4386 esac
4387 build=$ac_cv_build
4388 ac_save_IFS=$IFS; IFS='-'
4389 set x $ac_cv_build
4390 shift
4391 build_cpu=$1
4392 build_vendor=$2
4393 shift; shift
4394 # Remember, the first character of IFS is used to create $*,
4395 # except with old shells:
4396 build_os=$*
4397 IFS=$ac_save_IFS
4398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4402 $as_echo_n "checking host system type... " >&6; }
4403 if test "${ac_cv_host+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test "x$host_alias" = x; then
4407 ac_cv_host=$ac_cv_build
4408 else
4409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4410 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4411 fi
4412
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4415 $as_echo "$ac_cv_host" >&6; }
4416 case $ac_cv_host in
4417 *-*-*) ;;
4418 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4419 esac
4420 host=$ac_cv_host
4421 ac_save_IFS=$IFS; IFS='-'
4422 set x $ac_cv_host
4423 shift
4424 host_cpu=$1
4425 host_vendor=$2
4426 shift; shift
4427 # Remember, the first character of IFS is used to create $*,
4428 # except with old shells:
4429 host_os=$*
4430 IFS=$ac_save_IFS
4431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4432
4433
4434 canonical=$host
4435 configuration=${host_alias-${build_alias-$host}}
4436
4437
4438
4439 ### If you add support for a new configuration, add code to this
4440 ### switch statement to recognize your configuration name and select
4441 ### the appropriate operating system file.
4442
4443 ### You would hope that you could choose an s/*.h
4444 ### file based on the operating system portion. However, it turns out
4445 ### that each s/*.h file is pretty manufacturer-specific.
4446 ### So we basically have to have a special case for each
4447 ### configuration name.
4448 ###
4449 ### As far as handling version numbers on operating systems is
4450 ### concerned, make sure things will fail in a fixable way. If
4451 ### /etc/MACHINES doesn't say anything about version numbers, be
4452 ### prepared to handle anything reasonably. If version numbers
4453 ### matter, be sure /etc/MACHINES says something about it.
4454
4455 opsys='' unported=no
4456 case "${canonical}" in
4457
4458 ## GNU/Linux and similar ports
4459 *-*-linux* )
4460 opsys=gnu-linux
4461 ;;
4462
4463 ## FreeBSD ports
4464 *-*-freebsd* )
4465 opsys=freebsd
4466 ;;
4467
4468 ## FreeBSD kernel + glibc based userland
4469 *-*-kfreebsd*gnu* )
4470 opsys=gnu-kfreebsd
4471 ;;
4472
4473 ## NetBSD ports
4474 *-*-netbsd* )
4475 opsys=netbsd
4476 ;;
4477
4478 ## OpenBSD ports
4479 *-*-openbsd* )
4480 opsys=openbsd
4481 ;;
4482
4483 ## Apple Darwin / Mac OS X
4484 *-apple-darwin* )
4485 case "${canonical}" in
4486 i[3456]86-* ) ;;
4487 powerpc-* ) ;;
4488 x86_64-* ) ;;
4489 * ) unported=yes ;;
4490 esac
4491 opsys=darwin
4492 ## Use fink packages if available.
4493 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4494 ## if test -d /sw/include && test -d /sw/lib; then
4495 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4496 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4497 ## fi
4498 ;;
4499
4500 ## HP 9000 series 700 and 800, running HP/UX
4501 hppa*-hp-hpux10.2* )
4502 opsys=hpux10-20
4503 ;;
4504 hppa*-hp-hpux1[1-9]* )
4505 opsys=hpux11
4506 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4507 ;;
4508
4509 ## IBM machines
4510 rs6000-ibm-aix4.[23]* )
4511 opsys=aix4-2
4512 ;;
4513 powerpc-ibm-aix4.[23]* )
4514 opsys=aix4-2
4515 ;;
4516 rs6000-ibm-aix[56]* )
4517 opsys=aix4-2
4518 ;;
4519 powerpc-ibm-aix[56]* )
4520 opsys=aix4-2
4521 ;;
4522
4523 ## Silicon Graphics machines
4524 ## Iris 4D
4525 mips-sgi-irix6.5 )
4526 opsys=irix6-5
4527 # Without defining _LANGUAGE_C, things get masked out in the headers
4528 # so that, for instance, grepping for `free' in stdlib.h fails and
4529 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4530 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4531 ;;
4532
4533 ## Suns
4534 *-sun-solaris* \
4535 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4536 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4537 case "${canonical}" in
4538 i[3456]86-*-* ) ;;
4539 amd64-*-*|x86_64-*-*) ;;
4540 sparc* ) ;;
4541 * ) unported=yes ;;
4542 esac
4543 case "${canonical}" in
4544 *-sunos5.6* | *-solaris2.6* )
4545 opsys=sol2-6
4546 RANLIB="ar -ts"
4547 ;;
4548 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4549 opsys=sol2-6
4550 emacs_check_sunpro_c=yes
4551 ;;
4552 *-sunos5* | *-solaris* )
4553 opsys=sol2-10
4554 emacs_check_sunpro_c=yes
4555 ;;
4556 esac
4557 ## Watch out for a compiler that we know will not work.
4558 case "${canonical}" in
4559 *-solaris* | *-sunos5* )
4560 if [ "x$CC" = x/usr/ucb/cc ]; then
4561 ## /usr/ucb/cc doesn't work;
4562 ## we should find some other compiler that does work.
4563 unset CC
4564 fi
4565 ;;
4566 *) ;;
4567 esac
4568 ;;
4569
4570 ## Intel 386 machines where we don't care about the manufacturer.
4571 i[3456]86-*-* )
4572 case "${canonical}" in
4573 *-cygwin ) opsys=cygwin ;;
4574 *-darwin* ) opsys=darwin ;;
4575 *-sysv4.2uw* ) opsys=unixware ;;
4576 *-sysv5uw* ) opsys=unixware ;;
4577 *-sysv5OpenUNIX* ) opsys=unixware ;;
4578 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4579 esac
4580 ;;
4581
4582 * )
4583 unported=yes
4584 ;;
4585 esac
4586
4587 ### If the code above didn't choose an operating system, just choose
4588 ### an operating system based on the configuration name. You really
4589 ### only want to use this when you have no idea what the right
4590 ### operating system is; if you know what operating systems a machine
4591 ### runs, it's cleaner to make it explicit in the case statement
4592 ### above.
4593 if test x"${opsys}" = x; then
4594 case "${canonical}" in
4595 *-gnu* ) opsys=gnu ;;
4596 * )
4597 unported=yes
4598 ;;
4599 esac
4600 fi
4601
4602
4603
4604 if test $unported = yes; then
4605 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4606 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4607 fi
4608
4609 opsysfile="s/${opsys}.h"
4610
4611
4612 #### Choose a compiler.
4613
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4655
4656
4657 fi
4658 if test -z "$ac_cv_prog_CC"; then
4659 ac_ct_CC=$CC
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$ac_ct_CC"; then
4668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_CC="gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4688 if test -n "$ac_ct_CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4690 $as_echo "$ac_ct_CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696 if test "x$ac_ct_CC" = x; then
4697 CC=""
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700 yes:)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned=yes ;;
4704 esac
4705 CC=$ac_ct_CC
4706 fi
4707 else
4708 CC="$ac_cv_prog_CC"
4709 fi
4710
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}cc; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CC+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC="$CC" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CC="${ac_tool_prefix}cc"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 CC=$ac_cv_prog_CC
4741 if test -n "$CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743 $as_echo "$CC" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 fi
4751 fi
4752 if test -z "$CC"; then
4753 # Extract the first word of "cc", so it can be a program name with args.
4754 set dummy cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 ac_prog_rejected=no
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4772 ac_prog_rejected=yes
4773 continue
4774 fi
4775 ac_cv_prog_CC="cc"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy $ac_cv_prog_CC
4786 shift
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set CC to just the basename; use the full file name.
4791 shift
4792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4793 fi
4794 fi
4795 fi
4796 fi
4797 CC=$ac_cv_prog_CC
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 fi
4808 if test -z "$CC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in cl.exe
4811 do
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CC"; then
4820 ac_cv_prog_CC="$CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4832 fi
4833 done
4834 done
4835 IFS=$as_save_IFS
4836
4837 fi
4838 fi
4839 CC=$ac_cv_prog_CC
4840 if test -n "$CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4842 $as_echo "$CC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847
4848
4849 test -n "$CC" && break
4850 done
4851 fi
4852 if test -z "$CC"; then
4853 ac_ct_CC=$CC
4854 for ac_prog in cl.exe
4855 do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CC="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 $as_echo "$ac_ct_CC" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892
4893 test -n "$ac_ct_CC" && break
4894 done
4895
4896 if test "x$ac_ct_CC" = x; then
4897 CC=""
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CC=$ac_ct_CC
4906 fi
4907 fi
4908
4909 fi
4910
4911
4912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error "no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details." "$LINENO" 5; }
4916
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4919 set X $ac_compile
4920 ac_compiler=$2
4921 for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 ac_status=$?
4931 if test -s conftest.err; then
4932 sed '10a\
4933 ... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4936 fi
4937 rm -f conftest.er1 conftest.err
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940 done
4941
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 ac_clean_files_save=$ac_clean_files
4954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4955 # Try to create an executable without -o first, disregard a.out.
4956 # It will help us diagnose broken compilers, and finding out an intuition
4957 # of exeext.
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4959 $as_echo_n "checking whether the C compiler works... " >&6; }
4960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4961
4962 # The possible output files:
4963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4964
4965 ac_rmfiles=
4966 for ac_file in $ac_files
4967 do
4968 case $ac_file in
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4971 esac
4972 done
4973 rm -f $ac_rmfiles
4974
4975 if { { ac_try="$ac_link_default"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981 $as_echo "$ac_try_echo"; } >&5
4982 (eval "$ac_link_default") 2>&5
4983 ac_status=$?
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
4986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4989 # so that the user can short-circuit this test for compilers unknown to
4990 # Autoconf.
4991 for ac_file in $ac_files ''
4992 do
4993 test -f "$ac_file" || continue
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4996 ;;
4997 [ab].out )
4998 # We found the default executable, but exeext='' is most
4999 # certainly right.
5000 break;;
5001 *.* )
5002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5003 then :; else
5004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 fi
5006 # We set ac_cv_exeext here because the later test for it is not
5007 # safe: cross compilers may not add the suffix if given an `-o'
5008 # argument, so we may need to know it at that point already.
5009 # Even if this section looks crufty: it has the advantage of
5010 # actually working.
5011 break;;
5012 * )
5013 break;;
5014 esac
5015 done
5016 test "$ac_cv_exeext" = no && ac_cv_exeext=
5017
5018 else
5019 ac_file=''
5020 fi
5021 if test -z "$ac_file"; then :
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { as_fn_set_status 77
5030 as_fn_error "C compiler cannot create executables
5031 See \`config.log' for more details." "$LINENO" 5; }; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 fi
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5037 $as_echo_n "checking for C compiler default output file name... " >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5039 $as_echo "$ac_file" >&6; }
5040 ac_exeext=$ac_cv_exeext
5041
5042 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5043 ac_clean_files=$ac_clean_files_save
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5045 $as_echo_n "checking for suffix of executables... " >&6; }
5046 if { { ac_try="$ac_link"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5052 $as_echo "$ac_try_echo"; } >&5
5053 (eval "$ac_link") 2>&5
5054 ac_status=$?
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }; then :
5057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5059 # work properly (i.e., refer to `conftest.exe'), while it won't with
5060 # `rm'.
5061 for ac_file in conftest.exe conftest conftest.*; do
5062 test -f "$ac_file" || continue
5063 case $ac_file in
5064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5066 break;;
5067 * ) break;;
5068 esac
5069 done
5070 else
5071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073 as_fn_error "cannot compute suffix of executables: cannot compile and link
5074 See \`config.log' for more details." "$LINENO" 5; }
5075 fi
5076 rm -f conftest conftest$ac_cv_exeext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5078 $as_echo "$ac_cv_exeext" >&6; }
5079
5080 rm -f conftest.$ac_ext
5081 EXEEXT=$ac_cv_exeext
5082 ac_exeext=$EXEEXT
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <stdio.h>
5086 int
5087 main ()
5088 {
5089 FILE *f = fopen ("conftest.out", "w");
5090 return ferror (f) || fclose (f) != 0;
5091
5092 ;
5093 return 0;
5094 }
5095 _ACEOF
5096 ac_clean_files="$ac_clean_files conftest.out"
5097 # Check that the compiler produces executables we can run. If not, either
5098 # the compiler is broken, or we cross compile.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5100 $as_echo_n "checking whether we are cross compiling... " >&6; }
5101 if test "$cross_compiling" != yes; then
5102 { { ac_try="$ac_link"
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5108 $as_echo "$ac_try_echo"; } >&5
5109 (eval "$ac_link") 2>&5
5110 ac_status=$?
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }
5113 if { ac_try='./conftest$ac_cv_exeext'
5114 { { case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119 $as_echo "$ac_try_echo"; } >&5
5120 (eval "$ac_try") 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; }; then
5124 cross_compiling=no
5125 else
5126 if test "$cross_compiling" = maybe; then
5127 cross_compiling=yes
5128 else
5129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5131 as_fn_error "cannot run C compiled programs.
5132 If you meant to cross compile, use \`--host'.
5133 See \`config.log' for more details." "$LINENO" 5; }
5134 fi
5135 fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5138 $as_echo "$cross_compiling" >&6; }
5139
5140 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5141 ac_clean_files=$ac_clean_files_save
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5143 $as_echo_n "checking for suffix of object files... " >&6; }
5144 if test "${ac_cv_objext+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.o conftest.obj
5159 if { { ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5165 $as_echo "$ac_try_echo"; } >&5
5166 (eval "$ac_compile") 2>&5
5167 ac_status=$?
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then :
5170 for ac_file in conftest.o conftest.obj conftest.*; do
5171 test -f "$ac_file" || continue;
5172 case $ac_file in
5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5175 break;;
5176 esac
5177 done
5178 else
5179 $as_echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error "cannot compute suffix of object files: cannot compile
5185 See \`config.log' for more details." "$LINENO" 5; }
5186 fi
5187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5190 $as_echo "$ac_cv_objext" >&6; }
5191 OBJEXT=$ac_cv_objext
5192 ac_objext=$OBJEXT
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5194 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200
5201 int
5202 main ()
5203 {
5204 #ifndef __GNUC__
5205 choke me
5206 #endif
5207
5208 ;
5209 return 0;
5210 }
5211 _ACEOF
5212 if ac_fn_c_try_compile "$LINENO"; then :
5213 ac_compiler_gnu=yes
5214 else
5215 ac_compiler_gnu=no
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5219
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5222 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5223 if test $ac_compiler_gnu = yes; then
5224 GCC=yes
5225 else
5226 GCC=
5227 fi
5228 ac_test_CFLAGS=${CFLAGS+set}
5229 ac_save_CFLAGS=$CFLAGS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5231 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5232 if test "${ac_cv_prog_cc_g+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_save_c_werror_flag=$ac_c_werror_flag
5236 ac_c_werror_flag=yes
5237 ac_cv_prog_cc_g=no
5238 CFLAGS="-g"
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241
5242 int
5243 main ()
5244 {
5245
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_prog_cc_g=yes
5252 else
5253 CFLAGS=""
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256
5257 int
5258 main ()
5259 {
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266
5267 else
5268 ac_c_werror_flag=$ac_save_c_werror_flag
5269 CFLAGS="-g"
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272
5273 int
5274 main ()
5275 {
5276
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_prog_cc_g=yes
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_c_werror_flag=$ac_save_c_werror_flag
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5292 $as_echo "$ac_cv_prog_cc_g" >&6; }
5293 if test "$ac_test_CFLAGS" = set; then
5294 CFLAGS=$ac_save_CFLAGS
5295 elif test $ac_cv_prog_cc_g = yes; then
5296 if test "$GCC" = yes; then
5297 CFLAGS="-g -O2"
5298 else
5299 CFLAGS="-g"
5300 fi
5301 else
5302 if test "$GCC" = yes; then
5303 CFLAGS="-O2"
5304 else
5305 CFLAGS=
5306 fi
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5309 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5310 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 ac_cv_prog_cc_c89=no
5314 ac_save_CC=$CC
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #include <stdarg.h>
5318 #include <stdio.h>
5319 #include <sys/types.h>
5320 #include <sys/stat.h>
5321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5322 struct buf { int x; };
5323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5324 static char *e (p, i)
5325 char **p;
5326 int i;
5327 {
5328 return p[i];
5329 }
5330 static char *f (char * (*g) (char **, int), char **p, ...)
5331 {
5332 char *s;
5333 va_list v;
5334 va_start (v,p);
5335 s = g (p, va_arg (v,int));
5336 va_end (v);
5337 return s;
5338 }
5339
5340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5341 function prototypes and stuff, but not '\xHH' hex character constants.
5342 These don't provoke an error unfortunately, instead are silently treated
5343 as 'x'. The following induces an error, until -std is added to get
5344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5345 array size at least. It's necessary to write '\x00'==0 to get something
5346 that's true only with -std. */
5347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5348
5349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5350 inside strings and character constants. */
5351 #define FOO(x) 'x'
5352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5353
5354 int test (int i, double x);
5355 struct s1 {int (*f) (int a);};
5356 struct s2 {int (*f) (double a);};
5357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5358 int argc;
5359 char **argv;
5360 int
5361 main ()
5362 {
5363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5370 do
5371 CC="$ac_save_CC $ac_arg"
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_prog_cc_c89=$ac_arg
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext
5376 test "x$ac_cv_prog_cc_c89" != "xno" && break
5377 done
5378 rm -f conftest.$ac_ext
5379 CC=$ac_save_CC
5380
5381 fi
5382 # AC_CACHE_VAL
5383 case "x$ac_cv_prog_cc_c89" in
5384 x)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5386 $as_echo "none needed" >&6; } ;;
5387 xno)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5389 $as_echo "unsupported" >&6; } ;;
5390 *)
5391 CC="$CC $ac_cv_prog_cc_c89"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5394 esac
5395 if test "x$ac_cv_prog_cc_c89" != xno; then :
5396
5397 fi
5398
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 DEPDIR="${am__leading_dot}deps"
5405
5406 ac_config_commands="$ac_config_commands depfiles"
5407
5408
5409 am_make=${MAKE-make}
5410 cat > confinc << 'END'
5411 am__doit:
5412 @echo this is the am__doit target
5413 .PHONY: am__doit
5414 END
5415 # If we don't find an include directive, just comment out the code.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5417 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5418 am__include="#"
5419 am__quote=
5420 _am_result=none
5421 # First try GNU make style include.
5422 echo "include confinc" > confmf
5423 # Ignore all kinds of additional output from `make'.
5424 case `$am_make -s -f confmf 2> /dev/null` in #(
5425 *the\ am__doit\ target*)
5426 am__include=include
5427 am__quote=
5428 _am_result=GNU
5429 ;;
5430 esac
5431 # Now try BSD make style include.
5432 if test "$am__include" = "#"; then
5433 echo '.include "confinc"' > confmf
5434 case `$am_make -s -f confmf 2> /dev/null` in #(
5435 *the\ am__doit\ target*)
5436 am__include=.include
5437 am__quote="\""
5438 _am_result=BSD
5439 ;;
5440 esac
5441 fi
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5445 $as_echo "$_am_result" >&6; }
5446 rm -f confinc confmf
5447
5448 # Check whether --enable-dependency-tracking was given.
5449 if test "${enable_dependency_tracking+set}" = set; then :
5450 enableval=$enable_dependency_tracking;
5451 fi
5452
5453 if test "x$enable_dependency_tracking" != xno; then
5454 am_depcomp="$ac_aux_dir/depcomp"
5455 AMDEPBACKSLASH='\'
5456 fi
5457 if test "x$enable_dependency_tracking" != xno; then
5458 AMDEP_TRUE=
5459 AMDEP_FALSE='#'
5460 else
5461 AMDEP_TRUE='#'
5462 AMDEP_FALSE=
5463 fi
5464
5465
5466
5467 depcc="$CC" am_compiler_list=
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5470 $as_echo_n "checking dependency style of $depcc... " >&6; }
5471 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5475 # We make a subdir and do the tests there. Otherwise we can end up
5476 # making bogus files that we don't know about and never remove. For
5477 # instance it was reported that on HP-UX the gcc test will end up
5478 # making a dummy file named `D' -- because `-MD' means `put the output
5479 # in D'.
5480 mkdir conftest.dir
5481 # Copy depcomp to subdir because otherwise we won't find it if we're
5482 # using a relative directory.
5483 cp "$am_depcomp" conftest.dir
5484 cd conftest.dir
5485 # We will build objects and dependencies in a subdirectory because
5486 # it helps to detect inapplicable dependency modes. For instance
5487 # both Tru64's cc and ICC support -MD to output dependencies as a
5488 # side effect of compilation, but ICC will put the dependencies in
5489 # the current directory while Tru64 will put them in the object
5490 # directory.
5491 mkdir sub
5492
5493 am_cv_CC_dependencies_compiler_type=none
5494 if test "$am_compiler_list" = ""; then
5495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5496 fi
5497 am__universal=false
5498 case " $depcc " in #(
5499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5500 esac
5501
5502 for depmode in $am_compiler_list; do
5503 # Setup a source with many dependencies, because some compilers
5504 # like to wrap large dependency lists on column 80 (with \), and
5505 # we should not choose a depcomp mode which is confused by this.
5506 #
5507 # We need to recreate these files for each test, as the compiler may
5508 # overwrite some of them when testing with obscure command lines.
5509 # This happens at least with the AIX C compiler.
5510 : > sub/conftest.c
5511 for i in 1 2 3 4 5 6; do
5512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5514 # Solaris 8's {/usr,}/bin/sh.
5515 touch sub/conftst$i.h
5516 done
5517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5518
5519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5520 # mode. It turns out that the SunPro C++ compiler does not properly
5521 # handle `-M -o', and we need to detect this. Also, some Intel
5522 # versions had trouble with output in subdirs
5523 am__obj=sub/conftest.${OBJEXT-o}
5524 am__minus_obj="-o $am__obj"
5525 case $depmode in
5526 gcc)
5527 # This depmode causes a compiler race in universal mode.
5528 test "$am__universal" = false || continue
5529 ;;
5530 nosideeffect)
5531 # after this tag, mechanisms are not by side-effect, so they'll
5532 # only be used when explicitly requested
5533 if test "x$enable_dependency_tracking" = xyes; then
5534 continue
5535 else
5536 break
5537 fi
5538 ;;
5539 msvisualcpp | msvcmsys)
5540 # This compiler won't grok `-c -o', but also, the minuso test has
5541 # not run yet. These depmodes are late enough in the game, and
5542 # so weak that their functioning should not be impacted.
5543 am__obj=conftest.${OBJEXT-o}
5544 am__minus_obj=
5545 ;;
5546 none) break ;;
5547 esac
5548 if depmode=$depmode \
5549 source=sub/conftest.c object=$am__obj \
5550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5552 >/dev/null 2>conftest.err &&
5553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5557 # icc doesn't choke on unknown options, it will just issue warnings
5558 # or remarks (even with -Werror). So we grep stderr for any message
5559 # that says an option was ignored or not supported.
5560 # When given -MP, icc 7.0 and 7.1 complain thusly:
5561 # icc: Command line warning: ignoring option '-M'; no argument required
5562 # The diagnosis changed in icc 8.0:
5563 # icc: Command line remark: option '-MP' not supported
5564 if (grep 'ignoring option' conftest.err ||
5565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5566 am_cv_CC_dependencies_compiler_type=$depmode
5567 break
5568 fi
5569 fi
5570 done
5571
5572 cd ..
5573 rm -rf conftest.dir
5574 else
5575 am_cv_CC_dependencies_compiler_type=none
5576 fi
5577
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5582
5583 if
5584 test "x$enable_dependency_tracking" != xno \
5585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5586 am__fastdepCC_TRUE=
5587 am__fastdepCC_FALSE='#'
5588 else
5589 am__fastdepCC_TRUE='#'
5590 am__fastdepCC_FALSE=
5591 fi
5592
5593
5594 if test "x$CC" != xcc; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5600 fi
5601 set dummy $CC; ac_cc=`$as_echo "$2" |
5602 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5603 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608
5609 int
5610 main ()
5611 {
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 # Make sure it works both with $CC and with simple cc.
5618 # We do the test twice because some compilers refuse to overwrite an
5619 # existing .o file with -o, though they will create one.
5620 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5621 rm -f conftest2.*
5622 if { { case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5627 $as_echo "$ac_try_echo"; } >&5
5628 (eval "$ac_try") 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; } &&
5632 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5639 ac_status=$?
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; };
5642 then
5643 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5644 if test "x$CC" != xcc; then
5645 # Test first that cc exists at all.
5646 if { ac_try='cc -c conftest.$ac_ext >&5'
5647 { { case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5654 ac_status=$?
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; }; }; then
5657 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 rm -f conftest2.*
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5679 then
5680 # cc works too.
5681 :
5682 else
5683 # cc exists but doesn't like -o.
5684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5685 fi
5686 fi
5687 fi
5688 else
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 fi
5691 rm -f core conftest*
5692
5693 fi
5694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700
5701 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5702
5703 fi
5704
5705 # FIXME: we rely on the cache variable name because
5706 # there is no other way.
5707 set dummy $CC
5708 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5709 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5710 if test "$am_t" != yes; then
5711 # Losing compiler, so override with the script.
5712 # FIXME: It is wrong to rewrite CC.
5713 # But if we don't then we get into trouble of one sort or another.
5714 # A longer-term fix would be to have automake use am__CC in this case,
5715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5716 CC="$am_aux_dir/compile $CC"
5717 fi
5718
5719
5720
5721 if test x$GCC = xyes; then
5722 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5723 else
5724 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5725 fi
5726
5727 # Initialize gnulib right after choosing the compiler.
5728
5729 ac_ext=c
5730 ac_cpp='$CPP $CPPFLAGS'
5731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5736 # On Suns, sometimes $CPP names a directory.
5737 if test -n "$CPP" && test -d "$CPP"; then
5738 CPP=
5739 fi
5740 if test -z "$CPP"; then
5741 if test "${ac_cv_prog_CPP+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 # Double quotes because CPP needs to be expanded
5745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5746 do
5747 ac_preproc_ok=false
5748 for ac_c_preproc_warn_flag in '' yes
5749 do
5750 # Use a header file that comes with gcc, so configuring glibc
5751 # with a fresh cross-compiler works.
5752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5753 # <limits.h> exists even on freestanding compilers.
5754 # On the NeXT, cc -E runs the code through the compiler's parser,
5755 # not just through cpp. "Syntax error" is here to catch this case.
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #ifdef __STDC__
5759 # include <limits.h>
5760 #else
5761 # include <assert.h>
5762 #endif
5763 Syntax error
5764 _ACEOF
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766
5767 else
5768 # Broken: fails on valid input.
5769 continue
5770 fi
5771 rm -f conftest.err conftest.$ac_ext
5772
5773 # OK, works on sane cases. Now check whether nonexistent headers
5774 # can be detected and how.
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5778 _ACEOF
5779 if ac_fn_c_try_cpp "$LINENO"; then :
5780 # Broken: success on invalid input.
5781 continue
5782 else
5783 # Passes both tests.
5784 ac_preproc_ok=:
5785 break
5786 fi
5787 rm -f conftest.err conftest.$ac_ext
5788
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then :
5793 break
5794 fi
5795
5796 done
5797 ac_cv_prog_CPP=$CPP
5798
5799 fi
5800 CPP=$ac_cv_prog_CPP
5801 else
5802 ac_cv_prog_CPP=$CPP
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5805 $as_echo "$CPP" >&6; }
5806 ac_preproc_ok=false
5807 for ac_c_preproc_warn_flag in '' yes
5808 do
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #ifdef __STDC__
5818 # include <limits.h>
5819 #else
5820 # include <assert.h>
5821 #endif
5822 Syntax error
5823 _ACEOF
5824 if ac_fn_c_try_cpp "$LINENO"; then :
5825
5826 else
5827 # Broken: fails on valid input.
5828 continue
5829 fi
5830 rm -f conftest.err conftest.$ac_ext
5831
5832 # OK, works on sane cases. Now check whether nonexistent headers
5833 # can be detected and how.
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <ac_nonexistent.h>
5837 _ACEOF
5838 if ac_fn_c_try_cpp "$LINENO"; then :
5839 # Broken: success on invalid input.
5840 continue
5841 else
5842 # Passes both tests.
5843 ac_preproc_ok=:
5844 break
5845 fi
5846 rm -f conftest.err conftest.$ac_ext
5847
5848 done
5849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5850 rm -f conftest.err conftest.$ac_ext
5851 if $ac_preproc_ok; then :
5852
5853 else
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5857 See \`config.log' for more details." "$LINENO" 5; }
5858 fi
5859
5860 ac_ext=c
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5868 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5869 if test "${ac_cv_path_GREP+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -z "$GREP"; then
5873 ac_path_GREP_found=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_prog in grep ggrep; do
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5883 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5884 # Check for GNU ac_path_GREP and select it if it is found.
5885 # Check for GNU $ac_path_GREP
5886 case `"$ac_path_GREP" --version 2>&1` in
5887 *GNU*)
5888 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5889 *)
5890 ac_count=0
5891 $as_echo_n 0123456789 >"conftest.in"
5892 while :
5893 do
5894 cat "conftest.in" "conftest.in" >"conftest.tmp"
5895 mv "conftest.tmp" "conftest.in"
5896 cp "conftest.in" "conftest.nl"
5897 $as_echo 'GREP' >> "conftest.nl"
5898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5900 as_fn_arith $ac_count + 1 && ac_count=$as_val
5901 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5902 # Best one so far, save it but keep looking for a better one
5903 ac_cv_path_GREP="$ac_path_GREP"
5904 ac_path_GREP_max=$ac_count
5905 fi
5906 # 10*(2^10) chars as input seems more than enough
5907 test $ac_count -gt 10 && break
5908 done
5909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5910 esac
5911
5912 $ac_path_GREP_found && break 3
5913 done
5914 done
5915 done
5916 IFS=$as_save_IFS
5917 if test -z "$ac_cv_path_GREP"; then
5918 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5919 fi
5920 else
5921 ac_cv_path_GREP=$GREP
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5926 $as_echo "$ac_cv_path_GREP" >&6; }
5927 GREP="$ac_cv_path_GREP"
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5931 $as_echo_n "checking for egrep... " >&6; }
5932 if test "${ac_cv_path_EGREP+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5936 then ac_cv_path_EGREP="$GREP -E"
5937 else
5938 if test -z "$EGREP"; then
5939 ac_path_EGREP_found=false
5940 # Loop through the user's path and test for each of PROGNAME-LIST
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5943 do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_prog in egrep; do
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5949 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5950 # Check for GNU ac_path_EGREP and select it if it is found.
5951 # Check for GNU $ac_path_EGREP
5952 case `"$ac_path_EGREP" --version 2>&1` in
5953 *GNU*)
5954 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5955 *)
5956 ac_count=0
5957 $as_echo_n 0123456789 >"conftest.in"
5958 while :
5959 do
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 $as_echo 'EGREP' >> "conftest.nl"
5964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966 as_fn_arith $ac_count + 1 && ac_count=$as_val
5967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_EGREP="$ac_path_EGREP"
5970 ac_path_EGREP_max=$ac_count
5971 fi
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5974 done
5975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976 esac
5977
5978 $ac_path_EGREP_found && break 3
5979 done
5980 done
5981 done
5982 IFS=$as_save_IFS
5983 if test -z "$ac_cv_path_EGREP"; then
5984 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 fi
5986 else
5987 ac_cv_path_EGREP=$EGREP
5988 fi
5989
5990 fi
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5993 $as_echo "$ac_cv_path_EGREP" >&6; }
5994 EGREP="$ac_cv_path_EGREP"
5995
5996
5997
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6000 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6001 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007
6008 #ifdef __ACK__
6009 Amsterdam
6010 #endif
6011
6012 _ACEOF
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6015 gl_cv_c_amsterdam_compiler=yes
6016 else
6017 gl_cv_c_amsterdam_compiler=no
6018 fi
6019 rm -f conftest*
6020
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6024 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6025 if test -z "$AR"; then
6026 if test $gl_cv_c_amsterdam_compiler = yes; then
6027 AR='cc -c.a'
6028 if test -z "$ARFLAGS"; then
6029 ARFLAGS='-o'
6030 fi
6031 else
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ar; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_AR+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$AR"; then
6041 ac_cv_prog_AR="$AR" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_AR="${ac_tool_prefix}ar"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 AR=$ac_cv_prog_AR
6061 if test -n "$AR"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6063 $as_echo "$AR" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068
6069
6070 fi
6071 if test -z "$ac_cv_prog_AR"; then
6072 ac_ct_AR=$AR
6073 # Extract the first word of "ar", so it can be a program name with args.
6074 set dummy ar; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$ac_ct_AR"; then
6081 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_AR="ar"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6101 if test -n "$ac_ct_AR"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6103 $as_echo "$ac_ct_AR" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109 if test "x$ac_ct_AR" = x; then
6110 AR="ar"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118 AR=$ac_ct_AR
6119 fi
6120 else
6121 AR="$ac_cv_prog_AR"
6122 fi
6123
6124 if test -z "$ARFLAGS"; then
6125 ARFLAGS='cru'
6126 fi
6127 fi
6128 else
6129 if test -z "$ARFLAGS"; then
6130 ARFLAGS='cru'
6131 fi
6132 fi
6133
6134
6135 if test -z "$RANLIB"; then
6136 if test $gl_cv_c_amsterdam_compiler = yes; then
6137 RANLIB=':'
6138 else
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 if test -n "$RANLIB"; then
6148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6170 $as_echo "$RANLIB" >&6; }
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$ac_ct_RANLIB"; then
6188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_ac_ct_RANLIB="ranlib"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6210 $as_echo "$ac_ct_RANLIB" >&6; }
6211 else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216 if test "x$ac_ct_RANLIB" = x; then
6217 RANLIB=":"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225 RANLIB=$ac_ct_RANLIB
6226 fi
6227 else
6228 RANLIB="$ac_cv_prog_RANLIB"
6229 fi
6230
6231 fi
6232 fi
6233
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6236 $as_echo_n "checking for ANSI C header files... " >&6; }
6237 if test "${ac_cv_header_stdc+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <stdlib.h>
6243 #include <stdarg.h>
6244 #include <string.h>
6245 #include <float.h>
6246
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 ac_cv_header_stdc=yes
6257 else
6258 ac_cv_header_stdc=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261
6262 if test $ac_cv_header_stdc = yes; then
6263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <string.h>
6267
6268 _ACEOF
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev/null 2>&1; then :
6271
6272 else
6273 ac_cv_header_stdc=no
6274 fi
6275 rm -f conftest*
6276
6277 fi
6278
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <stdlib.h>
6284
6285 _ACEOF
6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "free" >/dev/null 2>&1; then :
6288
6289 else
6290 ac_cv_header_stdc=no
6291 fi
6292 rm -f conftest*
6293
6294 fi
6295
6296 if test $ac_cv_header_stdc = yes; then
6297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6298 if test "$cross_compiling" = yes; then :
6299 :
6300 else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 #include <ctype.h>
6304 #include <stdlib.h>
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 #else
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #endif
6315
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6317 int
6318 main ()
6319 {
6320 int i;
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6324 return 2;
6325 return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_run "$LINENO"; then :
6329
6330 else
6331 ac_cv_header_stdc=no
6332 fi
6333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6334 conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 fi
6336
6337 fi
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6340 $as_echo "$ac_cv_header_stdc" >&6; }
6341 if test $ac_cv_header_stdc = yes; then
6342
6343 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6344
6345 fi
6346
6347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6349 inttypes.h stdint.h unistd.h
6350 do :
6351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6353 "
6354 eval as_val=\$$as_ac_Header
6355 if test "x$as_val" = x""yes; then :
6356 cat >>confdefs.h <<_ACEOF
6357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6359
6360 fi
6361
6362 done
6363
6364
6365
6366
6367
6368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6370 MINIX=yes
6371 else
6372 MINIX=
6373 fi
6374
6375
6376 if test "$MINIX" = yes; then
6377
6378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379
6380
6381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382
6383
6384 $as_echo "#define _MINIX 1" >>confdefs.h
6385
6386 fi
6387
6388 case "$host_os" in
6389 hpux*)
6390
6391 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6392
6393 ;;
6394 esac
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6399 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404
6405 # define __EXTENSIONS__ 1
6406 $ac_includes_default
6407 int
6408 main ()
6409 {
6410
6411 ;
6412 return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 ac_cv_safe_to_define___extensions__=yes
6417 else
6418 ac_cv_safe_to_define___extensions__=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6424 test $ac_cv_safe_to_define___extensions__ = yes &&
6425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6426
6427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6428
6429 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6430
6431 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6432
6433 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6434
6435 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6436
6437
6438
6439
6440
6441
6442
6443
6444 # Check whether --enable-largefile was given.
6445 if test "${enable_largefile+set}" = set; then :
6446 enableval=$enable_largefile;
6447 fi
6448
6449 if test "$enable_largefile" != no; then
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6453 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_cv_sys_largefile_CC=no
6457 if test "$GCC" != yes; then
6458 ac_save_CC=$CC
6459 while :; do
6460 # IRIX 6.2 and later do not support large files by default,
6461 # so use the C compiler's -n32 option if that helps.
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <sys/types.h>
6465 /* Check that off_t can represent 2**63 - 1 correctly.
6466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6467 since some C++ compilers masquerading as C compilers
6468 incorrectly reject 9223372036854775807. */
6469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6471 && LARGE_OFF_T % 2147483647 == 1)
6472 ? 1 : -1];
6473 int
6474 main ()
6475 {
6476
6477 ;
6478 return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482 break
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext
6485 CC="$CC -n32"
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 ac_cv_sys_largefile_CC=' -n32'; break
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext
6490 break
6491 done
6492 CC=$ac_save_CC
6493 rm -f conftest.$ac_ext
6494 fi
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6498 if test "$ac_cv_sys_largefile_CC" != no; then
6499 CC=$CC$ac_cv_sys_largefile_CC
6500 fi
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 while :; do
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <sys/types.h>
6511 /* Check that off_t can represent 2**63 - 1 correctly.
6512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6513 since some C++ compilers masquerading as C compilers
6514 incorrectly reject 9223372036854775807. */
6515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6517 && LARGE_OFF_T % 2147483647 == 1)
6518 ? 1 : -1];
6519 int
6520 main ()
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 ac_cv_sys_file_offset_bits=no; break
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #define _FILE_OFFSET_BITS 64
6534 #include <sys/types.h>
6535 /* Check that off_t can represent 2**63 - 1 correctly.
6536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6537 since some C++ compilers masquerading as C compilers
6538 incorrectly reject 9223372036854775807. */
6539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6541 && LARGE_OFF_T % 2147483647 == 1)
6542 ? 1 : -1];
6543 int
6544 main ()
6545 {
6546
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 ac_cv_sys_file_offset_bits=64; break
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 ac_cv_sys_file_offset_bits=unknown
6556 break
6557 done
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6561 case $ac_cv_sys_file_offset_bits in #(
6562 no | unknown) ;;
6563 *)
6564 cat >>confdefs.h <<_ACEOF
6565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6566 _ACEOF
6567 ;;
6568 esac
6569 rm -rf conftest*
6570 if test $ac_cv_sys_file_offset_bits = unknown; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6573 if test "${ac_cv_sys_large_files+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 while :; do
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 /* Check that off_t can represent 2**63 - 1 correctly.
6581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6582 since some C++ compilers masquerading as C compilers
6583 incorrectly reject 9223372036854775807. */
6584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6586 && LARGE_OFF_T % 2147483647 == 1)
6587 ? 1 : -1];
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_cv_sys_large_files=no; break
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #define _LARGE_FILES 1
6603 #include <sys/types.h>
6604 /* Check that off_t can represent 2**63 - 1 correctly.
6605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6606 since some C++ compilers masquerading as C compilers
6607 incorrectly reject 9223372036854775807. */
6608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6610 && LARGE_OFF_T % 2147483647 == 1)
6611 ? 1 : -1];
6612 int
6613 main ()
6614 {
6615
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 ac_cv_sys_large_files=1; break
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 ac_cv_sys_large_files=unknown
6625 break
6626 done
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6629 $as_echo "$ac_cv_sys_large_files" >&6; }
6630 case $ac_cv_sys_large_files in #(
6631 no | unknown) ;;
6632 *)
6633 cat >>confdefs.h <<_ACEOF
6634 #define _LARGE_FILES $ac_cv_sys_large_files
6635 _ACEOF
6636 ;;
6637 esac
6638 rm -rf conftest*
6639 fi
6640
6641
6642 fi
6643
6644 case $ac_cv_prog_cc_stdc in #(
6645 no) :
6646 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6647 *) :
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6649 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6650 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 ac_cv_prog_cc_c99=no
6654 ac_save_CC=$CC
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <stdarg.h>
6658 #include <stdbool.h>
6659 #include <stdlib.h>
6660 #include <wchar.h>
6661 #include <stdio.h>
6662
6663 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6664 #define debug(...) fprintf (stderr, __VA_ARGS__)
6665 #define showlist(...) puts (#__VA_ARGS__)
6666 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6667 static void
6668 test_varargs_macros (void)
6669 {
6670 int x = 1234;
6671 int y = 5678;
6672 debug ("Flag");
6673 debug ("X = %d\n", x);
6674 showlist (The first, second, and third items.);
6675 report (x>y, "x is %d but y is %d", x, y);
6676 }
6677
6678 // Check long long types.
6679 #define BIG64 18446744073709551615ull
6680 #define BIG32 4294967295ul
6681 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6682 #if !BIG_OK
6683 your preprocessor is broken;
6684 #endif
6685 #if BIG_OK
6686 #else
6687 your preprocessor is broken;
6688 #endif
6689 static long long int bignum = -9223372036854775807LL;
6690 static unsigned long long int ubignum = BIG64;
6691
6692 struct incomplete_array
6693 {
6694 int datasize;
6695 double data[];
6696 };
6697
6698 struct named_init {
6699 int number;
6700 const wchar_t *name;
6701 double average;
6702 };
6703
6704 typedef const char *ccp;
6705
6706 static inline int
6707 test_restrict (ccp restrict text)
6708 {
6709 // See if C++-style comments work.
6710 // Iterate through items via the restricted pointer.
6711 // Also check for declarations in for loops.
6712 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6713 continue;
6714 return 0;
6715 }
6716
6717 // Check varargs and va_copy.
6718 static void
6719 test_varargs (const char *format, ...)
6720 {
6721 va_list args;
6722 va_start (args, format);
6723 va_list args_copy;
6724 va_copy (args_copy, args);
6725
6726 const char *str;
6727 int number;
6728 float fnumber;
6729
6730 while (*format)
6731 {
6732 switch (*format++)
6733 {
6734 case 's': // string
6735 str = va_arg (args_copy, const char *);
6736 break;
6737 case 'd': // int
6738 number = va_arg (args_copy, int);
6739 break;
6740 case 'f': // float
6741 fnumber = va_arg (args_copy, double);
6742 break;
6743 default:
6744 break;
6745 }
6746 }
6747 va_end (args_copy);
6748 va_end (args);
6749 }
6750
6751 int
6752 main ()
6753 {
6754
6755 // Check bool.
6756 _Bool success = false;
6757
6758 // Check restrict.
6759 if (test_restrict ("String literal") == 0)
6760 success = true;
6761 char *restrict newvar = "Another string";
6762
6763 // Check varargs.
6764 test_varargs ("s, d' f .", "string", 65, 34.234);
6765 test_varargs_macros ();
6766
6767 // Check flexible array members.
6768 struct incomplete_array *ia =
6769 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6770 ia->datasize = 10;
6771 for (int i = 0; i < ia->datasize; ++i)
6772 ia->data[i] = i * 1.234;
6773
6774 // Check named initializers.
6775 struct named_init ni = {
6776 .number = 34,
6777 .name = L"Test wide string",
6778 .average = 543.34343,
6779 };
6780
6781 ni.number = 58;
6782
6783 int dynamic_array[ni.number];
6784 dynamic_array[ni.number - 1] = 543;
6785
6786 // work around unused variable warnings
6787 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6788 || dynamic_array[ni.number - 1] != 543);
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6795 do
6796 CC="$ac_save_CC $ac_arg"
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 ac_cv_prog_cc_c99=$ac_arg
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext
6801 test "x$ac_cv_prog_cc_c99" != "xno" && break
6802 done
6803 rm -f conftest.$ac_ext
6804 CC=$ac_save_CC
6805
6806 fi
6807 # AC_CACHE_VAL
6808 case "x$ac_cv_prog_cc_c99" in
6809 x)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6811 $as_echo "none needed" >&6; } ;;
6812 xno)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6814 $as_echo "unsupported" >&6; } ;;
6815 *)
6816 CC="$CC $ac_cv_prog_cc_c99"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6818 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6819 esac
6820 if test "x$ac_cv_prog_cc_c99" != xno; then :
6821 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6825 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_cv_prog_cc_c89=no
6829 ac_save_CC=$CC
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <stdarg.h>
6833 #include <stdio.h>
6834 #include <sys/types.h>
6835 #include <sys/stat.h>
6836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6837 struct buf { int x; };
6838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6839 static char *e (p, i)
6840 char **p;
6841 int i;
6842 {
6843 return p[i];
6844 }
6845 static char *f (char * (*g) (char **, int), char **p, ...)
6846 {
6847 char *s;
6848 va_list v;
6849 va_start (v,p);
6850 s = g (p, va_arg (v,int));
6851 va_end (v);
6852 return s;
6853 }
6854
6855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6856 function prototypes and stuff, but not '\xHH' hex character constants.
6857 These don't provoke an error unfortunately, instead are silently treated
6858 as 'x'. The following induces an error, until -std is added to get
6859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6860 array size at least. It's necessary to write '\x00'==0 to get something
6861 that's true only with -std. */
6862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6863
6864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6865 inside strings and character constants. */
6866 #define FOO(x) 'x'
6867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6868
6869 int test (int i, double x);
6870 struct s1 {int (*f) (int a);};
6871 struct s2 {int (*f) (double a);};
6872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6873 int argc;
6874 char **argv;
6875 int
6876 main ()
6877 {
6878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6885 do
6886 CC="$ac_save_CC $ac_arg"
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_prog_cc_c89=$ac_arg
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext
6891 test "x$ac_cv_prog_cc_c89" != "xno" && break
6892 done
6893 rm -f conftest.$ac_ext
6894 CC=$ac_save_CC
6895
6896 fi
6897 # AC_CACHE_VAL
6898 case "x$ac_cv_prog_cc_c89" in
6899 x)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;;
6902 xno)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6904 $as_echo "unsupported" >&6; } ;;
6905 *)
6906 CC="$CC $ac_cv_prog_cc_c89"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6909 esac
6910 if test "x$ac_cv_prog_cc_c89" != xno; then :
6911 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6912 else
6913 ac_cv_prog_cc_stdc=no
6914 fi
6915
6916 fi
6917 ;;
6918 esac
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6920 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6921 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 fi
6924
6925 case $ac_cv_prog_cc_stdc in #(
6926 no) :
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6928 $as_echo "unsupported" >&6; } ;; #(
6929 '') :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6931 $as_echo "none needed" >&6; } ;; #(
6932 *) :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6934 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6935 esac
6936
6937
6938
6939 # Code from module alloca-opt:
6940 # Code from module allocator:
6941 # Code from module careadlinkat:
6942 # Code from module clock-time:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dtotimespec:
6950 # Code from module dup2:
6951 # Code from module extensions:
6952
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module gettime:
6959 # Code from module gettimeofday:
6960 # Code from module ignore-value:
6961 # Code from module include_next:
6962 # Code from module intprops:
6963 # Code from module inttypes-incomplete:
6964 # Code from module largefile:
6965
6966 # Code from module lstat:
6967 # Code from module manywarnings:
6968 # Code from module mktime:
6969 # Code from module multiarch:
6970 # Code from module nocrash:
6971 # Code from module pathmax:
6972 # Code from module pselect:
6973 # Code from module pthread_sigmask:
6974 # Code from module readlink:
6975 # Code from module signal-h:
6976 # Code from module snippet/_Noreturn:
6977 # Code from module snippet/arg-nonnull:
6978 # Code from module snippet/c++defs:
6979 # Code from module snippet/warn-on-use:
6980 # Code from module socklen:
6981 # Code from module ssize_t:
6982 # Code from module stat:
6983 # Code from module stat-time:
6984 # Code from module stdalign:
6985 # Code from module stdarg:
6986
6987
6988
6989 # Code from module stdbool:
6990 # Code from module stddef:
6991 # Code from module stdint:
6992 # Code from module stdio:
6993 # Code from module stdlib:
6994 # Code from module strftime:
6995 # Code from module strtoimax:
6996 # Code from module strtoll:
6997 # Code from module strtoull:
6998 # Code from module strtoumax:
6999 # Code from module symlink:
7000 # Code from module sys_select:
7001 # Code from module sys_stat:
7002 # Code from module sys_time:
7003 # Code from module time:
7004 # Code from module time_r:
7005 # Code from module timespec:
7006 # Code from module timespec-add:
7007 # Code from module timespec-sub:
7008 # Code from module u64:
7009 # Code from module unistd:
7010 # Code from module utimens:
7011 # Code from module verify:
7012 # Code from module warnings:
7013
7014
7015 # Check whether --enable-gcc-warnings was given.
7016 if test "${enable_gcc_warnings+set}" = set; then :
7017 enableval=$enable_gcc_warnings; case $enableval in
7018 yes|no) ;;
7019 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7020 esac
7021 gl_gcc_warnings=$enableval
7022 else
7023 gl_gcc_warnings=no
7024
7025 fi
7026
7027
7028 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7029 # ------------------------------------------------
7030 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7031 # Otherwise, run RUN-IF-NOT-FOUND.
7032
7033
7034 # When compiling with GCC, prefer -isystem to -I when including system
7035 # include files, to avoid generating useless diagnostics for the files.
7036 if test "$gl_gcc_warnings" != yes; then
7037 isystem='-I'
7038 else
7039 isystem='-isystem '
7040
7041 # This, $nw, is the list of warnings we disable.
7042 nw=
7043
7044 case $with_x_toolkit in
7045 lucid | athena | motif)
7046 # Old toolkits mishandle 'const'.
7047 nw="$nw -Wwrite-strings"
7048 ;;
7049 *)
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7051 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7052 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055
7056 gl_save_compiler_FLAGS="$CFLAGS"
7057 as_fn_append CFLAGS " -Werror"
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060
7061 int
7062 main ()
7063 {
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 gl_cv_warn_c__Werror=yes
7071 else
7072 gl_cv_warn_c__Werror=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 CFLAGS="$gl_save_compiler_FLAGS"
7076
7077 fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7079 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7080 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7081 as_fn_append WERROR_CFLAGS " -Werror"
7082 fi
7083
7084
7085 ;;
7086 esac
7087
7088
7089 nw="$nw -Waggregate-return" # anachronistic
7090 nw="$nw -Wlong-long" # C90 is anachronistic
7091 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7092 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7093 nw="$nw -Wtraditional" # Warns on #elif which we use often
7094 nw="$nw -Wcast-qual" # Too many warnings for now
7095 nw="$nw -Wconversion" # Too many warnings for now
7096 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7097 nw="$nw -Wsign-conversion" # Too many warnings for now
7098 nw="$nw -Woverlength-strings" # Not a problem these days
7099 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7100 nw="$nw -Wpadded" # Our structs are not padded
7101 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7102 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7103 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7104 nw="$nw -Wvla" # warnings in gettext.h
7105 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7106 nw="$nw -Wswitch-enum" # Too many warnings for now
7107 nw="$nw -Wswitch-default" # Too many warnings for now
7108 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7109 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7110
7111 # Emacs doesn't care about shadowing; see
7112 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7113 nw="$nw -Wshadow"
7114
7115 # The following lines should be removable at some point.
7116 nw="$nw -Wstack-protector"
7117 nw="$nw -Wstrict-overflow"
7118 nw="$nw -Wsuggest-attribute=const"
7119 nw="$nw -Wsuggest-attribute=pure"
7120
7121
7122
7123 if test -n "$GCC"; then
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7126 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7127 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130
7131 gl_save_CFLAGS="$CFLAGS"
7132 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135
7136 int
7137 main ()
7138 {
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_compile "$LINENO"; then :
7145 gl_cv_cc_nomfi_supported=yes
7146 else
7147 gl_cv_cc_nomfi_supported=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 CFLAGS="$gl_save_CFLAGS"
7151 fi
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7154 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7155
7156 if test "$gl_cv_cc_nomfi_supported" = yes; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7158 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7159 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162
7163 gl_save_CFLAGS="$CFLAGS"
7164 CFLAGS="$CFLAGS -W -Werror"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 void f (void)
7168 {
7169 typedef struct { int a; int b; } s_t;
7170 s_t s1 = { 0, };
7171 }
7172
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 gl_cv_cc_nomfi_needed=no
7183 else
7184 gl_cv_cc_nomfi_needed=yes
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 CFLAGS="$gl_save_CFLAGS"
7188
7189 fi
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7192 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7193 fi
7194 fi
7195
7196 gl_manywarn_set=
7197 for gl_manywarn_item in \
7198 -Wall \
7199 -W \
7200 -Wformat-y2k \
7201 -Wformat-nonliteral \
7202 -Wformat-security \
7203 -Winit-self \
7204 -Wmissing-include-dirs \
7205 -Wswitch-default \
7206 -Wswitch-enum \
7207 -Wunused \
7208 -Wunknown-pragmas \
7209 -Wstrict-aliasing \
7210 -Wstrict-overflow \
7211 -Wsystem-headers \
7212 -Wfloat-equal \
7213 -Wtraditional \
7214 -Wtraditional-conversion \
7215 -Wdeclaration-after-statement \
7216 -Wundef \
7217 -Wshadow \
7218 -Wunsafe-loop-optimizations \
7219 -Wpointer-arith \
7220 -Wbad-function-cast \
7221 -Wc++-compat \
7222 -Wcast-qual \
7223 -Wcast-align \
7224 -Wwrite-strings \
7225 -Wconversion \
7226 -Wsign-conversion \
7227 -Wlogical-op \
7228 -Waggregate-return \
7229 -Wstrict-prototypes \
7230 -Wold-style-definition \
7231 -Wmissing-prototypes \
7232 -Wmissing-declarations \
7233 -Wmissing-noreturn \
7234 -Wmissing-format-attribute \
7235 -Wpacked \
7236 -Wpadded \
7237 -Wredundant-decls \
7238 -Wnested-externs \
7239 -Wunreachable-code \
7240 -Winline \
7241 -Winvalid-pch \
7242 -Wlong-long \
7243 -Wvla \
7244 -Wvolatile-register-var \
7245 -Wdisabled-optimization \
7246 -Wstack-protector \
7247 -Woverlength-strings \
7248 -Wbuiltin-macro-redefined \
7249 -Wmudflap \
7250 -Wpacked-bitfield-compat \
7251 -Wsync-nand \
7252 ; do
7253 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7254 done
7255 # The following are not documented in the manual but are included in
7256 # output from gcc --help=warnings.
7257 for gl_manywarn_item in \
7258 -Wattributes \
7259 -Wcoverage-mismatch \
7260 -Wunused-macros \
7261 ; do
7262 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7263 done
7264 # More warnings from gcc 4.6.2 --help=warnings.
7265 for gl_manywarn_item in \
7266 -Wabi \
7267 -Wcpp \
7268 -Wdeprecated \
7269 -Wdeprecated-declarations \
7270 -Wdiv-by-zero \
7271 -Wdouble-promotion \
7272 -Wendif-labels \
7273 -Wextra \
7274 -Wformat-contains-nul \
7275 -Wformat-extra-args \
7276 -Wformat-zero-length \
7277 -Wformat=2 \
7278 -Wmultichar \
7279 -Wnormalized=nfc \
7280 -Woverflow \
7281 -Wpointer-to-int-cast \
7282 -Wpragmas \
7283 -Wsuggest-attribute=const \
7284 -Wsuggest-attribute=noreturn \
7285 -Wsuggest-attribute=pure \
7286 -Wtrampolines \
7287 ; do
7288 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7289 done
7290
7291 # Disable the missing-field-initializers warning if needed
7292 if test "$gl_cv_cc_nomfi_needed" = yes; then
7293 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7294 fi
7295
7296 ws=$gl_manywarn_set
7297
7298
7299 gl_warn_set=
7300 set x $ws; shift
7301 for gl_warn_item
7302 do
7303 case " $nw " in
7304 *" $gl_warn_item "*)
7305 ;;
7306 *)
7307 gl_warn_set="$gl_warn_set $gl_warn_item"
7308 ;;
7309 esac
7310 done
7311 ws=$gl_warn_set
7312
7313 for w in $ws; do
7314 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7316 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7317 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320
7321 gl_save_compiler_FLAGS="$CFLAGS"
7322 as_fn_append CFLAGS " $w"
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325
7326 int
7327 main ()
7328 {
7329
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"; then :
7335 eval "$as_gl_Warn=yes"
7336 else
7337 eval "$as_gl_Warn=no"
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 CFLAGS="$gl_save_compiler_FLAGS"
7341
7342 fi
7343 eval ac_res=\$$as_gl_Warn
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7345 $as_echo "$ac_res" >&6; }
7346 eval as_val=\$$as_gl_Warn
7347 if test "x$as_val" = x""yes; then :
7348 as_fn_append WARN_CFLAGS " $w"
7349 fi
7350
7351
7352 done
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7354 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7355 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358
7359 gl_save_compiler_FLAGS="$CFLAGS"
7360 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363
7364 int
7365 main ()
7366 {
7367
7368 ;
7369 return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_compile "$LINENO"; then :
7373 gl_cv_warn_c__Wno_missing_field_initializers=yes
7374 else
7375 gl_cv_warn_c__Wno_missing_field_initializers=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 CFLAGS="$gl_save_compiler_FLAGS"
7379
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7382 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7383 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7384 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7385 fi
7386
7387 # We need this one
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7389 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7390 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393
7394 gl_save_compiler_FLAGS="$CFLAGS"
7395 as_fn_append CFLAGS " -Wno-sign-compare"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398
7399 int
7400 main ()
7401 {
7402
7403 ;
7404 return 0;
7405 }
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408 gl_cv_warn_c__Wno_sign_compare=yes
7409 else
7410 gl_cv_warn_c__Wno_sign_compare=no
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 CFLAGS="$gl_save_compiler_FLAGS"
7414
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7417 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7418 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7419 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7420 fi
7421
7422 # Too many warnings for now
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7424 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7425 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428
7429 gl_save_compiler_FLAGS="$CFLAGS"
7430 as_fn_append CFLAGS " -Wno-type-limits"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433
7434 int
7435 main ()
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 gl_cv_warn_c__Wno_type_limits=yes
7444 else
7445 gl_cv_warn_c__Wno_type_limits=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 CFLAGS="$gl_save_compiler_FLAGS"
7449
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7452 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7453 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7454 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7455 fi
7456
7457 # Too many warnings for now
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7459 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7460 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463
7464 gl_save_compiler_FLAGS="$CFLAGS"
7465 as_fn_append CFLAGS " -Wno-switch"
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_compile "$LINENO"; then :
7478 gl_cv_warn_c__Wno_switch=yes
7479 else
7480 gl_cv_warn_c__Wno_switch=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 CFLAGS="$gl_save_compiler_FLAGS"
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7487 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7488 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7489 as_fn_append WARN_CFLAGS " -Wno-switch"
7490 fi
7491
7492 # Too many warnings for now
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7494 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7495 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498
7499 gl_save_compiler_FLAGS="$CFLAGS"
7500 as_fn_append CFLAGS " -Wno-unused-parameter"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503
7504 int
7505 main ()
7506 {
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 gl_cv_warn_c__Wno_unused_parameter=yes
7514 else
7515 gl_cv_warn_c__Wno_unused_parameter=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 CFLAGS="$gl_save_compiler_FLAGS"
7519
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7522 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7523 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7524 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7525 fi
7526
7527 # Too many warnings for now
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7529 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7530 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533
7534 gl_save_compiler_FLAGS="$CFLAGS"
7535 as_fn_append CFLAGS " -Wno-format-nonliteral"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538
7539 int
7540 main ()
7541 {
7542
7543 ;
7544 return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 gl_cv_warn_c__Wno_format_nonliteral=yes
7549 else
7550 gl_cv_warn_c__Wno_format_nonliteral=no
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 CFLAGS="$gl_save_compiler_FLAGS"
7554
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7557 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7558 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7559 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7560 fi
7561
7562
7563
7564 # In spite of excluding -Wlogical-op above, it is enabled, as of
7565 # gcc 4.5.0 20090517.
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7567 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7568 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571
7572 gl_save_compiler_FLAGS="$CFLAGS"
7573 as_fn_append CFLAGS " -Wno-logical-op"
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576
7577 int
7578 main ()
7579 {
7580
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 gl_cv_warn_c__Wno_logical_op=yes
7587 else
7588 gl_cv_warn_c__Wno_logical_op=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 CFLAGS="$gl_save_compiler_FLAGS"
7592
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7595 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7596 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7597 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7598 fi
7599
7600
7601
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7603 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7604 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607
7608 gl_save_compiler_FLAGS="$CFLAGS"
7609 as_fn_append CFLAGS " -fdiagnostics-show-option"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612
7613 int
7614 main ()
7615 {
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 gl_cv_warn_c__fdiagnostics_show_option=yes
7623 else
7624 gl_cv_warn_c__fdiagnostics_show_option=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 CFLAGS="$gl_save_compiler_FLAGS"
7628
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7631 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7632 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7633 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7634 fi
7635
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7638 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7639 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642
7643 gl_save_compiler_FLAGS="$CFLAGS"
7644 as_fn_append CFLAGS " -funit-at-a-time"
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647
7648 int
7649 main ()
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 gl_cv_warn_c__funit_at_a_time=yes
7658 else
7659 gl_cv_warn_c__funit_at_a_time=no
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 CFLAGS="$gl_save_compiler_FLAGS"
7663
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7666 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7667 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7668 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7669 fi
7670
7671
7672
7673
7674 $as_echo "#define lint 1" >>confdefs.h
7675
7676
7677 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7678
7679
7680 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7681
7682
7683 # We use a slightly smaller set of warning options for lib/.
7684 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7685 nw=
7686 nw="$nw -Wunused-macros"
7687
7688
7689 gl_warn_set=
7690 set x $WARN_CFLAGS; shift
7691 for gl_warn_item
7692 do
7693 case " $nw " in
7694 *" $gl_warn_item "*)
7695 ;;
7696 *)
7697 gl_warn_set="$gl_warn_set $gl_warn_item"
7698 ;;
7699 esac
7700 done
7701 GNULIB_WARN_CFLAGS=$gl_warn_set
7702
7703
7704 fi
7705
7706
7707
7708
7709 # Extract the first word of "install-info", so it can be a program name with args.
7710 set dummy install-info; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 case $INSTALL_INFO in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7737 ;;
7738 esac
7739 fi
7740 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7741 if test -n "$INSTALL_INFO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7743 $as_echo "$INSTALL_INFO" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 # Extract the first word of "gzip", so it can be a program name with args.
7751 set dummy gzip; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $GZIP_PROG in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 ;;
7778 esac
7779 fi
7780 GZIP_PROG=$ac_cv_path_GZIP_PROG
7781 if test -n "$GZIP_PROG"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7783 $as_echo "$GZIP_PROG" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790
7791 if test $opsys = gnu-linux; then
7792 # Extract the first word of "paxctl", so it can be a program name with args.
7793 set dummy paxctl; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 case $PAXCTL in
7800 [\\/]* | ?:[\\/]*)
7801 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7802 ;;
7803 *)
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7806 do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 ;;
7820 esac
7821 fi
7822 PAXCTL=$ac_cv_path_PAXCTL
7823 if test -n "$PAXCTL"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7825 $as_echo "$PAXCTL" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833
7834 ## Need makeinfo >= 4.7 (?) to build the manuals.
7835 # Extract the first word of "makeinfo", so it can be a program name with args.
7836 set dummy makeinfo; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 case $MAKEINFO in
7843 [\\/]* | ?:[\\/]*)
7844 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858 done
7859 done
7860 IFS=$as_save_IFS
7861
7862 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7863 ;;
7864 esac
7865 fi
7866 MAKEINFO=$ac_cv_path_MAKEINFO
7867 if test -n "$MAKEINFO"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7869 $as_echo "$MAKEINFO" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876 if test "$MAKEINFO" != "no" && \
7877 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
7878 MAKEINFO=no
7879 fi
7880
7881 ## Makeinfo is unusual. For a released Emacs, the manuals are
7882 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7883 ## therefore in the category of "special tools" not normally required, which
7884 ## configure does not have to check for (eg autoconf itself).
7885 ## In a Bazaar checkout on the other hand, the manuals are not included.
7886 ## So makeinfo is a requirement to build from Bazaar, and configure
7887 ## should test for it as it does for any other build requirement.
7888 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7889 ## with pre-built manuals, from a Bazaar checkout.
7890 HAVE_MAKEINFO=yes
7891
7892 if test "$MAKEINFO" = "no"; then
7893 MAKEINFO=makeinfo
7894 if test "x${with_makeinfo}" = "xno"; then
7895 HAVE_MAKEINFO=no
7896 elif test ! -e $srcdir/info/emacs; then
7897 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7898 source tree does not seem to have pre-built manuals in the \`info' directory.
7899 Either install a suitable version of makeinfo, or re-run configure
7900 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7901 fi
7902 fi
7903
7904
7905 INFO_EXT=.info
7906 INFO_OPTS=--no-split
7907
7908
7909
7910
7911 if test x$GCC = xyes; then
7912 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7913 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7914 else
7915 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7916 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7917 fi
7918
7919
7920 late_LDFLAGS=$LDFLAGS
7921 if test x$GCC = xyes; then
7922 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7923 else
7924 LDFLAGS="$LDFLAGS -znocombreloc"
7925 fi
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7928 $as_echo_n "checking for -znocombreloc... " >&6; }
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931
7932 int
7933 main ()
7934 {
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942 $as_echo "yes" >&6; }
7943 else
7944 LDFLAGS=$late_LDFLAGS
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950
7951
7952 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7953 case "$opsys" in
7954 your-opsys-here) CANNOT_DUMP=yes ;;
7955 esac
7956
7957 test "$CANNOT_DUMP" = "yes" && \
7958
7959 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7960
7961
7962
7963
7964
7965 UNEXEC_OBJ=unexelf.o
7966 case "$opsys" in
7967 # MSDOS uses unexcoff.o
7968 # MSWindows uses unexw32.o
7969 aix4-2)
7970 UNEXEC_OBJ=unexaix.o
7971 ;;
7972 cygwin)
7973 UNEXEC_OBJ=unexcw.o
7974 ;;
7975 darwin)
7976 UNEXEC_OBJ=unexmacosx.o
7977 ;;
7978 hpux10-20 | hpux11)
7979 UNEXEC_OBJ=unexhp9k800.o
7980 ;;
7981 sol2-10)
7982 # Use the Solaris dldump() function, called from unexsol.c, to dump
7983 # emacs, instead of the generic ELF dump code found in unexelf.c.
7984 # The resulting binary has a complete symbol table, and is better
7985 # for debugging and other observability tools (debuggers, pstack, etc).
7986 #
7987 # If you encounter a problem using dldump(), please consider sending
7988 # a message to the OpenSolaris tools-linking mailing list:
7989 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7990 #
7991 # It is likely that dldump() works with older Solaris too, but this has
7992 # not been tested, so for now this change is for Solaris 10 or newer.
7993 UNEXEC_OBJ=unexsol.o
7994 ;;
7995 esac
7996
7997 LD_SWITCH_SYSTEM=
7998 case "$opsys" in
7999 freebsd)
8000 ## Let `ld' find image libs and similar things in /usr/local/lib.
8001 ## The system compiler, GCC, has apparently been modified to not
8002 ## look there, contrary to what a stock GCC would do.
8003 ### It's not our place to do this. See bug#10313#17.
8004 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8005 :
8006 ;;
8007
8008 gnu-linux)
8009 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8010 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8011 ;;
8012
8013 netbsd)
8014 ### It's not our place to do this. See bug#10313#17.
8015 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8016 :
8017 ;;
8018
8019 openbsd)
8020 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8021 ## otherwise Emacs dumps core on elf systems.
8022 LD_SWITCH_SYSTEM="-Z"
8023 ;;
8024 esac
8025
8026
8027 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8028
8029 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8030 ## which has not been defined yet. When this was handled with cpp,
8031 ## it was expanded to null when configure sourced the s/*.h file.
8032 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8033 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8034 ## (or somesuch), but because it is supposed to go at the _front_
8035 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8036 ## Compare with the gnu-linux case below, which added to the end
8037 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8038 ## LD_SWITCH_SYSTEM_TEMACS.
8039 case "$opsys" in
8040 netbsd|openbsd)
8041 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8042 esac
8043
8044
8045 C_SWITCH_MACHINE=
8046 case $canonical in
8047 alpha*)
8048 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8049 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8050
8051 fi
8052
8053 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8054 ## With ELF, make sure that all common symbols get allocated to in the
8055 ## data section. Otherwise, the dump of temacs may miss variables in
8056 ## the shared library that have been initialized. For example, with
8057 ## GNU libc, __malloc_initialized would normally be resolved to the
8058 ## shared library's .bss section, which is fatal.
8059 if test "x$GCC" = "xyes"; then
8060 C_SWITCH_MACHINE="-fno-common"
8061 else
8062 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8063 fi
8064 else
8065 UNEXEC_OBJ=unexalpha.o
8066 fi
8067 ;;
8068 esac
8069
8070
8071
8072
8073 C_SWITCH_SYSTEM=
8074 ## Some programs in src produce warnings saying certain subprograms
8075 ## are too complex and need a MAXMEM value greater than 2000 for
8076 ## additional optimization. --nils@exp-math.uni-essen.de
8077 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8078 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8079 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8080 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8081
8082
8083
8084 LIBS_SYSTEM=
8085 case "$opsys" in
8086 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8087 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8088
8089 freebsd) LIBS_SYSTEM="-lutil" ;;
8090
8091 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8092
8093 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8094
8095 ## Motif needs -lgen.
8096 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8097 esac
8098
8099
8100
8101 ### Make sure subsequent tests use flags consistent with the build flags.
8102
8103 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8104 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8105 else
8106 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8107 fi
8108
8109 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8110
8111 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8112
8113
8114
8115 LIB_MATH=-lm
8116 LIB_STANDARD=
8117 START_FILES=
8118 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8119
8120 case $opsys in
8121 cygwin )
8122 LIB_MATH=
8123 START_FILES='pre-crt0.o'
8124 ;;
8125 darwin )
8126 ## Adding -lm confuses the dynamic linker, so omit it.
8127 LIB_MATH=
8128 START_FILES='pre-crt0.o'
8129 ;;
8130 freebsd )
8131 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8132 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8133 SYSTEM_TYPE=berkeley-unix
8134 ;;
8135 gnu-linux | gnu-kfreebsd )
8136 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8137 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8138 ;;
8139 hpux10-20 | hpux11 )
8140 LIB_STANDARD=-lc
8141 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8142 ;;
8143 netbsd | openbsd )
8144 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8145 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8146 SYSTEM_TYPE=berkeley-unix
8147 ;;
8148
8149 sol2* | unixware )
8150 SYSTEM_TYPE=usg-unix-v
8151 ;;
8152
8153 esac
8154
8155
8156
8157
8158 cat >>confdefs.h <<_ACEOF
8159 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8160 _ACEOF
8161
8162
8163 crt_files=
8164
8165 for file in x $LIB_STANDARD $START_FILES; do
8166 case "$file" in
8167 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8168 esac
8169 done
8170
8171 if test "x$crt_files" != x; then
8172
8173 ## If user specified a crt-dir, use that unconditionally.
8174 crt_gcc=no
8175
8176 if test "X$CRT_DIR" = "X"; then
8177
8178 CRT_DIR=/usr/lib # default
8179
8180 case "$canonical" in
8181 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8182 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8183 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8184 ## For anything else (eg /usr/lib32), it is up the user to specify
8185 ## the location (bug#5655).
8186 ## Test for crtn.o, not just the directory, because sometimes the
8187 ## directory exists but does not have the relevant files (bug#1287).
8188 ## FIXME better to test for binary compatibility somehow.
8189 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8190 ;;
8191
8192 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8193 esac
8194
8195 case "$opsys" in
8196 hpux10-20) CRT_DIR=/lib ;;
8197 esac
8198
8199 test "x${GCC}" = xyes && crt_gcc=yes
8200
8201 fi # CRT_DIR = ""
8202
8203 crt_missing=
8204
8205 for file in $crt_files; do
8206
8207 ## If we're using gcc, try to determine it automatically by asking
8208 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8209 ## system-dependent default from above.]
8210 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8211
8212 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8213 case "$crt_file" in
8214 */*)
8215 CRT_DIR=`$as_dirname -- "$crt_file" ||
8216 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8217 X"$crt_file" : 'X\(//\)[^/]' \| \
8218 X"$crt_file" : 'X\(//\)$' \| \
8219 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8220 $as_echo X"$crt_file" |
8221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8222 s//\1/
8223 q
8224 }
8225 /^X\(\/\/\)[^/].*/{
8226 s//\1/
8227 q
8228 }
8229 /^X\(\/\/\)$/{
8230 s//\1/
8231 q
8232 }
8233 /^X\(\/\).*/{
8234 s//\1/
8235 q
8236 }
8237 s/.*/./; q'`
8238 ;;
8239 esac
8240 fi
8241
8242 crt_gcc=no
8243
8244 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8245 done # $crt_files
8246
8247 test "x$crt_missing" = x || \
8248 as_fn_error "Required file(s) not found:$crt_missing
8249 Try using the --with-crt-dir option." "$LINENO" 5
8250
8251 fi # crt_files != ""
8252
8253
8254
8255 case $opsys in
8256 netbsd | openbsd )
8257 if test -f $CRT_DIR/crti.o; then
8258
8259 test -f $CRT_DIR/crtn.o || \
8260 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8261
8262 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8263 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8264 fi
8265 ;;
8266 esac
8267
8268
8269 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8270 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8271 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 LIBC_FATAL_STDERR_=1
8284 export LIBC_FATAL_STDERR_
8285
8286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8287 # for constant arguments. Useless!
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8289 $as_echo_n "checking for working alloca.h... " >&6; }
8290 if test "${ac_cv_working_alloca_h+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 #include <alloca.h>
8296 int
8297 main ()
8298 {
8299 char *p = (char *) alloca (2 * sizeof (int));
8300 if (p) return 0;
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 ac_cv_working_alloca_h=yes
8307 else
8308 ac_cv_working_alloca_h=no
8309 fi
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 fi
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8314 $as_echo "$ac_cv_working_alloca_h" >&6; }
8315 if test $ac_cv_working_alloca_h = yes; then
8316
8317 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8318
8319 fi
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8322 $as_echo_n "checking for alloca... " >&6; }
8323 if test "${ac_cv_func_alloca_works+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifdef __GNUC__
8329 # define alloca __builtin_alloca
8330 #else
8331 # ifdef _MSC_VER
8332 # include <malloc.h>
8333 # define alloca _alloca
8334 # else
8335 # ifdef HAVE_ALLOCA_H
8336 # include <alloca.h>
8337 # else
8338 # ifdef _AIX
8339 #pragma alloca
8340 # else
8341 # ifndef alloca /* predefined by HP cc +Olibcalls */
8342 char *alloca ();
8343 # endif
8344 # endif
8345 # endif
8346 # endif
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 char *p = (char *) alloca (1);
8353 if (p) return 0;
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359 ac_cv_func_alloca_works=yes
8360 else
8361 ac_cv_func_alloca_works=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8367 $as_echo "$ac_cv_func_alloca_works" >&6; }
8368
8369 if test $ac_cv_func_alloca_works = yes; then
8370
8371 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8372
8373 else
8374 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8375 # that cause trouble. Some versions do not even contain alloca or
8376 # contain a buggy version. If you still want to use their alloca,
8377 # use ar to extract alloca.o from them instead of compiling alloca.c.
8378
8379
8380
8381
8382
8383 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8384
8385 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8386
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8389 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8390 if test "${ac_cv_os_cray+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #if defined CRAY && ! defined CRAY2
8396 webecray
8397 #else
8398 wenotbecray
8399 #endif
8400
8401 _ACEOF
8402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8403 $EGREP "webecray" >/dev/null 2>&1; then :
8404 ac_cv_os_cray=yes
8405 else
8406 ac_cv_os_cray=no
8407 fi
8408 rm -f conftest*
8409
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8412 $as_echo "$ac_cv_os_cray" >&6; }
8413 if test $ac_cv_os_cray = yes; then
8414 for ac_func in _getb67 GETB67 getb67; do
8415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8417 eval as_val=\$$as_ac_var
8418 if test "x$as_val" = x""yes; then :
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8422 _ACEOF
8423
8424 break
8425 fi
8426
8427 done
8428 fi
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8431 $as_echo_n "checking stack direction for C alloca... " >&6; }
8432 if test "${ac_cv_c_stack_direction+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test "$cross_compiling" = yes; then :
8436 ac_cv_c_stack_direction=0
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 int
8442 find_stack_direction (int *addr, int depth)
8443 {
8444 int dir, dummy = 0;
8445 if (! addr)
8446 addr = &dummy;
8447 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8448 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8449 return dir + dummy;
8450 }
8451
8452 int
8453 main (int argc, char **argv)
8454 {
8455 return find_stack_direction (0, argc + !argv + 20) < 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_run "$LINENO"; then :
8459 ac_cv_c_stack_direction=1
8460 else
8461 ac_cv_c_stack_direction=-1
8462 fi
8463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8464 conftest.$ac_objext conftest.beam conftest.$ac_ext
8465 fi
8466
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8469 $as_echo "$ac_cv_c_stack_direction" >&6; }
8470 cat >>confdefs.h <<_ACEOF
8471 #define STACK_DIRECTION $ac_cv_c_stack_direction
8472 _ACEOF
8473
8474
8475 fi
8476
8477
8478
8479
8480 for ac_func in $ac_func_list
8481 do :
8482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8484 eval as_val=\$$as_ac_var
8485 if test "x$as_val" = x""yes; then :
8486 cat >>confdefs.h <<_ACEOF
8487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8488 _ACEOF
8489
8490 fi
8491 done
8492
8493
8494
8495
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8497 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8498 if test "${ac_cv_c_bigendian+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 ac_cv_c_bigendian=unknown
8502 # See if we're dealing with a universal compiler.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #ifndef __APPLE_CC__
8506 not a universal capable compiler
8507 #endif
8508 typedef int dummy;
8509
8510 _ACEOF
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512
8513 # Check for potential -arch flags. It is not universal unless
8514 # there are at least two -arch flags with different values.
8515 ac_arch=
8516 ac_prev=
8517 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8518 if test -n "$ac_prev"; then
8519 case $ac_word in
8520 i?86 | x86_64 | ppc | ppc64)
8521 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8522 ac_arch=$ac_word
8523 else
8524 ac_cv_c_bigendian=universal
8525 break
8526 fi
8527 ;;
8528 esac
8529 ac_prev=
8530 elif test "x$ac_word" = "x-arch"; then
8531 ac_prev=arch
8532 fi
8533 done
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 if test $ac_cv_c_bigendian = unknown; then
8537 # See if sys/param.h defines the BYTE_ORDER macro.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <sys/types.h>
8541 #include <sys/param.h>
8542
8543 int
8544 main ()
8545 {
8546 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8547 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8548 && LITTLE_ENDIAN)
8549 bogus endian macros
8550 #endif
8551
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 # It does; now see whether it defined to BIG_ENDIAN or not.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <sys/types.h>
8561 #include <sys/param.h>
8562
8563 int
8564 main ()
8565 {
8566 #if BYTE_ORDER != BIG_ENDIAN
8567 not big endian
8568 #endif
8569
8570 ;
8571 return 0;
8572 }
8573 _ACEOF
8574 if ac_fn_c_try_compile "$LINENO"; then :
8575 ac_cv_c_bigendian=yes
8576 else
8577 ac_cv_c_bigendian=no
8578 fi
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 if test $ac_cv_c_bigendian = unknown; then
8584 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <limits.h>
8588
8589 int
8590 main ()
8591 {
8592 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8593 bogus endian macros
8594 #endif
8595
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 # It does; now see whether it defined to _BIG_ENDIAN or not.
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <limits.h>
8605
8606 int
8607 main ()
8608 {
8609 #ifndef _BIG_ENDIAN
8610 not big endian
8611 #endif
8612
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 ac_cv_c_bigendian=yes
8619 else
8620 ac_cv_c_bigendian=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 if test $ac_cv_c_bigendian = unknown; then
8627 # Compile a test program.
8628 if test "$cross_compiling" = yes; then :
8629 # Try to guess by grepping values from an object file.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 short int ascii_mm[] =
8633 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8634 short int ascii_ii[] =
8635 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8636 int use_ascii (int i) {
8637 return ascii_mm[i] + ascii_ii[i];
8638 }
8639 short int ebcdic_ii[] =
8640 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8641 short int ebcdic_mm[] =
8642 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8643 int use_ebcdic (int i) {
8644 return ebcdic_mm[i] + ebcdic_ii[i];
8645 }
8646 extern int foo;
8647
8648 int
8649 main ()
8650 {
8651 return use_ascii (foo) == use_ebcdic (foo);
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8658 ac_cv_c_bigendian=yes
8659 fi
8660 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8661 if test "$ac_cv_c_bigendian" = unknown; then
8662 ac_cv_c_bigendian=no
8663 else
8664 # finding both strings is unlikely to happen, but who knows?
8665 ac_cv_c_bigendian=unknown
8666 fi
8667 fi
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 $ac_includes_default
8674 int
8675 main ()
8676 {
8677
8678 /* Are we little or big endian? From Harbison&Steele. */
8679 union
8680 {
8681 long int l;
8682 char c[sizeof (long int)];
8683 } u;
8684 u.l = 1;
8685 return u.c[sizeof (long int) - 1] == 1;
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_run "$LINENO"; then :
8692 ac_cv_c_bigendian=no
8693 else
8694 ac_cv_c_bigendian=yes
8695 fi
8696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8697 conftest.$ac_objext conftest.beam conftest.$ac_ext
8698 fi
8699
8700 fi
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8703 $as_echo "$ac_cv_c_bigendian" >&6; }
8704 case $ac_cv_c_bigendian in #(
8705 yes)
8706 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8707 ;; #(
8708 no)
8709 ;; #(
8710 universal)
8711
8712 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8713
8714 ;; #(
8715 *)
8716 as_fn_error "unknown endianness
8717 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8718 esac
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8722 $as_echo_n "checking for inline... " >&6; }
8723 if test "${ac_cv_c_inline+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 ac_cv_c_inline=no
8727 for ac_kw in inline __inline__ __inline; do
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #ifndef __cplusplus
8731 typedef int foo_t;
8732 static $ac_kw foo_t static_foo () {return 0; }
8733 $ac_kw foo_t foo () {return 0; }
8734 #endif
8735
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 ac_cv_c_inline=$ac_kw
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 test "$ac_cv_c_inline" != no && break
8742 done
8743
8744 fi
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8746 $as_echo "$ac_cv_c_inline" >&6; }
8747
8748 case $ac_cv_c_inline in
8749 inline | yes) ;;
8750 *)
8751 case $ac_cv_c_inline in
8752 no) ac_val=;;
8753 *) ac_val=$ac_cv_c_inline;;
8754 esac
8755 cat >>confdefs.h <<_ACEOF
8756 #ifndef __cplusplus
8757 #define inline $ac_val
8758 #endif
8759 _ACEOF
8760 ;;
8761 esac
8762
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8765 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8766 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 /* On HP-UX before 11.23, strtold returns a struct instead of
8772 long double. Reject implementations like that, by requiring
8773 compatibility with the C99 prototype. */
8774 #include <stdlib.h>
8775 static long double (*p) (char const *, char **) = strtold;
8776 static long double
8777 test (char const *nptr, char **endptr)
8778 {
8779 long double r;
8780 r = strtold (nptr, endptr);
8781 return r;
8782 }
8783 int
8784 main ()
8785 {
8786 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_link "$LINENO"; then :
8792 gl_cv_func_c99_strtold=yes
8793 else
8794 gl_cv_func_c99_strtold=no
8795 fi
8796 rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8800 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8801 if test $gl_cv_func_c99_strtold = yes; then
8802
8803 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8804
8805 fi
8806
8807
8808 GNULIB_CHDIR=0;
8809 GNULIB_CHOWN=0;
8810 GNULIB_CLOSE=0;
8811 GNULIB_DUP=0;
8812 GNULIB_DUP2=0;
8813 GNULIB_DUP3=0;
8814 GNULIB_ENVIRON=0;
8815 GNULIB_EUIDACCESS=0;
8816 GNULIB_FACCESSAT=0;
8817 GNULIB_FCHDIR=0;
8818 GNULIB_FCHOWNAT=0;
8819 GNULIB_FDATASYNC=0;
8820 GNULIB_FSYNC=0;
8821 GNULIB_FTRUNCATE=0;
8822 GNULIB_GETCWD=0;
8823 GNULIB_GETDOMAINNAME=0;
8824 GNULIB_GETDTABLESIZE=0;
8825 GNULIB_GETGROUPS=0;
8826 GNULIB_GETHOSTNAME=0;
8827 GNULIB_GETLOGIN=0;
8828 GNULIB_GETLOGIN_R=0;
8829 GNULIB_GETPAGESIZE=0;
8830 GNULIB_GETUSERSHELL=0;
8831 GNULIB_GROUP_MEMBER=0;
8832 GNULIB_ISATTY=0;
8833 GNULIB_LCHOWN=0;
8834 GNULIB_LINK=0;
8835 GNULIB_LINKAT=0;
8836 GNULIB_LSEEK=0;
8837 GNULIB_PIPE=0;
8838 GNULIB_PIPE2=0;
8839 GNULIB_PREAD=0;
8840 GNULIB_PWRITE=0;
8841 GNULIB_READ=0;
8842 GNULIB_READLINK=0;
8843 GNULIB_READLINKAT=0;
8844 GNULIB_RMDIR=0;
8845 GNULIB_SETHOSTNAME=0;
8846 GNULIB_SLEEP=0;
8847 GNULIB_SYMLINK=0;
8848 GNULIB_SYMLINKAT=0;
8849 GNULIB_TTYNAME_R=0;
8850 GNULIB_UNISTD_H_NONBLOCKING=0;
8851 GNULIB_UNISTD_H_SIGPIPE=0;
8852 GNULIB_UNLINK=0;
8853 GNULIB_UNLINKAT=0;
8854 GNULIB_USLEEP=0;
8855 GNULIB_WRITE=0;
8856 HAVE_CHOWN=1;
8857 HAVE_DUP2=1;
8858 HAVE_DUP3=1;
8859 HAVE_EUIDACCESS=1;
8860 HAVE_FACCESSAT=1;
8861 HAVE_FCHDIR=1;
8862 HAVE_FCHOWNAT=1;
8863 HAVE_FDATASYNC=1;
8864 HAVE_FSYNC=1;
8865 HAVE_FTRUNCATE=1;
8866 HAVE_GETDTABLESIZE=1;
8867 HAVE_GETGROUPS=1;
8868 HAVE_GETHOSTNAME=1;
8869 HAVE_GETLOGIN=1;
8870 HAVE_GETPAGESIZE=1;
8871 HAVE_GROUP_MEMBER=1;
8872 HAVE_LCHOWN=1;
8873 HAVE_LINK=1;
8874 HAVE_LINKAT=1;
8875 HAVE_PIPE=1;
8876 HAVE_PIPE2=1;
8877 HAVE_PREAD=1;
8878 HAVE_PWRITE=1;
8879 HAVE_READLINK=1;
8880 HAVE_READLINKAT=1;
8881 HAVE_SETHOSTNAME=1;
8882 HAVE_SLEEP=1;
8883 HAVE_SYMLINK=1;
8884 HAVE_SYMLINKAT=1;
8885 HAVE_UNLINKAT=1;
8886 HAVE_USLEEP=1;
8887 HAVE_DECL_ENVIRON=1;
8888 HAVE_DECL_FCHDIR=1;
8889 HAVE_DECL_FDATASYNC=1;
8890 HAVE_DECL_GETDOMAINNAME=1;
8891 HAVE_DECL_GETLOGIN_R=1;
8892 HAVE_DECL_GETPAGESIZE=1;
8893 HAVE_DECL_GETUSERSHELL=1;
8894 HAVE_DECL_SETHOSTNAME=1;
8895 HAVE_DECL_TTYNAME_R=1;
8896 HAVE_OS_H=0;
8897 HAVE_SYS_PARAM_H=0;
8898 REPLACE_CHOWN=0;
8899 REPLACE_CLOSE=0;
8900 REPLACE_DUP=0;
8901 REPLACE_DUP2=0;
8902 REPLACE_FCHOWNAT=0;
8903 REPLACE_FTRUNCATE=0;
8904 REPLACE_GETCWD=0;
8905 REPLACE_GETDOMAINNAME=0;
8906 REPLACE_GETLOGIN_R=0;
8907 REPLACE_GETGROUPS=0;
8908 REPLACE_GETPAGESIZE=0;
8909 REPLACE_ISATTY=0;
8910 REPLACE_LCHOWN=0;
8911 REPLACE_LINK=0;
8912 REPLACE_LINKAT=0;
8913 REPLACE_LSEEK=0;
8914 REPLACE_PREAD=0;
8915 REPLACE_PWRITE=0;
8916 REPLACE_READ=0;
8917 REPLACE_READLINK=0;
8918 REPLACE_RMDIR=0;
8919 REPLACE_SLEEP=0;
8920 REPLACE_SYMLINK=0;
8921 REPLACE_TTYNAME_R=0;
8922 REPLACE_UNLINK=0;
8923 REPLACE_UNLINKAT=0;
8924 REPLACE_USLEEP=0;
8925 REPLACE_WRITE=0;
8926 UNISTD_H_HAVE_WINSOCK2_H=0;
8927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8928
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8931 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8932 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937
8938 #include <sys/types.h>
8939 #include <sys/stat.h>
8940 int
8941 main ()
8942 {
8943 struct stat s; s.st_dm_mode;
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 if ac_fn_c_try_compile "$LINENO"; then :
8949 ac_cv_struct_st_dm_mode=yes
8950 else
8951 ac_cv_struct_st_dm_mode=no
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
8956 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8957
8958 if test $ac_cv_struct_st_dm_mode = yes; then
8959
8960 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
8961
8962 fi
8963
8964
8965 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
8966 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
8967 ac_have_decl=1
8968 else
8969 ac_have_decl=0
8970 fi
8971
8972 cat >>confdefs.h <<_ACEOF
8973 #define HAVE_DECL_STRMODE $ac_have_decl
8974 _ACEOF
8975
8976
8977 GNULIB__EXIT=0;
8978 GNULIB_ATOLL=0;
8979 GNULIB_CALLOC_POSIX=0;
8980 GNULIB_CANONICALIZE_FILE_NAME=0;
8981 GNULIB_GETLOADAVG=0;
8982 GNULIB_GETSUBOPT=0;
8983 GNULIB_GRANTPT=0;
8984 GNULIB_MALLOC_POSIX=0;
8985 GNULIB_MBTOWC=0;
8986 GNULIB_MKDTEMP=0;
8987 GNULIB_MKOSTEMP=0;
8988 GNULIB_MKOSTEMPS=0;
8989 GNULIB_MKSTEMP=0;
8990 GNULIB_MKSTEMPS=0;
8991 GNULIB_POSIX_OPENPT=0;
8992 GNULIB_PTSNAME=0;
8993 GNULIB_PTSNAME_R=0;
8994 GNULIB_PUTENV=0;
8995 GNULIB_RANDOM=0;
8996 GNULIB_RANDOM_R=0;
8997 GNULIB_REALLOC_POSIX=0;
8998 GNULIB_REALPATH=0;
8999 GNULIB_RPMATCH=0;
9000 GNULIB_SETENV=0;
9001 GNULIB_STRTOD=0;
9002 GNULIB_STRTOLL=0;
9003 GNULIB_STRTOULL=0;
9004 GNULIB_SYSTEM_POSIX=0;
9005 GNULIB_UNLOCKPT=0;
9006 GNULIB_UNSETENV=0;
9007 GNULIB_WCTOMB=0;
9008 HAVE__EXIT=1;
9009 HAVE_ATOLL=1;
9010 HAVE_CANONICALIZE_FILE_NAME=1;
9011 HAVE_DECL_GETLOADAVG=1;
9012 HAVE_GETSUBOPT=1;
9013 HAVE_GRANTPT=1;
9014 HAVE_MKDTEMP=1;
9015 HAVE_MKOSTEMP=1;
9016 HAVE_MKOSTEMPS=1;
9017 HAVE_MKSTEMP=1;
9018 HAVE_MKSTEMPS=1;
9019 HAVE_POSIX_OPENPT=1;
9020 HAVE_PTSNAME=1;
9021 HAVE_PTSNAME_R=1;
9022 HAVE_RANDOM=1;
9023 HAVE_RANDOM_H=1;
9024 HAVE_RANDOM_R=1;
9025 HAVE_REALPATH=1;
9026 HAVE_RPMATCH=1;
9027 HAVE_SETENV=1;
9028 HAVE_DECL_SETENV=1;
9029 HAVE_STRTOD=1;
9030 HAVE_STRTOLL=1;
9031 HAVE_STRTOULL=1;
9032 HAVE_STRUCT_RANDOM_DATA=1;
9033 HAVE_SYS_LOADAVG_H=0;
9034 HAVE_UNLOCKPT=1;
9035 HAVE_DECL_UNSETENV=1;
9036 REPLACE_CALLOC=0;
9037 REPLACE_CANONICALIZE_FILE_NAME=0;
9038 REPLACE_MALLOC=0;
9039 REPLACE_MBTOWC=0;
9040 REPLACE_MKSTEMP=0;
9041 REPLACE_PTSNAME_R=0;
9042 REPLACE_PUTENV=0;
9043 REPLACE_RANDOM_R=0;
9044 REPLACE_REALLOC=0;
9045 REPLACE_REALPATH=0;
9046 REPLACE_SETENV=0;
9047 REPLACE_STRTOD=0;
9048 REPLACE_UNSETENV=0;
9049 REPLACE_WCTOMB=0;
9050
9051
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9054 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9055 if test "${gl_cv_have_include_next+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 rm -rf conftestd1a conftestd1b conftestd2
9059 mkdir conftestd1a conftestd1b conftestd2
9060 cat <<EOF > conftestd1a/conftest.h
9061 #define DEFINED_IN_CONFTESTD1
9062 #include_next <conftest.h>
9063 #ifdef DEFINED_IN_CONFTESTD2
9064 int foo;
9065 #else
9066 #error "include_next doesn't work"
9067 #endif
9068 EOF
9069 cat <<EOF > conftestd1b/conftest.h
9070 #define DEFINED_IN_CONFTESTD1
9071 #include <stdio.h>
9072 #include_next <conftest.h>
9073 #ifdef DEFINED_IN_CONFTESTD2
9074 int foo;
9075 #else
9076 #error "include_next doesn't work"
9077 #endif
9078 EOF
9079 cat <<EOF > conftestd2/conftest.h
9080 #ifndef DEFINED_IN_CONFTESTD1
9081 #error "include_next test doesn't work"
9082 #endif
9083 #define DEFINED_IN_CONFTESTD2
9084 EOF
9085 gl_save_CPPFLAGS="$CPPFLAGS"
9086 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <conftest.h>
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"; then :
9092 gl_cv_have_include_next=yes
9093 else
9094 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <conftest.h>
9098 _ACEOF
9099 if ac_fn_c_try_compile "$LINENO"; then :
9100 gl_cv_have_include_next=buggy
9101 else
9102 gl_cv_have_include_next=no
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 CPPFLAGS="$gl_save_CPPFLAGS"
9109 rm -rf conftestd1a conftestd1b conftestd2
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9113 $as_echo "$gl_cv_have_include_next" >&6; }
9114 PRAGMA_SYSTEM_HEADER=
9115 if test $gl_cv_have_include_next = yes; then
9116 INCLUDE_NEXT=include_next
9117 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9118 if test -n "$GCC"; then
9119 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9120 fi
9121 else
9122 if test $gl_cv_have_include_next = buggy; then
9123 INCLUDE_NEXT=include
9124 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9125 else
9126 INCLUDE_NEXT=include
9127 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9128 fi
9129 fi
9130
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9134 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9135 if test "${gl_cv_pragma_columns+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140
9141 #ifdef __TANDEM
9142 choke me
9143 #endif
9144
9145 _ACEOF
9146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9147 $EGREP "choke me" >/dev/null 2>&1; then :
9148 gl_cv_pragma_columns=yes
9149 else
9150 gl_cv_pragma_columns=no
9151 fi
9152 rm -f conftest*
9153
9154
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9157 $as_echo "$gl_cv_pragma_columns" >&6; }
9158 if test $gl_cv_pragma_columns = yes; then
9159 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9160 else
9161 PRAGMA_COLUMNS=
9162 fi
9163
9164
9165
9166
9167
9168 for ac_header in $ac_header_list
9169 do :
9170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9172 "
9173 eval as_val=\$$as_ac_Header
9174 if test "x$as_val" = x""yes; then :
9175 cat >>confdefs.h <<_ACEOF
9176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177 _ACEOF
9178
9179 fi
9180
9181 done
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 if test $gl_cv_have_include_next = yes; then
9199 gl_cv_next_getopt_h='<'getopt.h'>'
9200 else
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9202 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9203 if test "${gl_cv_next_getopt_h+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206
9207 if test $ac_cv_header_getopt_h = yes; then
9208
9209
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <getopt.h>
9213
9214 _ACEOF
9215 case "$host_os" in
9216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9217 *) gl_absname_cpp="$ac_cpp" ;;
9218 esac
9219
9220 case "$host_os" in
9221 mingw*)
9222 gl_dirsep_regex='[/\\]'
9223 ;;
9224 *)
9225 gl_dirsep_regex='\/'
9226 ;;
9227 esac
9228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9229
9230 gl_header_literal_regex=`echo 'getopt.h' \
9231 | sed -e "$gl_make_literal_regex_sed"`
9232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9234 s|^/[^/]|//&|
9235 p
9236 q
9237 }'
9238 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9239 sed -n "$gl_absolute_header_sed"`'"'
9240 else
9241 gl_cv_next_getopt_h='<'getopt.h'>'
9242 fi
9243
9244
9245 fi
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9247 $as_echo "$gl_cv_next_getopt_h" >&6; }
9248 fi
9249 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9250
9251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9253 gl_next_as_first_directive='<'getopt.h'>'
9254 else
9255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9256 gl_next_as_first_directive=$gl_cv_next_getopt_h
9257 fi
9258 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9259
9260
9261
9262
9263 if test $ac_cv_header_getopt_h = yes; then
9264 HAVE_GETOPT_H=1
9265 else
9266 HAVE_GETOPT_H=0
9267 fi
9268
9269
9270 gl_replace_getopt=
9271
9272 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9273 for ac_header in getopt.h
9274 do :
9275 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9276 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_GETOPT_H 1
9279 _ACEOF
9280
9281 else
9282 gl_replace_getopt=yes
9283 fi
9284
9285 done
9286
9287 fi
9288
9289 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9290 for ac_func in getopt_long_only
9291 do :
9292 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9293 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9294 cat >>confdefs.h <<_ACEOF
9295 #define HAVE_GETOPT_LONG_ONLY 1
9296 _ACEOF
9297
9298 else
9299 gl_replace_getopt=yes
9300 fi
9301 done
9302
9303 fi
9304
9305 if test -z "$gl_replace_getopt"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9307 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9308 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311
9312 if test $cross_compiling = no; then
9313 if test "$cross_compiling" = yes; then :
9314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9316 as_fn_error "cannot run test program while cross compiling
9317 See \`config.log' for more details." "$LINENO" 5; }
9318 else
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321
9322 #include <unistd.h>
9323 #include <stdlib.h>
9324 #include <string.h>
9325
9326 int
9327 main ()
9328 {
9329 static char program[] = "program";
9330 static char a[] = "-a";
9331 static char foo[] = "foo";
9332 static char bar[] = "bar";
9333 char *argv[] = { program, a, foo, bar, NULL };
9334 int c;
9335
9336 c = getopt (4, argv, "ab");
9337 if (!(c == 'a'))
9338 return 1;
9339 c = getopt (4, argv, "ab");
9340 if (!(c == -1))
9341 return 2;
9342 if (!(optind == 2))
9343 return 3;
9344 return 0;
9345 }
9346
9347 _ACEOF
9348 if ac_fn_c_try_run "$LINENO"; then :
9349 gl_cv_func_getopt_posix=maybe
9350 else
9351 gl_cv_func_getopt_posix=no
9352 fi
9353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9354 conftest.$ac_objext conftest.beam conftest.$ac_ext
9355 fi
9356
9357 if test $gl_cv_func_getopt_posix = maybe; then
9358 if test "$cross_compiling" = yes; then :
9359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9361 as_fn_error "cannot run test program while cross compiling
9362 See \`config.log' for more details." "$LINENO" 5; }
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 #include <unistd.h>
9368 #include <stdlib.h>
9369 #include <string.h>
9370
9371 int
9372 main ()
9373 {
9374 static char program[] = "program";
9375 static char donald[] = "donald";
9376 static char p[] = "-p";
9377 static char billy[] = "billy";
9378 static char duck[] = "duck";
9379 static char a[] = "-a";
9380 static char bar[] = "bar";
9381 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9382 int c;
9383
9384 c = getopt (7, argv, "+abp:q:");
9385 if (!(c == -1))
9386 return 4;
9387 if (!(strcmp (argv[0], "program") == 0))
9388 return 5;
9389 if (!(strcmp (argv[1], "donald") == 0))
9390 return 6;
9391 if (!(strcmp (argv[2], "-p") == 0))
9392 return 7;
9393 if (!(strcmp (argv[3], "billy") == 0))
9394 return 8;
9395 if (!(strcmp (argv[4], "duck") == 0))
9396 return 9;
9397 if (!(strcmp (argv[5], "-a") == 0))
9398 return 10;
9399 if (!(strcmp (argv[6], "bar") == 0))
9400 return 11;
9401 if (!(optind == 1))
9402 return 12;
9403 return 0;
9404 }
9405
9406 _ACEOF
9407 if ac_fn_c_try_run "$LINENO"; then :
9408 gl_cv_func_getopt_posix=maybe
9409 else
9410 gl_cv_func_getopt_posix=no
9411 fi
9412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9413 conftest.$ac_objext conftest.beam conftest.$ac_ext
9414 fi
9415
9416 fi
9417 if test $gl_cv_func_getopt_posix = maybe; then
9418 if test "$cross_compiling" = yes; then :
9419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9421 as_fn_error "cannot run test program while cross compiling
9422 See \`config.log' for more details." "$LINENO" 5; }
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426
9427 #include <unistd.h>
9428 #include <stdlib.h>
9429 #include <string.h>
9430
9431 int
9432 main ()
9433 {
9434 static char program[] = "program";
9435 static char ab[] = "-ab";
9436 char *argv[3] = { program, ab, NULL };
9437 if (getopt (2, argv, "ab:") != 'a')
9438 return 13;
9439 if (getopt (2, argv, "ab:") != '?')
9440 return 14;
9441 if (optopt != 'b')
9442 return 15;
9443 if (optind != 2)
9444 return 16;
9445 return 0;
9446 }
9447
9448 _ACEOF
9449 if ac_fn_c_try_run "$LINENO"; then :
9450 gl_cv_func_getopt_posix=yes
9451 else
9452 gl_cv_func_getopt_posix=no
9453 fi
9454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9455 conftest.$ac_objext conftest.beam conftest.$ac_ext
9456 fi
9457
9458 fi
9459 else
9460 case "$host_os" in
9461 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
9462 *) gl_cv_func_getopt_posix="guessing yes";;
9463 esac
9464 fi
9465
9466 fi
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9468 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9469 case "$gl_cv_func_getopt_posix" in
9470 *no) gl_replace_getopt=yes ;;
9471 esac
9472 fi
9473
9474 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9476 $as_echo_n "checking for working GNU getopt function... " >&6; }
9477 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9481 # optstring is necessary for programs like m4 that have POSIX-mandated
9482 # semantics for supporting options interspersed with files.
9483 # Also, since getopt_long is a GNU extension, we require optind=0.
9484 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9485 # so take care to revert to the correct (non-)export state.
9486 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9487 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9488 xx) gl_had_POSIXLY_CORRECT=exported ;;
9489 x) gl_had_POSIXLY_CORRECT=yes ;;
9490 *) gl_had_POSIXLY_CORRECT= ;;
9491 esac
9492 POSIXLY_CORRECT=1
9493 export POSIXLY_CORRECT
9494 if test "$cross_compiling" = yes; then :
9495 gl_cv_func_getopt_gnu="guessing no"
9496
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <getopt.h>
9501 #include <stddef.h>
9502 #include <string.h>
9503
9504 #include <stdlib.h>
9505 #if defined __MACH__ && defined __APPLE__
9506 /* Avoid a crash on Mac OS X. */
9507 #include <mach/mach.h>
9508 #include <mach/mach_error.h>
9509 #include <mach/thread_status.h>
9510 #include <mach/exception.h>
9511 #include <mach/task.h>
9512 #include <pthread.h>
9513 /* The exception port on which our thread listens. */
9514 static mach_port_t our_exception_port;
9515 /* The main function of the thread listening for exceptions of type
9516 EXC_BAD_ACCESS. */
9517 static void *
9518 mach_exception_thread (void *arg)
9519 {
9520 /* Buffer for a message to be received. */
9521 struct {
9522 mach_msg_header_t head;
9523 mach_msg_body_t msgh_body;
9524 char data[1024];
9525 } msg;
9526 mach_msg_return_t retval;
9527 /* Wait for a message on the exception port. */
9528 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9529 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9530 if (retval != MACH_MSG_SUCCESS)
9531 abort ();
9532 exit (1);
9533 }
9534 static void
9535 nocrash_init (void)
9536 {
9537 mach_port_t self = mach_task_self ();
9538 /* Allocate a port on which the thread shall listen for exceptions. */
9539 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9540 == KERN_SUCCESS) {
9541 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9542 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9543 MACH_MSG_TYPE_MAKE_SEND)
9544 == KERN_SUCCESS) {
9545 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9546 for us. */
9547 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9548 /* Create the thread listening on the exception port. */
9549 pthread_attr_t attr;
9550 pthread_t thread;
9551 if (pthread_attr_init (&attr) == 0
9552 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9553 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9554 pthread_attr_destroy (&attr);
9555 /* Replace the exception port info for these exceptions with our own.
9556 Note that we replace the exception port for the entire task, not only
9557 for a particular thread. This has the effect that when our exception
9558 port gets the message, the thread specific exception port has already
9559 been asked, and we don't need to bother about it.
9560 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9561 task_set_exception_ports (self, mask, our_exception_port,
9562 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9563 }
9564 }
9565 }
9566 }
9567 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9568 /* Avoid a crash on native Windows. */
9569 #define WIN32_LEAN_AND_MEAN
9570 #include <windows.h>
9571 #include <winerror.h>
9572 static LONG WINAPI
9573 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9574 {
9575 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9576 {
9577 case EXCEPTION_ACCESS_VIOLATION:
9578 case EXCEPTION_IN_PAGE_ERROR:
9579 case EXCEPTION_STACK_OVERFLOW:
9580 case EXCEPTION_GUARD_PAGE:
9581 case EXCEPTION_PRIV_INSTRUCTION:
9582 case EXCEPTION_ILLEGAL_INSTRUCTION:
9583 case EXCEPTION_DATATYPE_MISALIGNMENT:
9584 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9585 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9586 exit (1);
9587 }
9588 return EXCEPTION_CONTINUE_SEARCH;
9589 }
9590 static void
9591 nocrash_init (void)
9592 {
9593 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9594 }
9595 #else
9596 /* Avoid a crash on POSIX systems. */
9597 #include <signal.h>
9598 /* A POSIX signal handler. */
9599 static void
9600 exception_handler (int sig)
9601 {
9602 exit (1);
9603 }
9604 static void
9605 nocrash_init (void)
9606 {
9607 #ifdef SIGSEGV
9608 signal (SIGSEGV, exception_handler);
9609 #endif
9610 #ifdef SIGBUS
9611 signal (SIGBUS, exception_handler);
9612 #endif
9613 }
9614 #endif
9615
9616
9617 int
9618 main ()
9619 {
9620
9621 int result = 0;
9622
9623 nocrash_init();
9624
9625 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9626 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9627 OSF/1 5.1, Solaris 10. */
9628 {
9629 static char conftest[] = "conftest";
9630 static char plus[] = "-+";
9631 char *argv[3] = { conftest, plus, NULL };
9632 opterr = 0;
9633 if (getopt (2, argv, "+a") != '?')
9634 result |= 1;
9635 }
9636 /* This code succeeds on glibc 2.8, mingw,
9637 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9638 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9639 {
9640 static char program[] = "program";
9641 static char p[] = "-p";
9642 static char foo[] = "foo";
9643 static char bar[] = "bar";
9644 char *argv[] = { program, p, foo, bar, NULL };
9645
9646 optind = 1;
9647 if (getopt (4, argv, "p::") != 'p')
9648 result |= 2;
9649 else if (optarg != NULL)
9650 result |= 4;
9651 else if (getopt (4, argv, "p::") != -1)
9652 result |= 6;
9653 else if (optind != 2)
9654 result |= 8;
9655 }
9656 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9657 {
9658 static char program[] = "program";
9659 static char foo[] = "foo";
9660 static char p[] = "-p";
9661 char *argv[] = { program, foo, p, NULL };
9662 optind = 0;
9663 if (getopt (3, argv, "-p") != 1)
9664 result |= 16;
9665 else if (getopt (3, argv, "-p") != 'p')
9666 result |= 16;
9667 }
9668 /* This code fails on glibc 2.11. */
9669 {
9670 static char program[] = "program";
9671 static char b[] = "-b";
9672 static char a[] = "-a";
9673 char *argv[] = { program, b, a, NULL };
9674 optind = opterr = 0;
9675 if (getopt (3, argv, "+:a:b") != 'b')
9676 result |= 32;
9677 else if (getopt (3, argv, "+:a:b") != ':')
9678 result |= 32;
9679 }
9680 /* This code dumps core on glibc 2.14. */
9681 {
9682 static char program[] = "program";
9683 static char w[] = "-W";
9684 static char dummy[] = "dummy";
9685 char *argv[] = { program, w, dummy, NULL };
9686 optind = opterr = 1;
9687 if (getopt (3, argv, "W;") != 'W')
9688 result |= 64;
9689 }
9690 return result;
9691
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 if ac_fn_c_try_run "$LINENO"; then :
9697 gl_cv_func_getopt_gnu=yes
9698 else
9699 gl_cv_func_getopt_gnu=no
9700 fi
9701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9702 conftest.$ac_objext conftest.beam conftest.$ac_ext
9703 fi
9704
9705 case $gl_had_POSIXLY_CORRECT in
9706 exported) ;;
9707 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9708 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9709 esac
9710
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9713 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9714 if test "$gl_cv_func_getopt_gnu" != yes; then
9715 gl_replace_getopt=yes
9716 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9718 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9719 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 if test "$cross_compiling" = yes; then :
9723 case "$host_os" in
9724 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
9725 *) gl_cv_func_getopt_long_gnu="guessing yes";;
9726 esac
9727
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 #include <getopt.h>
9732 #include <stddef.h>
9733 #include <string.h>
9734
9735 int
9736 main ()
9737 {
9738 static const struct option long_options[] =
9739 {
9740 { "xtremely-",no_argument, NULL, 1003 },
9741 { "xtra", no_argument, NULL, 1001 },
9742 { "xtreme", no_argument, NULL, 1002 },
9743 { "xtremely", no_argument, NULL, 1003 },
9744 { NULL, 0, NULL, 0 }
9745 };
9746 /* This code fails on OpenBSD 5.0. */
9747 {
9748 static char program[] = "program";
9749 static char xtremel[] = "--xtremel";
9750 char *argv[] = { program, xtremel, NULL };
9751 int option_index;
9752 optind = 1; opterr = 0;
9753 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9754 return 1;
9755 }
9756 return 0;
9757
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 if ac_fn_c_try_run "$LINENO"; then :
9763 gl_cv_func_getopt_long_gnu=yes
9764 else
9765 gl_cv_func_getopt_long_gnu=no
9766 fi
9767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9768 conftest.$ac_objext conftest.beam conftest.$ac_ext
9769 fi
9770
9771
9772 fi
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9774 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9775 case "$gl_cv_func_getopt_long_gnu" in
9776 *yes) ;;
9777 *) gl_replace_getopt=yes ;;
9778 esac
9779 fi
9780 fi
9781
9782
9783
9784
9785
9786 REPLACE_GETOPT=0
9787
9788
9789 if test -n "$gl_replace_getopt"; then :
9790
9791 REPLACE_GETOPT=1
9792
9793 fi
9794
9795
9796 if test $REPLACE_GETOPT = 1; then
9797
9798 GETOPT_H=getopt.h
9799
9800 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9801
9802
9803
9804 fi
9805
9806 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9807 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9808 ac_have_decl=1
9809 else
9810 ac_have_decl=0
9811 fi
9812
9813 cat >>confdefs.h <<_ACEOF
9814 #define HAVE_DECL_GETENV $ac_have_decl
9815 _ACEOF
9816
9817
9818
9819
9820
9821
9822
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9825 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9826 if test "${ac_cv_c_restrict+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 ac_cv_c_restrict=no
9830 # The order here caters to the fact that C++ does not require restrict.
9831 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 typedef int * int_ptr;
9835 int foo (int_ptr $ac_kw ip) {
9836 return ip[0];
9837 }
9838 int
9839 main ()
9840 {
9841 int s[1];
9842 int * $ac_kw t = s;
9843 t[0] = 0;
9844 return foo(t)
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_compile "$LINENO"; then :
9850 ac_cv_c_restrict=$ac_kw
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 test "$ac_cv_c_restrict" != no && break
9854 done
9855
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9858 $as_echo "$ac_cv_c_restrict" >&6; }
9859
9860 case $ac_cv_c_restrict in
9861 restrict) ;;
9862 no) $as_echo "#define restrict /**/" >>confdefs.h
9863 ;;
9864 *) cat >>confdefs.h <<_ACEOF
9865 #define restrict $ac_cv_c_restrict
9866 _ACEOF
9867 ;;
9868 esac
9869
9870
9871 GNULIB_GETTIMEOFDAY=0;
9872 HAVE_GETTIMEOFDAY=1;
9873 HAVE_STRUCT_TIMEVAL=1;
9874 HAVE_SYS_TIME_H=1;
9875 REPLACE_GETTIMEOFDAY=0;
9876 REPLACE_STRUCT_TIMEVAL=0;
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 if test $gl_cv_have_include_next = yes; then
9896 gl_cv_next_sys_time_h='<'sys/time.h'>'
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9899 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9900 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903
9904 if test $ac_cv_header_sys_time_h = yes; then
9905
9906
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #include <sys/time.h>
9910
9911 _ACEOF
9912 case "$host_os" in
9913 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9914 *) gl_absname_cpp="$ac_cpp" ;;
9915 esac
9916
9917 case "$host_os" in
9918 mingw*)
9919 gl_dirsep_regex='[/\\]'
9920 ;;
9921 *)
9922 gl_dirsep_regex='\/'
9923 ;;
9924 esac
9925 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9926
9927 gl_header_literal_regex=`echo 'sys/time.h' \
9928 | sed -e "$gl_make_literal_regex_sed"`
9929 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9930 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9931 s|^/[^/]|//&|
9932 p
9933 q
9934 }'
9935 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9936 sed -n "$gl_absolute_header_sed"`'"'
9937 else
9938 gl_cv_next_sys_time_h='<'sys/time.h'>'
9939 fi
9940
9941
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9944 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9945 fi
9946 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9947
9948 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9950 gl_next_as_first_directive='<'sys/time.h'>'
9951 else
9952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9953 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9954 fi
9955 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9956
9957
9958
9959
9960
9961 if test $ac_cv_header_sys_time_h != yes; then
9962 HAVE_SYS_TIME_H=0
9963 fi
9964
9965
9966
9967
9968
9969 if test $ac_cv_header_sys_socket_h != yes; then
9970 for ac_header in winsock2.h
9971 do :
9972 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
9974 cat >>confdefs.h <<_ACEOF
9975 #define HAVE_WINSOCK2_H 1
9976 _ACEOF
9977
9978 fi
9979
9980 done
9981
9982 fi
9983 if test "$ac_cv_header_winsock2_h" = yes; then
9984 HAVE_WINSOCK2_H=1
9985 UNISTD_H_HAVE_WINSOCK2_H=1
9986 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9987 else
9988 HAVE_WINSOCK2_H=0
9989 fi
9990
9991
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9993 $as_echo_n "checking for struct timeval... " >&6; }
9994 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 #if HAVE_SYS_TIME_H
10000 #include <sys/time.h>
10001 #endif
10002 #include <time.h>
10003 #if HAVE_WINSOCK2_H
10004 # include <winsock2.h>
10005 #endif
10006
10007 int
10008 main ()
10009 {
10010 static struct timeval x; x.tv_sec = x.tv_usec;
10011 ;
10012 return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"; then :
10016 gl_cv_sys_struct_timeval=yes
10017 else
10018 gl_cv_sys_struct_timeval=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10024 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10025 if test $gl_cv_sys_struct_timeval != yes; then
10026 HAVE_STRUCT_TIMEVAL=0
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
10029 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
10030 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035 #if HAVE_SYS_TIME_H
10036 #include <sys/time.h>
10037 #endif
10038 #include <time.h>
10039 #if HAVE_WINSOCK2_H
10040 # include <winsock2.h>
10041 #endif
10042
10043 int
10044 main ()
10045 {
10046 static struct timeval x;
10047 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
10048
10049 ;
10050 return 0;
10051 }
10052 _ACEOF
10053 if ac_fn_c_try_compile "$LINENO"; then :
10054 gl_cv_sys_struct_timeval_tv_sec=yes
10055 else
10056 gl_cv_sys_struct_timeval_tv_sec=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059
10060 fi
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10062 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10063 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10064 REPLACE_STRUCT_TIMEVAL=1
10065 fi
10066 fi
10067
10068
10069
10070
10071
10072
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10075 $as_echo_n "checking for unsigned long long int... " >&6; }
10076 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_cv_type_unsigned_long_long_int=yes
10080 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083
10084 /* For now, do not test the preprocessor; as of 2007 there are too many
10085 implementations with broken preprocessors. Perhaps this can
10086 be revisited in 2012. In the meantime, code should not expect
10087 #if to work with literals wider than 32 bits. */
10088 /* Test literals. */
10089 long long int ll = 9223372036854775807ll;
10090 long long int nll = -9223372036854775807LL;
10091 unsigned long long int ull = 18446744073709551615ULL;
10092 /* Test constant expressions. */
10093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10094 ? 1 : -1)];
10095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10096 ? 1 : -1)];
10097 int i = 63;
10098 int
10099 main ()
10100 {
10101 /* Test availability of runtime routines for shift and division. */
10102 long long int llmax = 9223372036854775807ll;
10103 unsigned long long int ullmax = 18446744073709551615ull;
10104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10105 | (llmax / ll) | (llmax % ll)
10106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10107 | (ullmax / ull) | (ullmax % ull));
10108 ;
10109 return 0;
10110 }
10111
10112 _ACEOF
10113 if ac_fn_c_try_link "$LINENO"; then :
10114
10115 else
10116 ac_cv_type_unsigned_long_long_int=no
10117 fi
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 fi
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10123 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10124 if test $ac_cv_type_unsigned_long_long_int = yes; then
10125
10126 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10127
10128 fi
10129
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10133 $as_echo_n "checking for long long int... " >&6; }
10134 if test "${ac_cv_type_long_long_int+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 ac_cv_type_long_long_int=yes
10138 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10139 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10140 if test $ac_cv_type_long_long_int = yes; then
10141 if test "$cross_compiling" = yes; then :
10142 :
10143 else
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <limits.h>
10147 #ifndef LLONG_MAX
10148 # define HALF \
10149 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10150 # define LLONG_MAX (HALF - 1 + HALF)
10151 #endif
10152 int
10153 main ()
10154 {
10155 long long int n = 1;
10156 int i;
10157 for (i = 0; ; i++)
10158 {
10159 long long int m = n << i;
10160 if (m >> i != n)
10161 return 1;
10162 if (LLONG_MAX / 2 < m)
10163 break;
10164 }
10165 return 0;
10166 ;
10167 return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_run "$LINENO"; then :
10171
10172 else
10173 ac_cv_type_long_long_int=no
10174 fi
10175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10176 conftest.$ac_objext conftest.beam conftest.$ac_ext
10177 fi
10178
10179 fi
10180 fi
10181 fi
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10183 $as_echo "$ac_cv_type_long_long_int" >&6; }
10184 if test $ac_cv_type_long_long_int = yes; then
10185
10186 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10187
10188 fi
10189
10190
10191
10192
10193
10194
10195 gl_cv_c_multiarch=no
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #ifndef __APPLE_CC__
10199 not a universal capable compiler
10200 #endif
10201 typedef int dummy;
10202
10203 _ACEOF
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205
10206 arch=
10207 prev=
10208 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10209 if test -n "$prev"; then
10210 case $word in
10211 i?86 | x86_64 | ppc | ppc64)
10212 if test -z "$arch" || test "$arch" = "$word"; then
10213 arch="$word"
10214 else
10215 gl_cv_c_multiarch=yes
10216 fi
10217 ;;
10218 esac
10219 prev=
10220 else
10221 if test "x$word" = "x-arch"; then
10222 prev=arch
10223 fi
10224 fi
10225 done
10226
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 if test $gl_cv_c_multiarch = yes; then
10230 APPLE_UNIVERSAL_BUILD=1
10231 else
10232 APPLE_UNIVERSAL_BUILD=0
10233 fi
10234
10235
10236
10237
10238
10239 if test $ac_cv_type_long_long_int = yes; then
10240 HAVE_LONG_LONG_INT=1
10241 else
10242 HAVE_LONG_LONG_INT=0
10243 fi
10244
10245
10246 if test $ac_cv_type_unsigned_long_long_int = yes; then
10247 HAVE_UNSIGNED_LONG_LONG_INT=1
10248 else
10249 HAVE_UNSIGNED_LONG_LONG_INT=0
10250 fi
10251
10252
10253
10254 if test $ac_cv_header_wchar_h = yes; then
10255 HAVE_WCHAR_H=1
10256 else
10257 HAVE_WCHAR_H=0
10258 fi
10259
10260
10261 if test $ac_cv_header_inttypes_h = yes; then
10262 HAVE_INTTYPES_H=1
10263 else
10264 HAVE_INTTYPES_H=0
10265 fi
10266
10267
10268 if test $ac_cv_header_sys_types_h = yes; then
10269 HAVE_SYS_TYPES_H=1
10270 else
10271 HAVE_SYS_TYPES_H=0
10272 fi
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284 if test $gl_cv_have_include_next = yes; then
10285 gl_cv_next_stdint_h='<'stdint.h'>'
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10288 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10289 if test "${gl_cv_next_stdint_h+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292
10293 if test $ac_cv_header_stdint_h = yes; then
10294
10295
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <stdint.h>
10299
10300 _ACEOF
10301 case "$host_os" in
10302 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10303 *) gl_absname_cpp="$ac_cpp" ;;
10304 esac
10305
10306 case "$host_os" in
10307 mingw*)
10308 gl_dirsep_regex='[/\\]'
10309 ;;
10310 *)
10311 gl_dirsep_regex='\/'
10312 ;;
10313 esac
10314 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10315
10316 gl_header_literal_regex=`echo 'stdint.h' \
10317 | sed -e "$gl_make_literal_regex_sed"`
10318 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10319 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10320 s|^/[^/]|//&|
10321 p
10322 q
10323 }'
10324 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10325 sed -n "$gl_absolute_header_sed"`'"'
10326 else
10327 gl_cv_next_stdint_h='<'stdint.h'>'
10328 fi
10329
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10333 $as_echo "$gl_cv_next_stdint_h" >&6; }
10334 fi
10335 NEXT_STDINT_H=$gl_cv_next_stdint_h
10336
10337 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10338 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10339 gl_next_as_first_directive='<'stdint.h'>'
10340 else
10341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10342 gl_next_as_first_directive=$gl_cv_next_stdint_h
10343 fi
10344 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10345
10346
10347
10348
10349 if test $ac_cv_header_stdint_h = yes; then
10350 HAVE_STDINT_H=1
10351 else
10352 HAVE_STDINT_H=0
10353 fi
10354
10355
10356 if test $ac_cv_header_stdint_h = yes; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10358 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10359 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 gl_cv_header_working_stdint_h=no
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365
10366
10367 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10368 #include <stdint.h>
10369 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10370 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10371 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10372 #endif
10373
10374
10375 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10376 included before <wchar.h>. */
10377 #include <stddef.h>
10378 #include <signal.h>
10379 #if HAVE_WCHAR_H
10380 # include <stdio.h>
10381 # include <time.h>
10382 # include <wchar.h>
10383 #endif
10384
10385
10386 #ifdef INT8_MAX
10387 int8_t a1 = INT8_MAX;
10388 int8_t a1min = INT8_MIN;
10389 #endif
10390 #ifdef INT16_MAX
10391 int16_t a2 = INT16_MAX;
10392 int16_t a2min = INT16_MIN;
10393 #endif
10394 #ifdef INT32_MAX
10395 int32_t a3 = INT32_MAX;
10396 int32_t a3min = INT32_MIN;
10397 #endif
10398 #ifdef INT64_MAX
10399 int64_t a4 = INT64_MAX;
10400 int64_t a4min = INT64_MIN;
10401 #endif
10402 #ifdef UINT8_MAX
10403 uint8_t b1 = UINT8_MAX;
10404 #else
10405 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10406 #endif
10407 #ifdef UINT16_MAX
10408 uint16_t b2 = UINT16_MAX;
10409 #endif
10410 #ifdef UINT32_MAX
10411 uint32_t b3 = UINT32_MAX;
10412 #endif
10413 #ifdef UINT64_MAX
10414 uint64_t b4 = UINT64_MAX;
10415 #endif
10416 int_least8_t c1 = INT8_C (0x7f);
10417 int_least8_t c1max = INT_LEAST8_MAX;
10418 int_least8_t c1min = INT_LEAST8_MIN;
10419 int_least16_t c2 = INT16_C (0x7fff);
10420 int_least16_t c2max = INT_LEAST16_MAX;
10421 int_least16_t c2min = INT_LEAST16_MIN;
10422 int_least32_t c3 = INT32_C (0x7fffffff);
10423 int_least32_t c3max = INT_LEAST32_MAX;
10424 int_least32_t c3min = INT_LEAST32_MIN;
10425 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10426 int_least64_t c4max = INT_LEAST64_MAX;
10427 int_least64_t c4min = INT_LEAST64_MIN;
10428 uint_least8_t d1 = UINT8_C (0xff);
10429 uint_least8_t d1max = UINT_LEAST8_MAX;
10430 uint_least16_t d2 = UINT16_C (0xffff);
10431 uint_least16_t d2max = UINT_LEAST16_MAX;
10432 uint_least32_t d3 = UINT32_C (0xffffffff);
10433 uint_least32_t d3max = UINT_LEAST32_MAX;
10434 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10435 uint_least64_t d4max = UINT_LEAST64_MAX;
10436 int_fast8_t e1 = INT_FAST8_MAX;
10437 int_fast8_t e1min = INT_FAST8_MIN;
10438 int_fast16_t e2 = INT_FAST16_MAX;
10439 int_fast16_t e2min = INT_FAST16_MIN;
10440 int_fast32_t e3 = INT_FAST32_MAX;
10441 int_fast32_t e3min = INT_FAST32_MIN;
10442 int_fast64_t e4 = INT_FAST64_MAX;
10443 int_fast64_t e4min = INT_FAST64_MIN;
10444 uint_fast8_t f1 = UINT_FAST8_MAX;
10445 uint_fast16_t f2 = UINT_FAST16_MAX;
10446 uint_fast32_t f3 = UINT_FAST32_MAX;
10447 uint_fast64_t f4 = UINT_FAST64_MAX;
10448 #ifdef INTPTR_MAX
10449 intptr_t g = INTPTR_MAX;
10450 intptr_t gmin = INTPTR_MIN;
10451 #endif
10452 #ifdef UINTPTR_MAX
10453 uintptr_t h = UINTPTR_MAX;
10454 #endif
10455 intmax_t i = INTMAX_MAX;
10456 uintmax_t j = UINTMAX_MAX;
10457
10458 #include <limits.h> /* for CHAR_BIT */
10459 #define TYPE_MINIMUM(t) \
10460 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10461 #define TYPE_MAXIMUM(t) \
10462 ((t) ((t) 0 < (t) -1 \
10463 ? (t) -1 \
10464 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10465 struct s {
10466 int check_PTRDIFF:
10467 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10468 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10469 ? 1 : -1;
10470 /* Detect bug in FreeBSD 6.0 / ia64. */
10471 int check_SIG_ATOMIC:
10472 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10473 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10474 ? 1 : -1;
10475 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10476 int check_WCHAR:
10477 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10478 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10479 ? 1 : -1;
10480 /* Detect bug in mingw. */
10481 int check_WINT:
10482 WINT_MIN == TYPE_MINIMUM (wint_t)
10483 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10484 ? 1 : -1;
10485
10486 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10487 int check_UINT8_C:
10488 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10489 int check_UINT16_C:
10490 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10491
10492 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10493 #ifdef UINT8_MAX
10494 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10495 #endif
10496 #ifdef UINT16_MAX
10497 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10498 #endif
10499 #ifdef UINT32_MAX
10500 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10501 #endif
10502 #ifdef UINT64_MAX
10503 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10504 #endif
10505 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10506 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10507 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10508 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10509 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10510 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10511 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10512 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10513 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10514 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10515 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10516 };
10517
10518 int
10519 main ()
10520 {
10521
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_compile "$LINENO"; then :
10527 if test "$cross_compiling" = yes; then :
10528 gl_cv_header_working_stdint_h=yes
10529
10530 else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533
10534
10535 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10536 #include <stdint.h>
10537
10538
10539 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10540 included before <wchar.h>. */
10541 #include <stddef.h>
10542 #include <signal.h>
10543 #if HAVE_WCHAR_H
10544 # include <stdio.h>
10545 # include <time.h>
10546 # include <wchar.h>
10547 #endif
10548
10549
10550 #include <stdio.h>
10551 #include <string.h>
10552 #define MVAL(macro) MVAL1(macro)
10553 #define MVAL1(expression) #expression
10554 static const char *macro_values[] =
10555 {
10556 #ifdef INT8_MAX
10557 MVAL (INT8_MAX),
10558 #endif
10559 #ifdef INT16_MAX
10560 MVAL (INT16_MAX),
10561 #endif
10562 #ifdef INT32_MAX
10563 MVAL (INT32_MAX),
10564 #endif
10565 #ifdef INT64_MAX
10566 MVAL (INT64_MAX),
10567 #endif
10568 #ifdef UINT8_MAX
10569 MVAL (UINT8_MAX),
10570 #endif
10571 #ifdef UINT16_MAX
10572 MVAL (UINT16_MAX),
10573 #endif
10574 #ifdef UINT32_MAX
10575 MVAL (UINT32_MAX),
10576 #endif
10577 #ifdef UINT64_MAX
10578 MVAL (UINT64_MAX),
10579 #endif
10580 NULL
10581 };
10582
10583 int
10584 main ()
10585 {
10586
10587 const char **mv;
10588 for (mv = macro_values; *mv != NULL; mv++)
10589 {
10590 const char *value = *mv;
10591 /* Test whether it looks like a cast expression. */
10592 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10593 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10594 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10595 || strncmp (value, "((int)"/*)*/, 6) == 0
10596 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10597 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10598 return mv - macro_values + 1;
10599 }
10600 return 0;
10601
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_run "$LINENO"; then :
10607 gl_cv_header_working_stdint_h=yes
10608 fi
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10610 conftest.$ac_objext conftest.beam conftest.$ac_ext
10611 fi
10612
10613
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10619 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10620 fi
10621 if test "$gl_cv_header_working_stdint_h" = yes; then
10622 STDINT_H=
10623 else
10624 for ac_header in sys/inttypes.h sys/bitypes.h
10625 do :
10626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10627 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10628 eval as_val=\$$as_ac_Header
10629 if test "x$as_val" = x""yes; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 _ACEOF
10633
10634 fi
10635
10636 done
10637
10638 if test $ac_cv_header_sys_inttypes_h = yes; then
10639 HAVE_SYS_INTTYPES_H=1
10640 else
10641 HAVE_SYS_INTTYPES_H=0
10642 fi
10643
10644 if test $ac_cv_header_sys_bitypes_h = yes; then
10645 HAVE_SYS_BITYPES_H=1
10646 else
10647 HAVE_SYS_BITYPES_H=0
10648 fi
10649
10650
10651
10652
10653 if test $APPLE_UNIVERSAL_BUILD = 0; then
10654
10655
10656 for gltype in ptrdiff_t size_t ; do
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10658 $as_echo_n "checking for bit size of $gltype... " >&6; }
10659 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10663 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10664 included before <wchar.h>. */
10665 #include <stddef.h>
10666 #include <signal.h>
10667 #if HAVE_WCHAR_H
10668 # include <stdio.h>
10669 # include <time.h>
10670 # include <wchar.h>
10671 #endif
10672
10673 #include <limits.h>"; then :
10674
10675 else
10676 result=unknown
10677 fi
10678
10679 eval gl_cv_bitsizeof_${gltype}=\$result
10680
10681 fi
10682 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10684 $as_echo "$ac_res" >&6; }
10685 eval result=\$gl_cv_bitsizeof_${gltype}
10686 if test $result = unknown; then
10687 result=0
10688 fi
10689 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10690 cat >>confdefs.h <<_ACEOF
10691 #define BITSIZEOF_${GLTYPE} $result
10692 _ACEOF
10693
10694 eval BITSIZEOF_${GLTYPE}=\$result
10695 done
10696
10697
10698 fi
10699
10700
10701 for gltype in sig_atomic_t wchar_t wint_t ; do
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10703 $as_echo_n "checking for bit size of $gltype... " >&6; }
10704 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10708 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10709 included before <wchar.h>. */
10710 #include <stddef.h>
10711 #include <signal.h>
10712 #if HAVE_WCHAR_H
10713 # include <stdio.h>
10714 # include <time.h>
10715 # include <wchar.h>
10716 #endif
10717
10718 #include <limits.h>"; then :
10719
10720 else
10721 result=unknown
10722 fi
10723
10724 eval gl_cv_bitsizeof_${gltype}=\$result
10725
10726 fi
10727 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10729 $as_echo "$ac_res" >&6; }
10730 eval result=\$gl_cv_bitsizeof_${gltype}
10731 if test $result = unknown; then
10732 result=0
10733 fi
10734 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10735 cat >>confdefs.h <<_ACEOF
10736 #define BITSIZEOF_${GLTYPE} $result
10737 _ACEOF
10738
10739 eval BITSIZEOF_${GLTYPE}=\$result
10740 done
10741
10742
10743
10744
10745 for gltype in sig_atomic_t wchar_t wint_t ; do
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10747 $as_echo_n "checking whether $gltype is signed... " >&6; }
10748 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753
10754 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10755 included before <wchar.h>. */
10756 #include <stddef.h>
10757 #include <signal.h>
10758 #if HAVE_WCHAR_H
10759 # include <stdio.h>
10760 # include <time.h>
10761 # include <wchar.h>
10762 #endif
10763
10764 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10765 int
10766 main ()
10767 {
10768
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"; then :
10774 result=yes
10775 else
10776 result=no
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 eval gl_cv_type_${gltype}_signed=\$result
10780
10781 fi
10782 eval ac_res=\$gl_cv_type_${gltype}_signed
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10784 $as_echo "$ac_res" >&6; }
10785 eval result=\$gl_cv_type_${gltype}_signed
10786 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10787 if test "$result" = yes; then
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_SIGNED_${GLTYPE} 1
10790 _ACEOF
10791
10792 eval HAVE_SIGNED_${GLTYPE}=1
10793 else
10794 eval HAVE_SIGNED_${GLTYPE}=0
10795 fi
10796 done
10797
10798
10799 gl_cv_type_ptrdiff_t_signed=yes
10800 gl_cv_type_size_t_signed=no
10801 if test $APPLE_UNIVERSAL_BUILD = 0; then
10802
10803
10804 for gltype in ptrdiff_t size_t ; do
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10806 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10807 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 eval gl_cv_type_${gltype}_suffix=no
10811 eval result=\$gl_cv_type_${gltype}_signed
10812 if test "$result" = yes; then
10813 glsufu=
10814 else
10815 glsufu=u
10816 fi
10817 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10818 case $glsuf in
10819 '') gltype1='int';;
10820 l) gltype1='long int';;
10821 ll) gltype1='long long int';;
10822 i64) gltype1='__int64';;
10823 u) gltype1='unsigned int';;
10824 ul) gltype1='unsigned long int';;
10825 ull) gltype1='unsigned long long int';;
10826 ui64)gltype1='unsigned __int64';;
10827 esac
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830
10831 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10832 included before <wchar.h>. */
10833 #include <stddef.h>
10834 #include <signal.h>
10835 #if HAVE_WCHAR_H
10836 # include <stdio.h>
10837 # include <time.h>
10838 # include <wchar.h>
10839 #endif
10840
10841 extern $gltype foo;
10842 extern $gltype1 foo;
10843 int
10844 main ()
10845 {
10846
10847 ;
10848 return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"; then :
10852 eval gl_cv_type_${gltype}_suffix=\$glsuf
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 eval result=\$gl_cv_type_${gltype}_suffix
10856 test "$result" != no && break
10857 done
10858 fi
10859 eval ac_res=\$gl_cv_type_${gltype}_suffix
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10861 $as_echo "$ac_res" >&6; }
10862 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10863 eval result=\$gl_cv_type_${gltype}_suffix
10864 test "$result" = no && result=
10865 eval ${GLTYPE}_SUFFIX=\$result
10866 cat >>confdefs.h <<_ACEOF
10867 #define ${GLTYPE}_SUFFIX $result
10868 _ACEOF
10869
10870 done
10871
10872
10873 fi
10874
10875
10876 for gltype in sig_atomic_t wchar_t wint_t ; do
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10878 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10879 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 eval gl_cv_type_${gltype}_suffix=no
10883 eval result=\$gl_cv_type_${gltype}_signed
10884 if test "$result" = yes; then
10885 glsufu=
10886 else
10887 glsufu=u
10888 fi
10889 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10890 case $glsuf in
10891 '') gltype1='int';;
10892 l) gltype1='long int';;
10893 ll) gltype1='long long int';;
10894 i64) gltype1='__int64';;
10895 u) gltype1='unsigned int';;
10896 ul) gltype1='unsigned long int';;
10897 ull) gltype1='unsigned long long int';;
10898 ui64)gltype1='unsigned __int64';;
10899 esac
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10902
10903 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10904 included before <wchar.h>. */
10905 #include <stddef.h>
10906 #include <signal.h>
10907 #if HAVE_WCHAR_H
10908 # include <stdio.h>
10909 # include <time.h>
10910 # include <wchar.h>
10911 #endif
10912
10913 extern $gltype foo;
10914 extern $gltype1 foo;
10915 int
10916 main ()
10917 {
10918
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_compile "$LINENO"; then :
10924 eval gl_cv_type_${gltype}_suffix=\$glsuf
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 eval result=\$gl_cv_type_${gltype}_suffix
10928 test "$result" != no && break
10929 done
10930 fi
10931 eval ac_res=\$gl_cv_type_${gltype}_suffix
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10933 $as_echo "$ac_res" >&6; }
10934 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10935 eval result=\$gl_cv_type_${gltype}_suffix
10936 test "$result" = no && result=
10937 eval ${GLTYPE}_SUFFIX=\$result
10938 cat >>confdefs.h <<_ACEOF
10939 #define ${GLTYPE}_SUFFIX $result
10940 _ACEOF
10941
10942 done
10943
10944
10945
10946 if test $BITSIZEOF_WINT_T -lt 32; then
10947 BITSIZEOF_WINT_T=32
10948 fi
10949
10950 STDINT_H=stdint.h
10951 fi
10952
10953 if test -n "$STDINT_H"; then
10954 GL_GENERATE_STDINT_H_TRUE=
10955 GL_GENERATE_STDINT_H_FALSE='#'
10956 else
10957 GL_GENERATE_STDINT_H_TRUE='#'
10958 GL_GENERATE_STDINT_H_FALSE=
10959 fi
10960
10961
10962
10963
10964
10965 GNULIB_IMAXABS=0;
10966 GNULIB_IMAXDIV=0;
10967 GNULIB_STRTOIMAX=0;
10968 GNULIB_STRTOUMAX=0;
10969 HAVE_DECL_IMAXABS=1;
10970 HAVE_DECL_IMAXDIV=1;
10971 HAVE_DECL_STRTOIMAX=1;
10972 HAVE_DECL_STRTOUMAX=1;
10973 REPLACE_STRTOIMAX=0;
10974 INT32_MAX_LT_INTMAX_MAX=1;
10975 INT64_MAX_EQ_LONG_MAX='defined _LP64';
10976 PRI_MACROS_BROKEN=0;
10977 PRIPTR_PREFIX=__PRIPTR_PREFIX;
10978 UINT32_MAX_LT_UINTMAX_MAX=1;
10979 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995 if test $gl_cv_have_include_next = yes; then
10996 gl_cv_next_inttypes_h='<'inttypes.h'>'
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10999 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11000 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003
11004 if test $ac_cv_header_inttypes_h = yes; then
11005
11006
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include <inttypes.h>
11010
11011 _ACEOF
11012 case "$host_os" in
11013 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11014 *) gl_absname_cpp="$ac_cpp" ;;
11015 esac
11016
11017 case "$host_os" in
11018 mingw*)
11019 gl_dirsep_regex='[/\\]'
11020 ;;
11021 *)
11022 gl_dirsep_regex='\/'
11023 ;;
11024 esac
11025 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11026
11027 gl_header_literal_regex=`echo 'inttypes.h' \
11028 | sed -e "$gl_make_literal_regex_sed"`
11029 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11031 s|^/[^/]|//&|
11032 p
11033 q
11034 }'
11035 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11036 sed -n "$gl_absolute_header_sed"`'"'
11037 else
11038 gl_cv_next_inttypes_h='<'inttypes.h'>'
11039 fi
11040
11041
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11044 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11045 fi
11046 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11047
11048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11050 gl_next_as_first_directive='<'inttypes.h'>'
11051 else
11052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11053 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11054 fi
11055 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067 case "$host_os" in
11068 mingw*)
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11070 $as_echo_n "checking for 64-bit off_t... " >&6; }
11071 if test "${gl_cv_type_off_t_64+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #include <sys/types.h>
11077 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11078
11079 int
11080 main ()
11081 {
11082
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_compile "$LINENO"; then :
11088 gl_cv_type_off_t_64=yes
11089 else
11090 gl_cv_type_off_t_64=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11096 $as_echo "$gl_cv_type_off_t_64" >&6; }
11097 if test $gl_cv_type_off_t_64 = no; then
11098 WINDOWS_64_BIT_OFF_T=1
11099 else
11100 WINDOWS_64_BIT_OFF_T=0
11101 fi
11102 WINDOWS_64_BIT_ST_SIZE=1
11103 ;;
11104 *)
11105 WINDOWS_64_BIT_OFF_T=0
11106 WINDOWS_64_BIT_ST_SIZE=0
11107 ;;
11108 esac
11109
11110
11111 GNULIB_FCHMODAT=0;
11112 GNULIB_FSTAT=0;
11113 GNULIB_FSTATAT=0;
11114 GNULIB_FUTIMENS=0;
11115 GNULIB_LCHMOD=0;
11116 GNULIB_LSTAT=0;
11117 GNULIB_MKDIRAT=0;
11118 GNULIB_MKFIFO=0;
11119 GNULIB_MKFIFOAT=0;
11120 GNULIB_MKNOD=0;
11121 GNULIB_MKNODAT=0;
11122 GNULIB_STAT=0;
11123 GNULIB_UTIMENSAT=0;
11124 HAVE_FCHMODAT=1;
11125 HAVE_FSTATAT=1;
11126 HAVE_FUTIMENS=1;
11127 HAVE_LCHMOD=1;
11128 HAVE_LSTAT=1;
11129 HAVE_MKDIRAT=1;
11130 HAVE_MKFIFO=1;
11131 HAVE_MKFIFOAT=1;
11132 HAVE_MKNOD=1;
11133 HAVE_MKNODAT=1;
11134 HAVE_UTIMENSAT=1;
11135 REPLACE_FSTAT=0;
11136 REPLACE_FSTATAT=0;
11137 REPLACE_FUTIMENS=0;
11138 REPLACE_LSTAT=0;
11139 REPLACE_MKDIR=0;
11140 REPLACE_MKFIFO=0;
11141 REPLACE_MKNOD=0;
11142 REPLACE_STAT=0;
11143 REPLACE_UTIMENSAT=0;
11144
11145
11146
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11149 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11150 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 rm -f conftest.sym conftest.file
11154 echo >conftest.file
11155 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11156 if test "$cross_compiling" = yes; then :
11157 case "$host_os" in
11158 # Guess yes on glibc systems.
11159 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11160 # If we don't know, assume the worst.
11161 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11162 esac
11163
11164 else
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 $ac_includes_default
11168 int
11169 main ()
11170 {
11171 struct stat sbuf;
11172 /* Linux will dereference the symlink and fail, as required by
11173 POSIX. That is better in the sense that it means we will not
11174 have to compile and use the lstat wrapper. */
11175 return lstat ("conftest.sym/", &sbuf) == 0;
11176
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_c_try_run "$LINENO"; then :
11182 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11183 else
11184 gl_cv_func_lstat_dereferences_slashed_symlink=no
11185 fi
11186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11187 conftest.$ac_objext conftest.beam conftest.$ac_ext
11188 fi
11189
11190 else
11191 # If the 'ln -s' command failed, then we probably don't even
11192 # have an lstat function.
11193 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
11194 fi
11195 rm -f conftest.sym conftest.file
11196
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11199 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11200 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11201 *yes)
11202
11203 cat >>confdefs.h <<_ACEOF
11204 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11205 _ACEOF
11206
11207 ;;
11208 esac
11209
11210
11211 GNULIB_MKTIME=0;
11212 GNULIB_NANOSLEEP=0;
11213 GNULIB_STRPTIME=0;
11214 GNULIB_TIMEGM=0;
11215 GNULIB_TIME_R=0;
11216 HAVE_DECL_LOCALTIME_R=1;
11217 HAVE_NANOSLEEP=1;
11218 HAVE_STRPTIME=1;
11219 HAVE_TIMEGM=1;
11220 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11221 REPLACE_MKTIME=GNULIB_PORTCHECK;
11222 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11223 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11224
11225
11226
11227
11228
11229
11230 GNULIB_PSELECT=0;
11231 GNULIB_SELECT=0;
11232 HAVE_PSELECT=1;
11233 REPLACE_PSELECT=0;
11234 REPLACE_SELECT=0;
11235
11236
11237
11238
11239
11240
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11242 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11243 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/select.h>
11250 int
11251 main ()
11252 {
11253 struct timeval b;
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 gl_cv_header_sys_select_h_selfcontained=yes
11260 else
11261 gl_cv_header_sys_select_h_selfcontained=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 #include <sys/select.h>
11268 int
11269 main ()
11270 {
11271 int memset; int bzero;
11272 ;
11273 return 0;
11274 }
11275
11276 _ACEOF
11277 if ac_fn_c_try_compile "$LINENO"; then :
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #include <sys/select.h>
11281 int
11282 main ()
11283 {
11284
11285 #undef memset
11286 #define memset nonexistent_memset
11287 extern
11288 #ifdef __cplusplus
11289 "C"
11290 #endif
11291 void *memset (void *, int, unsigned long);
11292 #undef bzero
11293 #define bzero nonexistent_bzero
11294 extern
11295 #ifdef __cplusplus
11296 "C"
11297 #endif
11298 void bzero (void *, unsigned long);
11299 fd_set fds;
11300 FD_ZERO (&fds);
11301
11302 ;
11303 return 0;
11304 }
11305
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308
11309 else
11310 gl_cv_header_sys_select_h_selfcontained=no
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11321 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331 if test $gl_cv_have_include_next = yes; then
11332 gl_cv_next_sys_select_h='<'sys/select.h'>'
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11335 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11336 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339
11340 if test $ac_cv_header_sys_select_h = yes; then
11341
11342
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <sys/select.h>
11346
11347 _ACEOF
11348 case "$host_os" in
11349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11350 *) gl_absname_cpp="$ac_cpp" ;;
11351 esac
11352
11353 case "$host_os" in
11354 mingw*)
11355 gl_dirsep_regex='[/\\]'
11356 ;;
11357 *)
11358 gl_dirsep_regex='\/'
11359 ;;
11360 esac
11361 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11362
11363 gl_header_literal_regex=`echo 'sys/select.h' \
11364 | sed -e "$gl_make_literal_regex_sed"`
11365 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11366 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11367 s|^/[^/]|//&|
11368 p
11369 q
11370 }'
11371 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11372 sed -n "$gl_absolute_header_sed"`'"'
11373 else
11374 gl_cv_next_sys_select_h='<'sys/select.h'>'
11375 fi
11376
11377
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11380 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11381 fi
11382 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
11383
11384 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11386 gl_next_as_first_directive='<'sys/select.h'>'
11387 else
11388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11389 gl_next_as_first_directive=$gl_cv_next_sys_select_h
11390 fi
11391 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
11392
11393
11394
11395
11396 if test $ac_cv_header_sys_select_h = yes; then
11397 HAVE_SYS_SELECT_H=1
11398 else
11399 HAVE_SYS_SELECT_H=0
11400 fi
11401
11402
11403
11404
11405
11406 if test $ac_cv_header_sys_socket_h != yes; then
11407 for ac_header in winsock2.h
11408 do :
11409 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11410 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11411 cat >>confdefs.h <<_ACEOF
11412 #define HAVE_WINSOCK2_H 1
11413 _ACEOF
11414
11415 fi
11416
11417 done
11418
11419 fi
11420 if test "$ac_cv_header_winsock2_h" = yes; then
11421 HAVE_WINSOCK2_H=1
11422 UNISTD_H_HAVE_WINSOCK2_H=1
11423 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11424 else
11425 HAVE_WINSOCK2_H=0
11426 fi
11427
11428
11429
11430
11431
11432
11433
11434
11435 GNULIB_PTHREAD_SIGMASK=0;
11436 GNULIB_RAISE=0;
11437 GNULIB_SIGNAL_H_SIGPIPE=0;
11438 GNULIB_SIGPROCMASK=0;
11439 GNULIB_SIGACTION=0;
11440 HAVE_POSIX_SIGNALBLOCKING=1;
11441 HAVE_PTHREAD_SIGMASK=1;
11442 HAVE_RAISE=1;
11443 HAVE_SIGSET_T=1;
11444 HAVE_SIGINFO_T=1;
11445 HAVE_SIGACTION=1;
11446 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11447
11448 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11449
11450 HAVE_SIGHANDLER_T=1;
11451 REPLACE_PTHREAD_SIGMASK=0;
11452 REPLACE_RAISE=0;
11453
11454
11455
11456
11457
11458
11459 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11460 #include <signal.h>
11461 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11462 #include <sys/types.h>
11463
11464 "
11465 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11466
11467 cat >>confdefs.h <<_ACEOF
11468 #define HAVE_SIGSET_T 1
11469 _ACEOF
11470
11471 gl_cv_type_sigset_t=yes
11472 else
11473 gl_cv_type_sigset_t=no
11474 fi
11475
11476 if test $gl_cv_type_sigset_t != yes; then
11477 HAVE_SIGSET_T=0
11478 fi
11479
11480 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11481 if test "x$ac_cv_type_pid_t" = x""yes; then :
11482
11483 else
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define pid_t int
11487 _ACEOF
11488
11489 fi
11490
11491
11492
11493 if test $ac_cv_header_sys_socket_h = no; then
11494 for ac_header in ws2tcpip.h
11495 do :
11496 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11497 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
11498 cat >>confdefs.h <<_ACEOF
11499 #define HAVE_WS2TCPIP_H 1
11500 _ACEOF
11501
11502 fi
11503
11504 done
11505
11506 fi
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11509 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11510 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515
11516 #include <stdbool.h>
11517 #ifndef bool
11518 "error: bool is not defined"
11519 #endif
11520 #ifndef false
11521 "error: false is not defined"
11522 #endif
11523 #if false
11524 "error: false is not 0"
11525 #endif
11526 #ifndef true
11527 "error: true is not defined"
11528 #endif
11529 #if true != 1
11530 "error: true is not 1"
11531 #endif
11532 #ifndef __bool_true_false_are_defined
11533 "error: __bool_true_false_are_defined is not defined"
11534 #endif
11535
11536 struct s { _Bool s: 1; _Bool t; } s;
11537
11538 char a[true == 1 ? 1 : -1];
11539 char b[false == 0 ? 1 : -1];
11540 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11541 char d[(bool) 0.5 == true ? 1 : -1];
11542 /* See body of main program for 'e'. */
11543 char f[(_Bool) 0.0 == false ? 1 : -1];
11544 char g[true];
11545 char h[sizeof (_Bool)];
11546 char i[sizeof s.t];
11547 enum { j = false, k = true, l = false * true, m = true * 256 };
11548 /* The following fails for
11549 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11550 _Bool n[m];
11551 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11552 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11553 /* Catch a bug in an HP-UX C compiler. See
11554 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11555 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11556 */
11557 _Bool q = true;
11558 _Bool *pq = &q;
11559
11560 int
11561 main ()
11562 {
11563
11564 bool e = &s;
11565 *pq |= q;
11566 *pq |= ! q;
11567 /* Refer to every declared value, to avoid compiler optimizations. */
11568 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11569 + !m + !n + !o + !p + !q + !pq);
11570
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 if ac_fn_c_try_compile "$LINENO"; then :
11576 ac_cv_header_stdbool_h=yes
11577 else
11578 ac_cv_header_stdbool_h=no
11579 fi
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11583 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11584 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11585 if test "x$ac_cv_type__Bool" = x""yes; then :
11586
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE__BOOL 1
11589 _ACEOF
11590
11591
11592 fi
11593
11594
11595
11596 REPLACE_NULL=0;
11597 HAVE_WCHAR_T=1;
11598
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11601 $as_echo_n "checking for wchar_t... " >&6; }
11602 if test "${gt_cv_c_wchar_t+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #include <stddef.h>
11608 wchar_t foo = (wchar_t)'\0';
11609 int
11610 main ()
11611 {
11612
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_compile "$LINENO"; then :
11618 gt_cv_c_wchar_t=yes
11619 else
11620 gt_cv_c_wchar_t=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11625 $as_echo "$gt_cv_c_wchar_t" >&6; }
11626 if test $gt_cv_c_wchar_t = yes; then
11627
11628 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11629
11630 fi
11631
11632
11633 GNULIB_DPRINTF=0;
11634 GNULIB_FCLOSE=0;
11635 GNULIB_FDOPEN=0;
11636 GNULIB_FFLUSH=0;
11637 GNULIB_FGETC=0;
11638 GNULIB_FGETS=0;
11639 GNULIB_FOPEN=0;
11640 GNULIB_FPRINTF=0;
11641 GNULIB_FPRINTF_POSIX=0;
11642 GNULIB_FPURGE=0;
11643 GNULIB_FPUTC=0;
11644 GNULIB_FPUTS=0;
11645 GNULIB_FREAD=0;
11646 GNULIB_FREOPEN=0;
11647 GNULIB_FSCANF=0;
11648 GNULIB_FSEEK=0;
11649 GNULIB_FSEEKO=0;
11650 GNULIB_FTELL=0;
11651 GNULIB_FTELLO=0;
11652 GNULIB_FWRITE=0;
11653 GNULIB_GETC=0;
11654 GNULIB_GETCHAR=0;
11655 GNULIB_GETDELIM=0;
11656 GNULIB_GETLINE=0;
11657 GNULIB_OBSTACK_PRINTF=0;
11658 GNULIB_OBSTACK_PRINTF_POSIX=0;
11659 GNULIB_PCLOSE=0;
11660 GNULIB_PERROR=0;
11661 GNULIB_POPEN=0;
11662 GNULIB_PRINTF=0;
11663 GNULIB_PRINTF_POSIX=0;
11664 GNULIB_PUTC=0;
11665 GNULIB_PUTCHAR=0;
11666 GNULIB_PUTS=0;
11667 GNULIB_REMOVE=0;
11668 GNULIB_RENAME=0;
11669 GNULIB_RENAMEAT=0;
11670 GNULIB_SCANF=0;
11671 GNULIB_SNPRINTF=0;
11672 GNULIB_SPRINTF_POSIX=0;
11673 GNULIB_STDIO_H_NONBLOCKING=0;
11674 GNULIB_STDIO_H_SIGPIPE=0;
11675 GNULIB_TMPFILE=0;
11676 GNULIB_VASPRINTF=0;
11677 GNULIB_VFSCANF=0;
11678 GNULIB_VSCANF=0;
11679 GNULIB_VDPRINTF=0;
11680 GNULIB_VFPRINTF=0;
11681 GNULIB_VFPRINTF_POSIX=0;
11682 GNULIB_VPRINTF=0;
11683 GNULIB_VPRINTF_POSIX=0;
11684 GNULIB_VSNPRINTF=0;
11685 GNULIB_VSPRINTF_POSIX=0;
11686 HAVE_DECL_FPURGE=1;
11687 HAVE_DECL_FSEEKO=1;
11688 HAVE_DECL_FTELLO=1;
11689 HAVE_DECL_GETDELIM=1;
11690 HAVE_DECL_GETLINE=1;
11691 HAVE_DECL_OBSTACK_PRINTF=1;
11692 HAVE_DECL_SNPRINTF=1;
11693 HAVE_DECL_VSNPRINTF=1;
11694 HAVE_DPRINTF=1;
11695 HAVE_FSEEKO=1;
11696 HAVE_FTELLO=1;
11697 HAVE_PCLOSE=1;
11698 HAVE_POPEN=1;
11699 HAVE_RENAMEAT=1;
11700 HAVE_VASPRINTF=1;
11701 HAVE_VDPRINTF=1;
11702 REPLACE_DPRINTF=0;
11703 REPLACE_FCLOSE=0;
11704 REPLACE_FDOPEN=0;
11705 REPLACE_FFLUSH=0;
11706 REPLACE_FOPEN=0;
11707 REPLACE_FPRINTF=0;
11708 REPLACE_FPURGE=0;
11709 REPLACE_FREOPEN=0;
11710 REPLACE_FSEEK=0;
11711 REPLACE_FSEEKO=0;
11712 REPLACE_FTELL=0;
11713 REPLACE_FTELLO=0;
11714 REPLACE_GETDELIM=0;
11715 REPLACE_GETLINE=0;
11716 REPLACE_OBSTACK_PRINTF=0;
11717 REPLACE_PERROR=0;
11718 REPLACE_POPEN=0;
11719 REPLACE_PRINTF=0;
11720 REPLACE_REMOVE=0;
11721 REPLACE_RENAME=0;
11722 REPLACE_RENAMEAT=0;
11723 REPLACE_SNPRINTF=0;
11724 REPLACE_SPRINTF=0;
11725 REPLACE_STDIO_READ_FUNCS=0;
11726 REPLACE_STDIO_WRITE_FUNCS=0;
11727 REPLACE_TMPFILE=0;
11728 REPLACE_VASPRINTF=0;
11729 REPLACE_VDPRINTF=0;
11730 REPLACE_VFPRINTF=0;
11731 REPLACE_VPRINTF=0;
11732 REPLACE_VSNPRINTF=0;
11733 REPLACE_VSPRINTF=0;
11734
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11736 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11737 if test "${ac_cv_struct_tm+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 #include <sys/types.h>
11743 #include <time.h>
11744
11745 int
11746 main ()
11747 {
11748 struct tm tm;
11749 int *p = &tm.tm_sec;
11750 return !p;
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_compile "$LINENO"; then :
11756 ac_cv_struct_tm=time.h
11757 else
11758 ac_cv_struct_tm=sys/time.h
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11763 $as_echo "$ac_cv_struct_tm" >&6; }
11764 if test $ac_cv_struct_tm = sys/time.h; then
11765
11766 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11767
11768 fi
11769
11770 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11771 #include <$ac_cv_struct_tm>
11772
11773 "
11774 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11775
11776 cat >>confdefs.h <<_ACEOF
11777 #define HAVE_STRUCT_TM_TM_ZONE 1
11778 _ACEOF
11779
11780
11781 fi
11782
11783 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11784
11785 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11786
11787 else
11788 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11789 "
11790 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11791 ac_have_decl=1
11792 else
11793 ac_have_decl=0
11794 fi
11795
11796 cat >>confdefs.h <<_ACEOF
11797 #define HAVE_DECL_TZNAME $ac_have_decl
11798 _ACEOF
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11801 $as_echo_n "checking for tzname... " >&6; }
11802 if test "${ac_cv_var_tzname+set}" = set; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <time.h>
11808 #if !HAVE_DECL_TZNAME
11809 extern char *tzname[];
11810 #endif
11811
11812 int
11813 main ()
11814 {
11815 return tzname[0][0];
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 ac_cv_var_tzname=yes
11822 else
11823 ac_cv_var_tzname=no
11824 fi
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11829 $as_echo "$ac_cv_var_tzname" >&6; }
11830 if test $ac_cv_var_tzname = yes; then
11831
11832 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11833
11834 fi
11835 fi
11836
11837
11838 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11839 "
11840 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11841
11842 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11843
11844 fi
11845
11846
11847
11848
11849
11850
11851 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11852 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
11853 ac_have_decl=1
11854 else
11855 ac_have_decl=0
11856 fi
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11860 _ACEOF
11861
11862
11863
11864 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11865 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
11866 ac_have_decl=1
11867 else
11868 ac_have_decl=0
11869 fi
11870
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11873 _ACEOF
11874
11875
11876
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11878 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11879 if test "${ac_cv_header_stat_broken+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <sys/types.h>
11885 #include <sys/stat.h>
11886
11887 #if defined S_ISBLK && defined S_IFDIR
11888 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11889 #endif
11890
11891 #if defined S_ISBLK && defined S_IFCHR
11892 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11893 #endif
11894
11895 #if defined S_ISLNK && defined S_IFREG
11896 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11897 #endif
11898
11899 #if defined S_ISSOCK && defined S_IFREG
11900 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11901 #endif
11902
11903 _ACEOF
11904 if ac_fn_c_try_compile "$LINENO"; then :
11905 ac_cv_header_stat_broken=no
11906 else
11907 ac_cv_header_stat_broken=yes
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11912 $as_echo "$ac_cv_header_stat_broken" >&6; }
11913 if test $ac_cv_header_stat_broken = yes; then
11914
11915 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11916
11917 fi
11918
11919
11920
11921 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11922 if test "x$ac_cv_type_mode_t" = x""yes; then :
11923
11924 else
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define mode_t int
11928 _ACEOF
11929
11930 fi
11931
11932
11933
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11935 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11936 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <time.h>
11942
11943 int
11944 main ()
11945 {
11946 static struct timespec x; x.tv_sec = x.tv_nsec;
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_compile "$LINENO"; then :
11952 gl_cv_sys_struct_timespec_in_time_h=yes
11953 else
11954 gl_cv_sys_struct_timespec_in_time_h=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11959 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11960
11961 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11962 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11963 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11964 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11965 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11968 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11969 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 #include <sys/time.h>
11975
11976 int
11977 main ()
11978 {
11979 static struct timespec x; x.tv_sec = x.tv_nsec;
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_compile "$LINENO"; then :
11985 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11986 else
11987 gl_cv_sys_struct_timespec_in_sys_time_h=no
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11992 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11993 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11994 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11997 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11998 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003 #include <pthread.h>
12004
12005 int
12006 main ()
12007 {
12008 static struct timespec x; x.tv_sec = x.tv_nsec;
12009 ;
12010 return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014 gl_cv_sys_struct_timespec_in_pthread_h=yes
12015 else
12016 gl_cv_sys_struct_timespec_in_pthread_h=no
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12021 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12022 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12023 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12024 fi
12025 fi
12026 fi
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042 if test $gl_cv_have_include_next = yes; then
12043 gl_cv_next_time_h='<'time.h'>'
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12046 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12047 if test "${gl_cv_next_time_h+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #include <time.h>
12054
12055 _ACEOF
12056 case "$host_os" in
12057 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12058 *) gl_absname_cpp="$ac_cpp" ;;
12059 esac
12060
12061 case "$host_os" in
12062 mingw*)
12063 gl_dirsep_regex='[/\\]'
12064 ;;
12065 *)
12066 gl_dirsep_regex='\/'
12067 ;;
12068 esac
12069 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12070
12071 gl_header_literal_regex=`echo 'time.h' \
12072 | sed -e "$gl_make_literal_regex_sed"`
12073 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12074 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12075 s|^/[^/]|//&|
12076 p
12077 q
12078 }'
12079 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12080 sed -n "$gl_absolute_header_sed"`'"'
12081
12082
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12085 $as_echo "$gl_cv_next_time_h" >&6; }
12086 fi
12087 NEXT_TIME_H=$gl_cv_next_time_h
12088
12089 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12091 gl_next_as_first_directive='<'time.h'>'
12092 else
12093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12094 gl_next_as_first_directive=$gl_cv_next_time_h
12095 fi
12096 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12113 $as_echo_n "checking whether the utimes function works... " >&6; }
12114 if test "${gl_cv_func_working_utimes+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117
12118 if test "$cross_compiling" = yes; then :
12119 gl_cv_func_working_utimes=no
12120 else
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123
12124 #include <sys/types.h>
12125 #include <sys/stat.h>
12126 #include <fcntl.h>
12127 #include <sys/time.h>
12128 #include <time.h>
12129 #include <unistd.h>
12130 #include <stdlib.h>
12131 #include <stdio.h>
12132 #include <utime.h>
12133
12134 static int
12135 inorder (time_t a, time_t b, time_t c)
12136 {
12137 return a <= b && b <= c;
12138 }
12139
12140 int
12141 main ()
12142 {
12143 int result = 0;
12144 char const *file = "conftest.utimes";
12145 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12146
12147 /* Test whether utimes() essentially works. */
12148 {
12149 struct stat sbuf;
12150 FILE *f = fopen (file, "w");
12151 if (f == NULL)
12152 result |= 1;
12153 else if (fclose (f) != 0)
12154 result |= 1;
12155 else if (utimes (file, timeval) != 0)
12156 result |= 2;
12157 else if (lstat (file, &sbuf) != 0)
12158 result |= 1;
12159 else if (!(sbuf.st_atime == timeval[0].tv_sec
12160 && sbuf.st_mtime == timeval[1].tv_sec))
12161 result |= 4;
12162 if (unlink (file) != 0)
12163 result |= 1;
12164 }
12165
12166 /* Test whether utimes() with a NULL argument sets the file's timestamp
12167 to the current time. Use 'fstat' as well as 'time' to
12168 determine the "current" time, to accommodate NFS file systems
12169 if there is a time skew between the host and the NFS server. */
12170 {
12171 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12172 if (fd < 0)
12173 result |= 1;
12174 else
12175 {
12176 time_t t0, t2;
12177 struct stat st0, st1, st2;
12178 if (time (&t0) == (time_t) -1)
12179 result |= 1;
12180 else if (fstat (fd, &st0) != 0)
12181 result |= 1;
12182 else if (utimes (file, timeval) != 0)
12183 result |= 2;
12184 else if (utimes (file, NULL) != 0)
12185 result |= 8;
12186 else if (fstat (fd, &st1) != 0)
12187 result |= 1;
12188 else if (write (fd, "\n", 1) != 1)
12189 result |= 1;
12190 else if (fstat (fd, &st2) != 0)
12191 result |= 1;
12192 else if (time (&t2) == (time_t) -1)
12193 result |= 1;
12194 else
12195 {
12196 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12197 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12198 if (! (st1.st_atime == st1.st_mtime))
12199 result |= 16;
12200 if (! (m_ok_POSIX || m_ok_NFS))
12201 result |= 32;
12202 }
12203 if (close (fd) != 0)
12204 result |= 1;
12205 }
12206 if (unlink (file) != 0)
12207 result |= 1;
12208 }
12209
12210 /* Test whether utimes() with a NULL argument works on read-only files. */
12211 {
12212 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12213 if (fd < 0)
12214 result |= 1;
12215 else if (close (fd) != 0)
12216 result |= 1;
12217 else if (utimes (file, NULL) != 0)
12218 result |= 64;
12219 if (unlink (file) != 0)
12220 result |= 1;
12221 }
12222
12223 return result;
12224 }
12225
12226 _ACEOF
12227 if ac_fn_c_try_run "$LINENO"; then :
12228 gl_cv_func_working_utimes=yes
12229 else
12230 gl_cv_func_working_utimes=no
12231 fi
12232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12233 conftest.$ac_objext conftest.beam conftest.$ac_ext
12234 fi
12235
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12238 $as_echo "$gl_cv_func_working_utimes" >&6; }
12239
12240 if test $gl_cv_func_working_utimes = yes; then
12241
12242 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12243
12244 fi
12245
12246
12247
12248
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12251 $as_echo_n "checking for struct utimbuf... " >&6; }
12252 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #if HAVE_SYS_TIME_H
12258 #include <sys/time.h>
12259 #endif
12260 #include <time.h>
12261 #ifdef HAVE_UTIME_H
12262 #include <utime.h>
12263 #endif
12264
12265 int
12266 main ()
12267 {
12268 static struct utimbuf x; x.actime = x.modtime;
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274 gl_cv_sys_struct_utimbuf=yes
12275 else
12276 gl_cv_sys_struct_utimbuf=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12281 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12282
12283 if test $gl_cv_sys_struct_utimbuf = yes; then
12284
12285 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12286
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302 if false; then
12303 GL_COND_LIBTOOL_TRUE=
12304 GL_COND_LIBTOOL_FALSE='#'
12305 else
12306 GL_COND_LIBTOOL_TRUE='#'
12307 GL_COND_LIBTOOL_FALSE=
12308 fi
12309
12310 gl_cond_libtool=false
12311 gl_libdeps=
12312 gl_ltlibdeps=
12313 gl_m4_base='m4'
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 gl_source_base='lib'
12324
12325
12326 if test $ac_cv_func_alloca_works = no; then
12327 :
12328 fi
12329
12330 # Define an additional variable used in the Makefile substitution.
12331 if test $ac_cv_working_alloca_h = yes; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12333 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12334 if test "${gl_cv_rpl_alloca+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12342 Need own alloca
12343 #endif
12344
12345 _ACEOF
12346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12348 gl_cv_rpl_alloca=yes
12349 else
12350 gl_cv_rpl_alloca=no
12351 fi
12352 rm -f conftest*
12353
12354
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12357 $as_echo "$gl_cv_rpl_alloca" >&6; }
12358 if test $gl_cv_rpl_alloca = yes; then
12359
12360 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12361
12362 ALLOCA_H=alloca.h
12363 else
12364 ALLOCA_H=
12365 fi
12366 else
12367 ALLOCA_H=alloca.h
12368 fi
12369
12370 if test -n "$ALLOCA_H"; then
12371 GL_GENERATE_ALLOCA_H_TRUE=
12372 GL_GENERATE_ALLOCA_H_FALSE='#'
12373 else
12374 GL_GENERATE_ALLOCA_H_TRUE='#'
12375 GL_GENERATE_ALLOCA_H_FALSE=
12376 fi
12377
12378
12379
12380
12381
12382
12383 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12384 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12385
12386 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12387 # programs in the package would end up linked with that potentially-shared
12388 # library, inducing unnecessary run-time overhead.
12389 LIB_CLOCK_GETTIME=
12390
12391 gl_saved_libs=$LIBS
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12393 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12394 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_func_search_save_LIBS=$LIBS
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char clock_gettime ();
12408 int
12409 main ()
12410 {
12411 return clock_gettime ();
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 for ac_lib in '' rt posix4; do
12417 if test -z "$ac_lib"; then
12418 ac_res="none required"
12419 else
12420 ac_res=-l$ac_lib
12421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12422 fi
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 ac_cv_search_clock_gettime=$ac_res
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext
12428 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12429 break
12430 fi
12431 done
12432 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12433
12434 else
12435 ac_cv_search_clock_gettime=no
12436 fi
12437 rm conftest.$ac_ext
12438 LIBS=$ac_func_search_save_LIBS
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12441 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12442 ac_res=$ac_cv_search_clock_gettime
12443 if test "$ac_res" != no; then :
12444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12445 test "$ac_cv_search_clock_gettime" = "none required" ||
12446 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12447 fi
12448
12449 for ac_func in clock_gettime clock_settime
12450 do :
12451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12453 eval as_val=\$$as_ac_var
12454 if test "x$as_val" = x""yes; then :
12455 cat >>confdefs.h <<_ACEOF
12456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12457 _ACEOF
12458
12459 fi
12460 done
12461
12462 LIBS=$gl_saved_libs
12463
12464
12465
12466
12467 :
12468
12469
12470
12471
12472 :
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12489
12490
12491 if test $HAVE_DUP2 = 1; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12493 $as_echo_n "checking whether dup2 works... " >&6; }
12494 if test "${gl_cv_func_dup2_works+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 if test "$cross_compiling" = yes; then :
12498 case "$host_os" in
12499 mingw*) # on this platform, dup2 always returns 0 for success
12500 gl_cv_func_dup2_works="guessing no" ;;
12501 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12502 gl_cv_func_dup2_works="guessing no" ;;
12503 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12504 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12505 gl_cv_func_dup2_works="guessing no" ;;
12506 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12507 gl_cv_func_dup2_works="guessing no" ;;
12508 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12509 gl_cv_func_dup2_works="guessing no" ;;
12510 *) gl_cv_func_dup2_works="guessing yes" ;;
12511 esac
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515
12516 #include <unistd.h>
12517 #include <fcntl.h>
12518 #include <errno.h>
12519 int
12520 main ()
12521 {
12522 int result = 0;
12523 #ifdef FD_CLOEXEC
12524 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12525 result |= 1;
12526 #endif
12527 if (dup2 (1, 1) == 0)
12528 result |= 2;
12529 #ifdef FD_CLOEXEC
12530 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12531 result |= 4;
12532 #endif
12533 close (0);
12534 if (dup2 (0, 0) != -1)
12535 result |= 8;
12536 /* Many gnulib modules require POSIX conformance of EBADF. */
12537 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12538 result |= 16;
12539 return result;
12540
12541 ;
12542 return 0;
12543 }
12544
12545 _ACEOF
12546 if ac_fn_c_try_run "$LINENO"; then :
12547 gl_cv_func_dup2_works=yes
12548 else
12549 gl_cv_func_dup2_works=no
12550 fi
12551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12552 conftest.$ac_objext conftest.beam conftest.$ac_ext
12553 fi
12554
12555
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12558 $as_echo "$gl_cv_func_dup2_works" >&6; }
12559 case "$gl_cv_func_dup2_works" in
12560 *yes) ;;
12561 *)
12562 REPLACE_DUP2=1
12563 ;;
12564 esac
12565 fi
12566
12567
12568 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
12569
12570
12571
12572
12573
12574
12575
12576
12577 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12578
12579
12580 fi
12581
12582
12583
12584
12585
12586 GNULIB_DUP2=1
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598 # Persuade glibc <stdlib.h> to declare getloadavg().
12599
12600
12601 gl_save_LIBS=$LIBS
12602
12603 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12604 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12605 HAVE_GETLOADAVG=1
12606 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12607 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12608
12609 else
12610 gl_func_getloadavg_done=no
12611
12612 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12613 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12614 # to get the right answer into the cache.
12615 # For kstat on solaris, we need to test for libelf and libkvm to force the
12616 # definition of SVR4 below.
12617 if test $gl_func_getloadavg_done = no; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12619 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12620 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-lelf $LIBS"
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char elf_begin ();
12635 int
12636 main ()
12637 {
12638 return elf_begin ();
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_lib_elf_elf_begin=yes
12645 else
12646 ac_cv_lib_elf_elf_begin=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12653 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12654 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12655 LIBS="-lelf $LIBS"
12656 fi
12657
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12659 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12660 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lkvm $LIBS"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671 #ifdef __cplusplus
12672 extern "C"
12673 #endif
12674 char kvm_open ();
12675 int
12676 main ()
12677 {
12678 return kvm_open ();
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 ac_cv_lib_kvm_kvm_open=yes
12685 else
12686 ac_cv_lib_kvm_kvm_open=no
12687 fi
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS
12691 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12693 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12694 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12695 LIBS="-lkvm $LIBS"
12696 fi
12697
12698 # Check for the 4.4BSD definition of getloadavg.
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12700 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12701 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-lutil $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char getloadavg ();
12716 int
12717 main ()
12718 {
12719 return getloadavg ();
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_lib_util_getloadavg=yes
12726 else
12727 ac_cv_lib_util_getloadavg=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12734 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12735 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12736 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
12737 fi
12738
12739 fi
12740
12741 if test $gl_func_getloadavg_done = no; then
12742 # There is a commonly available library for RS/6000 AIX.
12743 # Since it is not a standard part of AIX, it might be installed locally.
12744 gl_getloadavg_LIBS=$LIBS
12745 LIBS="-L/usr/local/lib $LIBS"
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12747 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12748 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-lgetloadavg $LIBS"
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char getloadavg ();
12763 int
12764 main ()
12765 {
12766 return getloadavg ();
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772 ac_cv_lib_getloadavg_getloadavg=yes
12773 else
12774 ac_cv_lib_getloadavg_getloadavg=no
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12779 fi
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12781 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12782 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12783 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
12784 else
12785 LIBS=$gl_getloadavg_LIBS
12786 fi
12787
12788 fi
12789
12790 # Set up the replacement function if necessary.
12791 if test $gl_func_getloadavg_done = no; then
12792 HAVE_GETLOADAVG=0
12793
12794 # Solaris has libkstat which does not require root.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12796 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12797 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 ac_check_lib_save_LIBS=$LIBS
12801 LIBS="-lkstat $LIBS"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char kstat_open ();
12812 int
12813 main ()
12814 {
12815 return kstat_open ();
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 ac_cv_lib_kstat_kstat_open=yes
12822 else
12823 ac_cv_lib_kstat_kstat_open=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12830 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12831 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12832 cat >>confdefs.h <<_ACEOF
12833 #define HAVE_LIBKSTAT 1
12834 _ACEOF
12835
12836 LIBS="-lkstat $LIBS"
12837
12838 fi
12839
12840 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
12841
12842 # AIX has libperfstat which does not require root
12843 if test $gl_func_getloadavg_done = no; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12845 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12846 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-lperfstat $LIBS"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char perfstat_cpu_total ();
12861 int
12862 main ()
12863 {
12864 return perfstat_cpu_total ();
12865 ;
12866 return 0;
12867 }
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_lib_perfstat_perfstat_cpu_total=yes
12871 else
12872 ac_cv_lib_perfstat_perfstat_cpu_total=no
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12877 fi
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12879 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12880 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
12881 cat >>confdefs.h <<_ACEOF
12882 #define HAVE_LIBPERFSTAT 1
12883 _ACEOF
12884
12885 LIBS="-lperfstat $LIBS"
12886
12887 fi
12888
12889 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
12890 fi
12891
12892 if test $gl_func_getloadavg_done = no; then
12893 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12894 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12895 gl_func_getloadavg_done=yes
12896
12897 $as_echo "#define DGUX 1" >>confdefs.h
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12900 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12901 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-ldgc $LIBS"
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12912 #ifdef __cplusplus
12913 extern "C"
12914 #endif
12915 char dg_sys_info ();
12916 int
12917 main ()
12918 {
12919 return dg_sys_info ();
12920 ;
12921 return 0;
12922 }
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_lib_dgc_dg_sys_info=yes
12926 else
12927 ac_cv_lib_dgc_dg_sys_info=no
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12934 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12935 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12936 cat >>confdefs.h <<_ACEOF
12937 #define HAVE_LIBDGC 1
12938 _ACEOF
12939
12940 LIBS="-ldgc $LIBS"
12941
12942 fi
12943
12944 fi
12945
12946
12947 fi
12948 fi
12949 fi
12950
12951
12952 if test "x$gl_save_LIBS" = x; then
12953 GETLOADAVG_LIBS=$LIBS
12954 else
12955 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
12956 fi
12957 LIBS=$gl_save_LIBS
12958
12959
12960 # Test whether the system declares getloadavg. Solaris has the function
12961 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
12962 for ac_header in sys/loadavg.h
12963 do :
12964 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
12965 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_SYS_LOADAVG_H 1
12968 _ACEOF
12969
12970 fi
12971
12972 done
12973
12974 if test $ac_cv_header_sys_loadavg_h = yes; then
12975 HAVE_SYS_LOADAVG_H=1
12976 else
12977 HAVE_SYS_LOADAVG_H=0
12978 fi
12979 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
12980 # include <sys/loadavg.h>
12981 #endif
12982 #include <stdlib.h>
12983 "
12984 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
12985
12986 else
12987 HAVE_DECL_GETLOADAVG=0
12988 fi
12989
12990
12991 if test $HAVE_GETLOADAVG = 0; then
12992
12993
12994
12995
12996
12997
12998
12999
13000 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
13001
13002
13003 # Figure out what our getloadavg.c needs.
13004
13005 # On HPUX9, an unprivileged user can get load averages this way.
13006 if test $gl_func_getloadavg_done = no; then
13007 for ac_func in pstat_getdynamic
13008 do :
13009 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13010 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define HAVE_PSTAT_GETDYNAMIC 1
13013 _ACEOF
13014 gl_func_getloadavg_done=yes
13015 fi
13016 done
13017
13018 fi
13019
13020 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13021 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13022 # Irix 4.0.5F has the header but not the library.
13023 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13024 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13025 gl_func_getloadavg_done=yes
13026
13027 $as_echo "#define SVR4 1" >>confdefs.h
13028
13029 fi
13030
13031 if test $gl_func_getloadavg_done = no; then
13032 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13033 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13034 gl_func_getloadavg_done=yes
13035
13036 $as_echo "#define UMAX 1" >>confdefs.h
13037
13038
13039 $as_echo "#define UMAX4_3 1" >>confdefs.h
13040
13041 fi
13042
13043
13044 fi
13045
13046 if test $gl_func_getloadavg_done = no; then
13047 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13048 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13049 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
13050
13051 fi
13052
13053
13054 fi
13055
13056 if test $gl_func_getloadavg_done = no; then
13057 for ac_header in mach/mach.h
13058 do :
13059 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13060 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13061 cat >>confdefs.h <<_ACEOF
13062 #define HAVE_MACH_MACH_H 1
13063 _ACEOF
13064
13065 fi
13066
13067 done
13068
13069 fi
13070
13071 for ac_header in nlist.h
13072 do :
13073 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_NLIST_H 1
13077 _ACEOF
13078 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13079 "
13080 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13081
13082 cat >>confdefs.h <<_ACEOF
13083 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13084 _ACEOF
13085
13086
13087 fi
13088
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091 #include <nlist.h>
13092 int
13093 main ()
13094 {
13095 struct nlist x;
13096 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13097 x.n_un.n_name = "";
13098 #else
13099 x.n_name = "";
13100 #endif
13101 ;
13102 return 0;
13103 }
13104 _ACEOF
13105 if ac_fn_c_try_link "$LINENO"; then :
13106
13107 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13108
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112
13113 fi
13114
13115 done
13116
13117 fi
13118
13119
13120
13121
13122
13123 GNULIB_GETLOADAVG=1
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134 if test $REPLACE_GETOPT = 1; then
13135
13136
13137
13138
13139
13140
13141
13142
13143 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13154
13155
13156
13157
13158 GNULIB_GL_UNISTD_H_GETOPT=1
13159 fi
13160
13161
13162
13163
13164
13165
13166 REPLACE_GETOPT=0
13167
13168
13169 if test -n "$gl_replace_getopt"; then :
13170
13171 REPLACE_GETOPT=1
13172
13173 fi
13174
13175
13176 if test $REPLACE_GETOPT = 1; then
13177
13178 GETOPT_H=getopt.h
13179
13180 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13181
13182
13183
13184 fi
13185
13186 if test $REPLACE_GETOPT = 1; then
13187
13188
13189
13190
13191
13192
13193
13194
13195 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13206
13207
13208
13209
13210 GNULIB_GL_UNISTD_H_GETOPT=1
13211 fi
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224 gl_gettimeofday_timezone=void
13225 if test $ac_cv_func_gettimeofday != yes; then
13226 HAVE_GETTIMEOFDAY=0
13227 else
13228
13229
13230
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13232 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13233 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 if test "$cross_compiling" = yes; then :
13237 # When cross-compiling:
13238 case "$host_os" in
13239 # Guess all is fine on glibc systems.
13240 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13241 # If we don't know, assume the worst.
13242 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13243 esac
13244
13245 else
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <string.h>
13249 #include <sys/time.h>
13250 #include <time.h>
13251 #include <stdlib.h>
13252
13253 int
13254 main ()
13255 {
13256
13257 time_t t = 0;
13258 struct tm *lt;
13259 struct tm saved_lt;
13260 struct timeval tv;
13261 lt = localtime (&t);
13262 saved_lt = *lt;
13263 gettimeofday (&tv, NULL);
13264 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13265
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_run "$LINENO"; then :
13271 gl_cv_func_gettimeofday_clobber=no
13272 else
13273 gl_cv_func_gettimeofday_clobber=yes
13274 fi
13275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13276 conftest.$ac_objext conftest.beam conftest.$ac_ext
13277 fi
13278
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13281 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13282
13283 case "$gl_cv_func_gettimeofday_clobber" in
13284 *yes)
13285 REPLACE_GETTIMEOFDAY=1
13286
13287
13288 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13289
13290
13291 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13292
13293
13294
13295 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13296
13297 ;;
13298 esac
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13301 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13302 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #include <sys/time.h>
13308 struct timeval c;
13309 int gettimeofday (struct timeval *restrict, void *restrict);
13310
13311 int
13312 main ()
13313 {
13314 /* glibc uses struct timezone * rather than the POSIX void *
13315 if _GNU_SOURCE is defined. However, since the only portable
13316 use of gettimeofday uses NULL as the second parameter, and
13317 since the glibc definition is actually more typesafe, it is
13318 not worth wrapping this to get a compliant signature. */
13319 int (*f) (struct timeval *restrict, void *restrict)
13320 = gettimeofday;
13321 int x = f (&c, 0);
13322 return !(x | c.tv_sec | c.tv_usec);
13323
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_compile "$LINENO"; then :
13329 gl_cv_func_gettimeofday_posix_signature=yes
13330 else
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <sys/time.h>
13334 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13335
13336 int
13337 main ()
13338 {
13339
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_compile "$LINENO"; then :
13345 gl_cv_func_gettimeofday_posix_signature=almost
13346 else
13347 gl_cv_func_gettimeofday_posix_signature=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13354 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13355 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13356 gl_gettimeofday_timezone='struct timezone'
13357 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13358 REPLACE_GETTIMEOFDAY=1
13359 fi
13360 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13361 REPLACE_GETTIMEOFDAY=1
13362 fi
13363
13364 fi
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13368 _ACEOF
13369
13370
13371 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13372
13373
13374
13375
13376
13377
13378
13379
13380 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13381
13382
13383 for ac_header in sys/timeb.h
13384 do :
13385 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13386 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13387 cat >>confdefs.h <<_ACEOF
13388 #define HAVE_SYS_TIMEB_H 1
13389 _ACEOF
13390
13391 fi
13392
13393 done
13394
13395 for ac_func in _ftime
13396 do :
13397 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13398 if test "x$ac_cv_func__ftime" = x""yes; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE__FTIME 1
13401 _ACEOF
13402
13403 fi
13404 done
13405
13406
13407 fi
13408
13409
13410
13411
13412
13413 GNULIB_GETTIMEOFDAY=1
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425 if test $ac_cv_func_lstat = yes; then
13426
13427 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13428 *no)
13429 REPLACE_LSTAT=1
13430 ;;
13431 esac
13432 else
13433 HAVE_LSTAT=0
13434 fi
13435
13436 if test $REPLACE_LSTAT = 1; then
13437
13438
13439
13440
13441
13442
13443
13444
13445 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13446
13447
13448
13449 :
13450
13451 fi
13452
13453
13454
13455
13456
13457 GNULIB_LSTAT=1
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469 if test $APPLE_UNIVERSAL_BUILD = 1; then
13470 # A universal build on Apple Mac OS X platforms.
13471 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13472 # But we need a configuration result that is valid in both modes.
13473 gl_cv_func_working_mktime=no
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13476 $as_echo_n "checking for working mktime... " >&6; }
13477 if test "${gl_cv_func_working_mktime+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 if test "$cross_compiling" = yes; then :
13481 gl_cv_func_working_mktime=no
13482 else
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 /* Test program from Paul Eggert and Tony Leneis. */
13486 #include <limits.h>
13487 #include <stdlib.h>
13488 #include <time.h>
13489
13490 #ifdef HAVE_UNISTD_H
13491 # include <unistd.h>
13492 #endif
13493
13494 #ifndef HAVE_ALARM
13495 # define alarm(X) /* empty */
13496 #endif
13497
13498 /* Work around redefinition to rpl_putenv by other config tests. */
13499 #undef putenv
13500
13501 static time_t time_t_max;
13502 static time_t time_t_min;
13503
13504 /* Values we'll use to set the TZ environment variable. */
13505 static char *tz_strings[] = {
13506 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13507 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13508 };
13509 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13510
13511 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13512 Based on a problem report from Andreas Jaeger. */
13513 static int
13514 spring_forward_gap ()
13515 {
13516 /* glibc (up to about 1998-10-07) failed this test. */
13517 struct tm tm;
13518
13519 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13520 instead of "TZ=America/Vancouver" in order to detect the bug even
13521 on systems that don't support the Olson extension, or don't have the
13522 full zoneinfo tables installed. */
13523 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13524
13525 tm.tm_year = 98;
13526 tm.tm_mon = 3;
13527 tm.tm_mday = 5;
13528 tm.tm_hour = 2;
13529 tm.tm_min = 0;
13530 tm.tm_sec = 0;
13531 tm.tm_isdst = -1;
13532 return mktime (&tm) != (time_t) -1;
13533 }
13534
13535 static int
13536 mktime_test1 (time_t now)
13537 {
13538 struct tm *lt;
13539 return ! (lt = localtime (&now)) || mktime (lt) == now;
13540 }
13541
13542 static int
13543 mktime_test (time_t now)
13544 {
13545 return (mktime_test1 (now)
13546 && mktime_test1 ((time_t) (time_t_max - now))
13547 && mktime_test1 ((time_t) (time_t_min + now)));
13548 }
13549
13550 static int
13551 irix_6_4_bug ()
13552 {
13553 /* Based on code from Ariel Faigon. */
13554 struct tm tm;
13555 tm.tm_year = 96;
13556 tm.tm_mon = 3;
13557 tm.tm_mday = 0;
13558 tm.tm_hour = 0;
13559 tm.tm_min = 0;
13560 tm.tm_sec = 0;
13561 tm.tm_isdst = -1;
13562 mktime (&tm);
13563 return tm.tm_mon == 2 && tm.tm_mday == 31;
13564 }
13565
13566 static int
13567 bigtime_test (int j)
13568 {
13569 struct tm tm;
13570 time_t now;
13571 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13572 now = mktime (&tm);
13573 if (now != (time_t) -1)
13574 {
13575 struct tm *lt = localtime (&now);
13576 if (! (lt
13577 && lt->tm_year == tm.tm_year
13578 && lt->tm_mon == tm.tm_mon
13579 && lt->tm_mday == tm.tm_mday
13580 && lt->tm_hour == tm.tm_hour
13581 && lt->tm_min == tm.tm_min
13582 && lt->tm_sec == tm.tm_sec
13583 && lt->tm_yday == tm.tm_yday
13584 && lt->tm_wday == tm.tm_wday
13585 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13586 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13587 return 0;
13588 }
13589 return 1;
13590 }
13591
13592 static int
13593 year_2050_test ()
13594 {
13595 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13596 ignoring leap seconds. */
13597 unsigned long int answer = 2527315200UL;
13598
13599 struct tm tm;
13600 time_t t;
13601 tm.tm_year = 2050 - 1900;
13602 tm.tm_mon = 2 - 1;
13603 tm.tm_mday = 1;
13604 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13605 tm.tm_isdst = -1;
13606
13607 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13608 instead of "TZ=America/Vancouver" in order to detect the bug even
13609 on systems that don't support the Olson extension, or don't have the
13610 full zoneinfo tables installed. */
13611 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13612
13613 t = mktime (&tm);
13614
13615 /* Check that the result is either a failure, or close enough
13616 to the correct answer that we can assume the discrepancy is
13617 due to leap seconds. */
13618 return (t == (time_t) -1
13619 || (0 < t && answer - 120 <= t && t <= answer + 120));
13620 }
13621
13622 int
13623 main ()
13624 {
13625 int result = 0;
13626 time_t t, delta;
13627 int i, j;
13628 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13629 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13630
13631 /* This test makes some buggy mktime implementations loop.
13632 Give up after 60 seconds; a mktime slower than that
13633 isn't worth using anyway. */
13634 alarm (60);
13635
13636 time_t_max = (! time_t_signed
13637 ? (time_t) -1
13638 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13639 * 2 + 1));
13640 time_t_min = (! time_t_signed
13641 ? (time_t) 0
13642 : time_t_signed_magnitude
13643 ? ~ (time_t) 0
13644 : ~ time_t_max);
13645
13646 delta = time_t_max / 997; /* a suitable prime number */
13647 for (i = 0; i < N_STRINGS; i++)
13648 {
13649 if (tz_strings[i])
13650 putenv (tz_strings[i]);
13651
13652 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13653 if (! mktime_test (t))
13654 result |= 1;
13655 if ((result & 2) == 0
13656 && ! (mktime_test ((time_t) 1)
13657 && mktime_test ((time_t) (60 * 60))
13658 && mktime_test ((time_t) (60 * 60 * 24))))
13659 result |= 2;
13660
13661 for (j = 1; (result & 4) == 0; j <<= 1)
13662 {
13663 if (! bigtime_test (j))
13664 result |= 4;
13665 if (INT_MAX / 2 < j)
13666 break;
13667 }
13668 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13669 result |= 8;
13670 }
13671 if (! irix_6_4_bug ())
13672 result |= 16;
13673 if (! spring_forward_gap ())
13674 result |= 32;
13675 if (! year_2050_test ())
13676 result |= 64;
13677 return result;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_run "$LINENO"; then :
13681 gl_cv_func_working_mktime=yes
13682 else
13683 gl_cv_func_working_mktime=no
13684 fi
13685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13686 conftest.$ac_objext conftest.beam conftest.$ac_ext
13687 fi
13688
13689
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13692 $as_echo "$gl_cv_func_working_mktime" >&6; }
13693
13694 if test $gl_cv_func_working_mktime = no; then
13695 REPLACE_MKTIME=1
13696 else
13697 REPLACE_MKTIME=0
13698 fi
13699
13700 if test $REPLACE_MKTIME = 1; then
13701
13702
13703
13704
13705
13706
13707
13708
13709 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
13710
13711
13712
13713
13714 fi
13715
13716
13717
13718
13719
13720 GNULIB_MKTIME=1
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732 if test $ac_cv_func_pselect = yes; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13734 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13735 if test "${gl_cv_sig_pselect+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 #include <sys/select.h>
13741
13742 int
13743 main ()
13744 {
13745 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13746 struct timespec const *restrict,
13747 sigset_t const *restrict) = pselect;
13748 return !p;
13749 ;
13750 return 0;
13751 }
13752 _ACEOF
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 gl_cv_sig_pselect=yes
13755 else
13756 gl_cv_sig_pselect=no
13757 fi
13758 rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13760 fi
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13762 $as_echo "$gl_cv_sig_pselect" >&6; }
13763 fi
13764
13765 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
13766 REPLACE_PSELECT=1
13767 fi
13768
13769 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
13770
13771
13772
13773
13774
13775
13776
13777
13778 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
13779
13780 fi
13781
13782
13783
13784
13785
13786 GNULIB_PSELECT=1
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796 LIB_PTHREAD_SIGMASK=
13797
13798
13799 if test $ac_cv_func_pthread_sigmask = yes; then
13800 :
13801 else
13802 HAVE_PTHREAD_SIGMASK=0
13803 REPLACE_PTHREAD_SIGMASK=1
13804 fi
13805
13806
13807
13808
13809 if test $HAVE_PTHREAD_SIGMASK = 1; then
13810
13811
13812 if test -z "$LIB_PTHREAD_SIGMASK"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13814 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13815 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818
13819 if test "$cross_compiling" = yes; then :
13820
13821 case "$host_os" in
13822 freebsd* | hpux* | solaris | solaris2.[2-9]*)
13823 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
13824 *)
13825 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
13826 esac
13827
13828 else
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 #include <pthread.h>
13833 #include <signal.h>
13834 #include <stddef.h>
13835 int main ()
13836 {
13837 sigset_t set;
13838 sigemptyset (&set);
13839 return pthread_sigmask (1729, &set, NULL) != 0;
13840 }
13841 _ACEOF
13842 if ac_fn_c_try_run "$LINENO"; then :
13843 gl_cv_func_pthread_sigmask_in_libc_works=no
13844 else
13845 gl_cv_func_pthread_sigmask_in_libc_works=yes
13846 fi
13847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13848 conftest.$ac_objext conftest.beam conftest.$ac_ext
13849 fi
13850
13851
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13854 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13855 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13856 *no)
13857 REPLACE_PTHREAD_SIGMASK=1
13858
13859 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13860
13861 ;;
13862 esac
13863 fi
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13866 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13867 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870
13871 gl_save_LIBS="$LIBS"
13872 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
13873 if test "$cross_compiling" = yes; then :
13874 case "$host_os" in
13875 cygwin*)
13876 gl_cv_func_pthread_sigmask_return_works="guessing no";;
13877 *)
13878 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
13879 esac
13880
13881 else
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884
13885 #include <pthread.h>
13886 #include <signal.h>
13887 #include <stddef.h>
13888 int main ()
13889 {
13890 sigset_t set;
13891 sigemptyset (&set);
13892 if (pthread_sigmask (1729, &set, NULL) == -1)
13893 return 1;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_run "$LINENO"; then :
13898 gl_cv_func_pthread_sigmask_return_works=yes
13899 else
13900 gl_cv_func_pthread_sigmask_return_works=no
13901 fi
13902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13903 conftest.$ac_objext conftest.beam conftest.$ac_ext
13904 fi
13905
13906 LIBS="$gl_save_LIBS"
13907
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13910 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13911 case "$gl_cv_func_pthread_sigmask_return_works" in
13912 *no)
13913 REPLACE_PTHREAD_SIGMASK=1
13914
13915 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13916
13917 ;;
13918 esac
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13921 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13922 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925
13926 case "$host_os" in
13927 irix*)
13928 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
13929 *)
13930 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
13931 esac
13932 gl_save_LIBS="$LIBS"
13933 LIBS="$LIBS $LIBMULTITHREAD"
13934 if test "$cross_compiling" = yes; then :
13935 :
13936 else
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939
13940 #include <pthread.h>
13941 #include <signal.h>
13942 #include <stdio.h>
13943 #include <stdlib.h>
13944 #include <unistd.h>
13945 static volatile int sigint_occurred;
13946 static void
13947 sigint_handler (int sig)
13948 {
13949 sigint_occurred++;
13950 }
13951 int main ()
13952 {
13953 sigset_t set;
13954 int pid = getpid ();
13955 char command[80];
13956 signal (SIGINT, sigint_handler);
13957 sigemptyset (&set);
13958 sigaddset (&set, SIGINT);
13959 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
13960 return 1;
13961 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
13962 if (!(system (command) == 0))
13963 return 2;
13964 sleep (2);
13965 if (!(sigint_occurred == 0))
13966 return 3;
13967 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
13968 return 4;
13969 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
13970 return 5;
13971 return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_run "$LINENO"; then :
13975 :
13976 else
13977 gl_cv_func_pthread_sigmask_unblock_works=no
13978 fi
13979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13980 conftest.$ac_objext conftest.beam conftest.$ac_ext
13981 fi
13982
13983 LIBS="$gl_save_LIBS"
13984
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
13987 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
13988 case "$gl_cv_func_pthread_sigmask_unblock_works" in
13989 *no)
13990 REPLACE_PTHREAD_SIGMASK=1
13991
13992 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
13993
13994 ;;
13995 esac
13996 fi
13997
13998 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
13999
14000
14001
14002
14003
14004
14005
14006
14007 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14008
14009
14010 if test $HAVE_PTHREAD_SIGMASK = 1; then
14011
14012 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14013
14014 fi
14015
14016 fi
14017
14018
14019
14020
14021
14022 GNULIB_PTHREAD_SIGMASK=1
14023
14024
14025
14026
14027
14028
14029
14030
14031 if test $ac_cv_func_readlink = no; then
14032 HAVE_READLINK=0
14033 else
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14035 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14036 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 #include <unistd.h>
14042 /* Cause compilation failure if original declaration has wrong type. */
14043 ssize_t readlink (const char *, char *, size_t);
14044 int
14045 main ()
14046 {
14047
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053 gl_cv_decl_readlink_works=yes
14054 else
14055 gl_cv_decl_readlink_works=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 fi
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14060 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14062 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14063 if test "${gl_cv_func_readlink_works+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 # We have readlink, so assume ln -s works.
14067 ln -s conftest.no-such conftest.link
14068 ln -s conftest.link conftest.lnk2
14069 if test "$cross_compiling" = yes; then :
14070 case "$host_os" in
14071 # Guess yes on glibc systems.
14072 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14073 # If we don't know, assume the worst.
14074 *) gl_cv_func_readlink_works="guessing no" ;;
14075 esac
14076
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <unistd.h>
14081
14082 int
14083 main ()
14084 {
14085 char buf[20];
14086 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14087 ;
14088 return 0;
14089 }
14090 _ACEOF
14091 if ac_fn_c_try_run "$LINENO"; then :
14092 gl_cv_func_readlink_works=yes
14093 else
14094 gl_cv_func_readlink_works=no
14095 fi
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14097 conftest.$ac_objext conftest.beam conftest.$ac_ext
14098 fi
14099
14100 rm -f conftest.link conftest.lnk2
14101 fi
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14103 $as_echo "$gl_cv_func_readlink_works" >&6; }
14104 case "$gl_cv_func_readlink_works" in
14105 *yes)
14106 if test "$gl_cv_decl_readlink_works" != yes; then
14107 REPLACE_READLINK=1
14108 fi
14109 ;;
14110 *)
14111
14112 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14113
14114 REPLACE_READLINK=1
14115 ;;
14116 esac
14117 fi
14118
14119 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14120
14121
14122
14123
14124
14125
14126
14127
14128 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14129
14130
14131 :
14132
14133 fi
14134
14135
14136
14137
14138
14139 GNULIB_READLINK=1
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156 if test $gl_cv_have_include_next = yes; then
14157 gl_cv_next_signal_h='<'signal.h'>'
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14160 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14161 if test "${gl_cv_next_signal_h+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <signal.h>
14168
14169 _ACEOF
14170 case "$host_os" in
14171 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14172 *) gl_absname_cpp="$ac_cpp" ;;
14173 esac
14174
14175 case "$host_os" in
14176 mingw*)
14177 gl_dirsep_regex='[/\\]'
14178 ;;
14179 *)
14180 gl_dirsep_regex='\/'
14181 ;;
14182 esac
14183 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14184
14185 gl_header_literal_regex=`echo 'signal.h' \
14186 | sed -e "$gl_make_literal_regex_sed"`
14187 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14188 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14189 s|^/[^/]|//&|
14190 p
14191 q
14192 }'
14193 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14194 sed -n "$gl_absolute_header_sed"`'"'
14195
14196
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14199 $as_echo "$gl_cv_next_signal_h" >&6; }
14200 fi
14201 NEXT_SIGNAL_H=$gl_cv_next_signal_h
14202
14203 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14205 gl_next_as_first_directive='<'signal.h'>'
14206 else
14207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14208 gl_next_as_first_directive=$gl_cv_next_signal_h
14209 fi
14210 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
14211
14212
14213
14214
14215
14216 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14217 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14218 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14219 #include <signal.h>
14220
14221 "
14222 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
14223
14224 else
14225 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
14226 fi
14227
14228
14229
14230
14231
14232
14233
14234 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14235 #include <signal.h>
14236
14237 "
14238 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
14239
14240 else
14241 HAVE_SIGHANDLER_T=0
14242 fi
14243
14244
14245
14246
14247 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14248 /* <sys/types.h> is not needed according to POSIX, but the
14249 <sys/socket.h> in i386-unknown-freebsd4.10 and
14250 powerpc-apple-darwin5.5 required it. */
14251 #include <sys/types.h>
14252 #if HAVE_SYS_SOCKET_H
14253 # include <sys/socket.h>
14254 #elif HAVE_WS2TCPIP_H
14255 # include <ws2tcpip.h>
14256 #endif
14257
14258 "
14259 if test "x$ac_cv_type_socklen_t" = x""yes; then :
14260
14261 else
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14263 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14264 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 # Systems have either "struct sockaddr *" or
14268 # "void *" as the second argument to getpeername
14269 gl_cv_socklen_t_equiv=
14270 for arg2 in "struct sockaddr" void; do
14271 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <sys/socket.h>
14276
14277 int getpeername (int, $arg2 *, $t *);
14278 int
14279 main ()
14280 {
14281 $t len;
14282 getpeername (0, 0, &len);
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"; then :
14288 gl_cv_socklen_t_equiv="$t"
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 test "$gl_cv_socklen_t_equiv" != "" && break
14292 done
14293 test "$gl_cv_socklen_t_equiv" != "" && break
14294 done
14295
14296 fi
14297
14298 if test "$gl_cv_socklen_t_equiv" = ""; then
14299 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14302 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14303
14304 cat >>confdefs.h <<_ACEOF
14305 #define socklen_t $gl_cv_socklen_t_equiv
14306 _ACEOF
14307
14308 fi
14309
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14312 $as_echo_n "checking for ssize_t... " >&6; }
14313 if test "${gt_cv_ssize_t+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <sys/types.h>
14319 int
14320 main ()
14321 {
14322 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14323 return !x;
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 gt_cv_ssize_t=yes
14330 else
14331 gt_cv_ssize_t=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14336 $as_echo "$gt_cv_ssize_t" >&6; }
14337 if test $gt_cv_ssize_t = no; then
14338
14339 $as_echo "#define ssize_t int" >>confdefs.h
14340
14341 fi
14342
14343
14344
14345
14346
14347
14348 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>
14349 #include <sys/stat.h>
14350 "
14351 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
14352
14353 cat >>confdefs.h <<_ACEOF
14354 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14355 _ACEOF
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14358 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14359 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364
14365 #include <sys/types.h>
14366 #include <sys/stat.h>
14367 #if HAVE_SYS_TIME_H
14368 # include <sys/time.h>
14369 #endif
14370 #include <time.h>
14371 struct timespec ts;
14372 struct stat st;
14373
14374 int
14375 main ()
14376 {
14377
14378 st.st_atim = ts;
14379
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_compile "$LINENO"; then :
14385 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14386 else
14387 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14388 fi
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 fi
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14392 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14393 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14394
14395 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14396
14397 fi
14398 else
14399 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>
14400 #include <sys/stat.h>
14401 "
14402 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
14403
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14406 _ACEOF
14407
14408
14409 else
14410 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14411 #include <sys/stat.h>
14412 "
14413 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
14414
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14417 _ACEOF
14418
14419
14420 else
14421 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>
14422 #include <sys/stat.h>
14423 "
14424 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
14425
14426 cat >>confdefs.h <<_ACEOF
14427 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14428 _ACEOF
14429
14430
14431 fi
14432
14433 fi
14434
14435 fi
14436
14437 fi
14438
14439
14440
14441
14442
14443
14444 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>
14445 #include <sys/stat.h>
14446 "
14447 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
14448
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14451 _ACEOF
14452
14453
14454 else
14455 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14456 #include <sys/stat.h>
14457 "
14458 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
14459
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14462 _ACEOF
14463
14464
14465 else
14466 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>
14467 #include <sys/stat.h>
14468 "
14469 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
14470
14471 cat >>confdefs.h <<_ACEOF
14472 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14473 _ACEOF
14474
14475
14476 fi
14477
14478 fi
14479
14480 fi
14481
14482
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14485 $as_echo_n "checking for working stdalign.h... " >&6; }
14486 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 #include <stdalign.h>
14492 #include <stddef.h>
14493
14494 /* Test that alignof yields a result consistent with offsetof.
14495 This catches GCC bug 52023
14496 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14497 #ifdef __cplusplus
14498 template <class t> struct alignof_helper { char a; t b; };
14499 # define ao(type) offsetof (alignof_helper<type>, b)
14500 #else
14501 # define ao(type) offsetof (struct { char a; type b; }, b)
14502 #endif
14503 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14504 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14505 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14506
14507 /* Test _Alignas only on platforms where gnulib can help. */
14508 #if \
14509 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14510 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14511 int alignas (8) alignas_int = 1;
14512 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14513 #endif
14514
14515 int
14516 main ()
14517 {
14518
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 if ac_fn_c_try_compile "$LINENO"; then :
14524 gl_cv_header_working_stdalign_h=yes
14525 else
14526 gl_cv_header_working_stdalign_h=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14531 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14532
14533 if test $gl_cv_header_working_stdalign_h = yes; then
14534 STDALIGN_H=''
14535 else
14536 STDALIGN_H='stdalign.h'
14537 fi
14538
14539
14540 if test -n "$STDALIGN_H"; then
14541 GL_GENERATE_STDALIGN_H_TRUE=
14542 GL_GENERATE_STDALIGN_H_FALSE='#'
14543 else
14544 GL_GENERATE_STDALIGN_H_TRUE='#'
14545 GL_GENERATE_STDALIGN_H_FALSE=
14546 fi
14547
14548
14549
14550 STDARG_H=''
14551 NEXT_STDARG_H='<stdarg.h>'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14553 $as_echo_n "checking for va_copy... " >&6; }
14554 if test "${gl_cv_func_va_copy+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 #include <stdarg.h>
14561 int
14562 main ()
14563 {
14564
14565 #ifndef va_copy
14566 void (*func) (va_list, va_list) = va_copy;
14567 #endif
14568
14569 ;
14570 return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574 gl_cv_func_va_copy=yes
14575 else
14576 gl_cv_func_va_copy=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 fi
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14582 $as_echo "$gl_cv_func_va_copy" >&6; }
14583 if test $gl_cv_func_va_copy = no; then
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 #if defined _AIX && !defined __GNUC__
14587 AIX vaccine
14588 #endif
14589
14590 _ACEOF
14591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14592 $EGREP "vaccine" >/dev/null 2>&1; then :
14593 gl_aixcc=yes
14594 else
14595 gl_aixcc=no
14596 fi
14597 rm -f conftest*
14598
14599 if test $gl_aixcc = yes; then
14600 STDARG_H=stdarg.h
14601
14602
14603
14604
14605
14606
14607
14608
14609 if test $gl_cv_have_include_next = yes; then
14610 gl_cv_next_stdarg_h='<'stdarg.h'>'
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14613 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14614 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 #include <stdarg.h>
14621
14622 _ACEOF
14623 case "$host_os" in
14624 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14625 *) gl_absname_cpp="$ac_cpp" ;;
14626 esac
14627
14628 case "$host_os" in
14629 mingw*)
14630 gl_dirsep_regex='[/\\]'
14631 ;;
14632 *)
14633 gl_dirsep_regex='\/'
14634 ;;
14635 esac
14636 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14637
14638 gl_header_literal_regex=`echo 'stdarg.h' \
14639 | sed -e "$gl_make_literal_regex_sed"`
14640 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14641 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14642 s|^/[^/]|//&|
14643 p
14644 q
14645 }'
14646 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14647 sed -n "$gl_absolute_header_sed"`'"'
14648
14649
14650 fi
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14652 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14653 fi
14654 NEXT_STDARG_H=$gl_cv_next_stdarg_h
14655
14656 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14658 gl_next_as_first_directive='<'stdarg.h'>'
14659 else
14660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14661 gl_next_as_first_directive=$gl_cv_next_stdarg_h
14662 fi
14663 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
14664
14665
14666
14667
14668 if test "$gl_cv_next_stdarg_h" = '""'; then
14669 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
14670 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
14671 fi
14672 else
14673
14674 saved_as_echo_n="$as_echo_n"
14675 as_echo_n=':'
14676 if test "${gl_cv_func___va_copy+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <stdarg.h>
14683 int
14684 main ()
14685 {
14686
14687 #ifndef __va_copy
14688 error, bail out
14689 #endif
14690
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 if ac_fn_c_try_compile "$LINENO"; then :
14696 gl_cv_func___va_copy=yes
14697 else
14698 gl_cv_func___va_copy=no
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 fi
14702
14703 as_echo_n="$saved_as_echo_n"
14704
14705 if test $gl_cv_func___va_copy = yes; then
14706
14707 $as_echo "#define va_copy __va_copy" >>confdefs.h
14708
14709 else
14710
14711
14712 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14713
14714 fi
14715 fi
14716 fi
14717
14718 if test -n "$STDARG_H"; then
14719 GL_GENERATE_STDARG_H_TRUE=
14720 GL_GENERATE_STDARG_H_FALSE='#'
14721 else
14722 GL_GENERATE_STDARG_H_TRUE='#'
14723 GL_GENERATE_STDARG_H_FALSE=
14724 fi
14725
14726
14727
14728
14729
14730
14731 # Define two additional variables used in the Makefile substitution.
14732
14733 if test "$ac_cv_header_stdbool_h" = yes; then
14734 STDBOOL_H=''
14735 else
14736 STDBOOL_H='stdbool.h'
14737 fi
14738
14739 if test -n "$STDBOOL_H"; then
14740 GL_GENERATE_STDBOOL_H_TRUE=
14741 GL_GENERATE_STDBOOL_H_FALSE='#'
14742 else
14743 GL_GENERATE_STDBOOL_H_TRUE='#'
14744 GL_GENERATE_STDBOOL_H_FALSE=
14745 fi
14746
14747
14748 if test "$ac_cv_type__Bool" = yes; then
14749 HAVE__BOOL=1
14750 else
14751 HAVE__BOOL=0
14752 fi
14753
14754
14755
14756
14757
14758 STDDEF_H=
14759 if test $gt_cv_c_wchar_t = no; then
14760 HAVE_WCHAR_T=0
14761 STDDEF_H=stddef.h
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14764 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14765 if test "${gl_cv_decl_null_works+set}" = set; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <stddef.h>
14771 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14772
14773 int
14774 main ()
14775 {
14776
14777 ;
14778 return 0;
14779 }
14780 _ACEOF
14781 if ac_fn_c_try_compile "$LINENO"; then :
14782 gl_cv_decl_null_works=yes
14783 else
14784 gl_cv_decl_null_works=no
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14789 $as_echo "$gl_cv_decl_null_works" >&6; }
14790 if test $gl_cv_decl_null_works = no; then
14791 REPLACE_NULL=1
14792 STDDEF_H=stddef.h
14793 fi
14794
14795 if test -n "$STDDEF_H"; then
14796 GL_GENERATE_STDDEF_H_TRUE=
14797 GL_GENERATE_STDDEF_H_FALSE='#'
14798 else
14799 GL_GENERATE_STDDEF_H_TRUE='#'
14800 GL_GENERATE_STDDEF_H_FALSE=
14801 fi
14802
14803 if test -n "$STDDEF_H"; then
14804
14805
14806
14807
14808
14809
14810
14811
14812 if test $gl_cv_have_include_next = yes; then
14813 gl_cv_next_stddef_h='<'stddef.h'>'
14814 else
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14816 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14817 if test "${gl_cv_next_stddef_h+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819 else
14820
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 #include <stddef.h>
14824
14825 _ACEOF
14826 case "$host_os" in
14827 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14828 *) gl_absname_cpp="$ac_cpp" ;;
14829 esac
14830
14831 case "$host_os" in
14832 mingw*)
14833 gl_dirsep_regex='[/\\]'
14834 ;;
14835 *)
14836 gl_dirsep_regex='\/'
14837 ;;
14838 esac
14839 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14840
14841 gl_header_literal_regex=`echo 'stddef.h' \
14842 | sed -e "$gl_make_literal_regex_sed"`
14843 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14845 s|^/[^/]|//&|
14846 p
14847 q
14848 }'
14849 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14850 sed -n "$gl_absolute_header_sed"`'"'
14851
14852
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14855 $as_echo "$gl_cv_next_stddef_h" >&6; }
14856 fi
14857 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14858
14859 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14861 gl_next_as_first_directive='<'stddef.h'>'
14862 else
14863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14864 gl_next_as_first_directive=$gl_cv_next_stddef_h
14865 fi
14866 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14867
14868
14869
14870
14871 fi
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885 if test $gl_cv_have_include_next = yes; then
14886 gl_cv_next_stdio_h='<'stdio.h'>'
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14889 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14890 if test "${gl_cv_next_stdio_h+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896 #include <stdio.h>
14897
14898 _ACEOF
14899 case "$host_os" in
14900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14901 *) gl_absname_cpp="$ac_cpp" ;;
14902 esac
14903
14904 case "$host_os" in
14905 mingw*)
14906 gl_dirsep_regex='[/\\]'
14907 ;;
14908 *)
14909 gl_dirsep_regex='\/'
14910 ;;
14911 esac
14912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14913
14914 gl_header_literal_regex=`echo 'stdio.h' \
14915 | sed -e "$gl_make_literal_regex_sed"`
14916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14918 s|^/[^/]|//&|
14919 p
14920 q
14921 }'
14922 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14923 sed -n "$gl_absolute_header_sed"`'"'
14924
14925
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14928 $as_echo "$gl_cv_next_stdio_h" >&6; }
14929 fi
14930 NEXT_STDIO_H=$gl_cv_next_stdio_h
14931
14932 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14934 gl_next_as_first_directive='<'stdio.h'>'
14935 else
14936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14937 gl_next_as_first_directive=$gl_cv_next_stdio_h
14938 fi
14939 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14940
14941
14942
14943
14944
14945 GNULIB_FSCANF=1
14946
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define GNULIB_FSCANF 1
14950 _ACEOF
14951
14952
14953 GNULIB_SCANF=1
14954
14955
14956 cat >>confdefs.h <<_ACEOF
14957 #define GNULIB_SCANF 1
14958 _ACEOF
14959
14960
14961 GNULIB_FGETC=1
14962 GNULIB_GETC=1
14963 GNULIB_GETCHAR=1
14964 GNULIB_FGETS=1
14965 GNULIB_FREAD=1
14966
14967
14968 GNULIB_FPRINTF=1
14969 GNULIB_PRINTF=1
14970 GNULIB_VFPRINTF=1
14971 GNULIB_VPRINTF=1
14972 GNULIB_FPUTC=1
14973 GNULIB_PUTC=1
14974 GNULIB_PUTCHAR=1
14975 GNULIB_FPUTS=1
14976 GNULIB_PUTS=1
14977 GNULIB_FWRITE=1
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993 if test $gl_cv_have_include_next = yes; then
14994 gl_cv_next_stdlib_h='<'stdlib.h'>'
14995 else
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14997 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14998 if test "${gl_cv_next_stdlib_h+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15000 else
15001
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <stdlib.h>
15005
15006 _ACEOF
15007 case "$host_os" in
15008 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15009 *) gl_absname_cpp="$ac_cpp" ;;
15010 esac
15011
15012 case "$host_os" in
15013 mingw*)
15014 gl_dirsep_regex='[/\\]'
15015 ;;
15016 *)
15017 gl_dirsep_regex='\/'
15018 ;;
15019 esac
15020 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15021
15022 gl_header_literal_regex=`echo 'stdlib.h' \
15023 | sed -e "$gl_make_literal_regex_sed"`
15024 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15025 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15026 s|^/[^/]|//&|
15027 p
15028 q
15029 }'
15030 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15031 sed -n "$gl_absolute_header_sed"`'"'
15032
15033
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15036 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15037 fi
15038 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15039
15040 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15042 gl_next_as_first_directive='<'stdlib.h'>'
15043 else
15044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15045 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15046 fi
15047 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15058
15059
15060
15061
15062
15063
15064
15065 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15066
15067
15068
15069
15070
15071
15072
15073
15074 if test "$ac_cv_have_decl_strtoimax" != yes; then
15075 HAVE_DECL_STRTOIMAX=0
15076 fi
15077
15078 if test $ac_cv_func_strtoimax = yes; then
15079 HAVE_STRTOIMAX=1
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15081 $as_echo_n "checking whether strtoimax works... " >&6; }
15082 if test "${gl_cv_func_strtoimax+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 if test "$cross_compiling" = yes; then :
15086 case "$host_os" in
15087 # Guess no on AIX 5.
15088 aix5*) gl_cv_func_strtoimax="guessing no" ;;
15089 # Guess yes otherwise.
15090 *) gl_cv_func_strtoimax="guessing yes" ;;
15091 esac
15092
15093 else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096
15097 #include <errno.h>
15098 #include <string.h>
15099 #include <inttypes.h>
15100 int main ()
15101 {
15102 if (sizeof (intmax_t) > sizeof (int))
15103 {
15104 const char *s = "4294967295";
15105 char *p;
15106 intmax_t res;
15107 errno = 0;
15108 res = strtoimax (s, &p, 10);
15109 if (p != s + strlen (s))
15110 return 1;
15111 if (errno != 0)
15112 return 2;
15113 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15114 return 3;
15115 }
15116 else
15117 {
15118 const char *s = "2147483647";
15119 char *p;
15120 intmax_t res;
15121 errno = 0;
15122 res = strtoimax (s, &p, 10);
15123 if (p != s + strlen (s))
15124 return 1;
15125 if (errno != 0)
15126 return 2;
15127 if (res != 2147483647)
15128 return 3;
15129 }
15130 return 0;
15131 }
15132
15133 _ACEOF
15134 if ac_fn_c_try_run "$LINENO"; then :
15135 gl_cv_func_strtoimax=yes
15136 else
15137 gl_cv_func_strtoimax=no
15138 fi
15139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15140 conftest.$ac_objext conftest.beam conftest.$ac_ext
15141 fi
15142
15143
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15146 $as_echo "$gl_cv_func_strtoimax" >&6; }
15147 case "$gl_cv_func_strtoimax" in
15148 *no) REPLACE_STRTOIMAX=1 ;;
15149 esac
15150 else
15151 HAVE_STRTOIMAX=0
15152 fi
15153
15154 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
15155
15156
15157
15158
15159
15160
15161
15162
15163 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
15164
15165
15166 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15167 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
15168 ac_have_decl=1
15169 else
15170 ac_have_decl=0
15171 fi
15172
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_DECL_STRTOLL $ac_have_decl
15175 _ACEOF
15176
15177
15178
15179 fi
15180
15181
15182
15183
15184
15185 GNULIB_STRTOIMAX=1
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195 if test "$ac_cv_have_decl_strtoumax" != yes; then
15196 HAVE_DECL_STRTOUMAX=0
15197 fi
15198
15199 if test $ac_cv_func_strtoumax = no; then
15200
15201
15202
15203
15204
15205
15206
15207
15208 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
15209
15210
15211 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15212 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
15213 ac_have_decl=1
15214 else
15215 ac_have_decl=0
15216 fi
15217
15218 cat >>confdefs.h <<_ACEOF
15219 #define HAVE_DECL_STRTOULL $ac_have_decl
15220 _ACEOF
15221
15222
15223
15224 fi
15225
15226
15227
15228
15229
15230 GNULIB_STRTOUMAX=1
15231
15232
15233
15234
15235
15236
15237
15238 if test $ac_cv_func_symlink = no; then
15239 HAVE_SYMLINK=0
15240 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15242 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15243 if test "${gl_cv_func_symlink_works+set}" = set; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 if test "$cross_compiling" = yes; then :
15247 case "$host_os" in
15248 # Guess yes on glibc systems.
15249 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
15250 # If we don't know, assume the worst.
15251 *) gl_cv_func_symlink_works="guessing no" ;;
15252 esac
15253
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #include <unistd.h>
15258
15259 int
15260 main ()
15261 {
15262 int result = 0;
15263 if (!symlink ("a", "conftest.link/"))
15264 result |= 1;
15265 if (symlink ("conftest.f", "conftest.lnk2"))
15266 result |= 2;
15267 else if (!symlink ("a", "conftest.lnk2/"))
15268 result |= 4;
15269 return result;
15270
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_run "$LINENO"; then :
15276 gl_cv_func_symlink_works=yes
15277 else
15278 gl_cv_func_symlink_works=no
15279 fi
15280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281 conftest.$ac_objext conftest.beam conftest.$ac_ext
15282 fi
15283
15284 rm -f conftest.f conftest.link conftest.lnk2
15285 fi
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15287 $as_echo "$gl_cv_func_symlink_works" >&6; }
15288 case "$gl_cv_func_symlink_works" in
15289 *yes) ;;
15290 *)
15291 REPLACE_SYMLINK=1
15292 ;;
15293 esac
15294 fi
15295
15296 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
15297
15298
15299
15300
15301
15302
15303
15304
15305 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
15306
15307 fi
15308
15309
15310
15311
15312
15313 GNULIB_SYMLINK=1
15314
15315
15316
15317
15318
15319
15320
15321
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15323 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15324 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/select.h>
15331 int
15332 main ()
15333 {
15334 struct timeval b;
15335 ;
15336 return 0;
15337 }
15338 _ACEOF
15339 if ac_fn_c_try_compile "$LINENO"; then :
15340 gl_cv_header_sys_select_h_selfcontained=yes
15341 else
15342 gl_cv_header_sys_select_h_selfcontained=no
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 #include <sys/select.h>
15349 int
15350 main ()
15351 {
15352 int memset; int bzero;
15353 ;
15354 return 0;
15355 }
15356
15357 _ACEOF
15358 if ac_fn_c_try_compile "$LINENO"; then :
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #include <sys/select.h>
15362 int
15363 main ()
15364 {
15365
15366 #undef memset
15367 #define memset nonexistent_memset
15368 extern
15369 #ifdef __cplusplus
15370 "C"
15371 #endif
15372 void *memset (void *, int, unsigned long);
15373 #undef bzero
15374 #define bzero nonexistent_bzero
15375 extern
15376 #ifdef __cplusplus
15377 "C"
15378 #endif
15379 void bzero (void *, unsigned long);
15380 fd_set fds;
15381 FD_ZERO (&fds);
15382
15383 ;
15384 return 0;
15385 }
15386
15387 _ACEOF
15388 if ac_fn_c_try_link "$LINENO"; then :
15389
15390 else
15391 gl_cv_header_sys_select_h_selfcontained=no
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 fi
15399
15400 fi
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15402 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 if test $gl_cv_have_include_next = yes; then
15413 gl_cv_next_sys_select_h='<'sys/select.h'>'
15414 else
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15416 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15417 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15418 $as_echo_n "(cached) " >&6
15419 else
15420
15421 if test $ac_cv_header_sys_select_h = yes; then
15422
15423
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #include <sys/select.h>
15427
15428 _ACEOF
15429 case "$host_os" in
15430 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15431 *) gl_absname_cpp="$ac_cpp" ;;
15432 esac
15433
15434 case "$host_os" in
15435 mingw*)
15436 gl_dirsep_regex='[/\\]'
15437 ;;
15438 *)
15439 gl_dirsep_regex='\/'
15440 ;;
15441 esac
15442 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15443
15444 gl_header_literal_regex=`echo 'sys/select.h' \
15445 | sed -e "$gl_make_literal_regex_sed"`
15446 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15448 s|^/[^/]|//&|
15449 p
15450 q
15451 }'
15452 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15453 sed -n "$gl_absolute_header_sed"`'"'
15454 else
15455 gl_cv_next_sys_select_h='<'sys/select.h'>'
15456 fi
15457
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15461 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15462 fi
15463 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
15464
15465 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15467 gl_next_as_first_directive='<'sys/select.h'>'
15468 else
15469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15470 gl_next_as_first_directive=$gl_cv_next_sys_select_h
15471 fi
15472 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
15473
15474
15475
15476
15477 if test $ac_cv_header_sys_select_h = yes; then
15478 HAVE_SYS_SELECT_H=1
15479 else
15480 HAVE_SYS_SELECT_H=0
15481 fi
15482
15483
15484
15485
15486
15487 if test $ac_cv_header_sys_socket_h != yes; then
15488 for ac_header in winsock2.h
15489 do :
15490 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15491 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15492 cat >>confdefs.h <<_ACEOF
15493 #define HAVE_WINSOCK2_H 1
15494 _ACEOF
15495
15496 fi
15497
15498 done
15499
15500 fi
15501 if test "$ac_cv_header_winsock2_h" = yes; then
15502 HAVE_WINSOCK2_H=1
15503 UNISTD_H_HAVE_WINSOCK2_H=1
15504 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15505 else
15506 HAVE_WINSOCK2_H=0
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530 if test $gl_cv_have_include_next = yes; then
15531 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15532 else
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15534 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15535 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538
15539 if test $ac_cv_header_sys_stat_h = yes; then
15540
15541
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 #include <sys/stat.h>
15545
15546 _ACEOF
15547 case "$host_os" in
15548 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15549 *) gl_absname_cpp="$ac_cpp" ;;
15550 esac
15551
15552 case "$host_os" in
15553 mingw*)
15554 gl_dirsep_regex='[/\\]'
15555 ;;
15556 *)
15557 gl_dirsep_regex='\/'
15558 ;;
15559 esac
15560 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15561
15562 gl_header_literal_regex=`echo 'sys/stat.h' \
15563 | sed -e "$gl_make_literal_regex_sed"`
15564 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15566 s|^/[^/]|//&|
15567 p
15568 q
15569 }'
15570 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15571 sed -n "$gl_absolute_header_sed"`'"'
15572 else
15573 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15574 fi
15575
15576
15577 fi
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15579 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15580 fi
15581 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15582
15583 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15585 gl_next_as_first_directive='<'sys/stat.h'>'
15586 else
15587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15588 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15589 fi
15590 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15603
15604 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15605
15606 fi
15607
15608 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15609 #include <sys/stat.h>
15610 "
15611 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15612
15613 else
15614
15615 $as_echo "#define nlink_t int" >>confdefs.h
15616
15617 fi
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15637 "
15638 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15639 ac_have_decl=1
15640 else
15641 ac_have_decl=0
15642 fi
15643
15644 cat >>confdefs.h <<_ACEOF
15645 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15646 _ACEOF
15647
15648 if test $ac_cv_have_decl_localtime_r = no; then
15649 HAVE_DECL_LOCALTIME_R=0
15650 fi
15651
15652
15653 if test $ac_cv_func_localtime_r = yes; then
15654 HAVE_LOCALTIME_R=1
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15656 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15657 if test "${gl_cv_time_r_posix+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #include <time.h>
15663 int
15664 main ()
15665 {
15666 /* We don't need to append 'restrict's to the argument types,
15667 even though the POSIX signature has the 'restrict's,
15668 since C99 says they can't affect type compatibility. */
15669 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15670 if (ptr) return 0;
15671 /* Check the return type is a pointer.
15672 On HP-UX 10 it is 'int'. */
15673 *localtime_r (0, 0);
15674 ;
15675 return 0;
15676 }
15677
15678 _ACEOF
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 gl_cv_time_r_posix=yes
15681 else
15682 gl_cv_time_r_posix=no
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15688 $as_echo "$gl_cv_time_r_posix" >&6; }
15689 if test $gl_cv_time_r_posix = yes; then
15690 REPLACE_LOCALTIME_R=0
15691 else
15692 REPLACE_LOCALTIME_R=1
15693 fi
15694 else
15695 HAVE_LOCALTIME_R=0
15696 fi
15697
15698 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15699
15700
15701
15702
15703
15704
15705
15706
15707 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15708
15709
15710 :
15711
15712 fi
15713
15714
15715
15716
15717
15718 GNULIB_TIME_R=1
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 if test $gl_cv_have_include_next = yes; then
15742 gl_cv_next_unistd_h='<'unistd.h'>'
15743 else
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15745 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15746 if test "${gl_cv_next_unistd_h+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749
15750 if test $ac_cv_header_unistd_h = yes; then
15751
15752
15753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754 /* end confdefs.h. */
15755 #include <unistd.h>
15756
15757 _ACEOF
15758 case "$host_os" in
15759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15760 *) gl_absname_cpp="$ac_cpp" ;;
15761 esac
15762
15763 case "$host_os" in
15764 mingw*)
15765 gl_dirsep_regex='[/\\]'
15766 ;;
15767 *)
15768 gl_dirsep_regex='\/'
15769 ;;
15770 esac
15771 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15772
15773 gl_header_literal_regex=`echo 'unistd.h' \
15774 | sed -e "$gl_make_literal_regex_sed"`
15775 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15776 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15777 s|^/[^/]|//&|
15778 p
15779 q
15780 }'
15781 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15782 sed -n "$gl_absolute_header_sed"`'"'
15783 else
15784 gl_cv_next_unistd_h='<'unistd.h'>'
15785 fi
15786
15787
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15790 $as_echo "$gl_cv_next_unistd_h" >&6; }
15791 fi
15792 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15793
15794 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15796 gl_next_as_first_directive='<'unistd.h'>'
15797 else
15798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15799 gl_next_as_first_directive=$gl_cv_next_unistd_h
15800 fi
15801 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15802
15803
15804
15805
15806 if test $ac_cv_header_unistd_h = yes; then
15807 HAVE_UNISTD_H=1
15808 else
15809 HAVE_UNISTD_H=0
15810 fi
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15827 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15828 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 touch conftest.file
15832 if test "$cross_compiling" = yes; then :
15833 case "$host_os" in
15834 # Guess yes on glibc systems.
15835 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
15836 # If we don't know, assume the worst.
15837 *) gl_cv_func_futimesat_works="guessing no" ;;
15838 esac
15839
15840 else
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843
15844 #include <stddef.h>
15845 #include <sys/times.h>
15846 #include <fcntl.h>
15847
15848 int
15849 main ()
15850 {
15851 int fd = open ("conftest.file", O_RDWR);
15852 if (fd < 0) return 1;
15853 if (futimesat (fd, NULL, NULL)) return 2;
15854
15855 ;
15856 return 0;
15857 }
15858 _ACEOF
15859 if ac_fn_c_try_run "$LINENO"; then :
15860 gl_cv_func_futimesat_works=yes
15861 else
15862 gl_cv_func_futimesat_works=no
15863 fi
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865 conftest.$ac_objext conftest.beam conftest.$ac_ext
15866 fi
15867
15868 rm -f conftest.file
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15871 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15872 case "$gl_cv_func_futimesat_works" in
15873 *yes) ;;
15874 *)
15875
15876 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15877
15878 ;;
15879 esac
15880 fi
15881
15882 gl_gnulib_enabled_dosname=false
15883 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
15884 gl_gnulib_enabled_pathmax=false
15885 gl_gnulib_enabled_stat=false
15886 gl_gnulib_enabled_strtoll=false
15887 gl_gnulib_enabled_strtoull=false
15888 gl_gnulib_enabled_verify=false
15889 func_gl_gnulib_m4code_dosname ()
15890 {
15891 if ! $gl_gnulib_enabled_dosname; then
15892 gl_gnulib_enabled_dosname=true
15893 fi
15894 }
15895 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
15896 {
15897 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15898
15899
15900 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
15901 fi
15902 }
15903 func_gl_gnulib_m4code_pathmax ()
15904 {
15905 if ! $gl_gnulib_enabled_pathmax; then
15906
15907
15908
15909 gl_gnulib_enabled_pathmax=true
15910 fi
15911 }
15912 func_gl_gnulib_m4code_stat ()
15913 {
15914 if ! $gl_gnulib_enabled_stat; then
15915
15916
15917
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15919 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15920 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15923 if test "$cross_compiling" = yes; then :
15924 case $host_os in
15925 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15926 *) gl_cv_func_stat_dir_slash="guessing yes";;
15927 esac
15928 else
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931 #include <sys/stat.h>
15932
15933 int
15934 main ()
15935 {
15936 struct stat st; return stat (".", &st) != stat ("./", &st);
15937 ;
15938 return 0;
15939 }
15940 _ACEOF
15941 if ac_fn_c_try_run "$LINENO"; then :
15942 gl_cv_func_stat_dir_slash=yes
15943 else
15944 gl_cv_func_stat_dir_slash=no
15945 fi
15946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15947 conftest.$ac_objext conftest.beam conftest.$ac_ext
15948 fi
15949
15950 fi
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15952 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15954 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15955 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 touch conftest.tmp
15959 # Assume that if we have lstat, we can also check symlinks.
15960 if test $ac_cv_func_lstat = yes; then
15961 ln -s conftest.tmp conftest.lnk
15962 fi
15963 if test "$cross_compiling" = yes; then :
15964 case "$host_os" in
15965 # Guess yes on glibc systems.
15966 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15967 # If we don't know, assume the worst.
15968 *) gl_cv_func_stat_file_slash="guessing no" ;;
15969 esac
15970
15971 else
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #include <sys/stat.h>
15975
15976 int
15977 main ()
15978 {
15979 int result = 0;
15980 struct stat st;
15981 if (!stat ("conftest.tmp/", &st))
15982 result |= 1;
15983 #if HAVE_LSTAT
15984 if (!stat ("conftest.lnk/", &st))
15985 result |= 2;
15986 #endif
15987 return result;
15988
15989 ;
15990 return 0;
15991 }
15992 _ACEOF
15993 if ac_fn_c_try_run "$LINENO"; then :
15994 gl_cv_func_stat_file_slash=yes
15995 else
15996 gl_cv_func_stat_file_slash=no
15997 fi
15998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15999 conftest.$ac_objext conftest.beam conftest.$ac_ext
16000 fi
16001
16002 rm -f conftest.tmp conftest.lnk
16003 fi
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16005 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16006 case $gl_cv_func_stat_dir_slash in
16007 *no) REPLACE_STAT=1
16008
16009 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16010 ;;
16011 esac
16012 case $gl_cv_func_stat_file_slash in
16013 *no) REPLACE_STAT=1
16014
16015 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16016 ;;
16017 esac
16018
16019 if test $REPLACE_STAT = 1; then
16020
16021
16022
16023
16024
16025
16026
16027
16028 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16029
16030
16031
16032 :
16033
16034 fi
16035
16036
16037
16038
16039
16040 GNULIB_STAT=1
16041
16042
16043
16044
16045
16046 gl_gnulib_enabled_stat=true
16047 if test $REPLACE_STAT = 1; then
16048 func_gl_gnulib_m4code_dosname
16049 fi
16050 if test $REPLACE_STAT = 1; then
16051 func_gl_gnulib_m4code_pathmax
16052 fi
16053 if test $REPLACE_STAT = 1; then
16054 func_gl_gnulib_m4code_verify
16055 fi
16056 fi
16057 }
16058 func_gl_gnulib_m4code_strtoll ()
16059 {
16060 if ! $gl_gnulib_enabled_strtoll; then
16061
16062
16063
16064 if test "$ac_cv_type_long_long_int" = yes; then
16065 for ac_func in strtoll
16066 do :
16067 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16068 if test "x$ac_cv_func_strtoll" = x""yes; then :
16069 cat >>confdefs.h <<_ACEOF
16070 #define HAVE_STRTOLL 1
16071 _ACEOF
16072
16073 fi
16074 done
16075
16076 if test $ac_cv_func_strtoll = no; then
16077 HAVE_STRTOLL=0
16078 fi
16079 fi
16080
16081 if test $HAVE_STRTOLL = 0; then
16082
16083
16084
16085
16086
16087
16088
16089
16090 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
16091
16092
16093 :
16094
16095 fi
16096
16097
16098
16099
16100
16101 GNULIB_STRTOLL=1
16102
16103
16104
16105
16106
16107 gl_gnulib_enabled_strtoll=true
16108 fi
16109 }
16110 func_gl_gnulib_m4code_strtoull ()
16111 {
16112 if ! $gl_gnulib_enabled_strtoull; then
16113
16114
16115
16116 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16117 for ac_func in strtoull
16118 do :
16119 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16120 if test "x$ac_cv_func_strtoull" = x""yes; then :
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_STRTOULL 1
16123 _ACEOF
16124
16125 fi
16126 done
16127
16128 if test $ac_cv_func_strtoull = no; then
16129 HAVE_STRTOULL=0
16130 fi
16131 fi
16132
16133 if test $HAVE_STRTOULL = 0; then
16134
16135
16136
16137
16138
16139
16140
16141
16142 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
16143
16144
16145 :
16146
16147 fi
16148
16149
16150
16151
16152
16153 GNULIB_STRTOULL=1
16154
16155
16156
16157
16158
16159 gl_gnulib_enabled_strtoull=true
16160 fi
16161 }
16162 func_gl_gnulib_m4code_verify ()
16163 {
16164 if ! $gl_gnulib_enabled_verify; then
16165 gl_gnulib_enabled_verify=true
16166 fi
16167 }
16168 if test $REPLACE_GETOPT = 1; then
16169 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16170 fi
16171 if test $REPLACE_LSTAT = 1; then
16172 func_gl_gnulib_m4code_dosname
16173 fi
16174 if test $REPLACE_LSTAT = 1; then
16175 func_gl_gnulib_m4code_stat
16176 fi
16177 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16178 func_gl_gnulib_m4code_stat
16179 fi
16180 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16181 func_gl_gnulib_m4code_strtoll
16182 fi
16183 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
16184 func_gl_gnulib_m4code_verify
16185 fi
16186 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
16187 func_gl_gnulib_m4code_strtoull
16188 fi
16189 if test $ac_cv_func_strtoumax = no; then
16190 func_gl_gnulib_m4code_verify
16191 fi
16192
16193 if $gl_gnulib_enabled_dosname; then
16194 gl_GNULIB_ENABLED_dosname_TRUE=
16195 gl_GNULIB_ENABLED_dosname_FALSE='#'
16196 else
16197 gl_GNULIB_ENABLED_dosname_TRUE='#'
16198 gl_GNULIB_ENABLED_dosname_FALSE=
16199 fi
16200
16201 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16202 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
16203 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
16204 else
16205 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
16206 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
16207 fi
16208
16209 if $gl_gnulib_enabled_pathmax; then
16210 gl_GNULIB_ENABLED_pathmax_TRUE=
16211 gl_GNULIB_ENABLED_pathmax_FALSE='#'
16212 else
16213 gl_GNULIB_ENABLED_pathmax_TRUE='#'
16214 gl_GNULIB_ENABLED_pathmax_FALSE=
16215 fi
16216
16217 if $gl_gnulib_enabled_stat; then
16218 gl_GNULIB_ENABLED_stat_TRUE=
16219 gl_GNULIB_ENABLED_stat_FALSE='#'
16220 else
16221 gl_GNULIB_ENABLED_stat_TRUE='#'
16222 gl_GNULIB_ENABLED_stat_FALSE=
16223 fi
16224
16225 if $gl_gnulib_enabled_strtoll; then
16226 gl_GNULIB_ENABLED_strtoll_TRUE=
16227 gl_GNULIB_ENABLED_strtoll_FALSE='#'
16228 else
16229 gl_GNULIB_ENABLED_strtoll_TRUE='#'
16230 gl_GNULIB_ENABLED_strtoll_FALSE=
16231 fi
16232
16233 if $gl_gnulib_enabled_strtoull; then
16234 gl_GNULIB_ENABLED_strtoull_TRUE=
16235 gl_GNULIB_ENABLED_strtoull_FALSE='#'
16236 else
16237 gl_GNULIB_ENABLED_strtoull_TRUE='#'
16238 gl_GNULIB_ENABLED_strtoull_FALSE=
16239 fi
16240
16241 if $gl_gnulib_enabled_verify; then
16242 gl_GNULIB_ENABLED_verify_TRUE=
16243 gl_GNULIB_ENABLED_verify_FALSE='#'
16244 else
16245 gl_GNULIB_ENABLED_verify_TRUE='#'
16246 gl_GNULIB_ENABLED_verify_FALSE=
16247 fi
16248
16249 # End of code from modules
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259 gltests_libdeps=
16260 gltests_ltlibdeps=
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270 gl_source_base='tests'
16271 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
16272
16273 gl_module_indicator_condition=$gltests_WITNESS
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284 LIBGNU_LIBDEPS="$gl_libdeps"
16285
16286 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16287
16288
16289
16290 # Extract the first word of "pkg-config", so it can be a program name with args.
16291 set dummy pkg-config; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 case $PKG_CONFIG in
16298 [\\/]* | ?:[\\/]*)
16299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16300 ;;
16301 *)
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16304 do
16305 IFS=$as_save_IFS
16306 test -z "$as_dir" && as_dir=.
16307 for ac_exec_ext in '' $ac_executable_extensions; do
16308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16311 break 2
16312 fi
16313 done
16314 done
16315 IFS=$as_save_IFS
16316
16317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16318 ;;
16319 esac
16320 fi
16321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16322 if test -n "$PKG_CONFIG"; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16324 $as_echo "$PKG_CONFIG" >&6; }
16325 else
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327 $as_echo "no" >&6; }
16328 fi
16329
16330
16331
16332
16333
16334
16335 if test "${with_sound}" != "no"; then
16336 # Sound support for GNU/Linux and the free BSDs.
16337 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
16338 do :
16339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16341 eval as_val=\$$as_ac_Header
16342 if test "x$as_val" = x""yes; then :
16343 cat >>confdefs.h <<_ACEOF
16344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16345 _ACEOF
16346 have_sound_header=yes
16347 fi
16348
16349 done
16350
16351 # Emulation library used on NetBSD.
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16353 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16354 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-lossaudio $LIBS"
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16365 #ifdef __cplusplus
16366 extern "C"
16367 #endif
16368 char _oss_ioctl ();
16369 int
16370 main ()
16371 {
16372 return _oss_ioctl ();
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 if ac_fn_c_try_link "$LINENO"; then :
16378 ac_cv_lib_ossaudio__oss_ioctl=yes
16379 else
16380 ac_cv_lib_ossaudio__oss_ioctl=no
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384 LIBS=$ac_check_lib_save_LIBS
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16387 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16388 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
16389 LIBSOUND=-lossaudio
16390 else
16391 LIBSOUND=
16392 fi
16393
16394
16395
16396 ALSA_REQUIRED=1.0.0
16397 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
16398
16399 succeeded=no
16400
16401 if test "$PKG_CONFIG" = "no" ; then
16402 HAVE_ALSA=no
16403 else
16404 PKG_CONFIG_MIN_VERSION=0.9.0
16405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16407 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16408
16409 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16410 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16411 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16412 edit_cflags="
16413 s,///*,/,g
16414 s/^/ /
16415 s/ -I/ $isystem/g
16416 s/^ //
16417 "
16418 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16419 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16421 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16422 succeeded=yes
16423 else
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16426 ALSA_CFLAGS=""
16427 ALSA_LIBS=""
16428 ## If we have a custom action on failure, don't print errors, but
16429 ## do set a variable so people can do so.
16430 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16431
16432 fi
16433
16434
16435
16436 else
16437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16439 fi
16440 fi
16441
16442 if test $succeeded = yes; then
16443 HAVE_ALSA=yes
16444 else
16445 HAVE_ALSA=no
16446 fi
16447
16448 if test $HAVE_ALSA = yes; then
16449 SAVE_CFLAGS="$CFLAGS"
16450 SAVE_LIBS="$LIBS"
16451 CFLAGS="$ALSA_CFLAGS $CFLAGS"
16452 LIBS="$ALSA_LIBS $LIBS"
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 #include <asoundlib.h>
16456 int
16457 main ()
16458 {
16459 snd_lib_error_set_handler (0);
16460 ;
16461 return 0;
16462 }
16463 _ACEOF
16464 if ac_fn_c_try_compile "$LINENO"; then :
16465 emacs_alsa_normal=yes
16466 else
16467 emacs_alsa_normal=no
16468 fi
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 if test "$emacs_alsa_normal" != yes; then
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #include <alsa/asoundlib.h>
16474 int
16475 main ()
16476 {
16477 snd_lib_error_set_handler (0);
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 emacs_alsa_subdir=yes
16484 else
16485 emacs_alsa_subdir=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 if test "$emacs_alsa_subdir" != yes; then
16489 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16490 fi
16491 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16492 fi
16493
16494 CFLAGS="$SAVE_CFLAGS"
16495 LIBS="$SAVE_LIBS"
16496 LIBSOUND="$LIBSOUND $ALSA_LIBS"
16497 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
16498
16499 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16500
16501 fi
16502
16503 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
16504 case "$opsys" in
16505 gnu-linux|freebsd|netbsd)
16506
16507 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16508
16509 ;;
16510 esac
16511 fi
16512
16513
16514 fi
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16545 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 #include <sys/personality.h>
16549 int
16550 main ()
16551 {
16552 personality (PER_LINUX32)
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 if ac_fn_c_try_compile "$LINENO"; then :
16558 emacs_cv_personality_linux32=yes
16559 else
16560 emacs_cv_personality_linux32=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16564 $as_echo "$emacs_cv_personality_linux32" >&6; }
16565
16566 if test $emacs_cv_personality_linux32 = yes; then
16567
16568 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16569
16570 fi
16571
16572 for ac_header in term.h
16573 do :
16574 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
16575 if test "x$ac_cv_header_term_h" = x""yes; then :
16576 cat >>confdefs.h <<_ACEOF
16577 #define HAVE_TERM_H 1
16578 _ACEOF
16579
16580 fi
16581
16582 done
16583
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16585 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16586 if test "${ac_cv_header_time+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16588 else
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16591 #include <sys/types.h>
16592 #include <sys/time.h>
16593 #include <time.h>
16594
16595 int
16596 main ()
16597 {
16598 if ((struct tm *) 0)
16599 return 0;
16600 ;
16601 return 0;
16602 }
16603 _ACEOF
16604 if ac_fn_c_try_compile "$LINENO"; then :
16605 ac_cv_header_time=yes
16606 else
16607 ac_cv_header_time=no
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16612 $as_echo "$ac_cv_header_time" >&6; }
16613 if test $ac_cv_header_time = yes; then
16614
16615 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16616
16617 fi
16618
16619 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16620 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16621 ac_have_decl=1
16622 else
16623 ac_have_decl=0
16624 fi
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16628 _ACEOF
16629
16630 if test $ac_cv_have_decl_sys_siglist != yes; then
16631 # For Tru64, at least:
16632 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16633 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16634 ac_have_decl=1
16635 else
16636 ac_have_decl=0
16637 fi
16638
16639 cat >>confdefs.h <<_ACEOF
16640 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16641 _ACEOF
16642
16643 if test $ac_cv_have_decl___sys_siglist = yes; then
16644
16645 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16646
16647 fi
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16650 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16651 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 #include <sys/types.h>
16657 #include <sys/wait.h>
16658 #ifndef WEXITSTATUS
16659 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16660 #endif
16661 #ifndef WIFEXITED
16662 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16663 #endif
16664
16665 int
16666 main ()
16667 {
16668 int s;
16669 wait (&s);
16670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 if ac_fn_c_try_compile "$LINENO"; then :
16676 ac_cv_header_sys_wait_h=yes
16677 else
16678 ac_cv_header_sys_wait_h=no
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16683 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16684 if test $ac_cv_header_sys_wait_h = yes; then
16685
16686 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16687
16688 fi
16689
16690
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16692 $as_echo_n "checking for speed_t... " >&6; }
16693 if test "${emacs_cv_speed_t+set}" = set; then :
16694 $as_echo_n "(cached) " >&6
16695 else
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <termios.h>
16699 int
16700 main ()
16701 {
16702 speed_t x = 1;
16703 ;
16704 return 0;
16705 }
16706 _ACEOF
16707 if ac_fn_c_try_compile "$LINENO"; then :
16708 emacs_cv_speed_t=yes
16709 else
16710 emacs_cv_speed_t=no
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 fi
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16715 $as_echo "$emacs_cv_speed_t" >&6; }
16716 if test $emacs_cv_speed_t = yes; then
16717
16718 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16719
16720 fi
16721
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16723 $as_echo_n "checking for struct exception... " >&6; }
16724 if test "${emacs_cv_struct_exception+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
16726 else
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #include <math.h>
16730 int
16731 main ()
16732 {
16733 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16734 ;
16735 return 0;
16736 }
16737 _ACEOF
16738 if ac_fn_c_try_compile "$LINENO"; then :
16739 emacs_cv_struct_exception=yes
16740 else
16741 emacs_cv_struct_exception=no
16742 fi
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 fi
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16746 $as_echo "$emacs_cv_struct_exception" >&6; }
16747 HAVE_EXCEPTION=$emacs_cv_struct_exception
16748 if test $emacs_cv_struct_exception != yes; then
16749
16750 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16751
16752 fi
16753
16754
16755 for ac_header in net/if.h
16756 do :
16757 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16758 #if HAVE_SYS_SOCKET_H
16759 #include <sys/socket.h>
16760 #endif
16761 "
16762 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16763 cat >>confdefs.h <<_ACEOF
16764 #define HAVE_NET_IF_H 1
16765 _ACEOF
16766
16767 fi
16768
16769 done
16770
16771 for ac_header in ifaddrs.h
16772 do :
16773 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16774 #if HAVE_SYS_SOCKET_H
16775 #include <sys/socket.h>
16776 #endif
16777 "
16778 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
16779 cat >>confdefs.h <<_ACEOF
16780 #define HAVE_IFADDRS_H 1
16781 _ACEOF
16782
16783 fi
16784
16785 done
16786
16787 for ac_header in net/if_dl.h
16788 do :
16789 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16790 #if HAVE_SYS_SOCKET_H
16791 #include <sys/socket.h>
16792 #endif
16793 "
16794 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_NET_IF_DL_H 1
16797 _ACEOF
16798
16799 fi
16800
16801 done
16802
16803
16804 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16805 #if HAVE_SYS_SOCKET_H
16806 #include <sys/socket.h>
16807 #endif
16808 #if HAVE_NET_IF_H
16809 #include <net/if.h>
16810 #endif
16811 "
16812 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
16813
16814 cat >>confdefs.h <<_ACEOF
16815 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16816 _ACEOF
16817
16818
16819 fi
16820 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16821 #if HAVE_SYS_SOCKET_H
16822 #include <sys/socket.h>
16823 #endif
16824 #if HAVE_NET_IF_H
16825 #include <net/if.h>
16826 #endif
16827 "
16828 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
16829
16830 cat >>confdefs.h <<_ACEOF
16831 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16832 _ACEOF
16833
16834
16835 fi
16836 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16837 #if HAVE_SYS_SOCKET_H
16838 #include <sys/socket.h>
16839 #endif
16840 #if HAVE_NET_IF_H
16841 #include <net/if.h>
16842 #endif
16843 "
16844 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
16845
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16848 _ACEOF
16849
16850
16851 fi
16852 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16853 #if HAVE_SYS_SOCKET_H
16854 #include <sys/socket.h>
16855 #endif
16856 #if HAVE_NET_IF_H
16857 #include <net/if.h>
16858 #endif
16859 "
16860 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
16861
16862 cat >>confdefs.h <<_ACEOF
16863 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16864 _ACEOF
16865
16866
16867 fi
16868 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16869 #if HAVE_SYS_SOCKET_H
16870 #include <sys/socket.h>
16871 #endif
16872 #if HAVE_NET_IF_H
16873 #include <net/if.h>
16874 #endif
16875 "
16876 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
16877
16878 cat >>confdefs.h <<_ACEOF
16879 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16880 _ACEOF
16881
16882
16883 fi
16884 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16885 #if HAVE_SYS_SOCKET_H
16886 #include <sys/socket.h>
16887 #endif
16888 #if HAVE_NET_IF_H
16889 #include <net/if.h>
16890 #endif
16891 "
16892 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
16893
16894 cat >>confdefs.h <<_ACEOF
16895 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16896 _ACEOF
16897
16898
16899 fi
16900
16901
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16904 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16905 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 char __attribute__ ((__aligned__ (1 << 3))) c;
16911 int
16912 main ()
16913 {
16914
16915 ;
16916 return 0;
16917 }
16918 _ACEOF
16919 if ac_fn_c_try_compile "$LINENO"; then :
16920 emacs_cv_attribute_aligned=yes
16921 else
16922 emacs_cv_attribute_aligned=no
16923 fi
16924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925 fi
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16927 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16928 if test $emacs_cv_attribute_aligned = yes; then
16929
16930 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16931
16932 fi
16933
16934
16935 DEPFLAGS=
16936 MKDEPDIR=":"
16937 deps_frag=deps.mk
16938 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16940 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16941 HAVE_GNU_MAKE=no
16942 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16943 if test "x$testval" != x; then
16944 HAVE_GNU_MAKE=yes
16945 else
16946 ac_enable_autodepend=no
16947 fi
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16949 $as_echo "$HAVE_GNU_MAKE" >&6; }
16950 if test $HAVE_GNU_MAKE = yes; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16952 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16953 SAVE_CFLAGS="$CFLAGS"
16954 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957
16958 int
16959 main ()
16960 {
16961
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 if ac_fn_c_try_compile "$LINENO"; then :
16967
16968 else
16969 ac_enable_autodepend=no
16970 fi
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 CFLAGS="$SAVE_CFLAGS"
16973 test -f deps.d || ac_enable_autodepend=no
16974 rm -rf deps.d
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
16976 $as_echo "$ac_enable_autodepend" >&6; }
16977 fi
16978 if test $ac_enable_autodepend = yes; then
16979 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
16980 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
16981 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
16982 deps_frag=autodeps.mk
16983 fi
16984 fi
16985 deps_frag=$srcdir/src/$deps_frag
16986
16987
16988
16989
16990
16991 lisp_frag=$srcdir/src/lisp.mk
16992
16993
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
16996 $as_echo_n "checking for long file names... " >&6; }
16997 if test "${ac_cv_sys_long_file_names+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 ac_cv_sys_long_file_names=yes
17001 # Test for long file names in all the places we know might matter:
17002 # . the current directory, where building will happen
17003 # $prefix/lib where we will be installing things
17004 # $exec_prefix/lib likewise
17005 # $TMPDIR if set, where it might want to write temporary files
17006 # /tmp where it might want to write temporary files
17007 # /var/tmp likewise
17008 # /usr/tmp likewise
17009 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
17010 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17011 # in the usual case where exec_prefix is '${prefix}'.
17012 case $ac_dir in #(
17013 . | /* | ?:[\\/]*) ;; #(
17014 *) continue;;
17015 esac
17016 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
17017 ac_xdir=$ac_dir/cf$$
17018 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
17019 ac_tf1=$ac_xdir/conftest9012345
17020 ac_tf2=$ac_xdir/conftest9012346
17021 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17022 ac_cv_sys_long_file_names=no
17023 rm -f -r "$ac_xdir" 2>/dev/null
17024 test $ac_cv_sys_long_file_names = no && break
17025 done
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17028 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17029 if test $ac_cv_sys_long_file_names = yes; then
17030
17031 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17032
17033 fi
17034
17035
17036 #### Choose a window system.
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17039 $as_echo_n "checking for X... " >&6; }
17040
17041
17042 # Check whether --with-x was given.
17043 if test "${with_x+set}" = set; then :
17044 withval=$with_x;
17045 fi
17046
17047 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17048 if test "x$with_x" = xno; then
17049 # The user explicitly disabled X.
17050 have_x=disabled
17051 else
17052 case $x_includes,$x_libraries in #(
17053 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17054 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17055 $as_echo_n "(cached) " >&6
17056 else
17057 # One or both of the vars are not set, and there is no cached value.
17058 ac_x_includes=no ac_x_libraries=no
17059 rm -f -r conftest.dir
17060 if mkdir conftest.dir; then
17061 cd conftest.dir
17062 cat >Imakefile <<'_ACEOF'
17063 incroot:
17064 @echo incroot='${INCROOT}'
17065 usrlibdir:
17066 @echo usrlibdir='${USRLIBDIR}'
17067 libdir:
17068 @echo libdir='${LIBDIR}'
17069 _ACEOF
17070 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17072 for ac_var in incroot usrlibdir libdir; do
17073 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17074 done
17075 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17076 for ac_extension in a so sl dylib la dll; do
17077 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17078 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17079 ac_im_usrlibdir=$ac_im_libdir; break
17080 fi
17081 done
17082 # Screen out bogus values from the imake configuration. They are
17083 # bogus both because they are the default anyway, and because
17084 # using them would break gcc on systems where it needs fixed includes.
17085 case $ac_im_incroot in
17086 /usr/include) ac_x_includes= ;;
17087 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17088 esac
17089 case $ac_im_usrlibdir in
17090 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17091 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17092 esac
17093 fi
17094 cd ..
17095 rm -f -r conftest.dir
17096 fi
17097
17098 # Standard set of common directories for X headers.
17099 # Check X11 before X11Rn because it is often a symlink to the current release.
17100 ac_x_header_dirs='
17101 /usr/X11/include
17102 /usr/X11R7/include
17103 /usr/X11R6/include
17104 /usr/X11R5/include
17105 /usr/X11R4/include
17106
17107 /usr/include/X11
17108 /usr/include/X11R7
17109 /usr/include/X11R6
17110 /usr/include/X11R5
17111 /usr/include/X11R4
17112
17113 /usr/local/X11/include
17114 /usr/local/X11R7/include
17115 /usr/local/X11R6/include
17116 /usr/local/X11R5/include
17117 /usr/local/X11R4/include
17118
17119 /usr/local/include/X11
17120 /usr/local/include/X11R7
17121 /usr/local/include/X11R6
17122 /usr/local/include/X11R5
17123 /usr/local/include/X11R4
17124
17125 /usr/X386/include
17126 /usr/x386/include
17127 /usr/XFree86/include/X11
17128
17129 /usr/include
17130 /usr/local/include
17131 /usr/unsupported/include
17132 /usr/athena/include
17133 /usr/local/x11r5/include
17134 /usr/lpp/Xamples/include
17135
17136 /usr/openwin/include
17137 /usr/openwin/share/include'
17138
17139 if test "$ac_x_includes" = no; then
17140 # Guess where to find include files, by looking for Xlib.h.
17141 # First, try using that file with no special directory specified.
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17144 #include <X11/Xlib.h>
17145 _ACEOF
17146 if ac_fn_c_try_cpp "$LINENO"; then :
17147 # We can compile using X headers with no special include directory.
17148 ac_x_includes=
17149 else
17150 for ac_dir in $ac_x_header_dirs; do
17151 if test -r "$ac_dir/X11/Xlib.h"; then
17152 ac_x_includes=$ac_dir
17153 break
17154 fi
17155 done
17156 fi
17157 rm -f conftest.err conftest.$ac_ext
17158 fi # $ac_x_includes = no
17159
17160 if test "$ac_x_libraries" = no; then
17161 # Check for the libraries.
17162 # See if we find them without any special options.
17163 # Don't add to $LIBS permanently.
17164 ac_save_LIBS=$LIBS
17165 LIBS="-lX11 $LIBS"
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17168 #include <X11/Xlib.h>
17169 int
17170 main ()
17171 {
17172 XrmInitialize ()
17173 ;
17174 return 0;
17175 }
17176 _ACEOF
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 LIBS=$ac_save_LIBS
17179 # We can link X programs with no special library path.
17180 ac_x_libraries=
17181 else
17182 LIBS=$ac_save_LIBS
17183 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17184 do
17185 # Don't even attempt the hair of trying to link an X program!
17186 for ac_extension in a so sl dylib la dll; do
17187 if test -r "$ac_dir/libX11.$ac_extension"; then
17188 ac_x_libraries=$ac_dir
17189 break 2
17190 fi
17191 done
17192 done
17193 fi
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196 fi # $ac_x_libraries = no
17197
17198 case $ac_x_includes,$ac_x_libraries in #(
17199 no,* | *,no | *\'*)
17200 # Didn't find X, or a directory has "'" in its name.
17201 ac_cv_have_x="have_x=no";; #(
17202 *)
17203 # Record where we found X for the cache.
17204 ac_cv_have_x="have_x=yes\
17205 ac_x_includes='$ac_x_includes'\
17206 ac_x_libraries='$ac_x_libraries'"
17207 esac
17208 fi
17209 ;; #(
17210 *) have_x=yes;;
17211 esac
17212 eval "$ac_cv_have_x"
17213 fi # $with_x != no
17214
17215 if test "$have_x" != yes; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17217 $as_echo "$have_x" >&6; }
17218 no_x=yes
17219 else
17220 # If each of the values was on the command line, it overrides each guess.
17221 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17222 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17223 # Update the cache value to reflect the command line values.
17224 ac_cv_have_x="have_x=yes\
17225 ac_x_includes='$x_includes'\
17226 ac_x_libraries='$x_libraries'"
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17228 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17229 fi
17230
17231 if test "$no_x" = yes; then
17232 window_system=none
17233 else
17234 window_system=x11
17235 fi
17236
17237 LD_SWITCH_X_SITE_RPATH=
17238 if test "${x_libraries}" != NONE; then
17239 if test -n "${x_libraries}"; then
17240 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17241 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17242 fi
17243 x_default_search_path=""
17244 x_search_path=${x_libraries}
17245 if test -z "${x_search_path}"; then
17246 x_search_path=/usr/lib
17247 fi
17248 for x_library in `echo ${x_search_path}: | \
17249 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17250 x_search_path="\
17251 ${x_library}/X11/%L/%T/%N%C%S:\
17252 ${x_library}/X11/%l/%T/%N%C%S:\
17253 ${x_library}/X11/%T/%N%C%S:\
17254 ${x_library}/X11/%L/%T/%N%S:\
17255 ${x_library}/X11/%l/%T/%N%S:\
17256 ${x_library}/X11/%T/%N%S"
17257 if test x"${x_default_search_path}" = x; then
17258 x_default_search_path=${x_search_path}
17259 else
17260 x_default_search_path="${x_search_path}:${x_default_search_path}"
17261 fi
17262 done
17263 fi
17264
17265
17266 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
17267 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17268 fi
17269
17270 if test x"${x_includes}" = x; then
17271 bitmapdir=/usr/include/X11/bitmaps
17272 else
17273 # accumulate include directories that have X11 bitmap subdirectories
17274 bmd_acc="dummyval"
17275 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17276 if test -d "${bmd}/X11/bitmaps"; then
17277 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
17278 fi
17279 if test -d "${bmd}/bitmaps"; then
17280 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
17281 fi
17282 done
17283 if test ${bmd_acc} != "dummyval"; then
17284 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17285 fi
17286 fi
17287
17288 HAVE_NS=no
17289 NS_IMPL_COCOA=no
17290 NS_IMPL_GNUSTEP=no
17291 tmp_CPPFLAGS="$CPPFLAGS"
17292 tmp_CFLAGS="$CFLAGS"
17293 CPPFLAGS="$CPPFLAGS -x objective-c"
17294 CFLAGS="$CFLAGS -x objective-c"
17295 TEMACS_LDFLAGS2="\${LDFLAGS}"
17296 GNU_OBJC_CFLAGS=
17297 if test "${with_ns}" != no; then
17298 if test "${opsys}" = darwin; then
17299 NS_IMPL_COCOA=yes
17300 ns_appdir=`pwd`/nextstep/Emacs.app
17301 ns_appbindir=${ns_appdir}/Contents/MacOS
17302 ns_appresdir=${ns_appdir}/Contents/Resources
17303 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
17304 elif test -f $GNUSTEP_CONFIG_FILE; then
17305 NS_IMPL_GNUSTEP=yes
17306 ns_appdir=`pwd`/nextstep/Emacs.app
17307 ns_appbindir=${ns_appdir}
17308 ns_appresdir=${ns_appdir}/Resources
17309 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
17310 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17311 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17312 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17313 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17314 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17315 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
17316 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17317 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
17318 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17319 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17320 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17321 LIB_STANDARD=
17322 START_FILES=
17323 TEMACS_LDFLAGS2=
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17325 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17326 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17327 $as_echo_n "(cached) " >&6
17328 else
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331 #include <GNUstepBase/GSConfig.h>
17332 int
17333 main ()
17334 {
17335 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17336 1;
17337 #else
17338 fail;
17339 #endif
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 if ac_fn_c_try_compile "$LINENO"; then :
17345 emacs_cv_objc_exceptions=yes
17346 else
17347 emacs_cv_objc_exceptions=no
17348 fi
17349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17350 fi
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17352 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17353 if test $emacs_cv_objc_exceptions = yes; then
17354
17355 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17356
17357 GNU_OBJC_CFLAGS="-fobjc-exceptions"
17358 fi
17359 fi
17360
17361 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
17362
17363 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17364 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
17365 HAVE_NS=yes
17366 else
17367 as_fn_error "\`--with-ns' was specified, but the include
17368 files are missing or cannot be compiled." "$LINENO" 5
17369 fi
17370
17371
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 #include <Foundation/NSObjCRuntime.h>
17375 int
17376 main ()
17377 {
17378 NSInteger i;
17379 ;
17380 return 0;
17381 }
17382 _ACEOF
17383 if ac_fn_c_try_compile "$LINENO"; then :
17384 ns_have_nsinteger=yes
17385 else
17386 ns_have_nsinteger=no
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389 if test $ns_have_nsinteger = yes; then
17390
17391 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17392
17393 fi
17394 fi
17395
17396
17397 INSTALL_ARCH_INDEP_EXTRA=install-etc
17398 ns_self_contained=no
17399 ns_frag=/dev/null
17400 NS_OBJ=
17401 NS_OBJC_OBJ=
17402 if test "${HAVE_NS}" = yes; then
17403 if test "$with_toolkit_scroll_bars" = "no"; then
17404 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17405 fi
17406
17407 window_system=nextstep
17408 with_xft=no
17409 # set up packaging dirs
17410 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17411 ns_self_contained=yes
17412 prefix=${ns_appresdir}
17413 exec_prefix=${ns_appbindir}
17414 libexecdir="\${ns_appbindir}/libexec"
17415 archlibdir="\${ns_appbindir}/libexec"
17416 docdir="\${ns_appresdir}/etc"
17417 etcdir="\${ns_appresdir}/etc"
17418 infodir="\${ns_appresdir}/info"
17419 mandir="\${ns_appresdir}/man"
17420 lispdir="\${ns_appresdir}/lisp"
17421 leimdir="\${ns_appresdir}/leim"
17422 INSTALL_ARCH_INDEP_EXTRA=
17423 fi
17424 ns_frag=$srcdir/src/ns.mk
17425 NS_OBJ="fontset.o fringe.o image.o"
17426 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17427 fi
17428 CFLAGS="$tmp_CFLAGS"
17429 CPPFLAGS="$tmp_CPPFLAGS"
17430
17431
17432
17433
17434
17435
17436
17437 case "${window_system}" in
17438 x11 )
17439 HAVE_X_WINDOWS=yes
17440 HAVE_X11=yes
17441 case "${with_x_toolkit}" in
17442 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
17443 motif ) USE_X_TOOLKIT=MOTIF ;;
17444 gtk ) with_gtk=yes
17445 USE_X_TOOLKIT=none ;;
17446 gtk3 ) with_gtk3=yes
17447 USE_X_TOOLKIT=none ;;
17448 no ) USE_X_TOOLKIT=none ;;
17449 * ) USE_X_TOOLKIT=maybe ;;
17450 esac
17451 ;;
17452 nextstep | none )
17453 HAVE_X_WINDOWS=no
17454 HAVE_X11=no
17455 USE_X_TOOLKIT=none
17456 ;;
17457 esac
17458
17459 if test "$window_system" = none && test "X$with_x" != "Xno"; then
17460 # Extract the first word of "X", so it can be a program name with args.
17461 set dummy X; ac_word=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17463 $as_echo_n "checking for $ac_word... " >&6; }
17464 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 if test -n "$HAVE_XSERVER"; then
17468 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
17469 else
17470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17471 for as_dir in $PATH
17472 do
17473 IFS=$as_save_IFS
17474 test -z "$as_dir" && as_dir=.
17475 for ac_exec_ext in '' $ac_executable_extensions; do
17476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17477 ac_cv_prog_HAVE_XSERVER="true"
17478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17479 break 2
17480 fi
17481 done
17482 done
17483 IFS=$as_save_IFS
17484
17485 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
17486 fi
17487 fi
17488 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
17489 if test -n "$HAVE_XSERVER"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17491 $as_echo "$HAVE_XSERVER" >&6; }
17492 else
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17495 fi
17496
17497
17498 if test "$HAVE_XSERVER" = true ||
17499 test -n "$DISPLAY" ||
17500 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17501 as_fn_error "You seem to be running X, but no X development libraries
17502 were found. You should install the relevant development files for X
17503 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17504 sure you have development files for image handling, i.e.
17505 tiff, gif, jpeg, png and xpm.
17506 If you are sure you want Emacs compiled without X window support, pass
17507 --without-x
17508 to configure." "$LINENO" 5
17509 fi
17510 fi
17511
17512 ### If we're using X11, we should use the X menu package.
17513 HAVE_MENUS=no
17514 case ${HAVE_X11} in
17515 yes ) HAVE_MENUS=yes ;;
17516 esac
17517
17518 # Does the opsystem file prohibit the use of the GNU malloc?
17519 # Assume not, until told otherwise.
17520 GNU_MALLOC=yes
17521
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17523 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17524 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <malloc.h>
17530 static void hook (void) {}
17531 int
17532 main ()
17533 {
17534 malloc_set_state (malloc_get_state ());
17535 __after_morecore_hook = hook;
17536 __malloc_initialize_hook = hook;
17537 ;
17538 return 0;
17539 }
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 emacs_cv_var_doug_lea_malloc=yes
17543 else
17544 emacs_cv_var_doug_lea_malloc=no
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17550 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17551 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
17552
17553
17554 system_malloc=no
17555 case "$opsys" in
17556 ## darwin ld insists on the use of malloc routines in the System framework.
17557 darwin|sol2-10) system_malloc=yes ;;
17558 esac
17559
17560 if test "${system_malloc}" = "yes"; then
17561
17562 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17563
17564 GNU_MALLOC=no
17565 GNU_MALLOC_reason="
17566 (The GNU allocators don't work with this system configuration.)"
17567 GMALLOC_OBJ=
17568 VMLIMIT_OBJ=
17569 else
17570 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
17571 VMLIMIT_OBJ=vm-limit.o
17572 fi
17573
17574
17575
17576 if test "$doug_lea_malloc" = "yes" ; then
17577 if test "$GNU_MALLOC" = yes ; then
17578 GNU_MALLOC_reason="
17579 (Using Doug Lea's new malloc from the GNU C Library.)"
17580 fi
17581
17582 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17583
17584
17585 ## Use mmap directly for allocating larger buffers.
17586 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17587 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17588 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17589 case "$opsys" in
17590 gnu*) REL_ALLOC=no ;;
17591 esac
17592 fi
17593
17594 if test x"${REL_ALLOC}" = x; then
17595 REL_ALLOC=${GNU_MALLOC}
17596 fi
17597
17598 use_mmap_for_buffers=no
17599 case "$opsys" in
17600 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
17601 esac
17602
17603
17604
17605
17606 for ac_func in getpagesize
17607 do :
17608 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17609 if test "x$ac_cv_func_getpagesize" = x""yes; then :
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_GETPAGESIZE 1
17612 _ACEOF
17613
17614 fi
17615 done
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17618 $as_echo_n "checking for working mmap... " >&6; }
17619 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17622 if test "$cross_compiling" = yes; then :
17623 ac_cv_func_mmap_fixed_mapped=no
17624 else
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 $ac_includes_default
17628 /* malloc might have been renamed as rpl_malloc. */
17629 #undef malloc
17630
17631 /* Thanks to Mike Haertel and Jim Avera for this test.
17632 Here is a matrix of mmap possibilities:
17633 mmap private not fixed
17634 mmap private fixed at somewhere currently unmapped
17635 mmap private fixed at somewhere already mapped
17636 mmap shared not fixed
17637 mmap shared fixed at somewhere currently unmapped
17638 mmap shared fixed at somewhere already mapped
17639 For private mappings, we should verify that changes cannot be read()
17640 back from the file, nor mmap's back from the file at a different
17641 address. (There have been systems where private was not correctly
17642 implemented like the infamous i386 svr4.0, and systems where the
17643 VM page cache was not coherent with the file system buffer cache
17644 like early versions of FreeBSD and possibly contemporary NetBSD.)
17645 For shared mappings, we should conversely verify that changes get
17646 propagated back to all the places they're supposed to be.
17647
17648 Grep wants private fixed already mapped.
17649 The main things grep needs to know about mmap are:
17650 * does it exist and is it safe to write into the mmap'd area
17651 * how to use it (BSD variants) */
17652
17653 #include <fcntl.h>
17654 #include <sys/mman.h>
17655
17656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17657 char *malloc ();
17658 #endif
17659
17660 /* This mess was copied from the GNU getpagesize.h. */
17661 #ifndef HAVE_GETPAGESIZE
17662 # ifdef _SC_PAGESIZE
17663 # define getpagesize() sysconf(_SC_PAGESIZE)
17664 # else /* no _SC_PAGESIZE */
17665 # ifdef HAVE_SYS_PARAM_H
17666 # include <sys/param.h>
17667 # ifdef EXEC_PAGESIZE
17668 # define getpagesize() EXEC_PAGESIZE
17669 # else /* no EXEC_PAGESIZE */
17670 # ifdef NBPG
17671 # define getpagesize() NBPG * CLSIZE
17672 # ifndef CLSIZE
17673 # define CLSIZE 1
17674 # endif /* no CLSIZE */
17675 # else /* no NBPG */
17676 # ifdef NBPC
17677 # define getpagesize() NBPC
17678 # else /* no NBPC */
17679 # ifdef PAGESIZE
17680 # define getpagesize() PAGESIZE
17681 # endif /* PAGESIZE */
17682 # endif /* no NBPC */
17683 # endif /* no NBPG */
17684 # endif /* no EXEC_PAGESIZE */
17685 # else /* no HAVE_SYS_PARAM_H */
17686 # define getpagesize() 8192 /* punt totally */
17687 # endif /* no HAVE_SYS_PARAM_H */
17688 # endif /* no _SC_PAGESIZE */
17689
17690 #endif /* no HAVE_GETPAGESIZE */
17691
17692 int
17693 main ()
17694 {
17695 char *data, *data2, *data3;
17696 const char *cdata2;
17697 int i, pagesize;
17698 int fd, fd2;
17699
17700 pagesize = getpagesize ();
17701
17702 /* First, make a file with some known garbage in it. */
17703 data = (char *) malloc (pagesize);
17704 if (!data)
17705 return 1;
17706 for (i = 0; i < pagesize; ++i)
17707 *(data + i) = rand ();
17708 umask (0);
17709 fd = creat ("conftest.mmap", 0600);
17710 if (fd < 0)
17711 return 2;
17712 if (write (fd, data, pagesize) != pagesize)
17713 return 3;
17714 close (fd);
17715
17716 /* Next, check that the tail of a page is zero-filled. File must have
17717 non-zero length, otherwise we risk SIGBUS for entire page. */
17718 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17719 if (fd2 < 0)
17720 return 4;
17721 cdata2 = "";
17722 if (write (fd2, cdata2, 1) != 1)
17723 return 5;
17724 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17725 if (data2 == MAP_FAILED)
17726 return 6;
17727 for (i = 0; i < pagesize; ++i)
17728 if (*(data2 + i))
17729 return 7;
17730 close (fd2);
17731 if (munmap (data2, pagesize))
17732 return 8;
17733
17734 /* Next, try to mmap the file at a fixed address which already has
17735 something else allocated at it. If we can, also make sure that
17736 we see the same garbage. */
17737 fd = open ("conftest.mmap", O_RDWR);
17738 if (fd < 0)
17739 return 9;
17740 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17741 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17742 return 10;
17743 for (i = 0; i < pagesize; ++i)
17744 if (*(data + i) != *(data2 + i))
17745 return 11;
17746
17747 /* Finally, make sure that changes to the mapped area do not
17748 percolate back to the file as seen by read(). (This is a bug on
17749 some variants of i386 svr4.0.) */
17750 for (i = 0; i < pagesize; ++i)
17751 *(data2 + i) = *(data2 + i) + 1;
17752 data3 = (char *) malloc (pagesize);
17753 if (!data3)
17754 return 12;
17755 if (read (fd, data3, pagesize) != pagesize)
17756 return 13;
17757 for (i = 0; i < pagesize; ++i)
17758 if (*(data + i) != *(data3 + i))
17759 return 14;
17760 close (fd);
17761 return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_run "$LINENO"; then :
17765 ac_cv_func_mmap_fixed_mapped=yes
17766 else
17767 ac_cv_func_mmap_fixed_mapped=no
17768 fi
17769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17770 conftest.$ac_objext conftest.beam conftest.$ac_ext
17771 fi
17772
17773 fi
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17775 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17776 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17777
17778 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17779
17780 fi
17781 rm -f conftest.mmap conftest.txt
17782
17783 if test $use_mmap_for_buffers = yes; then
17784
17785 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17786
17787 REL_ALLOC=no
17788 fi
17789
17790 LIBS="$LIBS_SYSTEM $LIBS"
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17793 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17794 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-ldnet $LIBS"
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17801
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char dnet_ntoa ();
17809 int
17810 main ()
17811 {
17812 return dnet_ntoa ();
17813 ;
17814 return 0;
17815 }
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_lib_dnet_dnet_ntoa=yes
17819 else
17820 ac_cv_lib_dnet_dnet_ntoa=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17827 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17828 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17829 cat >>confdefs.h <<_ACEOF
17830 #define HAVE_LIBDNET 1
17831 _ACEOF
17832
17833 LIBS="-ldnet $LIBS"
17834
17835 fi
17836
17837
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17839 $as_echo_n "checking for main in -lXbsd... " >&6; }
17840 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lXbsd $LIBS"
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847
17848
17849 int
17850 main ()
17851 {
17852 return main ();
17853 ;
17854 return 0;
17855 }
17856 _ACEOF
17857 if ac_fn_c_try_link "$LINENO"; then :
17858 ac_cv_lib_Xbsd_main=yes
17859 else
17860 ac_cv_lib_Xbsd_main=no
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 LIBS=$ac_check_lib_save_LIBS
17865 fi
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17868 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
17869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
17870 fi
17871
17872
17873 LIB_PTHREAD=
17874
17875
17876
17877 if test "$ac_cv_header_pthread_h"; then
17878 if test "$GMALLOC_OBJ" = gmalloc.o; then
17879 emacs_pthread_function=pthread_atfork
17880 else
17881 emacs_pthread_function=pthread_self
17882 fi
17883 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17885 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17886 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17887 $as_echo_n "(cached) " >&6
17888 else
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lpthread $LIBS"
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char $emacs_pthread_function ();
17901 int
17902 main ()
17903 {
17904 return $emacs_pthread_function ();
17905 ;
17906 return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 eval "$as_ac_Lib=yes"
17911 else
17912 eval "$as_ac_Lib=no"
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17917 fi
17918 eval ac_res=\$$as_ac_Lib
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17920 $as_echo "$ac_res" >&6; }
17921 eval as_val=\$$as_ac_Lib
17922 if test "x$as_val" = x""yes; then :
17923 HAVE_PTHREAD=yes
17924 fi
17925
17926 fi
17927 if test "$HAVE_PTHREAD" = yes; then
17928 case "${canonical}" in
17929 *-hpux*) ;;
17930 *) LIB_PTHREAD="-lpthread"
17931 LIBS="$LIB_PTHREAD $LIBS" ;;
17932 esac
17933
17934 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17935
17936 fi
17937
17938
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17940 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17941 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17942 $as_echo_n "(cached) " >&6
17943 else
17944 ac_check_lib_save_LIBS=$LIBS
17945 LIBS="-lpthreads $LIBS"
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17948
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17952 #ifdef __cplusplus
17953 extern "C"
17954 #endif
17955 char cma_open ();
17956 int
17957 main ()
17958 {
17959 return cma_open ();
17960 ;
17961 return 0;
17962 }
17963 _ACEOF
17964 if ac_fn_c_try_link "$LINENO"; then :
17965 ac_cv_lib_pthreads_cma_open=yes
17966 else
17967 ac_cv_lib_pthreads_cma_open=no
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17972 fi
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
17974 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
17975 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
17976 cat >>confdefs.h <<_ACEOF
17977 #define HAVE_LIBPTHREADS 1
17978 _ACEOF
17979
17980 LIBS="-lpthreads $LIBS"
17981
17982 fi
17983
17984
17985 ## Note: when using cpp in s/aix4.2.h, this definition depended on
17986 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
17987 ## the system file was sourced. Hence the value of LIBS_SYSTEM
17988 ## added to LIBS in configure would never contain the pthreads part,
17989 ## but the value used in Makefiles might. FIXME?
17990 ##
17991 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
17992 ## be harmless on older versions of X where it happens to exist.
17993 test "$opsys" = "aix4-2" && \
17994 test $ac_cv_lib_pthreads_cma_open = yes && \
17995 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
17996
17997
17998 case ${host_os} in
17999 aix*)
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18001 $as_echo_n "checking for -bbigtoc option... " >&6; }
18002 if test "${gdb_cv_bigtoc+set}" = set; then :
18003 $as_echo_n "(cached) " >&6
18004 else
18005
18006 case $GCC in
18007 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18008 *) gdb_cv_bigtoc=-bbigtoc ;;
18009 esac
18010
18011 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014
18015 int
18016 main ()
18017 {
18018 int i;
18019 ;
18020 return 0;
18021 }
18022 _ACEOF
18023 if ac_fn_c_try_link "$LINENO"; then :
18024
18025 else
18026 gdb_cv_bigtoc=
18027 fi
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18030
18031 fi
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18033 $as_echo "$gdb_cv_bigtoc" >&6; }
18034 ;;
18035 esac
18036
18037 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18038 # used for the tests that follow. We set them back to REAL_CFLAGS and
18039 # REAL_CPPFLAGS later on.
18040
18041 REAL_CFLAGS="$CFLAGS"
18042 REAL_CPPFLAGS="$CPPFLAGS"
18043
18044 if test "${HAVE_X11}" = "yes"; then
18045 DEFS="$C_SWITCH_X_SITE $DEFS"
18046 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
18047 LIBS="-lX11 $LIBS"
18048 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
18049 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
18050
18051 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18052 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18053 # but it's more convenient here to set LD_RUN_PATH since this
18054 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18055 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
18056 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18057 export LD_RUN_PATH
18058 fi
18059
18060 if test "${opsys}" = "gnu-linux"; then
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18062 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065
18066 int
18067 main ()
18068 {
18069 XOpenDisplay ("foo");
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"; then :
18075 xgnu_linux_first_failure=no
18076 else
18077 xgnu_linux_first_failure=yes
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081 if test "${xgnu_linux_first_failure}" = "yes"; then
18082 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
18083 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
18084 OLD_CPPFLAGS="$CPPFLAGS"
18085 OLD_LIBS="$LIBS"
18086 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
18087 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
18088 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
18089 LIBS="$LIBS -b i486-linuxaout"
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18092
18093 int
18094 main ()
18095 {
18096 XOpenDisplay ("foo");
18097 ;
18098 return 0;
18099 }
18100 _ACEOF
18101 if ac_fn_c_try_link "$LINENO"; then :
18102 xgnu_linux_second_failure=no
18103 else
18104 xgnu_linux_second_failure=yes
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext \
18107 conftest$ac_exeext conftest.$ac_ext
18108 if test "${xgnu_linux_second_failure}" = "yes"; then
18109 # If we get the same failure with -b, there is no use adding -b.
18110 # So take it out. This plays safe.
18111 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
18112 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
18113 CPPFLAGS="$OLD_CPPFLAGS"
18114 LIBS="$OLD_LIBS"
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18116 $as_echo "no" >&6; }
18117 else
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119 $as_echo "yes" >&6; }
18120 fi
18121 else
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18123 $as_echo "no" >&6; }
18124 fi
18125 fi
18126
18127 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18128 # header files included from there.
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18130 $as_echo_n "checking for Xkb... " >&6; }
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133 #include <X11/Xlib.h>
18134 #include <X11/XKBlib.h>
18135 int
18136 main ()
18137 {
18138 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_link "$LINENO"; then :
18144 emacs_xkb=yes
18145 else
18146 emacs_xkb=no
18147 fi
18148 rm -f core conftest.err conftest.$ac_objext \
18149 conftest$ac_exeext conftest.$ac_ext
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18151 $as_echo "$emacs_xkb" >&6; }
18152 if test $emacs_xkb = yes; then
18153
18154 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18155
18156 fi
18157
18158 for ac_func in XrmSetDatabase XScreenResourceString \
18159 XScreenNumberOfScreen
18160 do :
18161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18163 eval as_val=\$$as_ac_var
18164 if test "x$as_val" = x""yes; then :
18165 cat >>confdefs.h <<_ACEOF
18166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18167 _ACEOF
18168
18169 fi
18170 done
18171
18172 fi
18173
18174 if test "${window_system}" = "x11"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18176 $as_echo_n "checking X11 version 6... " >&6; }
18177 if test "${emacs_cv_x11_version_6+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 #include <X11/Xlib.h>
18183 int
18184 main ()
18185 {
18186 #if XlibSpecificationRelease < 6
18187 fail;
18188 #endif
18189
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195 emacs_cv_x11_version_6=yes
18196 else
18197 emacs_cv_x11_version_6=no
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201 fi
18202
18203 if test $emacs_cv_x11_version_6 = yes; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18205 $as_echo "6 or newer" >&6; }
18206
18207 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18208
18209
18210 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18211
18212 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18213 ## XIM support.
18214 case "$opsys" in
18215 sol2-*) : ;;
18216 *)
18217 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18218
18219 ;;
18220 esac
18221 else
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18223 $as_echo "before 6" >&6; }
18224 fi
18225 fi
18226
18227
18228 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18229 HAVE_RSVG=no
18230 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
18231 if test "${with_rsvg}" != "no"; then
18232 RSVG_REQUIRED=2.11.0
18233 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
18234
18235
18236 succeeded=no
18237
18238 if test "$PKG_CONFIG" = "no" ; then
18239 :
18240 else
18241 PKG_CONFIG_MIN_VERSION=0.9.0
18242 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18244 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18245
18246 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18247 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18248 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18249 edit_cflags="
18250 s,///*,/,g
18251 s/^/ /
18252 s/ -I/ $isystem/g
18253 s/^ //
18254 "
18255 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18256 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18258 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18259 succeeded=yes
18260 else
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262 $as_echo "no" >&6; }
18263 RSVG_CFLAGS=""
18264 RSVG_LIBS=""
18265 ## If we have a custom action on failure, don't print errors, but
18266 ## do set a variable so people can do so.
18267 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18268
18269 fi
18270
18271
18272
18273 else
18274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18276 fi
18277 fi
18278
18279 if test $succeeded = yes; then
18280 HAVE_RSVG=yes
18281 else
18282 :
18283 fi
18284
18285
18286
18287
18288 if test $HAVE_RSVG = yes; then
18289
18290 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18291
18292 CFLAGS="$CFLAGS $RSVG_CFLAGS"
18293 LIBS="$RSVG_LIBS $LIBS"
18294 fi
18295 fi
18296 fi
18297
18298 HAVE_IMAGEMAGICK=no
18299 if test "${HAVE_X11}" = "yes"; then
18300 if test "${with_imagemagick}" != "no"; then
18301 ## 6.2.8 is the earliest version known to work, but earlier versions
18302 ## might work - let us know if you find one.
18303 ## 6.0.7 does not work. See bug#7955.
18304 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
18305
18306 succeeded=no
18307
18308 if test "$PKG_CONFIG" = "no" ; then
18309 :
18310 else
18311 PKG_CONFIG_MIN_VERSION=0.9.0
18312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18314 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18315
18316 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18317 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18318 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18319 edit_cflags="
18320 s,///*,/,g
18321 s/^/ /
18322 s/ -I/ $isystem/g
18323 s/^ //
18324 "
18325 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18326 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18328 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18329 succeeded=yes
18330 else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 IMAGEMAGICK_CFLAGS=""
18334 IMAGEMAGICK_LIBS=""
18335 ## If we have a custom action on failure, don't print errors, but
18336 ## do set a variable so people can do so.
18337 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18338
18339 fi
18340
18341
18342
18343 else
18344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18346 fi
18347 fi
18348
18349 if test $succeeded = yes; then
18350 HAVE_IMAGEMAGICK=yes
18351 else
18352 :
18353 fi
18354
18355
18356
18357
18358 if test $HAVE_IMAGEMAGICK = yes; then
18359
18360 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18361
18362 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
18363 LIBS="$IMAGEMAGICK_LIBS $LIBS"
18364 for ac_func in MagickExportImagePixels MagickMergeImageLayers
18365 do :
18366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18368 eval as_val=\$$as_ac_var
18369 if test "x$as_val" = x""yes; then :
18370 cat >>confdefs.h <<_ACEOF
18371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18372 _ACEOF
18373
18374 fi
18375 done
18376
18377 fi
18378 fi
18379 fi
18380
18381
18382 HAVE_GTK=no
18383 GTK_OBJ=
18384 if test "${with_gtk3}" = "yes"; then
18385 GLIB_REQUIRED=2.28
18386 GTK_REQUIRED=3.0
18387 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18388
18389
18390 succeeded=no
18391
18392 if test "$PKG_CONFIG" = "no" ; then
18393 pkg_check_gtk=no
18394 else
18395 PKG_CONFIG_MIN_VERSION=0.9.0
18396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18398 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18399
18400 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18401 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18402 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18403 edit_cflags="
18404 s,///*,/,g
18405 s/^/ /
18406 s/ -I/ $isystem/g
18407 s/^ //
18408 "
18409 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18410 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18412 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18413 succeeded=yes
18414 else
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18417 GTK_CFLAGS=""
18418 GTK_LIBS=""
18419 ## If we have a custom action on failure, don't print errors, but
18420 ## do set a variable so people can do so.
18421 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18422
18423 fi
18424
18425
18426
18427 else
18428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18430 fi
18431 fi
18432
18433 if test $succeeded = yes; then
18434 pkg_check_gtk=yes
18435 else
18436 pkg_check_gtk=no
18437 fi
18438
18439 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18440 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18441 fi
18442
18443 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18444
18445 GTK_OBJ=emacsgtkfixed.o
18446 fi
18447
18448 if test "$pkg_check_gtk" != "yes"; then
18449 HAVE_GTK=no
18450 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
18451 GLIB_REQUIRED=2.10
18452 GTK_REQUIRED=2.10
18453 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18454
18455
18456 succeeded=no
18457
18458 if test "$PKG_CONFIG" = "no" ; then
18459 pkg_check_gtk=no
18460 else
18461 PKG_CONFIG_MIN_VERSION=0.9.0
18462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18464 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18465
18466 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18467 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18468 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18469 edit_cflags="
18470 s,///*,/,g
18471 s/^/ /
18472 s/ -I/ $isystem/g
18473 s/^ //
18474 "
18475 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18476 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18478 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18479 succeeded=yes
18480 else
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482 $as_echo "no" >&6; }
18483 GTK_CFLAGS=""
18484 GTK_LIBS=""
18485 ## If we have a custom action on failure, don't print errors, but
18486 ## do set a variable so people can do so.
18487 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18488
18489 fi
18490
18491
18492
18493 else
18494 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18495 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18496 fi
18497 fi
18498
18499 if test $succeeded = yes; then
18500 pkg_check_gtk=yes
18501 else
18502 pkg_check_gtk=no
18503 fi
18504
18505 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18506 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18507 fi
18508 fi
18509 fi
18510
18511 if test x"$pkg_check_gtk" = xyes; then
18512
18513
18514
18515 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
18516 CFLAGS="$CFLAGS $GTK_CFLAGS"
18517 LIBS="$GTK_LIBS $LIBS"
18518 GTK_COMPILES=no
18519 for ac_func in gtk_main
18520 do :
18521 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18522 if test "x$ac_cv_func_gtk_main" = x""yes; then :
18523 cat >>confdefs.h <<_ACEOF
18524 #define HAVE_GTK_MAIN 1
18525 _ACEOF
18526 GTK_COMPILES=yes
18527 fi
18528 done
18529
18530 if test "${GTK_COMPILES}" != "yes"; then
18531 if test "$USE_X_TOOLKIT" != "maybe"; then
18532 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18533 fi
18534 else
18535 HAVE_GTK=yes
18536
18537 $as_echo "#define USE_GTK 1" >>confdefs.h
18538
18539 GTK_OBJ="gtkutil.o $GTK_OBJ"
18540 USE_X_TOOLKIT=none
18541 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
18542 :
18543 else
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18545 closing open displays. This is no problem if you just use
18546 one display, but if you use more than one and close one of them
18547 Emacs may crash." >&5
18548 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18549 closing open displays. This is no problem if you just use
18550 one display, but if you use more than one and close one of them
18551 Emacs may crash." >&2;}
18552 sleep 3
18553 fi
18554 fi
18555
18556 fi
18557
18558
18559
18560 if test "${HAVE_GTK}" = "yes"; then
18561
18562 if test "$with_toolkit_scroll_bars" != no; then
18563 with_toolkit_scroll_bars=yes
18564 fi
18565
18566 HAVE_GTK_FILE_SELECTION=no
18567 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18568 #include <gtk/gtk.h>
18569 "
18570 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
18571 HAVE_GTK_FILE_SELECTION=yes
18572 else
18573 HAVE_GTK_FILE_SELECTION=no
18574 fi
18575
18576 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18577 for ac_func in gtk_file_selection_new
18578 do :
18579 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18580 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
18581 cat >>confdefs.h <<_ACEOF
18582 #define HAVE_GTK_FILE_SELECTION_NEW 1
18583 _ACEOF
18584
18585 fi
18586 done
18587
18588 fi
18589
18590
18591 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
18592 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18593 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18594 gtk_orientable_set_orientation \
18595 gtk_window_set_has_resize_grip
18596 do :
18597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18599 eval as_val=\$$as_ac_var
18600 if test "x$as_val" = x""yes; then :
18601 cat >>confdefs.h <<_ACEOF
18602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603 _ACEOF
18604
18605 fi
18606 done
18607
18608 fi
18609
18610 HAVE_DBUS=no
18611 DBUS_OBJ=
18612 if test "${with_dbus}" = "yes"; then
18613
18614 succeeded=no
18615
18616 if test "$PKG_CONFIG" = "no" ; then
18617 HAVE_DBUS=no
18618 else
18619 PKG_CONFIG_MIN_VERSION=0.9.0
18620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18622 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18623
18624 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18625 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18626 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18627 edit_cflags="
18628 s,///*,/,g
18629 s/^/ /
18630 s/ -I/ $isystem/g
18631 s/^ //
18632 "
18633 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18634 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18636 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18637 succeeded=yes
18638 else
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640 $as_echo "no" >&6; }
18641 DBUS_CFLAGS=""
18642 DBUS_LIBS=""
18643 ## If we have a custom action on failure, don't print errors, but
18644 ## do set a variable so people can do so.
18645 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18646
18647 fi
18648
18649
18650
18651 else
18652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18654 fi
18655 fi
18656
18657 if test $succeeded = yes; then
18658 HAVE_DBUS=yes
18659 else
18660 HAVE_DBUS=no
18661 fi
18662
18663 if test "$HAVE_DBUS" = yes; then
18664 LIBS="$LIBS $DBUS_LIBS"
18665
18666 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18667
18668 for ac_func in dbus_watch_get_unix_fd \
18669 dbus_type_is_valid \
18670 dbus_validate_bus_name \
18671 dbus_validate_path \
18672 dbus_validate_interface \
18673 dbus_validate_member
18674 do :
18675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18677 eval as_val=\$$as_ac_var
18678 if test "x$as_val" = x""yes; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18681 _ACEOF
18682
18683 fi
18684 done
18685
18686 DBUS_OBJ=dbusbind.o
18687 fi
18688 fi
18689
18690
18691 HAVE_GSETTINGS=no
18692 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18693
18694 succeeded=no
18695
18696 if test "$PKG_CONFIG" = "no" ; then
18697 HAVE_GSETTINGS=no
18698 else
18699 PKG_CONFIG_MIN_VERSION=0.9.0
18700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18702 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18703
18704 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18705 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18706 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18707 edit_cflags="
18708 s,///*,/,g
18709 s/^/ /
18710 s/ -I/ $isystem/g
18711 s/^ //
18712 "
18713 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18714 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18716 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18717 succeeded=yes
18718 else
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720 $as_echo "no" >&6; }
18721 GSETTINGS_CFLAGS=""
18722 GSETTINGS_LIBS=""
18723 ## If we have a custom action on failure, don't print errors, but
18724 ## do set a variable so people can do so.
18725 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18726
18727 fi
18728
18729
18730
18731 else
18732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18734 fi
18735 fi
18736
18737 if test $succeeded = yes; then
18738 HAVE_GSETTINGS=yes
18739 else
18740 HAVE_GSETTINGS=no
18741 fi
18742
18743 if test "$HAVE_GSETTINGS" = "yes"; then
18744
18745 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18746
18747 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
18748 SETTINGS_LIBS="$GSETTINGS_LIBS"
18749 fi
18750 fi
18751
18752 HAVE_GCONF=no
18753 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18754
18755 succeeded=no
18756
18757 if test "$PKG_CONFIG" = "no" ; then
18758 HAVE_GCONF=no
18759 else
18760 PKG_CONFIG_MIN_VERSION=0.9.0
18761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18763 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18764
18765 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18766 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18767 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18768 edit_cflags="
18769 s,///*,/,g
18770 s/^/ /
18771 s/ -I/ $isystem/g
18772 s/^ //
18773 "
18774 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18775 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18777 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18778 succeeded=yes
18779 else
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781 $as_echo "no" >&6; }
18782 GCONF_CFLAGS=""
18783 GCONF_LIBS=""
18784 ## If we have a custom action on failure, don't print errors, but
18785 ## do set a variable so people can do so.
18786 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18787
18788 fi
18789
18790
18791
18792 else
18793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18795 fi
18796 fi
18797
18798 if test $succeeded = yes; then
18799 HAVE_GCONF=yes
18800 else
18801 HAVE_GCONF=no
18802 fi
18803
18804 if test "$HAVE_GCONF" = yes; then
18805
18806 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18807
18808 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18809 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
18810 fi
18811 fi
18812
18813 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
18814 SAVE_CFLAGS="$CFLAGS"
18815 SAVE_LIBS="$LIBS"
18816 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
18817 LIBS="$SETTINGS_LIBS $LIBS"
18818 for ac_func in g_type_init
18819 do :
18820 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18821 if test "x$ac_cv_func_g_type_init" = x""yes; then :
18822 cat >>confdefs.h <<_ACEOF
18823 #define HAVE_G_TYPE_INIT 1
18824 _ACEOF
18825
18826 fi
18827 done
18828
18829 CFLAGS="$SAVE_CFLAGS"
18830 LIBS="$SAVE_LIBS"
18831 fi
18832
18833
18834
18835
18836 HAVE_LIBSELINUX=no
18837 LIBSELINUX_LIBS=
18838 if test "${with_selinux}" = "yes"; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18840 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18841 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18842 $as_echo_n "(cached) " >&6
18843 else
18844 ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-lselinux $LIBS"
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char lgetfilecon ();
18856 int
18857 main ()
18858 {
18859 return lgetfilecon ();
18860 ;
18861 return 0;
18862 }
18863 _ACEOF
18864 if ac_fn_c_try_link "$LINENO"; then :
18865 ac_cv_lib_selinux_lgetfilecon=yes
18866 else
18867 ac_cv_lib_selinux_lgetfilecon=no
18868 fi
18869 rm -f core conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18871 LIBS=$ac_check_lib_save_LIBS
18872 fi
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18874 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18875 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
18876 HAVE_LIBSELINUX=yes
18877 else
18878 HAVE_LIBSELINUX=no
18879 fi
18880
18881 if test "$HAVE_LIBSELINUX" = yes; then
18882
18883 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18884
18885 LIBSELINUX_LIBS=-lselinux
18886 fi
18887 fi
18888
18889
18890 HAVE_GNUTLS=no
18891 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
18892 if test "${with_gnutls}" = "yes" ; then
18893
18894 succeeded=no
18895
18896 if test "$PKG_CONFIG" = "no" ; then
18897 HAVE_GNUTLS=no
18898 else
18899 PKG_CONFIG_MIN_VERSION=0.9.0
18900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18902 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18903
18904 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18905 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18906 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18907 edit_cflags="
18908 s,///*,/,g
18909 s/^/ /
18910 s/ -I/ $isystem/g
18911 s/^ //
18912 "
18913 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18914 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18916 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18917 succeeded=yes
18918 else
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18920 $as_echo "no" >&6; }
18921 LIBGNUTLS_CFLAGS=""
18922 LIBGNUTLS_LIBS=""
18923 ## If we have a custom action on failure, don't print errors, but
18924 ## do set a variable so people can do so.
18925 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18926
18927 fi
18928
18929
18930
18931 else
18932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18934 fi
18935 fi
18936
18937 if test $succeeded = yes; then
18938 HAVE_GNUTLS=yes
18939 else
18940 HAVE_GNUTLS=no
18941 fi
18942
18943 if test "${HAVE_GNUTLS}" = "yes"; then
18944
18945 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18946
18947 fi
18948
18949 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
18950 LIBS="$LIBGNUTLS_LIBS $LIBS"
18951 for ac_func in gnutls_certificate_set_verify_function
18952 do :
18953 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18954 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
18955 cat >>confdefs.h <<_ACEOF
18956 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
18957 _ACEOF
18958 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
18959 fi
18960 done
18961
18962
18963 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
18964
18965 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
18966
18967 fi
18968 fi
18969
18970
18971
18972
18973 HAVE_XAW3D=no
18974 LUCID_LIBW=
18975 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
18976 if test "$with_xaw3d" != no; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
18978 $as_echo_n "checking for xaw3d... " >&6; }
18979 if test "${emacs_cv_xaw3d+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18981 else
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984
18985 #include <X11/Intrinsic.h>
18986 #include <X11/Xaw3d/Simple.h>
18987 int
18988 main ()
18989 {
18990
18991 ;
18992 return 0;
18993 }
18994 _ACEOF
18995 if ac_fn_c_try_link "$LINENO"; then :
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
18997 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
18998 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
18999 $as_echo_n "(cached) " >&6
19000 else
19001 ac_check_lib_save_LIBS=$LIBS
19002 LIBS="-lXaw3d $LIBS"
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char XawScrollbarSetThumb ();
19013 int
19014 main ()
19015 {
19016 return XawScrollbarSetThumb ();
19017 ;
19018 return 0;
19019 }
19020 _ACEOF
19021 if ac_fn_c_try_link "$LINENO"; then :
19022 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
19023 else
19024 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
19025 fi
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19029 fi
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19031 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19032 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
19033 emacs_cv_xaw3d=yes
19034 else
19035 emacs_cv_xaw3d=no
19036 fi
19037
19038 else
19039 emacs_cv_xaw3d=no
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 fi
19044
19045 else
19046 emacs_cv_xaw3d=no
19047 fi
19048 if test $emacs_cv_xaw3d = yes; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19050 $as_echo "yes; using Lucid toolkit" >&6; }
19051 USE_X_TOOLKIT=LUCID
19052 HAVE_XAW3D=yes
19053 LUCID_LIBW=-lXaw3d
19054
19055 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19056
19057 else
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19061 $as_echo_n "checking for libXaw... " >&6; }
19062 if test "${emacs_cv_xaw+set}" = set; then :
19063 $as_echo_n "(cached) " >&6
19064 else
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19067
19068 #include <X11/Intrinsic.h>
19069 #include <X11/Xaw/Simple.h>
19070 int
19071 main ()
19072 {
19073
19074 ;
19075 return 0;
19076 }
19077 _ACEOF
19078 if ac_fn_c_try_link "$LINENO"; then :
19079 emacs_cv_xaw=yes
19080 else
19081 emacs_cv_xaw=no
19082 fi
19083 rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085 fi
19086
19087 if test $emacs_cv_xaw = yes; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19089 $as_echo "yes; using Lucid toolkit" >&6; }
19090 USE_X_TOOLKIT=LUCID
19091 LUCID_LIBW=-lXaw
19092 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
19093 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19094 else
19095 as_fn_error "No X toolkit could be found.
19096 If you are sure you want Emacs compiled without an X toolkit, pass
19097 --with-x-toolkit=no
19098 to configure. Otherwise, install the development libraries for the toolkit
19099 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19100 fi
19101 fi
19102 fi
19103
19104 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
19105
19106 LIBXTR6=
19107 if test "${USE_X_TOOLKIT}" != "none"; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19109 $as_echo_n "checking X11 toolkit version... " >&6; }
19110 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19111 $as_echo_n "(cached) " >&6
19112 else
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115 #include <X11/Intrinsic.h>
19116 int
19117 main ()
19118 {
19119 #if XtSpecificationRelease < 6
19120 fail;
19121 #endif
19122
19123 ;
19124 return 0;
19125 }
19126 _ACEOF
19127 if ac_fn_c_try_link "$LINENO"; then :
19128 emacs_cv_x11_toolkit_version_6=yes
19129 else
19130 emacs_cv_x11_toolkit_version_6=no
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134 fi
19135
19136 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
19137 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19139 $as_echo "6 or newer" >&6; }
19140
19141 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19142
19143 LIBXTR6="-lSM -lICE"
19144 case "$opsys" in
19145 ## Use libw.a along with X11R6 Xt.
19146 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
19147 esac
19148 else
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19150 $as_echo "before 6" >&6; }
19151 fi
19152
19153 OLDLIBS="$LIBS"
19154 if test x$HAVE_X11XTR6 = xyes; then
19155 LIBS="-lXt -lSM -lICE $LIBS"
19156 else
19157 LIBS="-lXt $LIBS"
19158 fi
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19160 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19161 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19162 $as_echo_n "(cached) " >&6
19163 else
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lXmu $LIBS"
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19168
19169 /* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19172 #ifdef __cplusplus
19173 extern "C"
19174 #endif
19175 char XmuConvertStandardSelection ();
19176 int
19177 main ()
19178 {
19179 return XmuConvertStandardSelection ();
19180 ;
19181 return 0;
19182 }
19183 _ACEOF
19184 if ac_fn_c_try_link "$LINENO"; then :
19185 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
19186 else
19187 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
19188 fi
19189 rm -f core conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
19191 LIBS=$ac_check_lib_save_LIBS
19192 fi
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19194 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19195 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
19196 cat >>confdefs.h <<_ACEOF
19197 #define HAVE_LIBXMU 1
19198 _ACEOF
19199
19200 LIBS="-lXmu $LIBS"
19201
19202 fi
19203
19204 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
19205 fi
19206
19207
19208 LIBXMU=-lXmu
19209 case $opsys in
19210 ## These systems don't supply Xmu.
19211 hpux* | aix4-2 )
19212 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
19213 ;;
19214 esac
19215
19216
19217 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19218 if test "${HAVE_X11}" = "yes"; then
19219 if test "${USE_X_TOOLKIT}" != "none"; then
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19221 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19222 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19223 $as_echo_n "(cached) " >&6
19224 else
19225 ac_check_lib_save_LIBS=$LIBS
19226 LIBS="-lXext $LIBS"
19227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h. */
19229
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19233 #ifdef __cplusplus
19234 extern "C"
19235 #endif
19236 char XShapeQueryExtension ();
19237 int
19238 main ()
19239 {
19240 return XShapeQueryExtension ();
19241 ;
19242 return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_link "$LINENO"; then :
19246 ac_cv_lib_Xext_XShapeQueryExtension=yes
19247 else
19248 ac_cv_lib_Xext_XShapeQueryExtension=no
19249 fi
19250 rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19252 LIBS=$ac_check_lib_save_LIBS
19253 fi
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19255 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19256 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
19257 cat >>confdefs.h <<_ACEOF
19258 #define HAVE_LIBXEXT 1
19259 _ACEOF
19260
19261 LIBS="-lXext $LIBS"
19262
19263 fi
19264
19265 fi
19266 fi
19267
19268 LIBXP=
19269 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19271 $as_echo_n "checking for Motif version 2.1... " >&6; }
19272 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19274 else
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 #include <Xm/Xm.h>
19278 int
19279 main ()
19280 {
19281 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19282 int x = 5;
19283 #else
19284 Motif version prior to 2.1.
19285 #endif
19286 ;
19287 return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_compile "$LINENO"; then :
19291 emacs_cv_motif_version_2_1=yes
19292 else
19293 emacs_cv_motif_version_2_1=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19298 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19299 if test $emacs_cv_motif_version_2_1 = yes; then
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19301 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19302 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19303 $as_echo_n "(cached) " >&6
19304 else
19305 ac_check_lib_save_LIBS=$LIBS
19306 LIBS="-lXp $LIBS"
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19309
19310 /* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 char XpCreateContext ();
19317 int
19318 main ()
19319 {
19320 return XpCreateContext ();
19321 ;
19322 return 0;
19323 }
19324 _ACEOF
19325 if ac_fn_c_try_link "$LINENO"; then :
19326 ac_cv_lib_Xp_XpCreateContext=yes
19327 else
19328 ac_cv_lib_Xp_XpCreateContext=no
19329 fi
19330 rm -f core conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19333 fi
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19335 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19336 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
19337 LIBXP=-lXp
19338 fi
19339
19340 else
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19342 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19343 if test "${emacs_cv_lesstif+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 # We put this in CFLAGS temporarily to precede other -I options
19347 # that might be in CFLAGS temporarily.
19348 # We put this in CPPFLAGS where it precedes the other -I options.
19349 OLD_CPPFLAGS=$CPPFLAGS
19350 OLD_CFLAGS=$CFLAGS
19351 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19352 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19356 int
19357 main ()
19358 {
19359 int x = 5;
19360 ;
19361 return 0;
19362 }
19363 _ACEOF
19364 if ac_fn_c_try_compile "$LINENO"; then :
19365 emacs_cv_lesstif=yes
19366 else
19367 emacs_cv_lesstif=no
19368 fi
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19370 fi
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19372 $as_echo "$emacs_cv_lesstif" >&6; }
19373 if test $emacs_cv_lesstif = yes; then
19374 # Make sure this -I option remains in CPPFLAGS after it is set
19375 # back to REAL_CPPFLAGS.
19376 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19377 # have those other -I options anyway. Ultimately, having this
19378 # directory ultimately in CPPFLAGS will be enough.
19379 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19380 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19381 else
19382 CFLAGS=$OLD_CFLAGS
19383 CPPFLAGS=$OLD_CPPFLAGS
19384 fi
19385 fi
19386 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19387 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
19388
19389 else
19390 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
19391 fi
19392
19393
19394 fi
19395
19396
19397 USE_TOOLKIT_SCROLL_BARS=no
19398 if test "${with_toolkit_scroll_bars}" != "no"; then
19399 if test "${USE_X_TOOLKIT}" != "none"; then
19400 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19401 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19402
19403 HAVE_XAW3D=no
19404 USE_TOOLKIT_SCROLL_BARS=yes
19405 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
19406 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19407
19408 USE_TOOLKIT_SCROLL_BARS=yes
19409 fi
19410 elif test "${HAVE_GTK}" = "yes"; then
19411 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19412
19413 USE_TOOLKIT_SCROLL_BARS=yes
19414 elif test "${HAVE_NS}" = "yes"; then
19415 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19416
19417 USE_TOOLKIT_SCROLL_BARS=yes
19418 fi
19419 fi
19420
19421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422 /* end confdefs.h. */
19423
19424 #include <X11/Xlib.h>
19425 #include <X11/Xresource.h>
19426 int
19427 main ()
19428 {
19429 XIMProc callback;
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 if ac_fn_c_try_compile "$LINENO"; then :
19435 HAVE_XIM=yes
19436
19437 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19438
19439 else
19440 HAVE_XIM=no
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443
19444
19445 if test "${with_xim}" != "no"; then
19446
19447 $as_echo "#define USE_XIM 1" >>confdefs.h
19448
19449 fi
19450
19451
19452 if test "${HAVE_XIM}" != "no"; then
19453 late_CFLAGS=$CFLAGS
19454 if test "$GCC" = yes; then
19455 CFLAGS="$CFLAGS --pedantic-errors"
19456 fi
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19459
19460 #include <X11/Xlib.h>
19461 #include <X11/Xresource.h>
19462 int
19463 main ()
19464 {
19465 Display *display;
19466 XrmDatabase db;
19467 char *res_name;
19468 char *res_class;
19469 XIMProc callback;
19470 XPointer *client_data;
19471 #ifndef __GNUC__
19472 /* If we're not using GCC, it's probably not XFree86, and this is
19473 probably right, but we can't use something like --pedantic-errors. */
19474 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19475 char*, XIMProc, XPointer*);
19476 #endif
19477 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19478 client_data);
19479 ;
19480 return 0;
19481 }
19482 _ACEOF
19483 if ac_fn_c_try_compile "$LINENO"; then :
19484 emacs_cv_arg6_star=yes
19485 fi
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 if test "$emacs_cv_arg6_star" = yes; then
19488 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19489
19490 else
19491 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19492
19493 fi
19494 CFLAGS=$late_CFLAGS
19495 fi
19496
19497 ### Start of font-backend (under any platform) section.
19498 # (nothing here yet -- this is a placeholder)
19499 ### End of font-backend (under any platform) section.
19500
19501 ### Start of font-backend (under X11) section.
19502 if test "${HAVE_X11}" = "yes"; then
19503
19504 succeeded=no
19505
19506 if test "$PKG_CONFIG" = "no" ; then
19507 HAVE_FC=no
19508 else
19509 PKG_CONFIG_MIN_VERSION=0.9.0
19510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19512 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19513
19514 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19515 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19516 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19517 edit_cflags="
19518 s,///*,/,g
19519 s/^/ /
19520 s/ -I/ $isystem/g
19521 s/^ //
19522 "
19523 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19524 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19526 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19527 succeeded=yes
19528 else
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19530 $as_echo "no" >&6; }
19531 FONTCONFIG_CFLAGS=""
19532 FONTCONFIG_LIBS=""
19533 ## If we have a custom action on failure, don't print errors, but
19534 ## do set a variable so people can do so.
19535 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19536
19537 fi
19538
19539
19540
19541 else
19542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19544 fi
19545 fi
19546
19547 if test $succeeded = yes; then
19548 HAVE_FC=yes
19549 else
19550 HAVE_FC=no
19551 fi
19552
19553
19554 ## Use -lXft if available, unless `--with-xft=no'.
19555 HAVE_XFT=maybe
19556 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
19557 with_xft="no";
19558 fi
19559 if test "x${with_xft}" != "xno"; then
19560
19561
19562 succeeded=no
19563
19564 if test "$PKG_CONFIG" = "no" ; then
19565 HAVE_XFT=no
19566 else
19567 PKG_CONFIG_MIN_VERSION=0.9.0
19568 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19570 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19571
19572 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19573 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19574 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19575 edit_cflags="
19576 s,///*,/,g
19577 s/^/ /
19578 s/ -I/ $isystem/g
19579 s/^ //
19580 "
19581 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19582 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19584 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19585 succeeded=yes
19586 else
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19588 $as_echo "no" >&6; }
19589 XFT_CFLAGS=""
19590 XFT_LIBS=""
19591 ## If we have a custom action on failure, don't print errors, but
19592 ## do set a variable so people can do so.
19593 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19594
19595 fi
19596
19597
19598
19599 else
19600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19602 fi
19603 fi
19604
19605 if test $succeeded = yes; then
19606 :
19607 else
19608 HAVE_XFT=no
19609 fi
19610
19611 ## Because xftfont.c uses XRenderQueryExtension, we also
19612 ## need to link to -lXrender.
19613 HAVE_XRENDER=no
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19615 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19616 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19617 $as_echo_n "(cached) " >&6
19618 else
19619 ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lXrender $LIBS"
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19623
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 char XRenderQueryExtension ();
19631 int
19632 main ()
19633 {
19634 return XRenderQueryExtension ();
19635 ;
19636 return 0;
19637 }
19638 _ACEOF
19639 if ac_fn_c_try_link "$LINENO"; then :
19640 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19641 else
19642 ac_cv_lib_Xrender_XRenderQueryExtension=no
19643 fi
19644 rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19647 fi
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19649 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19650 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19651 HAVE_XRENDER=yes
19652 fi
19653
19654 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
19655 OLD_CPPFLAGS="$CPPFLAGS"
19656 OLD_CFLAGS="$CFLAGS"
19657 OLD_LIBS="$LIBS"
19658 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
19659 CFLAGS="$CFLAGS $XFT_CFLAGS"
19660 XFT_LIBS="-lXrender $XFT_LIBS"
19661 LIBS="$XFT_LIBS $LIBS"
19662 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19663 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19665 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19666 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19667 $as_echo_n "(cached) " >&6
19668 else
19669 ac_check_lib_save_LIBS=$LIBS
19670 LIBS="-lXft $XFT_LIBS $LIBS"
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673
19674 /* Override any GCC internal prototype to avoid an error.
19675 Use char because int might match the return type of a GCC
19676 builtin and then its argument prototype would still apply. */
19677 #ifdef __cplusplus
19678 extern "C"
19679 #endif
19680 char XftFontOpen ();
19681 int
19682 main ()
19683 {
19684 return XftFontOpen ();
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"; then :
19690 ac_cv_lib_Xft_XftFontOpen=yes
19691 else
19692 ac_cv_lib_Xft_XftFontOpen=no
19693 fi
19694 rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext conftest.$ac_ext
19696 LIBS=$ac_check_lib_save_LIBS
19697 fi
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19699 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19700 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
19701 HAVE_XFT=yes
19702 fi
19703
19704 fi
19705
19706
19707
19708 if test "${HAVE_XFT}" = "yes"; then
19709
19710 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19711
19712
19713 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
19714 else
19715 CPPFLAGS="$OLD_CPPFLAGS"
19716 CFLAGS="$OLD_CFLAGS"
19717 LIBS="$OLD_LIBS"
19718 fi # "${HAVE_XFT}" = "yes"
19719 fi # "$HAVE_XFT" != no
19720 fi # "x${with_xft}" != "xno"
19721
19722 ## We used to allow building with FreeType and without Xft.
19723 ## However, the ftx font backend driver is not in good shape.
19724 if test "$HAVE_XFT" != "yes"; then
19725 HAVE_XFT=no
19726 HAVE_FREETYPE=no
19727 else
19728
19729 succeeded=no
19730
19731 if test "$PKG_CONFIG" = "no" ; then
19732 HAVE_FREETYPE=no
19733 else
19734 PKG_CONFIG_MIN_VERSION=0.9.0
19735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19737 $as_echo_n "checking for freetype2... " >&6; }
19738
19739 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19740 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19741 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19742 edit_cflags="
19743 s,///*,/,g
19744 s/^/ /
19745 s/ -I/ $isystem/g
19746 s/^ //
19747 "
19748 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19749 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19751 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19752 succeeded=yes
19753 else
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755 $as_echo "no" >&6; }
19756 FREETYPE_CFLAGS=""
19757 FREETYPE_LIBS=""
19758 ## If we have a custom action on failure, don't print errors, but
19759 ## do set a variable so people can do so.
19760 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19761
19762 fi
19763
19764
19765
19766 else
19767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19769 fi
19770 fi
19771
19772 if test $succeeded = yes; then
19773 HAVE_FREETYPE=yes
19774 else
19775 HAVE_FREETYPE=no
19776 fi
19777
19778
19779 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
19780 fi
19781
19782 HAVE_LIBOTF=no
19783 if test "${HAVE_FREETYPE}" = "yes"; then
19784
19785 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19786
19787 if test "${with_libotf}" != "no"; then
19788
19789 succeeded=no
19790
19791 if test "$PKG_CONFIG" = "no" ; then
19792 HAVE_LIBOTF=no
19793 else
19794 PKG_CONFIG_MIN_VERSION=0.9.0
19795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19797 $as_echo_n "checking for libotf... " >&6; }
19798
19799 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19800 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19801 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19802 edit_cflags="
19803 s,///*,/,g
19804 s/^/ /
19805 s/ -I/ $isystem/g
19806 s/^ //
19807 "
19808 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19809 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19811 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19812 succeeded=yes
19813 else
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19815 $as_echo "no" >&6; }
19816 LIBOTF_CFLAGS=""
19817 LIBOTF_LIBS=""
19818 ## If we have a custom action on failure, don't print errors, but
19819 ## do set a variable so people can do so.
19820 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19821
19822 fi
19823
19824
19825
19826 else
19827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19829 fi
19830 fi
19831
19832 if test $succeeded = yes; then
19833 HAVE_LIBOTF=yes
19834 else
19835 HAVE_LIBOTF=no
19836 fi
19837
19838 if test "$HAVE_LIBOTF" = "yes"; then
19839
19840 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19841
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19843 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19844 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19845 $as_echo_n "(cached) " >&6
19846 else
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lotf $LIBS"
19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h. */
19851
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19855 #ifdef __cplusplus
19856 extern "C"
19857 #endif
19858 char OTF_get_variation_glyphs ();
19859 int
19860 main ()
19861 {
19862 return OTF_get_variation_glyphs ();
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 if ac_fn_c_try_link "$LINENO"; then :
19868 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
19869 else
19870 ac_cv_lib_otf_OTF_get_variation_glyphs=no
19871 fi
19872 rm -f core conftest.err conftest.$ac_objext \
19873 conftest$ac_exeext conftest.$ac_ext
19874 LIBS=$ac_check_lib_save_LIBS
19875 fi
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19877 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19878 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
19879 HAVE_OTF_GET_VARIATION_GLYPHS=yes
19880 else
19881 HAVE_OTF_GET_VARIATION_GLYPHS=no
19882 fi
19883
19884 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19885
19886 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19887
19888 fi
19889 fi
19890 fi
19891 fi
19892
19893 HAVE_M17N_FLT=no
19894 if test "${HAVE_LIBOTF}" = yes; then
19895 if test "${with_m17n_flt}" != "no"; then
19896
19897 succeeded=no
19898
19899 if test "$PKG_CONFIG" = "no" ; then
19900 HAVE_M17N_FLT=no
19901 else
19902 PKG_CONFIG_MIN_VERSION=0.9.0
19903 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19905 $as_echo_n "checking for m17n-flt... " >&6; }
19906
19907 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19908 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19909 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19910 edit_cflags="
19911 s,///*,/,g
19912 s/^/ /
19913 s/ -I/ $isystem/g
19914 s/^ //
19915 "
19916 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19917 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19919 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19920 succeeded=yes
19921 else
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923 $as_echo "no" >&6; }
19924 M17N_FLT_CFLAGS=""
19925 M17N_FLT_LIBS=""
19926 ## If we have a custom action on failure, don't print errors, but
19927 ## do set a variable so people can do so.
19928 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19929
19930 fi
19931
19932
19933
19934 else
19935 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19936 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19937 fi
19938 fi
19939
19940 if test $succeeded = yes; then
19941 HAVE_M17N_FLT=yes
19942 else
19943 HAVE_M17N_FLT=no
19944 fi
19945
19946 if test "$HAVE_M17N_FLT" = "yes"; then
19947
19948 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19949
19950 fi
19951 fi
19952 fi
19953 else
19954 HAVE_XFT=no
19955 HAVE_FREETYPE=no
19956 HAVE_LIBOTF=no
19957 HAVE_M17N_FLT=no
19958 fi
19959
19960 ### End of font-backend (under X11) section.
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971 ### Use -lXpm if available, unless `--with-xpm=no'.
19972 HAVE_XPM=no
19973 LIBXPM=
19974 if test "${HAVE_X11}" = "yes"; then
19975 if test "${with_xpm}" != "no"; then
19976 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
19977 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
19979 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
19980 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 ac_check_lib_save_LIBS=$LIBS
19984 LIBS="-lXpm -lX11 $LIBS"
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19987
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char XpmReadFileToPixmap ();
19995 int
19996 main ()
19997 {
19998 return XpmReadFileToPixmap ();
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 if ac_fn_c_try_link "$LINENO"; then :
20004 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
20005 else
20006 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
20007 fi
20008 rm -f core conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
20010 LIBS=$ac_check_lib_save_LIBS
20011 fi
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20013 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20014 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
20015 HAVE_XPM=yes
20016 fi
20017
20018 fi
20019
20020
20021 if test "${HAVE_XPM}" = "yes"; then
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20023 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20026 #include "X11/xpm.h"
20027 #ifndef XpmReturnAllocPixels
20028 no_return_alloc_pixels
20029 #endif
20030
20031 _ACEOF
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
20034 HAVE_XPM=no
20035 else
20036 HAVE_XPM=yes
20037 fi
20038 rm -f conftest*
20039
20040
20041 if test "${HAVE_XPM}" = "yes"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20043 $as_echo "yes" >&6; }
20044 else
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20047 fi
20048 fi
20049 fi
20050
20051 if test "${HAVE_XPM}" = "yes"; then
20052
20053 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20054
20055 LIBXPM=-lXpm
20056 fi
20057 fi
20058
20059
20060 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20061 HAVE_JPEG=no
20062 LIBJPEG=
20063 if test "${HAVE_X11}" = "yes"; then
20064 if test "${with_jpeg}" != "no"; then
20065 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20066 if test "x$ac_cv_header_jerror_h" = x""yes; then :
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20068 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20069 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072 ac_check_lib_save_LIBS=$LIBS
20073 LIBS="-ljpeg $LIBS"
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20076
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char jpeg_destroy_compress ();
20084 int
20085 main ()
20086 {
20087 return jpeg_destroy_compress ();
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
20094 else
20095 ac_cv_lib_jpeg_jpeg_destroy_compress=no
20096 fi
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20100 fi
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20102 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20103 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
20104 HAVE_JPEG=yes
20105 fi
20106
20107 fi
20108
20109
20110 fi
20111
20112 if test "${HAVE_JPEG}" = "yes"; then
20113 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20114
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117 #include <jpeglib.h>
20118 version=JPEG_LIB_VERSION
20119
20120 _ACEOF
20121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20122 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
20123 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20124
20125 else
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20127 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20128 HAVE_JPEG=no
20129 fi
20130 rm -f conftest*
20131
20132 fi
20133 if test "${HAVE_JPEG}" = "yes"; then
20134 LIBJPEG=-ljpeg
20135 fi
20136 fi
20137
20138
20139 ### Use -lpng if available, unless `--with-png=no'.
20140 HAVE_PNG=no
20141 LIBPNG=
20142 if test "${HAVE_X11}" = "yes"; then
20143 if test "${with_png}" != "no"; then
20144 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20145 # in /usr/include/libpng.
20146 for ac_header in png.h libpng/png.h
20147 do :
20148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20150 eval as_val=\$$as_ac_Header
20151 if test "x$as_val" = x""yes; then :
20152 cat >>confdefs.h <<_ACEOF
20153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20154 _ACEOF
20155
20156 fi
20157
20158 done
20159
20160 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20162 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20163 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20164 $as_echo_n "(cached) " >&6
20165 else
20166 ac_check_lib_save_LIBS=$LIBS
20167 LIBS="-lpng -lz -lm $LIBS"
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char png_get_channels ();
20178 int
20179 main ()
20180 {
20181 return png_get_channels ();
20182 ;
20183 return 0;
20184 }
20185 _ACEOF
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 ac_cv_lib_png_png_get_channels=yes
20188 else
20189 ac_cv_lib_png_png_get_channels=no
20190 fi
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20194 fi
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20196 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20197 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
20198 HAVE_PNG=yes
20199 fi
20200
20201 fi
20202 fi
20203
20204 if test "${HAVE_PNG}" = "yes"; then
20205
20206 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20207
20208 LIBPNG="-lpng -lz -lm"
20209 fi
20210 fi
20211
20212
20213 ### Use -ltiff if available, unless `--with-tiff=no'.
20214 HAVE_TIFF=no
20215 LIBTIFF=
20216 if test "${HAVE_X11}" = "yes"; then
20217 if test "${with_tiff}" != "no"; then
20218 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20219 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
20220 tifflibs="-lz -lm"
20221 # At least one tiff package requires the jpeg library.
20222 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20224 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20225 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20226 $as_echo_n "(cached) " >&6
20227 else
20228 ac_check_lib_save_LIBS=$LIBS
20229 LIBS="-ltiff $tifflibs $LIBS"
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20232
20233 /* Override any GCC internal prototype to avoid an error.
20234 Use char because int might match the return type of a GCC
20235 builtin and then its argument prototype would still apply. */
20236 #ifdef __cplusplus
20237 extern "C"
20238 #endif
20239 char TIFFGetVersion ();
20240 int
20241 main ()
20242 {
20243 return TIFFGetVersion ();
20244 ;
20245 return 0;
20246 }
20247 _ACEOF
20248 if ac_fn_c_try_link "$LINENO"; then :
20249 ac_cv_lib_tiff_TIFFGetVersion=yes
20250 else
20251 ac_cv_lib_tiff_TIFFGetVersion=no
20252 fi
20253 rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20256 fi
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20258 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20259 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
20260 HAVE_TIFF=yes
20261 fi
20262
20263 fi
20264
20265
20266 fi
20267
20268 if test "${HAVE_TIFF}" = "yes"; then
20269
20270 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20271
20272 LIBTIFF=-ltiff
20273 fi
20274 fi
20275
20276
20277 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20278 HAVE_GIF=no
20279 LIBGIF=
20280 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20281 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20282 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
20283 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20284 # Earlier versions can crash Emacs.
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20286 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20287 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 ac_check_lib_save_LIBS=$LIBS
20291 LIBS="-lgif $LIBS"
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20294
20295 /* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20298 #ifdef __cplusplus
20299 extern "C"
20300 #endif
20301 char EGifPutExtensionLast ();
20302 int
20303 main ()
20304 {
20305 return EGifPutExtensionLast ();
20306 ;
20307 return 0;
20308 }
20309 _ACEOF
20310 if ac_fn_c_try_link "$LINENO"; then :
20311 ac_cv_lib_gif_EGifPutExtensionLast=yes
20312 else
20313 ac_cv_lib_gif_EGifPutExtensionLast=no
20314 fi
20315 rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20317 LIBS=$ac_check_lib_save_LIBS
20318 fi
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20320 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20321 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
20322 HAVE_GIF=yes
20323 else
20324 HAVE_GIF=maybe
20325 fi
20326
20327 fi
20328
20329
20330
20331 if test "$HAVE_GIF" = yes; then
20332 LIBGIF=-lgif
20333 elif test "$HAVE_GIF" = maybe; then
20334 # If gif_lib.h but no libgif, try libungif.
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20336 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20337 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20338 $as_echo_n "(cached) " >&6
20339 else
20340 ac_check_lib_save_LIBS=$LIBS
20341 LIBS="-lungif $LIBS"
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20344
20345 /* Override any GCC internal prototype to avoid an error.
20346 Use char because int might match the return type of a GCC
20347 builtin and then its argument prototype would still apply. */
20348 #ifdef __cplusplus
20349 extern "C"
20350 #endif
20351 char EGifPutExtensionLast ();
20352 int
20353 main ()
20354 {
20355 return EGifPutExtensionLast ();
20356 ;
20357 return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_link "$LINENO"; then :
20361 ac_cv_lib_ungif_EGifPutExtensionLast=yes
20362 else
20363 ac_cv_lib_ungif_EGifPutExtensionLast=no
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext conftest.$ac_ext
20367 LIBS=$ac_check_lib_save_LIBS
20368 fi
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20370 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20371 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
20372 HAVE_GIF=yes
20373 else
20374 HAVE_GIF=no
20375 fi
20376
20377 test "$HAVE_GIF" = yes && LIBGIF=-lungif
20378 fi
20379
20380 if test "${HAVE_GIF}" = "yes"; then
20381
20382 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20383
20384 fi
20385 fi
20386
20387
20388 if test "${HAVE_X11}" = "yes"; then
20389 MISSING=""
20390 WITH_NO=""
20391 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20392 MISSING="libXpm" && WITH_NO="--with-xpm=no"
20393 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20394 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
20395 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20396 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
20397 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20398 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
20399 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20400 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
20401
20402 if test "X${MISSING}" != X; then
20403 as_fn_error "The following required libraries were not found:
20404 $MISSING
20405 Maybe some development libraries/packages are missing?
20406 If you don't want to link with them give
20407 $WITH_NO
20408 as options to configure" "$LINENO" 5
20409 fi
20410 fi
20411
20412 ### Use -lgpm if available, unless `--with-gpm=no'.
20413 HAVE_GPM=no
20414 LIBGPM=
20415 if test "${with_gpm}" != "no"; then
20416 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20417 if test "x$ac_cv_header_gpm_h" = x""yes; then :
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20419 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20420 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20422 else
20423 ac_check_lib_save_LIBS=$LIBS
20424 LIBS="-lgpm $LIBS"
20425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20427
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20431 #ifdef __cplusplus
20432 extern "C"
20433 #endif
20434 char Gpm_Open ();
20435 int
20436 main ()
20437 {
20438 return Gpm_Open ();
20439 ;
20440 return 0;
20441 }
20442 _ACEOF
20443 if ac_fn_c_try_link "$LINENO"; then :
20444 ac_cv_lib_gpm_Gpm_Open=yes
20445 else
20446 ac_cv_lib_gpm_Gpm_Open=no
20447 fi
20448 rm -f core conftest.err conftest.$ac_objext \
20449 conftest$ac_exeext conftest.$ac_ext
20450 LIBS=$ac_check_lib_save_LIBS
20451 fi
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20453 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20454 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
20455 HAVE_GPM=yes
20456 fi
20457
20458 fi
20459
20460
20461
20462 if test "${HAVE_GPM}" = "yes"; then
20463
20464 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20465
20466 LIBGPM=-lgpm
20467 fi
20468 fi
20469
20470
20471
20472
20473
20474
20475 GNUSTEP_CFLAGS=
20476 ### Use NeXTstep API to implement GUI.
20477 if test "${HAVE_NS}" = "yes"; then
20478
20479 $as_echo "#define HAVE_NS 1" >>confdefs.h
20480
20481 if test "${NS_IMPL_COCOA}" = "yes"; then
20482
20483 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20484
20485 fi
20486 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20487
20488 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20489
20490 # See also .m.o rule in Makefile.in */
20491 # FIXME: are all these flags really needed? Document here why. */
20492 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20493 ## Extra CFLAGS applied to src/*.m files.
20494 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"
20495 fi
20496 # We also have mouse menus.
20497 HAVE_MENUS=yes
20498 OTHER_FILES=ns-app
20499 fi
20500
20501
20502 ### Use session management (-lSM -lICE) if available
20503 HAVE_X_SM=no
20504 LIBXSM=
20505 if test "${HAVE_X11}" = "yes"; then
20506 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20507 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20509 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20510 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20511 $as_echo_n "(cached) " >&6
20512 else
20513 ac_check_lib_save_LIBS=$LIBS
20514 LIBS="-lSM -lICE $LIBS"
20515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20516 /* end confdefs.h. */
20517
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20521 #ifdef __cplusplus
20522 extern "C"
20523 #endif
20524 char SmcOpenConnection ();
20525 int
20526 main ()
20527 {
20528 return SmcOpenConnection ();
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 if ac_fn_c_try_link "$LINENO"; then :
20534 ac_cv_lib_SM_SmcOpenConnection=yes
20535 else
20536 ac_cv_lib_SM_SmcOpenConnection=no
20537 fi
20538 rm -f core conftest.err conftest.$ac_objext \
20539 conftest$ac_exeext conftest.$ac_ext
20540 LIBS=$ac_check_lib_save_LIBS
20541 fi
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20543 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20544 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
20545 HAVE_X_SM=yes
20546 fi
20547
20548 fi
20549
20550
20551
20552 if test "${HAVE_X_SM}" = "yes"; then
20553
20554 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20555
20556 LIBXSM="-lSM -lICE"
20557 case "$LIBS" in
20558 *-lSM*) ;;
20559 *) LIBS="$LIBXSM $LIBS" ;;
20560 esac
20561 fi
20562 fi
20563
20564
20565 ### Use libxml (-lxml2) if available
20566 HAVE_LIBXML2=no
20567 if test "${with_xml2}" != "no"; then
20568 ### I'm not sure what the version number should be, so I just guessed.
20569
20570 succeeded=no
20571
20572 if test "$PKG_CONFIG" = "no" ; then
20573 HAVE_LIBXML2=no
20574 else
20575 PKG_CONFIG_MIN_VERSION=0.9.0
20576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20578 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20579
20580 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20581 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20582 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20583 edit_cflags="
20584 s,///*,/,g
20585 s/^/ /
20586 s/ -I/ $isystem/g
20587 s/^ //
20588 "
20589 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20590 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20592 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20593 succeeded=yes
20594 else
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596 $as_echo "no" >&6; }
20597 LIBXML2_CFLAGS=""
20598 LIBXML2_LIBS=""
20599 ## If we have a custom action on failure, don't print errors, but
20600 ## do set a variable so people can do so.
20601 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20602
20603 fi
20604
20605
20606
20607 else
20608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20610 fi
20611 fi
20612
20613 if test $succeeded = yes; then
20614 HAVE_LIBXML2=yes
20615 else
20616 HAVE_LIBXML2=no
20617 fi
20618
20619 if test "${HAVE_LIBXML2}" = "yes"; then
20620 LIBS="$LIBXML2_LIBS $LIBS"
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20622 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20623 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20624 $as_echo_n "(cached) " >&6
20625 else
20626 ac_check_lib_save_LIBS=$LIBS
20627 LIBS="-lxml2 $LIBS"
20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20630
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20634 #ifdef __cplusplus
20635 extern "C"
20636 #endif
20637 char htmlReadMemory ();
20638 int
20639 main ()
20640 {
20641 return htmlReadMemory ();
20642 ;
20643 return 0;
20644 }
20645 _ACEOF
20646 if ac_fn_c_try_link "$LINENO"; then :
20647 ac_cv_lib_xml2_htmlReadMemory=yes
20648 else
20649 ac_cv_lib_xml2_htmlReadMemory=no
20650 fi
20651 rm -f core conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20654 fi
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20656 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20657 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
20658 HAVE_LIBXML2=yes
20659 else
20660 HAVE_LIBXML2=no
20661 fi
20662
20663 if test "${HAVE_LIBXML2}" = "yes"; then
20664
20665 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20666
20667 else
20668 LIBXML2_LIBS=""
20669 LIBXML2_CFLAGS=""
20670 fi
20671 fi
20672 fi
20673
20674
20675
20676 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20678 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20679 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20680 $as_echo_n "(cached) " >&6
20681 else
20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683 /* end confdefs.h. */
20684 #include <netdb.h>
20685 int
20686 main ()
20687 {
20688 return h_errno;
20689 ;
20690 return 0;
20691 }
20692 _ACEOF
20693 if ac_fn_c_try_link "$LINENO"; then :
20694 emacs_cv_netdb_declares_h_errno=yes
20695 else
20696 emacs_cv_netdb_declares_h_errno=no
20697 fi
20698 rm -f core conftest.err conftest.$ac_objext \
20699 conftest$ac_exeext conftest.$ac_ext
20700 fi
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20702 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20703 if test $emacs_cv_netdb_declares_h_errno = yes; then
20704
20705 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20706
20707 fi
20708
20709 # fmod, logb, and frexp are found in -lm on most systems.
20710 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20712 $as_echo_n "checking for sqrt in -lm... " >&6; }
20713 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20714 $as_echo_n "(cached) " >&6
20715 else
20716 ac_check_lib_save_LIBS=$LIBS
20717 LIBS="-lm $LIBS"
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20724 #ifdef __cplusplus
20725 extern "C"
20726 #endif
20727 char sqrt ();
20728 int
20729 main ()
20730 {
20731 return sqrt ();
20732 ;
20733 return 0;
20734 }
20735 _ACEOF
20736 if ac_fn_c_try_link "$LINENO"; then :
20737 ac_cv_lib_m_sqrt=yes
20738 else
20739 ac_cv_lib_m_sqrt=no
20740 fi
20741 rm -f core conftest.err conftest.$ac_objext \
20742 conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20744 fi
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20746 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20747 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
20748 cat >>confdefs.h <<_ACEOF
20749 #define HAVE_LIBM 1
20750 _ACEOF
20751
20752 LIBS="-lm $LIBS"
20753
20754 fi
20755
20756
20757 # Check for mail-locking functions in a "mail" library. Probably this should
20758 # have the same check as for liblockfile below.
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20760 $as_echo_n "checking for maillock in -lmail... " >&6; }
20761 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20763 else
20764 ac_check_lib_save_LIBS=$LIBS
20765 LIBS="-lmail $LIBS"
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768
20769 /* Override any GCC internal prototype to avoid an error.
20770 Use char because int might match the return type of a GCC
20771 builtin and then its argument prototype would still apply. */
20772 #ifdef __cplusplus
20773 extern "C"
20774 #endif
20775 char maillock ();
20776 int
20777 main ()
20778 {
20779 return maillock ();
20780 ;
20781 return 0;
20782 }
20783 _ACEOF
20784 if ac_fn_c_try_link "$LINENO"; then :
20785 ac_cv_lib_mail_maillock=yes
20786 else
20787 ac_cv_lib_mail_maillock=no
20788 fi
20789 rm -f core conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20792 fi
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20794 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20795 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
20796 have_mail=yes
20797 else
20798 have_mail=no
20799 fi
20800
20801 if test $have_mail = yes; then
20802 LIBS_MAIL=-lmail
20803 LIBS="$LIBS_MAIL $LIBS"
20804
20805 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20806
20807 else
20808 LIBS_MAIL=
20809 fi
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20811 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20812 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20814 else
20815 ac_check_lib_save_LIBS=$LIBS
20816 LIBS="-llockfile $LIBS"
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20819
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 char maillock ();
20827 int
20828 main ()
20829 {
20830 return maillock ();
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 if ac_fn_c_try_link "$LINENO"; then :
20836 ac_cv_lib_lockfile_maillock=yes
20837 else
20838 ac_cv_lib_lockfile_maillock=no
20839 fi
20840 rm -f core conftest.err conftest.$ac_objext \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20843 fi
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20845 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20846 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
20847 have_lockfile=yes
20848 else
20849 have_lockfile=no
20850 fi
20851
20852 if test $have_lockfile = yes; then
20853 LIBS_MAIL=-llockfile
20854 LIBS="$LIBS_MAIL $LIBS"
20855
20856 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20857
20858 else
20859 # If we have the shared liblockfile, assume we must use it for mail
20860 # locking (e.g. Debian). If we couldn't link against liblockfile
20861 # (no liblockfile.a installed), ensure that we don't need to.
20862 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20863 set dummy liblockfile.so; ac_word=$2
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20865 $as_echo_n "checking for $ac_word... " >&6; }
20866 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20869 if test -n "$liblockfile"; then
20870 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
20871 else
20872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20873 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20874 for as_dir in $as_dummy
20875 do
20876 IFS=$as_save_IFS
20877 test -z "$as_dir" && as_dir=.
20878 for ac_exec_ext in '' $ac_executable_extensions; do
20879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20880 ac_cv_prog_liblockfile="yes"
20881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20882 break 2
20883 fi
20884 done
20885 done
20886 IFS=$as_save_IFS
20887
20888 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
20889 fi
20890 fi
20891 liblockfile=$ac_cv_prog_liblockfile
20892 if test -n "$liblockfile"; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20894 $as_echo "$liblockfile" >&6; }
20895 else
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897 $as_echo "no" >&6; }
20898 fi
20899
20900
20901 if test $ac_cv_prog_liblockfile = yes; then
20902 as_fn_error "Shared liblockfile found but can't link against it.
20903 This probably means that movemail could lose mail.
20904 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20905 fi
20906 fi
20907
20908
20909
20910
20911
20912 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20913 ## interlock access to the mail spool. The alternative is a lock file named
20914 ## /usr/spool/mail/$USER.lock.
20915 mail_lock=no
20916 case "$opsys" in
20917 aix4-2) mail_lock="lockf" ;;
20918
20919 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
20920
20921 ## On GNU/Linux systems, both methods are used by various mail programs.
20922 ## I assume most people are using newer mailers that have heard of flock.
20923 ## Change this if you need to.
20924 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20925 ## configure gets the right answers, and that means *NOT* using flock.
20926 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20927 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20928 ## Debian maintainer hasn't provided a clean fix for Emacs.
20929 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20930 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20931 ## correct logic. -- fx
20932 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20933 ## liblockfile is a Free Software replacement for libmail, used on
20934 ## Debian systems and elsewhere. -rfr.
20935 gnu-*)
20936 mail_lock="flock"
20937 if test $have_mail = yes || test $have_lockfile = yes; then
20938 test $ac_cv_header_maillock_h = yes && mail_lock=no
20939 fi
20940 ;;
20941 esac
20942
20943 BLESSMAIL_TARGET=
20944 case "$mail_lock" in
20945 flock)
20946 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
20947 ;;
20948
20949 lockf)
20950 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
20951 ;;
20952
20953 *) BLESSMAIL_TARGET="need-blessmail" ;;
20954 esac
20955
20956
20957
20958 for ac_func in gethostname \
20959 rename closedir mkdir rmdir getrusage get_current_dir_name \
20960 random lrand48 logb frexp fmod rint cbrt setsid \
20961 strerror fpathconf select euidaccess getpagesize setlocale \
20962 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
20963 __fpending strsignal setitimer \
20964 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
20965 gai_strerror mkstemp getline getdelim fsync sync \
20966 difftime posix_memalign \
20967 getpwent endpwent getgrent endgrent \
20968 touchlock \
20969 strcasecmp strncasecmp \
20970 cfmakeraw cfsetspeed copysign __executable_start
20971 do :
20972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20974 eval as_val=\$$as_ac_var
20975 if test "x$as_val" = x""yes; then :
20976 cat >>confdefs.h <<_ACEOF
20977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20978 _ACEOF
20979
20980 fi
20981 done
20982
20983
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
20985 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
20986 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
20987 $as_echo_n "(cached) " >&6
20988 else
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991
20992 int
20993 main ()
20994 {
20995 __builtin_unwind_init ();
20996 ;
20997 return 0;
20998 }
20999 _ACEOF
21000 if ac_fn_c_try_link "$LINENO"; then :
21001 emacs_cv_func___builtin_unwind_init=yes
21002 else
21003 emacs_cv_func___builtin_unwind_init=no
21004 fi
21005 rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21009 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21010 if test $emacs_cv_func___builtin_unwind_init = yes; then
21011
21012 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21013
21014 fi
21015
21016
21017
21018
21019
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21021 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21022 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025 while :; do
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028 #include <sys/types.h> /* for off_t */
21029 #include <stdio.h>
21030 int
21031 main ()
21032 {
21033 int (*fp) (FILE *, off_t, int) = fseeko;
21034 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21035 ;
21036 return 0;
21037 }
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 ac_cv_sys_largefile_source=no; break
21041 fi
21042 rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046 #define _LARGEFILE_SOURCE 1
21047 #include <sys/types.h> /* for off_t */
21048 #include <stdio.h>
21049 int
21050 main ()
21051 {
21052 int (*fp) (FILE *, off_t, int) = fseeko;
21053 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21054 ;
21055 return 0;
21056 }
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 ac_cv_sys_largefile_source=1; break
21060 fi
21061 rm -f core conftest.err conftest.$ac_objext \
21062 conftest$ac_exeext conftest.$ac_ext
21063 ac_cv_sys_largefile_source=unknown
21064 break
21065 done
21066 fi
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21068 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21069 case $ac_cv_sys_largefile_source in #(
21070 no | unknown) ;;
21071 *)
21072 cat >>confdefs.h <<_ACEOF
21073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21074 _ACEOF
21075 ;;
21076 esac
21077 rm -rf conftest*
21078
21079 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21080 # in glibc 2.1.3, but that breaks too many other things.
21081 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21082 if test $ac_cv_sys_largefile_source != unknown; then
21083
21084 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21085
21086 fi
21087
21088
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21090 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21091 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21092 $as_echo_n "(cached) " >&6
21093 else
21094 # Use it with a single arg.
21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096 /* end confdefs.h. */
21097 $ac_includes_default
21098 int
21099 main ()
21100 {
21101 getpgrp (0);
21102 ;
21103 return 0;
21104 }
21105 _ACEOF
21106 if ac_fn_c_try_compile "$LINENO"; then :
21107 ac_cv_func_getpgrp_void=no
21108 else
21109 ac_cv_func_getpgrp_void=yes
21110 fi
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112
21113 fi
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21115 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21116 if test $ac_cv_func_getpgrp_void = yes; then
21117
21118 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21119
21120 fi
21121
21122
21123 # UNIX98 PTYs.
21124 for ac_func in grantpt
21125 do :
21126 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21127 if test "x$ac_cv_func_grantpt" = x""yes; then :
21128 cat >>confdefs.h <<_ACEOF
21129 #define HAVE_GRANTPT 1
21130 _ACEOF
21131
21132 fi
21133 done
21134
21135
21136 # PTY-related GNU extensions.
21137 for ac_func in getpt
21138 do :
21139 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21140 if test "x$ac_cv_func_getpt" = x""yes; then :
21141 cat >>confdefs.h <<_ACEOF
21142 #define HAVE_GETPT 1
21143 _ACEOF
21144
21145 fi
21146 done
21147
21148
21149 # Check this now, so that we will NOT find the above functions in ncurses.
21150 # That is because we have not set up to link ncurses in lib-src.
21151 # It's better to believe a function is not available
21152 # than to expect to find it in ncurses.
21153 # Also we need tputs and friends to be able to build at all.
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21155 $as_echo_n "checking for library containing tputs... " >&6; }
21156 # Run a test program that contains a call to tputs, a call that is
21157 # never executed. This tests whether a pre-'main' dynamic linker
21158 # works with the library. It's too much trouble to actually call
21159 # tputs in the test program, due to portability hassles. When
21160 # cross-compiling, assume the test program will run if it links.
21161
21162 # Maybe curses should be tried earlier?
21163 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21164 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
21165 OLIBS=$LIBS
21166 if test -z "$tputs_library"; then
21167 LIBS_TERMCAP=
21168 msg='none required'
21169 else
21170 LIBS_TERMCAP=-l$tputs_library
21171 msg=$LIBS_TERMCAP
21172 LIBS="$LIBS_TERMCAP $LIBS"
21173 fi
21174 if test "$cross_compiling" = yes; then :
21175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21176 /* end confdefs.h. */
21177
21178 extern void tputs (const char *, int, int (*)(int));
21179 int main (int argc, char **argv)
21180 {
21181 if (argc == 10000)
21182 tputs (argv[0], 0, 0);
21183 return 0;
21184 }
21185
21186 _ACEOF
21187 if ac_fn_c_try_link "$LINENO"; then :
21188
21189 else
21190 msg=no
21191 fi
21192 rm -f core conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21194 else
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197
21198 extern void tputs (const char *, int, int (*)(int));
21199 int main (int argc, char **argv)
21200 {
21201 if (argc == 10000)
21202 tputs (argv[0], 0, 0);
21203 return 0;
21204 }
21205
21206 _ACEOF
21207 if ac_fn_c_try_run "$LINENO"; then :
21208
21209 else
21210 msg=no
21211 fi
21212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21213 conftest.$ac_objext conftest.beam conftest.$ac_ext
21214 fi
21215
21216 LIBS=$OLIBS
21217 if test "X$msg" != Xno; then
21218 break
21219 fi
21220 done
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21222 $as_echo "$msg" >&6; }
21223 if test "X$msg" = Xno; then
21224 as_fn_error "The required function \`tputs' was not found in any library.
21225 The following libraries were tried (in order):
21226 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21227 Please try installing whichever of these libraries is most appropriate
21228 for your system, together with its header files.
21229 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21230 fi
21231
21232 ## Use termcap instead of terminfo?
21233 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21234 TERMINFO=yes
21235 ## FIXME? In the cases below where we unconditionally set
21236 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21237 ## if that was found above to have tputs.
21238 ## Should we use the gnu* logic everywhere?
21239 case "$opsys" in
21240 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21241 ## The ncurses library has been moved out of the System framework in
21242 ## Mac OS X 10.2. So if configure detects it, set the command-line
21243 ## option to use it.
21244 darwin) LIBS_TERMCAP="-lncurses" ;;
21245
21246 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
21247
21248 freebsd)
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21250 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21251 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21252 $as_echo_n "(cached) " >&6
21253 else
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21256 #include <osreldate.h>
21257 int
21258 main ()
21259 {
21260 #if __FreeBSD_version < 400000
21261 fail;
21262 #endif
21263
21264 ;
21265 return 0;
21266 }
21267 _ACEOF
21268 if ac_fn_c_try_link "$LINENO"; then :
21269 emacs_cv_freebsd_terminfo=yes
21270 else
21271 emacs_cv_freebsd_terminfo=no
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext \
21274 conftest$ac_exeext conftest.$ac_ext
21275 fi
21276
21277
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21279 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21280
21281 if test $emacs_cv_freebsd_terminfo = yes; then
21282 LIBS_TERMCAP="-lncurses"
21283 else
21284 TERMINFO=no
21285 LIBS_TERMCAP="-ltermcap"
21286 fi
21287 ;;
21288
21289 netbsd)
21290 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21291 TERMINFO=no
21292 LIBS_TERMCAP="-ltermcap"
21293 fi
21294 ;;
21295
21296 openbsd) LIBS_TERMCAP="-lncurses" ;;
21297
21298 ## hpux: Make sure we get select from libc rather than from libcurses
21299 ## because libcurses on HPUX 10.10 has a broken version of select.
21300 ## We used to use -lc -lcurses, but this may be cleaner.
21301 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21302 # set that way, now it uses the default). Isn't this a contradiction?
21303 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21304
21305 esac
21306
21307 TERMCAP_OBJ=tparam.o
21308 if test $TERMINFO = yes; then
21309
21310 $as_echo "#define TERMINFO 1" >>confdefs.h
21311
21312 TERMCAP_OBJ=terminfo.o
21313 fi
21314
21315
21316
21317
21318 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21319 resolv=no
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21322 #include <netinet/in.h>
21323 #include <arpa/nameser.h>
21324 #include <resolv.h>
21325 int
21326 main ()
21327 {
21328 return res_init();
21329 ;
21330 return 0;
21331 }
21332 _ACEOF
21333 if ac_fn_c_try_link "$LINENO"; then :
21334 have_res_init=yes
21335 else
21336 have_res_init=no
21337 fi
21338 rm -f core conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
21340 if test "$have_res_init" = no; then
21341 OLIBS="$LIBS"
21342 LIBS="$LIBS -lresolv"
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21344 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21346 /* end confdefs.h. */
21347 #include <netinet/in.h>
21348 #include <arpa/nameser.h>
21349 #include <resolv.h>
21350 int
21351 main ()
21352 {
21353 return res_init();
21354 ;
21355 return 0;
21356 }
21357 _ACEOF
21358 if ac_fn_c_try_link "$LINENO"; then :
21359 have_res_init=yes
21360 else
21361 have_res_init=no
21362 fi
21363 rm -f core conftest.err conftest.$ac_objext \
21364 conftest$ac_exeext conftest.$ac_ext
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21366 $as_echo "$have_res_init" >&6; }
21367 if test "$have_res_init" = yes ; then
21368 resolv=yes
21369 fi
21370 LIBS="$OLIBS"
21371 fi
21372
21373 if test "$have_res_init" = yes; then
21374
21375 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21376
21377 fi
21378
21379 # Do we need the Hesiod library to provide the support routines?
21380 LIBHESIOD=
21381 if test "$with_hesiod" != no ; then
21382 # Don't set $LIBS here -- see comments above. FIXME which comments?
21383 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21384 if test "x$ac_cv_func_res_send" = x""yes; then :
21385
21386 else
21387 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21388 if test "x$ac_cv_func___res_send" = x""yes; then :
21389
21390 else
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21392 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21393 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21395 else
21396 ac_check_lib_save_LIBS=$LIBS
21397 LIBS="-lresolv $LIBS"
21398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21400
21401 /* Override any GCC internal prototype to avoid an error.
21402 Use char because int might match the return type of a GCC
21403 builtin and then its argument prototype would still apply. */
21404 #ifdef __cplusplus
21405 extern "C"
21406 #endif
21407 char res_send ();
21408 int
21409 main ()
21410 {
21411 return res_send ();
21412 ;
21413 return 0;
21414 }
21415 _ACEOF
21416 if ac_fn_c_try_link "$LINENO"; then :
21417 ac_cv_lib_resolv_res_send=yes
21418 else
21419 ac_cv_lib_resolv_res_send=no
21420 fi
21421 rm -f core conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
21423 LIBS=$ac_check_lib_save_LIBS
21424 fi
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21426 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21427 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21428 resolv=yes
21429 else
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21431 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21432 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21434 else
21435 ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lresolv $LIBS"
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21439
21440 /* Override any GCC internal prototype to avoid an error.
21441 Use char because int might match the return type of a GCC
21442 builtin and then its argument prototype would still apply. */
21443 #ifdef __cplusplus
21444 extern "C"
21445 #endif
21446 char __res_send ();
21447 int
21448 main ()
21449 {
21450 return __res_send ();
21451 ;
21452 return 0;
21453 }
21454 _ACEOF
21455 if ac_fn_c_try_link "$LINENO"; then :
21456 ac_cv_lib_resolv___res_send=yes
21457 else
21458 ac_cv_lib_resolv___res_send=no
21459 fi
21460 rm -f core conftest.err conftest.$ac_objext \
21461 conftest$ac_exeext conftest.$ac_ext
21462 LIBS=$ac_check_lib_save_LIBS
21463 fi
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21465 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21466 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21467 resolv=yes
21468 fi
21469
21470 fi
21471
21472 fi
21473
21474 fi
21475
21476 if test "$resolv" = yes ; then
21477 RESOLVLIB=-lresolv
21478 else
21479 RESOLVLIB=
21480 fi
21481 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21482 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21483
21484 else
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21486 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21487 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-lhesiod $RESOLVLIB $LIBS"
21492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21494
21495 /* Override any GCC internal prototype to avoid an error.
21496 Use char because int might match the return type of a GCC
21497 builtin and then its argument prototype would still apply. */
21498 #ifdef __cplusplus
21499 extern "C"
21500 #endif
21501 char hes_getmailhost ();
21502 int
21503 main ()
21504 {
21505 return hes_getmailhost ();
21506 ;
21507 return 0;
21508 }
21509 _ACEOF
21510 if ac_fn_c_try_link "$LINENO"; then :
21511 ac_cv_lib_hesiod_hes_getmailhost=yes
21512 else
21513 ac_cv_lib_hesiod_hes_getmailhost=no
21514 fi
21515 rm -f core conftest.err conftest.$ac_objext \
21516 conftest$ac_exeext conftest.$ac_ext
21517 LIBS=$ac_check_lib_save_LIBS
21518 fi
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21520 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21521 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21522 hesiod=yes
21523 else
21524 :
21525 fi
21526
21527 fi
21528
21529
21530 if test x"$hesiod" = xyes; then
21531
21532 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21533
21534 LIBHESIOD=-lhesiod
21535 fi
21536 fi
21537
21538
21539 # Do we need libresolv (due to res_init or Hesiod)?
21540 if test "$resolv" = yes ; then
21541
21542 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21543
21544 LIBRESOLV=-lresolv
21545 else
21546 LIBRESOLV=
21547 fi
21548
21549
21550 # These tell us which Kerberos-related libraries to use.
21551 COM_ERRLIB=
21552 CRYPTOLIB=
21553 KRB5LIB=
21554 DESLIB=
21555 KRB4LIB=
21556
21557 if test "${with_kerberos}" != no; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21559 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21560 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21561 $as_echo_n "(cached) " >&6
21562 else
21563 ac_check_lib_save_LIBS=$LIBS
21564 LIBS="-lcom_err $LIBS"
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21567
21568 /* Override any GCC internal prototype to avoid an error.
21569 Use char because int might match the return type of a GCC
21570 builtin and then its argument prototype would still apply. */
21571 #ifdef __cplusplus
21572 extern "C"
21573 #endif
21574 char com_err ();
21575 int
21576 main ()
21577 {
21578 return com_err ();
21579 ;
21580 return 0;
21581 }
21582 _ACEOF
21583 if ac_fn_c_try_link "$LINENO"; then :
21584 ac_cv_lib_com_err_com_err=yes
21585 else
21586 ac_cv_lib_com_err_com_err=no
21587 fi
21588 rm -f core conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590 LIBS=$ac_check_lib_save_LIBS
21591 fi
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21593 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21594 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21595 have_com_err=yes
21596 else
21597 have_com_err=no
21598 fi
21599
21600 if test $have_com_err = yes; then
21601 COM_ERRLIB=-lcom_err
21602 LIBS="$COM_ERRLIB $LIBS"
21603
21604 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21605
21606 fi
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21608 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21609 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21611 else
21612 ac_check_lib_save_LIBS=$LIBS
21613 LIBS="-lcrypto $LIBS"
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21616
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 char mit_des_cbc_encrypt ();
21624 int
21625 main ()
21626 {
21627 return mit_des_cbc_encrypt ();
21628 ;
21629 return 0;
21630 }
21631 _ACEOF
21632 if ac_fn_c_try_link "$LINENO"; then :
21633 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21634 else
21635 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21636 fi
21637 rm -f core conftest.err conftest.$ac_objext \
21638 conftest$ac_exeext conftest.$ac_ext
21639 LIBS=$ac_check_lib_save_LIBS
21640 fi
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21642 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21643 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21644 have_crypto=yes
21645 else
21646 have_crypto=no
21647 fi
21648
21649 if test $have_crypto = yes; then
21650 CRYPTOLIB=-lcrypto
21651 LIBS="$CRYPTOLIB $LIBS"
21652
21653 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21654
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21657 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21658 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21659 $as_echo_n "(cached) " >&6
21660 else
21661 ac_check_lib_save_LIBS=$LIBS
21662 LIBS="-lk5crypto $LIBS"
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21665
21666 /* Override any GCC internal prototype to avoid an error.
21667 Use char because int might match the return type of a GCC
21668 builtin and then its argument prototype would still apply. */
21669 #ifdef __cplusplus
21670 extern "C"
21671 #endif
21672 char mit_des_cbc_encrypt ();
21673 int
21674 main ()
21675 {
21676 return mit_des_cbc_encrypt ();
21677 ;
21678 return 0;
21679 }
21680 _ACEOF
21681 if ac_fn_c_try_link "$LINENO"; then :
21682 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21683 else
21684 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21685 fi
21686 rm -f core conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 LIBS=$ac_check_lib_save_LIBS
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21691 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21692 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21693 have_k5crypto=yes
21694 else
21695 have_k5crypto=no
21696 fi
21697
21698 if test $have_k5crypto = yes; then
21699 CRYPTOLIB=-lk5crypto
21700 LIBS="$CRYPTOLIB $LIBS"
21701
21702 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21703
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21706 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21707 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21709 else
21710 ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lkrb5 $LIBS"
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21714
21715 /* Override any GCC internal prototype to avoid an error.
21716 Use char because int might match the return type of a GCC
21717 builtin and then its argument prototype would still apply. */
21718 #ifdef __cplusplus
21719 extern "C"
21720 #endif
21721 char krb5_init_context ();
21722 int
21723 main ()
21724 {
21725 return krb5_init_context ();
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731 ac_cv_lib_krb5_krb5_init_context=yes
21732 else
21733 ac_cv_lib_krb5_krb5_init_context=no
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 LIBS=$ac_check_lib_save_LIBS
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21740 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21741 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21742 have_krb5=yes
21743 else
21744 have_krb5=no
21745 fi
21746
21747 if test $have_krb5=yes; then
21748 KRB5LIB=-lkrb5
21749 LIBS="$KRB5LIB $LIBS"
21750
21751 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21752
21753 fi
21754 if test "${with_kerberos5}" = no; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21756 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21757 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21760 ac_check_lib_save_LIBS=$LIBS
21761 LIBS="-ldes425 $LIBS"
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21764
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21768 #ifdef __cplusplus
21769 extern "C"
21770 #endif
21771 char des_cbc_encrypt ();
21772 int
21773 main ()
21774 {
21775 return des_cbc_encrypt ();
21776 ;
21777 return 0;
21778 }
21779 _ACEOF
21780 if ac_fn_c_try_link "$LINENO"; then :
21781 ac_cv_lib_des425_des_cbc_encrypt=yes
21782 else
21783 ac_cv_lib_des425_des_cbc_encrypt=no
21784 fi
21785 rm -f core conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21787 LIBS=$ac_check_lib_save_LIBS
21788 fi
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21790 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21791 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21792 have_des425=yes
21793 else
21794 have_des425=no
21795 fi
21796
21797 if test $have_des425 = yes; then
21798 DESLIB=-ldes425
21799 LIBS="$DESLIB $LIBS"
21800
21801 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21802
21803 else
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21805 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21806 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21807 $as_echo_n "(cached) " >&6
21808 else
21809 ac_check_lib_save_LIBS=$LIBS
21810 LIBS="-ldes $LIBS"
21811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21812 /* end confdefs.h. */
21813
21814 /* Override any GCC internal prototype to avoid an error.
21815 Use char because int might match the return type of a GCC
21816 builtin and then its argument prototype would still apply. */
21817 #ifdef __cplusplus
21818 extern "C"
21819 #endif
21820 char des_cbc_encrypt ();
21821 int
21822 main ()
21823 {
21824 return des_cbc_encrypt ();
21825 ;
21826 return 0;
21827 }
21828 _ACEOF
21829 if ac_fn_c_try_link "$LINENO"; then :
21830 ac_cv_lib_des_des_cbc_encrypt=yes
21831 else
21832 ac_cv_lib_des_des_cbc_encrypt=no
21833 fi
21834 rm -f core conftest.err conftest.$ac_objext \
21835 conftest$ac_exeext conftest.$ac_ext
21836 LIBS=$ac_check_lib_save_LIBS
21837 fi
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21839 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21840 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21841 have_des=yes
21842 else
21843 have_des=no
21844 fi
21845
21846 if test $have_des = yes; then
21847 DESLIB=-ldes
21848 LIBS="$DESLIB $LIBS"
21849
21850 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21851
21852 fi
21853 fi
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21855 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21856 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 ac_check_lib_save_LIBS=$LIBS
21860 LIBS="-lkrb4 $LIBS"
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char krb_get_cred ();
21871 int
21872 main ()
21873 {
21874 return krb_get_cred ();
21875 ;
21876 return 0;
21877 }
21878 _ACEOF
21879 if ac_fn_c_try_link "$LINENO"; then :
21880 ac_cv_lib_krb4_krb_get_cred=yes
21881 else
21882 ac_cv_lib_krb4_krb_get_cred=no
21883 fi
21884 rm -f core conftest.err conftest.$ac_objext \
21885 conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21887 fi
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21889 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21890 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21891 have_krb4=yes
21892 else
21893 have_krb4=no
21894 fi
21895
21896 if test $have_krb4 = yes; then
21897 KRB4LIB=-lkrb4
21898 LIBS="$KRB4LIB $LIBS"
21899
21900 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21901
21902 else
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21904 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21905 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21906 $as_echo_n "(cached) " >&6
21907 else
21908 ac_check_lib_save_LIBS=$LIBS
21909 LIBS="-lkrb $LIBS"
21910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h. */
21912
21913 /* Override any GCC internal prototype to avoid an error.
21914 Use char because int might match the return type of a GCC
21915 builtin and then its argument prototype would still apply. */
21916 #ifdef __cplusplus
21917 extern "C"
21918 #endif
21919 char krb_get_cred ();
21920 int
21921 main ()
21922 {
21923 return krb_get_cred ();
21924 ;
21925 return 0;
21926 }
21927 _ACEOF
21928 if ac_fn_c_try_link "$LINENO"; then :
21929 ac_cv_lib_krb_krb_get_cred=yes
21930 else
21931 ac_cv_lib_krb_krb_get_cred=no
21932 fi
21933 rm -f core conftest.err conftest.$ac_objext \
21934 conftest$ac_exeext conftest.$ac_ext
21935 LIBS=$ac_check_lib_save_LIBS
21936 fi
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21938 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21939 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
21940 have_krb=yes
21941 else
21942 have_krb=no
21943 fi
21944
21945 if test $have_krb = yes; then
21946 KRB4LIB=-lkrb
21947 LIBS="$KRB4LIB $LIBS"
21948
21949 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21950
21951 fi
21952 fi
21953 fi
21954
21955 if test "${with_kerberos5}" != no; then
21956 for ac_header in krb5.h
21957 do :
21958 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21959 if test "x$ac_cv_header_krb5_h" = x""yes; then :
21960 cat >>confdefs.h <<_ACEOF
21961 #define HAVE_KRB5_H 1
21962 _ACEOF
21963 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21964 "
21965 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
21966
21967 cat >>confdefs.h <<_ACEOF
21968 #define HAVE_KRB5_ERROR_TEXT 1
21969 _ACEOF
21970
21971
21972 fi
21973 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21974 "
21975 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
21976
21977 cat >>confdefs.h <<_ACEOF
21978 #define HAVE_KRB5_ERROR_E_TEXT 1
21979 _ACEOF
21980
21981
21982 fi
21983
21984 fi
21985
21986 done
21987
21988 else
21989 for ac_header in des.h
21990 do :
21991 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21992 if test "x$ac_cv_header_des_h" = x""yes; then :
21993 cat >>confdefs.h <<_ACEOF
21994 #define HAVE_DES_H 1
21995 _ACEOF
21996
21997 else
21998 for ac_header in kerberosIV/des.h
21999 do :
22000 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22001 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_KERBEROSIV_DES_H 1
22004 _ACEOF
22005
22006 else
22007 for ac_header in kerberos/des.h
22008 do :
22009 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22010 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_KERBEROS_DES_H 1
22013 _ACEOF
22014
22015 fi
22016
22017 done
22018
22019 fi
22020
22021 done
22022
22023 fi
22024
22025 done
22026
22027 for ac_header in krb.h
22028 do :
22029 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22030 if test "x$ac_cv_header_krb_h" = x""yes; then :
22031 cat >>confdefs.h <<_ACEOF
22032 #define HAVE_KRB_H 1
22033 _ACEOF
22034
22035 else
22036 for ac_header in kerberosIV/krb.h
22037 do :
22038 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22039 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22040 cat >>confdefs.h <<_ACEOF
22041 #define HAVE_KERBEROSIV_KRB_H 1
22042 _ACEOF
22043
22044 else
22045 for ac_header in kerberos/krb.h
22046 do :
22047 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22048 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22049 cat >>confdefs.h <<_ACEOF
22050 #define HAVE_KERBEROS_KRB_H 1
22051 _ACEOF
22052
22053 fi
22054
22055 done
22056
22057 fi
22058
22059 done
22060
22061 fi
22062
22063 done
22064
22065 fi
22066 for ac_header in com_err.h
22067 do :
22068 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22069 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_COM_ERR_H 1
22072 _ACEOF
22073
22074 fi
22075
22076 done
22077
22078 fi
22079
22080
22081
22082
22083
22084
22085
22086 for ac_func in tzset
22087 do :
22088 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
22089 if test "x$ac_cv_func_tzset" = x""yes; then :
22090 cat >>confdefs.h <<_ACEOF
22091 #define HAVE_TZSET 1
22092 _ACEOF
22093
22094 fi
22095 done
22096
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22098 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22099 if test "${emacs_cv_localtime_cache+set}" = set; then :
22100 $as_echo_n "(cached) " >&6
22101 else
22102 if test x$ac_cv_func_tzset = xyes; then
22103 if test "$cross_compiling" = yes; then :
22104 # If we have tzset, assume the worst when cross-compiling.
22105 emacs_cv_localtime_cache=yes
22106 else
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22109 #include <time.h>
22110 char TZ_GMT0[] = "TZ=GMT0";
22111 char TZ_PST8[] = "TZ=PST8";
22112 main()
22113 {
22114 time_t now = time ((time_t *) 0);
22115 int hour_GMT0, hour_unset;
22116 if (putenv (TZ_GMT0) != 0)
22117 exit (1);
22118 hour_GMT0 = localtime (&now)->tm_hour;
22119 unsetenv("TZ");
22120 hour_unset = localtime (&now)->tm_hour;
22121 if (putenv (TZ_PST8) != 0)
22122 exit (1);
22123 if (localtime (&now)->tm_hour == hour_GMT0)
22124 exit (1);
22125 unsetenv("TZ");
22126 if (localtime (&now)->tm_hour != hour_unset)
22127 exit (1);
22128 exit (0);
22129 }
22130 _ACEOF
22131 if ac_fn_c_try_run "$LINENO"; then :
22132 emacs_cv_localtime_cache=no
22133 else
22134 emacs_cv_localtime_cache=yes
22135 fi
22136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22137 conftest.$ac_objext conftest.beam conftest.$ac_ext
22138 fi
22139
22140 else
22141 # If we lack tzset, report that localtime does not cache TZ,
22142 # since we can't invalidate the cache if we don't have tzset.
22143 emacs_cv_localtime_cache=no
22144 fi
22145 fi
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22147 $as_echo "$emacs_cv_localtime_cache" >&6; }
22148 if test $emacs_cv_localtime_cache = yes; then
22149
22150 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22151
22152 fi
22153
22154 ok_so_far=yes
22155 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22156 if test "x$ac_cv_func_socket" = x""yes; then :
22157
22158 else
22159 ok_so_far=no
22160 fi
22161
22162 if test $ok_so_far = yes; then
22163 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22164 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
22165
22166 else
22167 ok_so_far=no
22168 fi
22169
22170
22171 fi
22172 if test $ok_so_far = yes; then
22173 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22174 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
22175
22176 else
22177 ok_so_far=no
22178 fi
22179
22180
22181 fi
22182 if test $ok_so_far = yes; then
22183
22184 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22185
22186 fi
22187
22188 if test -f /usr/lpp/X11/bin/smt.exp; then
22189
22190 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22191
22192 fi
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22195 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22196 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22198 $as_echo "yes" >&6; }
22199
22200 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22201
22202 else
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22204 $as_echo "no" >&6; }
22205 fi
22206
22207 for ac_header in vfork.h
22208 do :
22209 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22210 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22211 cat >>confdefs.h <<_ACEOF
22212 #define HAVE_VFORK_H 1
22213 _ACEOF
22214
22215 fi
22216
22217 done
22218
22219 for ac_func in fork vfork
22220 do :
22221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22223 eval as_val=\$$as_ac_var
22224 if test "x$as_val" = x""yes; then :
22225 cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22227 _ACEOF
22228
22229 fi
22230 done
22231
22232 if test "x$ac_cv_func_fork" = xyes; then
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22234 $as_echo_n "checking for working fork... " >&6; }
22235 if test "${ac_cv_func_fork_works+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22237 else
22238 if test "$cross_compiling" = yes; then :
22239 ac_cv_func_fork_works=cross
22240 else
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243 $ac_includes_default
22244 int
22245 main ()
22246 {
22247
22248 /* By Ruediger Kuhlmann. */
22249 return fork () < 0;
22250
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 if ac_fn_c_try_run "$LINENO"; then :
22256 ac_cv_func_fork_works=yes
22257 else
22258 ac_cv_func_fork_works=no
22259 fi
22260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22261 conftest.$ac_objext conftest.beam conftest.$ac_ext
22262 fi
22263
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22266 $as_echo "$ac_cv_func_fork_works" >&6; }
22267
22268 else
22269 ac_cv_func_fork_works=$ac_cv_func_fork
22270 fi
22271 if test "x$ac_cv_func_fork_works" = xcross; then
22272 case $host in
22273 *-*-amigaos* | *-*-msdosdjgpp*)
22274 # Override, as these systems have only a dummy fork() stub
22275 ac_cv_func_fork_works=no
22276 ;;
22277 *)
22278 ac_cv_func_fork_works=yes
22279 ;;
22280 esac
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22282 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22283 fi
22284 ac_cv_func_vfork_works=$ac_cv_func_vfork
22285 if test "x$ac_cv_func_vfork" = xyes; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22287 $as_echo_n "checking for working vfork... " >&6; }
22288 if test "${ac_cv_func_vfork_works+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22290 else
22291 if test "$cross_compiling" = yes; then :
22292 ac_cv_func_vfork_works=cross
22293 else
22294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22295 /* end confdefs.h. */
22296 /* Thanks to Paul Eggert for this test. */
22297 $ac_includes_default
22298 #include <sys/wait.h>
22299 #ifdef HAVE_VFORK_H
22300 # include <vfork.h>
22301 #endif
22302 /* On some sparc systems, changes by the child to local and incoming
22303 argument registers are propagated back to the parent. The compiler
22304 is told about this with #include <vfork.h>, but some compilers
22305 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22306 static variable whose address is put into a register that is
22307 clobbered by the vfork. */
22308 static void
22309 #ifdef __cplusplus
22310 sparc_address_test (int arg)
22311 # else
22312 sparc_address_test (arg) int arg;
22313 #endif
22314 {
22315 static pid_t child;
22316 if (!child) {
22317 child = vfork ();
22318 if (child < 0) {
22319 perror ("vfork");
22320 _exit(2);
22321 }
22322 if (!child) {
22323 arg = getpid();
22324 write(-1, "", 0);
22325 _exit (arg);
22326 }
22327 }
22328 }
22329
22330 int
22331 main ()
22332 {
22333 pid_t parent = getpid ();
22334 pid_t child;
22335
22336 sparc_address_test (0);
22337
22338 child = vfork ();
22339
22340 if (child == 0) {
22341 /* Here is another test for sparc vfork register problems. This
22342 test uses lots of local variables, at least as many local
22343 variables as main has allocated so far including compiler
22344 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22345 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22346 reuse the register of parent for one of the local variables,
22347 since it will think that parent can't possibly be used any more
22348 in this routine. Assigning to the local variable will thus
22349 munge parent in the parent process. */
22350 pid_t
22351 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22352 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22353 /* Convince the compiler that p..p7 are live; otherwise, it might
22354 use the same hardware register for all 8 local variables. */
22355 if (p != p1 || p != p2 || p != p3 || p != p4
22356 || p != p5 || p != p6 || p != p7)
22357 _exit(1);
22358
22359 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22360 from child file descriptors. If the child closes a descriptor
22361 before it execs or exits, this munges the parent's descriptor
22362 as well. Test for this by closing stdout in the child. */
22363 _exit(close(fileno(stdout)) != 0);
22364 } else {
22365 int status;
22366 struct stat st;
22367
22368 while (wait(&status) != child)
22369 ;
22370 return (
22371 /* Was there some problem with vforking? */
22372 child < 0
22373
22374 /* Did the child fail? (This shouldn't happen.) */
22375 || status
22376
22377 /* Did the vfork/compiler bug occur? */
22378 || parent != getpid()
22379
22380 /* Did the file descriptor bug occur? */
22381 || fstat(fileno(stdout), &st) != 0
22382 );
22383 }
22384 }
22385 _ACEOF
22386 if ac_fn_c_try_run "$LINENO"; then :
22387 ac_cv_func_vfork_works=yes
22388 else
22389 ac_cv_func_vfork_works=no
22390 fi
22391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22392 conftest.$ac_objext conftest.beam conftest.$ac_ext
22393 fi
22394
22395 fi
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22397 $as_echo "$ac_cv_func_vfork_works" >&6; }
22398
22399 fi;
22400 if test "x$ac_cv_func_fork_works" = xcross; then
22401 ac_cv_func_vfork_works=$ac_cv_func_vfork
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22403 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22404 fi
22405
22406 if test "x$ac_cv_func_vfork_works" = xyes; then
22407
22408 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22409
22410 else
22411
22412 $as_echo "#define vfork fork" >>confdefs.h
22413
22414 fi
22415 if test "x$ac_cv_func_fork_works" = xyes; then
22416
22417 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22418
22419 fi
22420
22421
22422 for ac_func in snprintf
22423 do :
22424 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22425 if test "x$ac_cv_func_snprintf" = x""yes; then :
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_SNPRINTF 1
22428 _ACEOF
22429
22430 fi
22431 done
22432
22433
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22435 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22436 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22437 $as_echo_n "(cached) " >&6
22438 else
22439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22441 #include <langinfo.h>
22442 int
22443 main ()
22444 {
22445 char* cs = nl_langinfo(CODESET);
22446 ;
22447 return 0;
22448 }
22449 _ACEOF
22450 if ac_fn_c_try_link "$LINENO"; then :
22451 emacs_cv_langinfo_codeset=yes
22452 else
22453 emacs_cv_langinfo_codeset=no
22454 fi
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22457
22458 fi
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22460 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22461 if test $emacs_cv_langinfo_codeset = yes; then
22462
22463 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22464
22465 fi
22466
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22468 $as_echo_n "checking for mbstate_t... " >&6; }
22469 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 # include <wchar.h>
22476 int
22477 main ()
22478 {
22479 mbstate_t x; return sizeof x;
22480 ;
22481 return 0;
22482 }
22483 _ACEOF
22484 if ac_fn_c_try_compile "$LINENO"; then :
22485 ac_cv_type_mbstate_t=yes
22486 else
22487 ac_cv_type_mbstate_t=no
22488 fi
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 fi
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22492 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22493 if test $ac_cv_type_mbstate_t = yes; then
22494
22495 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22496
22497 else
22498
22499 $as_echo "#define mbstate_t int" >>confdefs.h
22500
22501 fi
22502
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22504 $as_echo_n "checking for C restricted array declarations... " >&6; }
22505 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h. */
22510 void fred (int x[__restrict]);
22511 int
22512 main ()
22513 {
22514
22515 ;
22516 return 0;
22517 }
22518 _ACEOF
22519 if ac_fn_c_try_compile "$LINENO"; then :
22520 emacs_cv_c_restrict_arr=yes
22521 else
22522 emacs_cv_c_restrict_arr=no
22523 fi
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22527 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22528 if test "$emacs_cv_c_restrict_arr" = yes; then
22529
22530 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22531
22532 fi
22533
22534
22535 case $opsys in
22536 darwin | gnu | hpux* | *bsd )
22537
22538 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22539
22540 ;;
22541 esac
22542
22543 case $opsys in
22544 hpux* | irix6-5 | openbsd | sol2* | unixware )
22545
22546 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22547
22548 ;;
22549 esac
22550
22551 case $opsys in
22552 gnu-* | sol2-10 )
22553
22554 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22555
22556 ;;
22557 esac
22558
22559 case $opsys in
22560 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
22561
22562 hpux11)
22563
22564 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22565
22566
22567 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22568
22569
22570 opsysfile="s/hpux10-20.h"
22571 ;;
22572
22573 openbsd) opsysfile="s/netbsd.h" ;;
22574
22575 sol2-10)
22576
22577 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22578
22579 opsysfile="s/sol2-6.h"
22580 ;;
22581 esac
22582
22583 # Set up the CFLAGS for real compilation, so we can substitute it.
22584 CFLAGS="$REAL_CFLAGS"
22585 CPPFLAGS="$REAL_CPPFLAGS"
22586
22587 ## Hack to detect a buggy GCC version.
22588 if test "x$GCC" = xyes \
22589 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22590 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22591 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22592 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22593 fi
22594
22595 version=$PACKAGE_VERSION
22596
22597 ### Specify what sort of things we'll be editing into Makefile and config.h.
22598 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22599
22600
22601 ## Unused?
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22624 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22625 ## end of LIBX_BASE, but nothing ever set it.
22626
22627
22628
22629
22630 ## Used in lwlib/Makefile.in.
22631
22632 if test -n "${opsysfile}"; then
22633 S_FILE="\$(srcdir)/${opsysfile}"
22634 else
22635 S_FILE=
22636 fi
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define EMACS_CONFIGURATION "${canonical}"
22648 _ACEOF
22649
22650
22651 cat >>confdefs.h <<_ACEOF
22652 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22653 _ACEOF
22654
22655 if test -n "$opsysfile"; then
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define config_opsysfile "${opsysfile}"
22659 _ACEOF
22660
22661 fi
22662
22663 XMENU_OBJ=
22664 XOBJ=
22665 FONT_OBJ=
22666 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22667
22668 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22669
22670 XMENU_OBJ=xmenu.o
22671 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22672 FONT_OBJ=xfont.o
22673 if test "$HAVE_XFT" = "yes"; then
22674 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22675 elif test "$HAVE_FREETYPE" = "yes"; then
22676 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22677 fi
22678
22679 fi
22680
22681
22682
22683
22684 WIDGET_OBJ=
22685 MOTIF_LIBW=
22686 if test "${USE_X_TOOLKIT}" != "none" ; then
22687 WIDGET_OBJ=widget.o
22688
22689 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22690
22691 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22692
22693 $as_echo "#define USE_LUCID 1" >>confdefs.h
22694
22695 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22696
22697 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22698
22699 MOTIF_LIBW=-lXm
22700 case "$opsys" in
22701 gnu-linux)
22702 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22703 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22704 ;;
22705
22706 unixware)
22707 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22708 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22709 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22710 ;;
22711
22712 aix4-2)
22713 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22714 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22715 ;;
22716 esac
22717 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22718 fi
22719 fi
22720
22721
22722 TOOLKIT_LIBW=
22723 case "$USE_X_TOOLKIT" in
22724 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22725 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22726 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
22727 esac
22728
22729
22730 if test "$USE_X_TOOLKIT" = "none"; then
22731 LIBXT_OTHER="\$(LIBXSM)"
22732 OLDXMENU_TARGET="really-oldXMenu"
22733 else
22734 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22735 OLDXMENU_TARGET="really-lwlib"
22736 fi
22737
22738
22739 ## The X Menu stuff is present in the X10 distribution, but missing
22740 ## from X11. If we have X10, just use the installed library;
22741 ## otherwise, use our own copy.
22742 if test "${HAVE_X11}" = "yes" ; then
22743
22744 $as_echo "#define HAVE_X11 1" >>confdefs.h
22745
22746
22747 if test "$USE_X_TOOLKIT" = "none"; then
22748 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22749 else
22750 OLDXMENU="\${lwlibdir}/liblw.a"
22751 fi
22752 LIBXMENU="\$(OLDXMENU)"
22753 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22754 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22755 else
22756 ## For a syntactically valid Makefile; not actually used for anything.
22757 ## See comments in src/Makefile.in.
22758 OLDXMENU=nothing
22759 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22760 if test "${HAVE_X_WINDOWS}" = "yes"; then
22761 LIBXMENU="-lXMenu"
22762 else
22763 LIBXMENU=
22764 fi
22765 LIBX_OTHER=
22766 OLDXMENU_DEPS=
22767 fi
22768
22769 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22770 OLDXMENU_TARGET=
22771 OLDXMENU=nothing
22772 LIBXMENU=
22773 OLDXMENU_DEPS=
22774 fi
22775
22776
22777
22778
22779
22780
22781
22782 if test "${HAVE_MENUS}" = "yes" ; then
22783
22784 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22785
22786 fi
22787
22788 if test "${GNU_MALLOC}" = "yes" ; then
22789
22790 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22791
22792 fi
22793
22794 RALLOC_OBJ=
22795 if test "${REL_ALLOC}" = "yes" ; then
22796
22797 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22798
22799
22800 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22801 fi
22802
22803
22804 if test "$opsys" = "cygwin"; then
22805 CYGWIN_OBJ="sheap.o"
22806 ## Cygwin differs because of its unexec().
22807 PRE_ALLOC_OBJ=
22808 POST_ALLOC_OBJ=lastfile.o
22809 else
22810 CYGWIN_OBJ=
22811 PRE_ALLOC_OBJ=lastfile.o
22812 POST_ALLOC_OBJ=
22813 fi
22814
22815
22816
22817
22818 case "$opsys" in
22819 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22820
22821 darwin)
22822 ## The -headerpad option tells ld (see man page) to leave room at the
22823 ## end of the header for adding load commands. Needed for dumping.
22824 ## 0x690 is the total size of 30 segment load commands (at 56
22825 ## each); under Cocoa 31 commands are required.
22826 if test "$HAVE_NS" = "yes"; then
22827 libs_nsgui="-framework AppKit"
22828 headerpad_extra=6C8
22829 else
22830 libs_nsgui=
22831 headerpad_extra=690
22832 fi
22833 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22834
22835 ## This is here because src/Makefile.in did some extra fiddling around
22836 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22837 ## #ifndef LD_SWITCH_SYSTEM
22838 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22839 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22840 ## not using gcc, darwin.
22841 ## Because this was done in src/Makefile.in, the resulting part of
22842 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22843 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22844 ## rather than LD_SWITCH_SYSTEM.
22845 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22846 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22847 ;;
22848
22849 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22850 ## find X at run-time.
22851 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22852 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22853 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22854 ## had different values in configure (in ac_link) and src/Makefile.in.
22855 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22856 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22857
22858 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22859 esac
22860
22861 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22862 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22863 fi
22864
22865
22866
22867
22868 LD_FIRSTFLAG=
22869 ORDINARY_LINK=
22870 case "$opsys" in
22871 ## gnu: GNU needs its own crt0.
22872 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22873
22874 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22875 ## library search parth, i.e. it won't search /usr/lib for libc and
22876 ## friends. Using -nostartfiles instead avoids this problem, and
22877 ## will also work on earlier NetBSD releases.
22878 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22879
22880 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22881 ## MkLinux/LinuxPPC needs this.
22882 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22883 gnu-*)
22884 case "$canonical" in
22885 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
22886 esac
22887 ;;
22888 esac
22889
22890
22891 if test "x$ORDINARY_LINK" = "xyes"; then
22892
22893 LD_FIRSTFLAG=""
22894
22895 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22896
22897
22898 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22899 ## freebsd, gnu-* not on powerpc*|s390x*.
22900 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22901
22902 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22903 ## places that are difficult to figure out at make time. Fortunately,
22904 ## these same versions allow you to pass arbitrary flags on to the
22905 ## linker, so there is no reason not to use it as a linker.
22906 ##
22907 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22908 ## searching for libraries in its internal directories, so we have to
22909 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22910 LD_FIRSTFLAG="-nostdlib"
22911 fi
22912
22913 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22914 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22915
22916
22917
22918
22919 ## FIXME? The logic here is not precisely the same as that above.
22920 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22921 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22922 LIB_GCC=
22923 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22924
22925 case "$opsys" in
22926 freebsd|netbsd|openbsd) LIB_GCC= ;;
22927
22928 gnu-*)
22929 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22930 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22931 case $host_cpu in
22932 arm*)
22933 LIB_GCC="-lgcc_s"
22934 ;;
22935 *)
22936 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22937 ## immediately undefine it again and redefine it to empty.
22938 ## Was the C_SWITCH_X_SITE part really necessary?
22939 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22940 LIB_GCC=
22941 ;;
22942 esac
22943 ;;
22944
22945 ## Ask GCC where to find libgcc.a.
22946 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22947 esac
22948 fi
22949
22950
22951 ## If we're using X11/GNUstep, define some consequences.
22952 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22953
22954 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22955
22956
22957 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22958
22959 fi
22960
22961
22962
22963
22964 #### Report on what we decided to do.
22965 #### Report GTK as a toolkit, even if it doesn't use Xt.
22966 #### It makes printing result more understandable as using GTK sets
22967 #### toolkit_scroll_bars to yes by default.
22968 if test "${HAVE_GTK}" = "yes"; then
22969 USE_X_TOOLKIT=GTK
22970 fi
22971
22972 echo "
22973 Configured for \`${canonical}'.
22974
22975 Where should the build process find the source code? ${srcdir}
22976 What operating system file should Emacs use? ${opsysfile-none}
22977 What compiler should emacs be built with? ${CC} ${CFLAGS}
22978 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22979 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22980 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22981 What window system should Emacs use? ${window_system}
22982 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22983
22984 if test -n "${x_includes}"; then
22985 echo " Where do we find X Windows header files? ${x_includes}"
22986 else
22987 echo " Where do we find X Windows header files? Standard dirs"
22988 fi
22989 if test -n "${x_libraries}"; then
22990 echo " Where do we find X Windows libraries? ${x_libraries}"
22991 else
22992 echo " Where do we find X Windows libraries? Standard dirs"
22993 fi
22994
22995 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22996 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22997 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22998 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22999 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23000 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23001 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23002 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23003
23004 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23005 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23006 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23007 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23008 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23009 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23010 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23011
23012 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23013 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23014 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23015 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23016
23017 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23018 echo
23019
23020 if test -n "${EMACSDATA}"; then
23021 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23022 fi
23023 if test -n "${EMACSDOC}"; then
23024 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23025 fi
23026
23027 if test $USE_XASSERTS = yes; then
23028 echo " Compiling with asserts turned on."
23029 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23030 fi
23031
23032 echo
23033
23034 if test "$HAVE_NS" = "yes"; then
23035 echo
23036 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23037 The installed application will go to nextstep/Emacs.app and can be
23038 run or moved from there."
23039 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23040 echo "The application will be fully self-contained."
23041 else
23042 echo "The lisp resources for the application will be installed under ${prefix}.
23043 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23044 to run if these resources are not installed."
23045 fi
23046 echo
23047 fi
23048
23049 if test "${opsys}" = "cygwin"; then
23050 case `uname -r` in
23051 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23052 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23053 echo
23054 ;;
23055 esac
23056 fi
23057
23058 # Remove any trailing slashes in these variables.
23059 test "${prefix}" != NONE &&
23060 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23061 test "${exec_prefix}" != NONE &&
23062 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23063
23064 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"
23065
23066 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"
23067
23068
23069 opt_makefile=test/automated/Makefile
23070
23071 if test -f $srcdir/${opt_makefile}.in; then
23072 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23073 ac_config_files="$ac_config_files test/automated/Makefile"
23074
23075 fi
23076
23077
23078 opt_makefile=admin/unidata/Makefile
23079
23080 if test -f $srcdir/${opt_makefile}.in; then
23081 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23082 ac_config_files="$ac_config_files admin/unidata/Makefile"
23083
23084 fi
23085
23086
23087 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23088
23089
23090
23091 ac_config_commands="$ac_config_commands mkdirs"
23092
23093
23094 ac_config_commands="$ac_config_commands epaths"
23095
23096
23097 ac_config_commands="$ac_config_commands gdbinit"
23098
23099
23100 cat >confcache <<\_ACEOF
23101 # This file is a shell script that caches the results of configure
23102 # tests run on this system so they can be shared between configure
23103 # scripts and configure runs, see configure's option --config-cache.
23104 # It is not useful on other systems. If it contains results you don't
23105 # want to keep, you may remove or edit it.
23106 #
23107 # config.status only pays attention to the cache file if you give it
23108 # the --recheck option to rerun configure.
23109 #
23110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23112 # following values.
23113
23114 _ACEOF
23115
23116 # The following way of writing the cache mishandles newlines in values,
23117 # but we know of no workaround that is simple, portable, and efficient.
23118 # So, we kill variables containing newlines.
23119 # Ultrix sh set writes to stderr and can't be redirected directly,
23120 # and sets the high bit in the cache file unless we assign to the vars.
23121 (
23122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23123 eval ac_val=\$$ac_var
23124 case $ac_val in #(
23125 *${as_nl}*)
23126 case $ac_var in #(
23127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23129 esac
23130 case $ac_var in #(
23131 _ | IFS | as_nl) ;; #(
23132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23133 *) { eval $ac_var=; unset $ac_var;} ;;
23134 esac ;;
23135 esac
23136 done
23137
23138 (set) 2>&1 |
23139 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23140 *${as_nl}ac_space=\ *)
23141 # `set' does not quote correctly, so add quotes: double-quote
23142 # substitution turns \\\\ into \\, and sed turns \\ into \.
23143 sed -n \
23144 "s/'/'\\\\''/g;
23145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23146 ;; #(
23147 *)
23148 # `set' quotes correctly as required by POSIX, so do not add quotes.
23149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23150 ;;
23151 esac |
23152 sort
23153 ) |
23154 sed '
23155 /^ac_cv_env_/b end
23156 t clear
23157 :clear
23158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23159 t end
23160 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23161 :end' >>confcache
23162 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23163 if test -w "$cache_file"; then
23164 test "x$cache_file" != "x/dev/null" &&
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23166 $as_echo "$as_me: updating cache $cache_file" >&6;}
23167 cat confcache >$cache_file
23168 else
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23170 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23171 fi
23172 fi
23173 rm -f confcache
23174
23175 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23176 # Let make expand exec_prefix.
23177 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23178
23179 DEFS=-DHAVE_CONFIG_H
23180
23181 ac_libobjs=
23182 ac_ltlibobjs=
23183 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23184 # 1. Remove the extension, and $U if already installed.
23185 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23186 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23187 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23188 # will be set to the directory where LIBOBJS objects are built.
23189 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23190 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23191 done
23192 LIBOBJS=$ac_libobjs
23193
23194 LTLIBOBJS=$ac_ltlibobjs
23195
23196
23197 if test -n "$EXEEXT"; then
23198 am__EXEEXT_TRUE=
23199 am__EXEEXT_FALSE='#'
23200 else
23201 am__EXEEXT_TRUE='#'
23202 am__EXEEXT_FALSE=
23203 fi
23204
23205 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23206 as_fn_error "conditional \"AMDEP\" was never defined.
23207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 fi
23209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23210 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 fi
23213 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23214 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23216 fi
23217 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23218 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23220 fi
23221
23222 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23223 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23225 fi
23226 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23227 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23229 fi
23230 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23231 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233 fi
23234 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23235 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 fi
23238 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23239 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23241 fi
23242 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23243 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23245 fi
23246 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23247 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23249 fi
23250 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23251 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23253 fi
23254 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23255 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23257 fi
23258 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23259 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23261 fi
23262 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23263 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23265 fi
23266 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23267 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23269 fi
23270
23271 gl_libobjs=
23272 gl_ltlibobjs=
23273 if test -n "$gl_LIBOBJS"; then
23274 # Remove the extension.
23275 sed_drop_objext='s/\.o$//;s/\.obj$//'
23276 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23277 gl_libobjs="$gl_libobjs $i.$ac_objext"
23278 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23279 done
23280 fi
23281 gl_LIBOBJS=$gl_libobjs
23282
23283 gl_LTLIBOBJS=$gl_ltlibobjs
23284
23285
23286
23287 gltests_libobjs=
23288 gltests_ltlibobjs=
23289 if test -n "$gltests_LIBOBJS"; then
23290 # Remove the extension.
23291 sed_drop_objext='s/\.o$//;s/\.obj$//'
23292 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23293 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23294 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23295 done
23296 fi
23297 gltests_LIBOBJS=$gltests_libobjs
23298
23299 gltests_LTLIBOBJS=$gltests_ltlibobjs
23300
23301
23302
23303 : ${CONFIG_STATUS=./config.status}
23304 ac_write_fail=0
23305 ac_clean_files_save=$ac_clean_files
23306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23308 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23309 as_write_fail=0
23310 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23311 #! $SHELL
23312 # Generated by $as_me.
23313 # Run this file to recreate the current configuration.
23314 # Compiler output produced by configure, useful for debugging
23315 # configure, is in config.log if it exists.
23316
23317 debug=false
23318 ac_cs_recheck=false
23319 ac_cs_silent=false
23320
23321 SHELL=\${CONFIG_SHELL-$SHELL}
23322 export SHELL
23323 _ASEOF
23324 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23325 ## -------------------- ##
23326 ## M4sh Initialization. ##
23327 ## -------------------- ##
23328
23329 # Be more Bourne compatible
23330 DUALCASE=1; export DUALCASE # for MKS sh
23331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23332 emulate sh
23333 NULLCMD=:
23334 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23335 # is contrary to our usage. Disable this feature.
23336 alias -g '${1+"$@"}'='"$@"'
23337 setopt NO_GLOB_SUBST
23338 else
23339 case `(set -o) 2>/dev/null` in #(
23340 *posix*) :
23341 set -o posix ;; #(
23342 *) :
23343 ;;
23344 esac
23345 fi
23346
23347
23348 as_nl='
23349 '
23350 export as_nl
23351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23352 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23355 # Prefer a ksh shell builtin over an external printf program on Solaris,
23356 # but without wasting forks for bash or zsh.
23357 if test -z "$BASH_VERSION$ZSH_VERSION" \
23358 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23359 as_echo='print -r --'
23360 as_echo_n='print -rn --'
23361 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23362 as_echo='printf %s\n'
23363 as_echo_n='printf %s'
23364 else
23365 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23366 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23367 as_echo_n='/usr/ucb/echo -n'
23368 else
23369 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23370 as_echo_n_body='eval
23371 arg=$1;
23372 case $arg in #(
23373 *"$as_nl"*)
23374 expr "X$arg" : "X\\(.*\\)$as_nl";
23375 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23376 esac;
23377 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23378 '
23379 export as_echo_n_body
23380 as_echo_n='sh -c $as_echo_n_body as_echo'
23381 fi
23382 export as_echo_body
23383 as_echo='sh -c $as_echo_body as_echo'
23384 fi
23385
23386 # The user is always right.
23387 if test "${PATH_SEPARATOR+set}" != set; then
23388 PATH_SEPARATOR=:
23389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23390 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23391 PATH_SEPARATOR=';'
23392 }
23393 fi
23394
23395
23396 # IFS
23397 # We need space, tab and new line, in precisely that order. Quoting is
23398 # there to prevent editors from complaining about space-tab.
23399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23400 # splitting by setting IFS to empty value.)
23401 IFS=" "" $as_nl"
23402
23403 # Find who we are. Look in the path if we contain no directory separator.
23404 case $0 in #((
23405 *[\\/]* ) as_myself=$0 ;;
23406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23407 for as_dir in $PATH
23408 do
23409 IFS=$as_save_IFS
23410 test -z "$as_dir" && as_dir=.
23411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23412 done
23413 IFS=$as_save_IFS
23414
23415 ;;
23416 esac
23417 # We did not find ourselves, most probably we were run as `sh COMMAND'
23418 # in which case we are not to be found in the path.
23419 if test "x$as_myself" = x; then
23420 as_myself=$0
23421 fi
23422 if test ! -f "$as_myself"; then
23423 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23424 exit 1
23425 fi
23426
23427 # Unset variables that we do not need and which cause bugs (e.g. in
23428 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23429 # suppresses any "Segmentation fault" message there. '((' could
23430 # trigger a bug in pdksh 5.2.14.
23431 for as_var in BASH_ENV ENV MAIL MAILPATH
23432 do eval test x\${$as_var+set} = xset \
23433 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23434 done
23435 PS1='$ '
23436 PS2='> '
23437 PS4='+ '
23438
23439 # NLS nuisances.
23440 LC_ALL=C
23441 export LC_ALL
23442 LANGUAGE=C
23443 export LANGUAGE
23444
23445 # CDPATH.
23446 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23447
23448
23449 # as_fn_error ERROR [LINENO LOG_FD]
23450 # ---------------------------------
23451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23453 # script with status $?, using 1 if that was 0.
23454 as_fn_error ()
23455 {
23456 as_status=$?; test $as_status -eq 0 && as_status=1
23457 if test "$3"; then
23458 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23459 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23460 fi
23461 $as_echo "$as_me: error: $1" >&2
23462 as_fn_exit $as_status
23463 } # as_fn_error
23464
23465
23466 # as_fn_set_status STATUS
23467 # -----------------------
23468 # Set $? to STATUS, without forking.
23469 as_fn_set_status ()
23470 {
23471 return $1
23472 } # as_fn_set_status
23473
23474 # as_fn_exit STATUS
23475 # -----------------
23476 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23477 as_fn_exit ()
23478 {
23479 set +e
23480 as_fn_set_status $1
23481 exit $1
23482 } # as_fn_exit
23483
23484 # as_fn_unset VAR
23485 # ---------------
23486 # Portably unset VAR.
23487 as_fn_unset ()
23488 {
23489 { eval $1=; unset $1;}
23490 }
23491 as_unset=as_fn_unset
23492 # as_fn_append VAR VALUE
23493 # ----------------------
23494 # Append the text in VALUE to the end of the definition contained in VAR. Take
23495 # advantage of any shell optimizations that allow amortized linear growth over
23496 # repeated appends, instead of the typical quadratic growth present in naive
23497 # implementations.
23498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23499 eval 'as_fn_append ()
23500 {
23501 eval $1+=\$2
23502 }'
23503 else
23504 as_fn_append ()
23505 {
23506 eval $1=\$$1\$2
23507 }
23508 fi # as_fn_append
23509
23510 # as_fn_arith ARG...
23511 # ------------------
23512 # Perform arithmetic evaluation on the ARGs, and store the result in the
23513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23514 # must be portable across $(()) and expr.
23515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23516 eval 'as_fn_arith ()
23517 {
23518 as_val=$(( $* ))
23519 }'
23520 else
23521 as_fn_arith ()
23522 {
23523 as_val=`expr "$@" || test $? -eq 1`
23524 }
23525 fi # as_fn_arith
23526
23527
23528 if expr a : '\(a\)' >/dev/null 2>&1 &&
23529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23530 as_expr=expr
23531 else
23532 as_expr=false
23533 fi
23534
23535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23536 as_basename=basename
23537 else
23538 as_basename=false
23539 fi
23540
23541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23542 as_dirname=dirname
23543 else
23544 as_dirname=false
23545 fi
23546
23547 as_me=`$as_basename -- "$0" ||
23548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23549 X"$0" : 'X\(//\)$' \| \
23550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23551 $as_echo X/"$0" |
23552 sed '/^.*\/\([^/][^/]*\)\/*$/{
23553 s//\1/
23554 q
23555 }
23556 /^X\/\(\/\/\)$/{
23557 s//\1/
23558 q
23559 }
23560 /^X\/\(\/\).*/{
23561 s//\1/
23562 q
23563 }
23564 s/.*/./; q'`
23565
23566 # Avoid depending upon Character Ranges.
23567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23570 as_cr_digits='0123456789'
23571 as_cr_alnum=$as_cr_Letters$as_cr_digits
23572
23573 ECHO_C= ECHO_N= ECHO_T=
23574 case `echo -n x` in #(((((
23575 -n*)
23576 case `echo 'xy\c'` in
23577 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23578 xy) ECHO_C='\c';;
23579 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23580 ECHO_T=' ';;
23581 esac;;
23582 *)
23583 ECHO_N='-n';;
23584 esac
23585
23586 rm -f conf$$ conf$$.exe conf$$.file
23587 if test -d conf$$.dir; then
23588 rm -f conf$$.dir/conf$$.file
23589 else
23590 rm -f conf$$.dir
23591 mkdir conf$$.dir 2>/dev/null
23592 fi
23593 if (echo >conf$$.file) 2>/dev/null; then
23594 if ln -s conf$$.file conf$$ 2>/dev/null; then
23595 as_ln_s='ln -s'
23596 # ... but there are two gotchas:
23597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23599 # In both cases, we have to default to `cp -p'.
23600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23601 as_ln_s='cp -p'
23602 elif ln conf$$.file conf$$ 2>/dev/null; then
23603 as_ln_s=ln
23604 else
23605 as_ln_s='cp -p'
23606 fi
23607 else
23608 as_ln_s='cp -p'
23609 fi
23610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23611 rmdir conf$$.dir 2>/dev/null
23612
23613
23614 # as_fn_mkdir_p
23615 # -------------
23616 # Create "$as_dir" as a directory, including parents if necessary.
23617 as_fn_mkdir_p ()
23618 {
23619
23620 case $as_dir in #(
23621 -*) as_dir=./$as_dir;;
23622 esac
23623 test -d "$as_dir" || eval $as_mkdir_p || {
23624 as_dirs=
23625 while :; do
23626 case $as_dir in #(
23627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23628 *) as_qdir=$as_dir;;
23629 esac
23630 as_dirs="'$as_qdir' $as_dirs"
23631 as_dir=`$as_dirname -- "$as_dir" ||
23632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633 X"$as_dir" : 'X\(//\)[^/]' \| \
23634 X"$as_dir" : 'X\(//\)$' \| \
23635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23636 $as_echo X"$as_dir" |
23637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638 s//\1/
23639 q
23640 }
23641 /^X\(\/\/\)[^/].*/{
23642 s//\1/
23643 q
23644 }
23645 /^X\(\/\/\)$/{
23646 s//\1/
23647 q
23648 }
23649 /^X\(\/\).*/{
23650 s//\1/
23651 q
23652 }
23653 s/.*/./; q'`
23654 test -d "$as_dir" && break
23655 done
23656 test -z "$as_dirs" || eval "mkdir $as_dirs"
23657 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23658
23659
23660 } # as_fn_mkdir_p
23661 if mkdir -p . 2>/dev/null; then
23662 as_mkdir_p='mkdir -p "$as_dir"'
23663 else
23664 test -d ./-p && rmdir ./-p
23665 as_mkdir_p=false
23666 fi
23667
23668 if test -x / >/dev/null 2>&1; then
23669 as_test_x='test -x'
23670 else
23671 if ls -dL / >/dev/null 2>&1; then
23672 as_ls_L_option=L
23673 else
23674 as_ls_L_option=
23675 fi
23676 as_test_x='
23677 eval sh -c '\''
23678 if test -d "$1"; then
23679 test -d "$1/.";
23680 else
23681 case $1 in #(
23682 -*)set "./$1";;
23683 esac;
23684 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23685 ???[sx]*):;;*)false;;esac;fi
23686 '\'' sh
23687 '
23688 fi
23689 as_executable_p=$as_test_x
23690
23691 # Sed expression to map a string onto a valid CPP name.
23692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23693
23694 # Sed expression to map a string onto a valid variable name.
23695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23696
23697
23698 exec 6>&1
23699 ## ----------------------------------- ##
23700 ## Main body of $CONFIG_STATUS script. ##
23701 ## ----------------------------------- ##
23702 _ASEOF
23703 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23704
23705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23706 # Save the log message, to keep $0 and so on meaningful, and to
23707 # report actual input values of CONFIG_FILES etc. instead of their
23708 # values after options handling.
23709 ac_log="
23710 This file was extended by emacs $as_me 24.1.50, which was
23711 generated by GNU Autoconf 2.65. Invocation command line was
23712
23713 CONFIG_FILES = $CONFIG_FILES
23714 CONFIG_HEADERS = $CONFIG_HEADERS
23715 CONFIG_LINKS = $CONFIG_LINKS
23716 CONFIG_COMMANDS = $CONFIG_COMMANDS
23717 $ $0 $@
23718
23719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23720 "
23721
23722 _ACEOF
23723
23724 case $ac_config_files in *"
23725 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23726 esac
23727
23728 case $ac_config_headers in *"
23729 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23730 esac
23731
23732
23733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23734 # Files that config.status was made for.
23735 config_files="$ac_config_files"
23736 config_headers="$ac_config_headers"
23737 config_commands="$ac_config_commands"
23738
23739 _ACEOF
23740
23741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23742 ac_cs_usage="\
23743 \`$as_me' instantiates files and other configuration actions
23744 from templates according to the current configuration. Unless the files
23745 and actions are specified as TAGs, all are instantiated by default.
23746
23747 Usage: $0 [OPTION]... [TAG]...
23748
23749 -h, --help print this help, then exit
23750 -V, --version print version number and configuration settings, then exit
23751 --config print configuration, then exit
23752 -q, --quiet, --silent
23753 do not print progress messages
23754 -d, --debug don't remove temporary files
23755 --recheck update $as_me by reconfiguring in the same conditions
23756 --file=FILE[:TEMPLATE]
23757 instantiate the configuration file FILE
23758 --header=FILE[:TEMPLATE]
23759 instantiate the configuration header FILE
23760
23761 Configuration files:
23762 $config_files
23763
23764 Configuration headers:
23765 $config_headers
23766
23767 Configuration commands:
23768 $config_commands
23769
23770 Report bugs to the package provider."
23771
23772 _ACEOF
23773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23774 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23775 ac_cs_version="\\
23776 emacs config.status 24.1.50
23777 configured by $0, generated by GNU Autoconf 2.65,
23778 with options \\"\$ac_cs_config\\"
23779
23780 Copyright (C) 2009 Free Software Foundation, Inc.
23781 This config.status script is free software; the Free Software Foundation
23782 gives unlimited permission to copy, distribute and modify it."
23783
23784 ac_pwd='$ac_pwd'
23785 srcdir='$srcdir'
23786 INSTALL='$INSTALL'
23787 MKDIR_P='$MKDIR_P'
23788 AWK='$AWK'
23789 test -n "\$AWK" || AWK=awk
23790 _ACEOF
23791
23792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23793 # The default lists apply if the user does not specify any file.
23794 ac_need_defaults=:
23795 while test $# != 0
23796 do
23797 case $1 in
23798 --*=*)
23799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23801 ac_shift=:
23802 ;;
23803 *)
23804 ac_option=$1
23805 ac_optarg=$2
23806 ac_shift=shift
23807 ;;
23808 esac
23809
23810 case $ac_option in
23811 # Handling of the options.
23812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23813 ac_cs_recheck=: ;;
23814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23815 $as_echo "$ac_cs_version"; exit ;;
23816 --config | --confi | --conf | --con | --co | --c )
23817 $as_echo "$ac_cs_config"; exit ;;
23818 --debug | --debu | --deb | --de | --d | -d )
23819 debug=: ;;
23820 --file | --fil | --fi | --f )
23821 $ac_shift
23822 case $ac_optarg in
23823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23824 esac
23825 as_fn_append CONFIG_FILES " '$ac_optarg'"
23826 ac_need_defaults=false;;
23827 --header | --heade | --head | --hea )
23828 $ac_shift
23829 case $ac_optarg in
23830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23831 esac
23832 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23833 ac_need_defaults=false;;
23834 --he | --h)
23835 # Conflict between --help and --header
23836 as_fn_error "ambiguous option: \`$1'
23837 Try \`$0 --help' for more information.";;
23838 --help | --hel | -h )
23839 $as_echo "$ac_cs_usage"; exit ;;
23840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23842 ac_cs_silent=: ;;
23843
23844 # This is an error.
23845 -*) as_fn_error "unrecognized option: \`$1'
23846 Try \`$0 --help' for more information." ;;
23847
23848 *) as_fn_append ac_config_targets " $1"
23849 ac_need_defaults=false ;;
23850
23851 esac
23852 shift
23853 done
23854
23855 ac_configure_extra_args=
23856
23857 if $ac_cs_silent; then
23858 exec 6>/dev/null
23859 ac_configure_extra_args="$ac_configure_extra_args --silent"
23860 fi
23861
23862 _ACEOF
23863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23864 if \$ac_cs_recheck; then
23865 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23866 shift
23867 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23868 CONFIG_SHELL='$SHELL'
23869 export CONFIG_SHELL
23870 exec "\$@"
23871 fi
23872
23873 _ACEOF
23874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23875 exec 5>>config.log
23876 {
23877 echo
23878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23879 ## Running $as_me. ##
23880 _ASBOX
23881 $as_echo "$ac_log"
23882 } >&5
23883
23884 _ACEOF
23885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23886 #
23887 # INIT-COMMANDS
23888 #
23889 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23890 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23891
23892 _ACEOF
23893
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895
23896 # Handling of arguments.
23897 for ac_config_target in $ac_config_targets
23898 do
23899 case $ac_config_target in
23900 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23901 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23902 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23903 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23904 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23905 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23906 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23907 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23908 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23909 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23910 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23911 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23912 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23913 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23914 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23915 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23916 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23917 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23918 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23919
23920 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23921 esac
23922 done
23923
23924
23925 # If the user did not use the arguments to specify the items to instantiate,
23926 # then the envvar interface is used. Set only those that are not.
23927 # We use the long form for the default assignment because of an extremely
23928 # bizarre bug on SunOS 4.1.3.
23929 if $ac_need_defaults; then
23930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23933 fi
23934
23935 # Have a temporary directory for convenience. Make it in the build tree
23936 # simply because there is no reason against having it here, and in addition,
23937 # creating and moving files from /tmp can sometimes cause problems.
23938 # Hook for its removal unless debugging.
23939 # Note that there is a small window in which the directory will not be cleaned:
23940 # after its creation but before its name has been assigned to `$tmp'.
23941 $debug ||
23942 {
23943 tmp=
23944 trap 'exit_status=$?
23945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23946 ' 0
23947 trap 'as_fn_exit 1' 1 2 13 15
23948 }
23949 # Create a (secure) tmp directory for tmp files.
23950
23951 {
23952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23953 test -n "$tmp" && test -d "$tmp"
23954 } ||
23955 {
23956 tmp=./conf$$-$RANDOM
23957 (umask 077 && mkdir "$tmp")
23958 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23959
23960 # Set up the scripts for CONFIG_FILES section.
23961 # No need to generate them if there are no CONFIG_FILES.
23962 # This happens for instance with `./config.status config.h'.
23963 if test -n "$CONFIG_FILES"; then
23964
23965 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23966 ac_cs_awk_getline=:
23967 ac_cs_awk_pipe_init=
23968 ac_cs_awk_read_file='
23969 while ((getline aline < (F[key])) > 0)
23970 print(aline)
23971 close(F[key])'
23972 ac_cs_awk_pipe_fini=
23973 else
23974 ac_cs_awk_getline=false
23975 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23976 ac_cs_awk_read_file='
23977 print "|#_!!_#|"
23978 print "cat " F[key] " &&"
23979 '$ac_cs_awk_pipe_init
23980 # The final `:' finishes the AND list.
23981 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23982 fi
23983 ac_cr=`echo X | tr X '\015'`
23984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23985 # But we know of no other shell where ac_cr would be empty at this
23986 # point, so we can use a bashism as a fallback.
23987 if test "x$ac_cr" = x; then
23988 eval ac_cr=\$\'\\r\'
23989 fi
23990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23992 ac_cs_awk_cr='\r'
23993 else
23994 ac_cs_awk_cr=$ac_cr
23995 fi
23996
23997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23998 _ACEOF
23999
24000 # Create commands to substitute file output variables.
24001 {
24002 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24003 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24004 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24005 echo "_ACAWK" &&
24006 echo "_ACEOF"
24007 } >conf$$files.sh &&
24008 . ./conf$$files.sh ||
24009 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24010 rm -f conf$$files.sh
24011
24012 {
24013 echo "cat >conf$$subs.awk <<_ACEOF" &&
24014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24015 echo "_ACEOF"
24016 } >conf$$subs.sh ||
24017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24019 ac_delim='%!_!# '
24020 for ac_last_try in false false false false false :; do
24021 . ./conf$$subs.sh ||
24022 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24023
24024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24025 if test $ac_delim_n = $ac_delim_num; then
24026 break
24027 elif $ac_last_try; then
24028 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24029 else
24030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24031 fi
24032 done
24033 rm -f conf$$subs.sh
24034
24035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24036 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24037 _ACEOF
24038 sed -n '
24039 h
24040 s/^/S["/; s/!.*/"]=/
24041 p
24042 g
24043 s/^[^!]*!//
24044 :repl
24045 t repl
24046 s/'"$ac_delim"'$//
24047 t delim
24048 :nl
24049 h
24050 s/\(.\{148\}\)..*/\1/
24051 t more1
24052 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24053 p
24054 n
24055 b repl
24056 :more1
24057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24058 p
24059 g
24060 s/.\{148\}//
24061 t nl
24062 :delim
24063 h
24064 s/\(.\{148\}\)..*/\1/
24065 t more2
24066 s/["\\]/\\&/g; s/^/"/; s/$/"/
24067 p
24068 b
24069 :more2
24070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24071 p
24072 g
24073 s/.\{148\}//
24074 t delim
24075 ' <conf$$subs.awk | sed '
24076 /^[^""]/{
24077 N
24078 s/\n//
24079 }
24080 ' >>$CONFIG_STATUS || ac_write_fail=1
24081 rm -f conf$$subs.awk
24082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24083 _ACAWK
24084 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24085 for (key in S) S_is_set[key] = 1
24086 FS = "\a"
24087 \$ac_cs_awk_pipe_init
24088 }
24089 {
24090 line = $ 0
24091 nfields = split(line, field, "@")
24092 substed = 0
24093 len = length(field[1])
24094 for (i = 2; i < nfields; i++) {
24095 key = field[i]
24096 keylen = length(key)
24097 if (S_is_set[key]) {
24098 value = S[key]
24099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24100 len += length(value) + length(field[++i])
24101 substed = 1
24102 } else
24103 len += 1 + keylen
24104 }
24105 if (nfields == 3 && !substed) {
24106 key = field[2]
24107 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24108 \$ac_cs_awk_read_file
24109 next
24110 }
24111 }
24112 print line
24113 }
24114 \$ac_cs_awk_pipe_fini
24115 _ACAWK
24116 _ACEOF
24117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24118 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24119 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24120 else
24121 cat
24122 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24123 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24124 _ACEOF
24125
24126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24128 # trailing colons and then remove the whole line if VPATH becomes empty
24129 # (actually we leave an empty line to preserve line numbers).
24130 if test "x$srcdir" = x.; then
24131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24132 s/:*\$(srcdir):*/:/
24133 s/:*\${srcdir}:*/:/
24134 s/:*@srcdir@:*/:/
24135 s/^\([^=]*=[ ]*\):*/\1/
24136 s/:*$//
24137 s/^[^=]*=[ ]*$//
24138 }'
24139 fi
24140
24141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24142 fi # test -n "$CONFIG_FILES"
24143
24144 # Set up the scripts for CONFIG_HEADERS section.
24145 # No need to generate them if there are no CONFIG_HEADERS.
24146 # This happens for instance with `./config.status Makefile'.
24147 if test -n "$CONFIG_HEADERS"; then
24148 cat >"$tmp/defines.awk" <<\_ACAWK ||
24149 BEGIN {
24150 _ACEOF
24151
24152 # Transform confdefs.h into an awk script `defines.awk', embedded as
24153 # here-document in config.status, that substitutes the proper values into
24154 # config.h.in to produce config.h.
24155
24156 # Create a delimiter string that does not exist in confdefs.h, to ease
24157 # handling of long lines.
24158 ac_delim='%!_!# '
24159 for ac_last_try in false false :; do
24160 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24161 if test -z "$ac_t"; then
24162 break
24163 elif $ac_last_try; then
24164 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24165 else
24166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24167 fi
24168 done
24169
24170 # For the awk script, D is an array of macro values keyed by name,
24171 # likewise P contains macro parameters if any. Preserve backslash
24172 # newline sequences.
24173
24174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24175 sed -n '
24176 s/.\{148\}/&'"$ac_delim"'/g
24177 t rset
24178 :rset
24179 s/^[ ]*#[ ]*define[ ][ ]*/ /
24180 t def
24181 d
24182 :def
24183 s/\\$//
24184 t bsnl
24185 s/["\\]/\\&/g
24186 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24187 D["\1"]=" \3"/p
24188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24189 d
24190 :bsnl
24191 s/["\\]/\\&/g
24192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24193 D["\1"]=" \3\\\\\\n"\\/p
24194 t cont
24195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24196 t cont
24197 d
24198 :cont
24199 n
24200 s/.\{148\}/&'"$ac_delim"'/g
24201 t clear
24202 :clear
24203 s/\\$//
24204 t bsnlc
24205 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24206 d
24207 :bsnlc
24208 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24209 b cont
24210 ' <confdefs.h | sed '
24211 s/'"$ac_delim"'/"\\\
24212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24213
24214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24215 for (key in D) D_is_set[key] = 1
24216 FS = "\a"
24217 }
24218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24219 line = \$ 0
24220 split(line, arg, " ")
24221 if (arg[1] == "#") {
24222 defundef = arg[2]
24223 mac1 = arg[3]
24224 } else {
24225 defundef = substr(arg[1], 2)
24226 mac1 = arg[2]
24227 }
24228 split(mac1, mac2, "(") #)
24229 macro = mac2[1]
24230 prefix = substr(line, 1, index(line, defundef) - 1)
24231 if (D_is_set[macro]) {
24232 # Preserve the white space surrounding the "#".
24233 print prefix "define", macro P[macro] D[macro]
24234 next
24235 } else {
24236 # Replace #undef with comments. This is necessary, for example,
24237 # in the case of _POSIX_SOURCE, which is predefined and required
24238 # on some systems where configure will not decide to define it.
24239 if (defundef == "undef") {
24240 print "/*", prefix defundef, macro, "*/"
24241 next
24242 }
24243 }
24244 }
24245 { print }
24246 _ACAWK
24247 _ACEOF
24248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24249 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24250 fi # test -n "$CONFIG_HEADERS"
24251
24252
24253 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24254 shift
24255 for ac_tag
24256 do
24257 case $ac_tag in
24258 :[FHLC]) ac_mode=$ac_tag; continue;;
24259 esac
24260 case $ac_mode$ac_tag in
24261 :[FHL]*:*);;
24262 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24263 :[FH]-) ac_tag=-:-;;
24264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24265 esac
24266 ac_save_IFS=$IFS
24267 IFS=:
24268 set x $ac_tag
24269 IFS=$ac_save_IFS
24270 shift
24271 ac_file=$1
24272 shift
24273
24274 case $ac_mode in
24275 :L) ac_source=$1;;
24276 :[FH])
24277 ac_file_inputs=
24278 for ac_f
24279 do
24280 case $ac_f in
24281 -) ac_f="$tmp/stdin";;
24282 *) # Look for the file first in the build tree, then in the source tree
24283 # (if the path is not absolute). The absolute path cannot be DOS-style,
24284 # because $ac_f cannot contain `:'.
24285 test -f "$ac_f" ||
24286 case $ac_f in
24287 [\\/$]*) false;;
24288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24289 esac ||
24290 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24291 esac
24292 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24293 as_fn_append ac_file_inputs " '$ac_f'"
24294 done
24295
24296 # Let's still pretend it is `configure' which instantiates (i.e., don't
24297 # use $as_me), people would be surprised to read:
24298 # /* config.h. Generated by config.status. */
24299 configure_input='Generated from '`
24300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24301 `' by configure.'
24302 if test x"$ac_file" != x-; then
24303 configure_input="$ac_file. $configure_input"
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24305 $as_echo "$as_me: creating $ac_file" >&6;}
24306 fi
24307 # Neutralize special characters interpreted by sed in replacement strings.
24308 case $configure_input in #(
24309 *\&* | *\|* | *\\* )
24310 ac_sed_conf_input=`$as_echo "$configure_input" |
24311 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24312 *) ac_sed_conf_input=$configure_input;;
24313 esac
24314
24315 case $ac_tag in
24316 *:-:* | *:-) cat >"$tmp/stdin" \
24317 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24318 esac
24319 ;;
24320 esac
24321
24322 ac_dir=`$as_dirname -- "$ac_file" ||
24323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24324 X"$ac_file" : 'X\(//\)[^/]' \| \
24325 X"$ac_file" : 'X\(//\)$' \| \
24326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24327 $as_echo X"$ac_file" |
24328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24329 s//\1/
24330 q
24331 }
24332 /^X\(\/\/\)[^/].*/{
24333 s//\1/
24334 q
24335 }
24336 /^X\(\/\/\)$/{
24337 s//\1/
24338 q
24339 }
24340 /^X\(\/\).*/{
24341 s//\1/
24342 q
24343 }
24344 s/.*/./; q'`
24345 as_dir="$ac_dir"; as_fn_mkdir_p
24346 ac_builddir=.
24347
24348 case "$ac_dir" in
24349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24350 *)
24351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24352 # A ".." for each directory in $ac_dir_suffix.
24353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24354 case $ac_top_builddir_sub in
24355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24357 esac ;;
24358 esac
24359 ac_abs_top_builddir=$ac_pwd
24360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24361 # for backward compatibility:
24362 ac_top_builddir=$ac_top_build_prefix
24363
24364 case $srcdir in
24365 .) # We are building in place.
24366 ac_srcdir=.
24367 ac_top_srcdir=$ac_top_builddir_sub
24368 ac_abs_top_srcdir=$ac_pwd ;;
24369 [\\/]* | ?:[\\/]* ) # Absolute name.
24370 ac_srcdir=$srcdir$ac_dir_suffix;
24371 ac_top_srcdir=$srcdir
24372 ac_abs_top_srcdir=$srcdir ;;
24373 *) # Relative name.
24374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24375 ac_top_srcdir=$ac_top_build_prefix$srcdir
24376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24377 esac
24378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24379
24380
24381 case $ac_mode in
24382 :F)
24383 #
24384 # CONFIG_FILE
24385 #
24386
24387 case $INSTALL in
24388 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24389 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24390 esac
24391 ac_MKDIR_P=$MKDIR_P
24392 case $MKDIR_P in
24393 [\\/$]* | ?:[\\/]* ) ;;
24394 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24395 esac
24396 _ACEOF
24397
24398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24399 # If the template does not know about datarootdir, expand it.
24400 # FIXME: This hack should be removed a few years after 2.60.
24401 ac_datarootdir_hack=; ac_datarootdir_seen=
24402 ac_sed_dataroot='
24403 /datarootdir/ {
24404 p
24405 q
24406 }
24407 /@datadir@/p
24408 /@docdir@/p
24409 /@infodir@/p
24410 /@localedir@/p
24411 /@mandir@/p'
24412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24413 *datarootdir*) ac_datarootdir_seen=yes;;
24414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24417 _ACEOF
24418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24419 ac_datarootdir_hack='
24420 s&@datadir@&$datadir&g
24421 s&@docdir@&$docdir&g
24422 s&@infodir@&$infodir&g
24423 s&@localedir@&$localedir&g
24424 s&@mandir@&$mandir&g
24425 s&\\\${datarootdir}&$datarootdir&g' ;;
24426 esac
24427 _ACEOF
24428
24429 # Neutralize VPATH when `$srcdir' = `.'.
24430 # Shell code in configure.ac might set extrasub.
24431 # FIXME: do we really want to maintain this feature?
24432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24433 ac_sed_extra="$ac_vpsub
24434 $extrasub
24435 _ACEOF
24436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24437 :t
24438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24439 s|@configure_input@|$ac_sed_conf_input|;t t
24440 s&@top_builddir@&$ac_top_builddir_sub&;t t
24441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24442 s&@srcdir@&$ac_srcdir&;t t
24443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24444 s&@top_srcdir@&$ac_top_srcdir&;t t
24445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24446 s&@builddir@&$ac_builddir&;t t
24447 s&@abs_builddir@&$ac_abs_builddir&;t t
24448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24449 s&@INSTALL@&$ac_INSTALL&;t t
24450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24451 $ac_datarootdir_hack
24452 "
24453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24454 if $ac_cs_awk_getline; then
24455 $AWK -f "$tmp/subs.awk"
24456 else
24457 $AWK -f "$tmp/subs.awk" | $SHELL
24458 fi >$tmp/out \
24459 || as_fn_error "could not create $ac_file" "$LINENO" 5
24460
24461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24465 which seems to be undefined. Please make sure it is defined." >&5
24466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24467 which seems to be undefined. Please make sure it is defined." >&2;}
24468
24469 rm -f "$tmp/stdin"
24470 case $ac_file in
24471 -) cat "$tmp/out" && rm -f "$tmp/out";;
24472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24473 esac \
24474 || as_fn_error "could not create $ac_file" "$LINENO" 5
24475 ;;
24476 :H)
24477 #
24478 # CONFIG_HEADER
24479 #
24480 if test x"$ac_file" != x-; then
24481 {
24482 $as_echo "/* $configure_input */" \
24483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24484 } >"$tmp/config.h" \
24485 || as_fn_error "could not create $ac_file" "$LINENO" 5
24486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24489 else
24490 rm -f "$ac_file"
24491 mv "$tmp/config.h" "$ac_file" \
24492 || as_fn_error "could not create $ac_file" "$LINENO" 5
24493 fi
24494 else
24495 $as_echo "/* $configure_input */" \
24496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24497 || as_fn_error "could not create -" "$LINENO" 5
24498 fi
24499 # Compute "$ac_file"'s index in $config_headers.
24500 _am_arg="$ac_file"
24501 _am_stamp_count=1
24502 for _am_header in $config_headers :; do
24503 case $_am_header in
24504 $_am_arg | $_am_arg:* )
24505 break ;;
24506 * )
24507 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24508 esac
24509 done
24510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24512 X"$_am_arg" : 'X\(//\)[^/]' \| \
24513 X"$_am_arg" : 'X\(//\)$' \| \
24514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24515 $as_echo X"$_am_arg" |
24516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24517 s//\1/
24518 q
24519 }
24520 /^X\(\/\/\)[^/].*/{
24521 s//\1/
24522 q
24523 }
24524 /^X\(\/\/\)$/{
24525 s//\1/
24526 q
24527 }
24528 /^X\(\/\).*/{
24529 s//\1/
24530 q
24531 }
24532 s/.*/./; q'`/stamp-h$_am_stamp_count
24533 ;;
24534
24535 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24536 $as_echo "$as_me: executing $ac_file commands" >&6;}
24537 ;;
24538 esac
24539
24540
24541 case $ac_file$ac_mode in
24542 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24543 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24544 # are listed without --file. Let's play safe and only enable the eval
24545 # if we detect the quoting.
24546 case $CONFIG_FILES in
24547 *\'*) eval set x "$CONFIG_FILES" ;;
24548 *) set x $CONFIG_FILES ;;
24549 esac
24550 shift
24551 for mf
24552 do
24553 # Strip MF so we end up with the name of the file.
24554 mf=`echo "$mf" | sed -e 's/:.*$//'`
24555 # Check whether this is an Automake generated Makefile or not.
24556 # We used to match only the files named `Makefile.in', but
24557 # some people rename them; so instead we look at the file content.
24558 # Grep'ing the first line is not enough: some people post-process
24559 # each Makefile.in and add a new line on top of each file to say so.
24560 # Grep'ing the whole file is not good either: AIX grep has a line
24561 # limit of 2048, but all sed's we know have understand at least 4000.
24562 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24563 dirpart=`$as_dirname -- "$mf" ||
24564 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24565 X"$mf" : 'X\(//\)[^/]' \| \
24566 X"$mf" : 'X\(//\)$' \| \
24567 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24568 $as_echo X"$mf" |
24569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24570 s//\1/
24571 q
24572 }
24573 /^X\(\/\/\)[^/].*/{
24574 s//\1/
24575 q
24576 }
24577 /^X\(\/\/\)$/{
24578 s//\1/
24579 q
24580 }
24581 /^X\(\/\).*/{
24582 s//\1/
24583 q
24584 }
24585 s/.*/./; q'`
24586 else
24587 continue
24588 fi
24589 # Extract the definition of DEPDIR, am__include, and am__quote
24590 # from the Makefile without running `make'.
24591 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24592 test -z "$DEPDIR" && continue
24593 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24594 test -z "am__include" && continue
24595 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24596 # When using ansi2knr, U may be empty or an underscore; expand it
24597 U=`sed -n 's/^U = //p' < "$mf"`
24598 # Find all dependency output files, they are included files with
24599 # $(DEPDIR) in their names. We invoke sed twice because it is the
24600 # simplest approach to changing $(DEPDIR) to its actual value in the
24601 # expansion.
24602 for file in `sed -n "
24603 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24604 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24605 # Make sure the directory exists.
24606 test -f "$dirpart/$file" && continue
24607 fdir=`$as_dirname -- "$file" ||
24608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609 X"$file" : 'X\(//\)[^/]' \| \
24610 X"$file" : 'X\(//\)$' \| \
24611 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24612 $as_echo X"$file" |
24613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24614 s//\1/
24615 q
24616 }
24617 /^X\(\/\/\)[^/].*/{
24618 s//\1/
24619 q
24620 }
24621 /^X\(\/\/\)$/{
24622 s//\1/
24623 q
24624 }
24625 /^X\(\/\).*/{
24626 s//\1/
24627 q
24628 }
24629 s/.*/./; q'`
24630 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24631 # echo "creating $dirpart/$file"
24632 echo '# dummy' > "$dirpart/$file"
24633 done
24634 done
24635 }
24636 ;;
24637 "mkdirs":C)
24638 for dir in etc lisp ; do
24639 test -d ${dir} || mkdir ${dir}
24640 done
24641 ;;
24642 "epaths":C)
24643 echo creating src/epaths.h
24644 ${MAKE-make} epaths-force
24645 ;;
24646 "gdbinit":C)
24647 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24648 echo creating src/.gdbinit
24649 echo source $srcdir/src/.gdbinit > src/.gdbinit
24650 fi
24651 ;;
24652
24653 esac
24654 done # for ac_tag
24655
24656
24657 as_fn_exit 0
24658 _ACEOF
24659 ac_clean_files=$ac_clean_files_save
24660
24661 test $ac_write_fail = 0 ||
24662 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24663
24664
24665 # configure is writing to config.log, and then calls config.status.
24666 # config.status does its own redirection, appending to config.log.
24667 # Unfortunately, on DOS this fails, as config.log is still kept open
24668 # by configure, so config.status won't be able to write to it; its
24669 # output is simply discarded. So we exec the FD to /dev/null,
24670 # effectively closing config.log, so it can be properly (re)opened and
24671 # appended to by config.status. When coming back to configure, we
24672 # need to make the FD available again.
24673 if test "$no_create" != yes; then
24674 ac_cs_success=:
24675 ac_config_status_args=
24676 test "$silent" = yes &&
24677 ac_config_status_args="$ac_config_status_args --quiet"
24678 exec 5>/dev/null
24679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24680 exec 5>>config.log
24681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24682 # would make configure fail if this is the last instruction.
24683 $ac_cs_success || as_fn_exit $?
24684 fi
24685 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24687 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24688 fi
24689
24690