]> code.delx.au - gnu-emacs/blob - autogen/configure
upstream
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.1.50'
553 PACKAGE_STRING='emacs 24.1.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 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 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
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 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 <<<<<<< TREE
669 =======
670 gl_GNULIB_ENABLED_sigprocmask_FALSE
671 gl_GNULIB_ENABLED_sigprocmask_TRUE
672 gl_GNULIB_ENABLED_pathmax_FALSE
673 gl_GNULIB_ENABLED_pathmax_TRUE
674 >>>>>>> MERGE-SOURCE
675 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
676 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
677 gl_GNULIB_ENABLED_dosname_FALSE
678 gl_GNULIB_ENABLED_dosname_TRUE
679 LTLIBINTL
680 LIBINTL
681 HAVE_UNISTD_H
682 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
683 NEXT_UNISTD_H
684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
686 TIME_H_DEFINES_STRUCT_TIMESPEC
687 NEXT_AS_FIRST_DIRECTIVE_TIME_H
688 NEXT_TIME_H
689 WINDOWS_64_BIT_OFF_T
690 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
691 NEXT_SYS_TYPES_H
692 WINDOWS_64_BIT_ST_SIZE
693 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
694 NEXT_SYS_STAT_H
695 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
696 NEXT_STDLIB_H
697 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
698 NEXT_STDIO_H
699 REPLACE_VSPRINTF
700 REPLACE_VSNPRINTF
701 REPLACE_VPRINTF
702 REPLACE_VFPRINTF
703 REPLACE_VDPRINTF
704 REPLACE_VASPRINTF
705 REPLACE_TMPFILE
706 REPLACE_STDIO_WRITE_FUNCS
707 REPLACE_STDIO_READ_FUNCS
708 REPLACE_SPRINTF
709 REPLACE_SNPRINTF
710 REPLACE_RENAMEAT
711 REPLACE_RENAME
712 REPLACE_REMOVE
713 REPLACE_PRINTF
714 REPLACE_POPEN
715 REPLACE_PERROR
716 REPLACE_OBSTACK_PRINTF
717 REPLACE_GETLINE
718 REPLACE_GETDELIM
719 REPLACE_FTELLO
720 REPLACE_FTELL
721 REPLACE_FSEEKO
722 REPLACE_FSEEK
723 REPLACE_FREOPEN
724 REPLACE_FPURGE
725 REPLACE_FPRINTF
726 REPLACE_FOPEN
727 REPLACE_FFLUSH
728 REPLACE_FCLOSE
729 REPLACE_DPRINTF
730 HAVE_VDPRINTF
731 HAVE_VASPRINTF
732 HAVE_RENAMEAT
733 HAVE_FTELLO
734 HAVE_FSEEKO
735 HAVE_DPRINTF
736 HAVE_DECL_VSNPRINTF
737 HAVE_DECL_SNPRINTF
738 HAVE_DECL_OBSTACK_PRINTF
739 HAVE_DECL_GETLINE
740 HAVE_DECL_GETDELIM
741 HAVE_DECL_FTELLO
742 HAVE_DECL_FSEEKO
743 HAVE_DECL_FPURGE
744 GNULIB_VSPRINTF_POSIX
745 GNULIB_VSNPRINTF
746 GNULIB_VPRINTF_POSIX
747 GNULIB_VPRINTF
748 GNULIB_VFPRINTF_POSIX
749 GNULIB_VFPRINTF
750 GNULIB_VDPRINTF
751 GNULIB_VSCANF
752 GNULIB_VFSCANF
753 GNULIB_VASPRINTF
754 GNULIB_TMPFILE
755 GNULIB_STDIO_H_SIGPIPE
756 GNULIB_STDIO_H_NONBLOCKING
757 GNULIB_SPRINTF_POSIX
758 GNULIB_SNPRINTF
759 GNULIB_SCANF
760 GNULIB_RENAMEAT
761 GNULIB_RENAME
762 GNULIB_REMOVE
763 GNULIB_PUTS
764 GNULIB_PUTCHAR
765 GNULIB_PUTC
766 GNULIB_PRINTF_POSIX
767 GNULIB_PRINTF
768 GNULIB_POPEN
769 GNULIB_PERROR
770 GNULIB_OBSTACK_PRINTF_POSIX
771 GNULIB_OBSTACK_PRINTF
772 GNULIB_GETLINE
773 GNULIB_GETDELIM
774 GNULIB_GETCHAR
775 GNULIB_GETC
776 GNULIB_FWRITE
777 GNULIB_FTELLO
778 GNULIB_FTELL
779 GNULIB_FSEEKO
780 GNULIB_FSEEK
781 GNULIB_FSCANF
782 GNULIB_FREOPEN
783 GNULIB_FREAD
784 GNULIB_FPUTS
785 GNULIB_FPUTC
786 GNULIB_FPURGE
787 GNULIB_FPRINTF_POSIX
788 GNULIB_FPRINTF
789 GNULIB_FOPEN
790 GNULIB_FGETS
791 GNULIB_FGETC
792 GNULIB_FFLUSH
793 GNULIB_FCLOSE
794 GNULIB_DPRINTF
795 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
796 NEXT_STDDEF_H
797 GL_GENERATE_STDDEF_H_FALSE
798 GL_GENERATE_STDDEF_H_TRUE
799 STDDEF_H
800 HAVE_WCHAR_T
801 REPLACE_NULL
802 HAVE__BOOL
803 GL_GENERATE_STDBOOL_H_FALSE
804 GL_GENERATE_STDBOOL_H_TRUE
805 STDBOOL_H
806 GL_GENERATE_STDARG_H_FALSE
807 GL_GENERATE_STDARG_H_TRUE
808 STDARG_H
809 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
810 NEXT_STDARG_H
811 <<<<<<< TREE
812 =======
813 GL_GENERATE_STDALIGN_H_FALSE
814 GL_GENERATE_STDALIGN_H_TRUE
815 STDALIGN_H
816 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
817 NEXT_SIGNAL_H
818 LIB_PTHREAD_SIGMASK
819 REPLACE_RAISE
820 REPLACE_PTHREAD_SIGMASK
821 HAVE_SIGHANDLER_T
822 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
823 HAVE_STRUCT_SIGACTION_SA_SIGACTION
824 HAVE_SIGACTION
825 HAVE_SIGINFO_T
826 HAVE_SIGSET_T
827 HAVE_RAISE
828 HAVE_PTHREAD_SIGMASK
829 HAVE_POSIX_SIGNALBLOCKING
830 GNULIB_SIGACTION
831 GNULIB_SIGPROCMASK
832 GNULIB_SIGNAL_H_SIGPIPE
833 GNULIB_RAISE
834 GNULIB_PTHREAD_SIGMASK
835 >>>>>>> MERGE-SOURCE
836 REPLACE_TIMEGM
837 REPLACE_NANOSLEEP
838 REPLACE_MKTIME
839 REPLACE_LOCALTIME_R
840 HAVE_TIMEGM
841 HAVE_STRPTIME
842 HAVE_NANOSLEEP
843 HAVE_DECL_LOCALTIME_R
844 GNULIB_TIME_R
845 GNULIB_TIMEGM
846 GNULIB_STRPTIME
847 GNULIB_NANOSLEEP
848 GNULIB_MKTIME
849 REPLACE_UTIMENSAT
850 REPLACE_STAT
851 REPLACE_MKNOD
852 REPLACE_MKFIFO
853 REPLACE_MKDIR
854 REPLACE_LSTAT
855 REPLACE_FUTIMENS
856 REPLACE_FSTATAT
857 REPLACE_FSTAT
858 HAVE_UTIMENSAT
859 HAVE_MKNODAT
860 HAVE_MKNOD
861 HAVE_MKFIFOAT
862 HAVE_MKFIFO
863 HAVE_MKDIRAT
864 HAVE_LSTAT
865 HAVE_LCHMOD
866 HAVE_FUTIMENS
867 HAVE_FSTATAT
868 HAVE_FCHMODAT
869 GNULIB_UTIMENSAT
870 GNULIB_STAT
871 GNULIB_MKNODAT
872 GNULIB_MKNOD
873 GNULIB_MKFIFOAT
874 GNULIB_MKFIFO
875 GNULIB_MKDIRAT
876 GNULIB_LSTAT
877 GNULIB_LCHMOD
878 GNULIB_FUTIMENS
879 GNULIB_FSTATAT
880 GNULIB_FCHMODAT
881 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
882 NEXT_INTTYPES_H
883 UINT64_MAX_EQ_ULONG_MAX
884 UINT32_MAX_LT_UINTMAX_MAX
885 PRIPTR_PREFIX
886 PRI_MACROS_BROKEN
887 INT64_MAX_EQ_LONG_MAX
888 INT32_MAX_LT_INTMAX_MAX
889 REPLACE_STRTOIMAX
890 HAVE_DECL_STRTOUMAX
891 HAVE_DECL_STRTOIMAX
892 HAVE_DECL_IMAXDIV
893 HAVE_DECL_IMAXABS
894 GNULIB_STRTOUMAX
895 GNULIB_STRTOIMAX
896 GNULIB_IMAXDIV
897 GNULIB_IMAXABS
898 GL_GENERATE_STDINT_H_FALSE
899 GL_GENERATE_STDINT_H_TRUE
900 STDINT_H
901 WINT_T_SUFFIX
902 WCHAR_T_SUFFIX
903 SIG_ATOMIC_T_SUFFIX
904 SIZE_T_SUFFIX
905 PTRDIFF_T_SUFFIX
906 HAVE_SIGNED_WINT_T
907 HAVE_SIGNED_WCHAR_T
908 HAVE_SIGNED_SIG_ATOMIC_T
909 BITSIZEOF_WINT_T
910 BITSIZEOF_WCHAR_T
911 BITSIZEOF_SIG_ATOMIC_T
912 BITSIZEOF_SIZE_T
913 BITSIZEOF_PTRDIFF_T
914 APPLE_UNIVERSAL_BUILD
915 HAVE_SYS_BITYPES_H
916 HAVE_SYS_INTTYPES_H
917 HAVE_STDINT_H
918 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
919 NEXT_STDINT_H
920 HAVE_SYS_TYPES_H
921 HAVE_INTTYPES_H
922 HAVE_WCHAR_H
923 HAVE_UNSIGNED_LONG_LONG_INT
924 HAVE_LONG_LONG_INT
925 GNULIB_GL_UNISTD_H_GETOPT
926 GETOPT_H
927 HAVE_GETOPT_H
928 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
929 NEXT_GETOPT_H
930 PRAGMA_COLUMNS
931 PRAGMA_SYSTEM_HEADER
932 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
933 INCLUDE_NEXT
934 GETLOADAVG_LIBS
935 REPLACE_WCTOMB
936 REPLACE_UNSETENV
937 REPLACE_STRTOD
938 REPLACE_SETENV
939 REPLACE_REALPATH
940 REPLACE_REALLOC
941 REPLACE_RANDOM_R
942 REPLACE_PUTENV
943 REPLACE_PTSNAME_R
944 REPLACE_MKSTEMP
945 REPLACE_MBTOWC
946 REPLACE_MALLOC
947 REPLACE_CANONICALIZE_FILE_NAME
948 REPLACE_CALLOC
949 HAVE_DECL_UNSETENV
950 HAVE_UNLOCKPT
951 HAVE_SYS_LOADAVG_H
952 HAVE_STRUCT_RANDOM_DATA
953 HAVE_STRTOULL
954 HAVE_STRTOLL
955 HAVE_STRTOD
956 HAVE_DECL_SETENV
957 HAVE_SETENV
958 HAVE_RPMATCH
959 HAVE_REALPATH
960 HAVE_RANDOM_R
961 HAVE_RANDOM_H
962 HAVE_RANDOM
963 HAVE_PTSNAME_R
964 HAVE_PTSNAME
965 HAVE_POSIX_OPENPT
966 HAVE_MKSTEMPS
967 HAVE_MKSTEMP
968 HAVE_MKOSTEMPS
969 HAVE_MKOSTEMP
970 HAVE_MKDTEMP
971 HAVE_GRANTPT
972 HAVE_GETSUBOPT
973 HAVE_DECL_GETLOADAVG
974 HAVE_CANONICALIZE_FILE_NAME
975 HAVE_ATOLL
976 HAVE__EXIT
977 GNULIB_WCTOMB
978 GNULIB_UNSETENV
979 GNULIB_UNLOCKPT
980 GNULIB_SYSTEM_POSIX
981 GNULIB_STRTOULL
982 GNULIB_STRTOLL
983 GNULIB_STRTOD
984 GNULIB_SETENV
985 GNULIB_RPMATCH
986 GNULIB_REALPATH
987 GNULIB_REALLOC_POSIX
988 GNULIB_RANDOM_R
989 GNULIB_RANDOM
990 GNULIB_PUTENV
991 GNULIB_PTSNAME_R
992 GNULIB_PTSNAME
993 GNULIB_POSIX_OPENPT
994 GNULIB_MKSTEMPS
995 GNULIB_MKSTEMP
996 GNULIB_MKOSTEMPS
997 GNULIB_MKOSTEMP
998 GNULIB_MKDTEMP
999 GNULIB_MBTOWC
1000 GNULIB_MALLOC_POSIX
1001 GNULIB_GRANTPT
1002 GNULIB_GETSUBOPT
1003 GNULIB_GETLOADAVG
1004 GNULIB_CANONICALIZE_FILE_NAME
1005 GNULIB_CALLOC_POSIX
1006 GNULIB_ATOLL
1007 GNULIB__EXIT
1008 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1009 UNISTD_H_HAVE_WINSOCK2_H
1010 REPLACE_WRITE
1011 REPLACE_USLEEP
1012 REPLACE_UNLINKAT
1013 REPLACE_UNLINK
1014 REPLACE_TTYNAME_R
1015 REPLACE_SYMLINK
1016 REPLACE_SLEEP
1017 REPLACE_RMDIR
1018 REPLACE_READLINK
1019 REPLACE_READ
1020 REPLACE_PWRITE
1021 REPLACE_PREAD
1022 REPLACE_LSEEK
1023 REPLACE_LINKAT
1024 REPLACE_LINK
1025 REPLACE_LCHOWN
1026 REPLACE_ISATTY
1027 REPLACE_GETPAGESIZE
1028 REPLACE_GETGROUPS
1029 REPLACE_GETLOGIN_R
1030 REPLACE_GETDOMAINNAME
1031 REPLACE_GETCWD
1032 REPLACE_FTRUNCATE
1033 REPLACE_FCHOWNAT
1034 REPLACE_DUP2
1035 REPLACE_DUP
1036 REPLACE_CLOSE
1037 REPLACE_CHOWN
1038 HAVE_SYS_PARAM_H
1039 HAVE_OS_H
1040 HAVE_DECL_TTYNAME_R
1041 HAVE_DECL_SETHOSTNAME
1042 HAVE_DECL_GETUSERSHELL
1043 HAVE_DECL_GETPAGESIZE
1044 HAVE_DECL_GETLOGIN_R
1045 HAVE_DECL_GETDOMAINNAME
1046 HAVE_DECL_FCHDIR
1047 HAVE_DECL_ENVIRON
1048 HAVE_USLEEP
1049 HAVE_UNLINKAT
1050 HAVE_SYMLINKAT
1051 HAVE_SYMLINK
1052 HAVE_SLEEP
1053 HAVE_SETHOSTNAME
1054 HAVE_READLINKAT
1055 HAVE_READLINK
1056 HAVE_PWRITE
1057 HAVE_PREAD
1058 HAVE_PIPE2
1059 HAVE_PIPE
1060 HAVE_LINKAT
1061 HAVE_LINK
1062 HAVE_LCHOWN
1063 HAVE_GROUP_MEMBER
1064 HAVE_GETPAGESIZE
1065 HAVE_GETLOGIN
1066 HAVE_GETHOSTNAME
1067 HAVE_GETGROUPS
1068 HAVE_GETDTABLESIZE
1069 HAVE_FTRUNCATE
1070 HAVE_FSYNC
1071 HAVE_FCHOWNAT
1072 HAVE_FCHDIR
1073 HAVE_FACCESSAT
1074 HAVE_EUIDACCESS
1075 HAVE_DUP3
1076 HAVE_DUP2
1077 HAVE_CHOWN
1078 GNULIB_WRITE
1079 GNULIB_USLEEP
1080 GNULIB_UNLINKAT
1081 GNULIB_UNLINK
1082 GNULIB_UNISTD_H_SIGPIPE
1083 GNULIB_UNISTD_H_NONBLOCKING
1084 GNULIB_TTYNAME_R
1085 GNULIB_SYMLINKAT
1086 GNULIB_SYMLINK
1087 GNULIB_SLEEP
1088 GNULIB_SETHOSTNAME
1089 GNULIB_RMDIR
1090 GNULIB_READLINKAT
1091 GNULIB_READLINK
1092 GNULIB_READ
1093 GNULIB_PWRITE
1094 GNULIB_PREAD
1095 GNULIB_PIPE2
1096 GNULIB_PIPE
1097 GNULIB_LSEEK
1098 GNULIB_LINKAT
1099 GNULIB_LINK
1100 GNULIB_LCHOWN
1101 GNULIB_ISATTY
1102 GNULIB_GROUP_MEMBER
1103 GNULIB_GETUSERSHELL
1104 GNULIB_GETPAGESIZE
1105 GNULIB_GETLOGIN_R
1106 GNULIB_GETLOGIN
1107 GNULIB_GETHOSTNAME
1108 GNULIB_GETGROUPS
1109 GNULIB_GETDTABLESIZE
1110 GNULIB_GETDOMAINNAME
1111 GNULIB_GETCWD
1112 GNULIB_FTRUNCATE
1113 GNULIB_FSYNC
1114 GNULIB_FCHOWNAT
1115 GNULIB_FCHDIR
1116 GNULIB_FACCESSAT
1117 GNULIB_EUIDACCESS
1118 GNULIB_ENVIRON
1119 GNULIB_DUP3
1120 GNULIB_DUP2
1121 GNULIB_CLOSE
1122 GNULIB_CHOWN
1123 GL_GENERATE_ALLOCA_H_FALSE
1124 GL_GENERATE_ALLOCA_H_TRUE
1125 ALLOCA_H
1126 ALLOCA
1127 GL_COND_LIBTOOL_FALSE
1128 GL_COND_LIBTOOL_TRUE
1129 <<<<<<< TREE
1130 =======
1131 POST_ALLOC_OBJ
1132 PRE_ALLOC_OBJ
1133 CYGWIN_OBJ
1134 RALLOC_OBJ
1135 OLDXMENU_DEPS
1136 LIBX_OTHER
1137 LIBXMENU
1138 OLDXMENU
1139 OLDXMENU_TARGET
1140 LIBXT_OTHER
1141 TOOLKIT_LIBW
1142 WIDGET_OBJ
1143 XOBJ
1144 XMENU_OBJ
1145 FONT_OBJ
1146 OTHER_FILES
1147 GNU_OBJC_CFLAGS
1148 ns_appsrc
1149 ns_appresdir
1150 ns_appbindir
1151 ns_appdir
1152 S_FILE
1153 X_TOOLKIT_TYPE
1154 GNUSTEP_CFLAGS
1155 C_SWITCH_X_SITE
1156 LD_SWITCH_X_SITE
1157 gameuser
1158 gamedir
1159 bitmapdir
1160 archlibdir
1161 etcdir
1162 x_default_search_path
1163 lisppath
1164 locallisppath
1165 leimdir
1166 lispdir
1167 srcdir
1168 canonical
1169 configuration
1170 version
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 >>>>>>> MERGE-SOURCE
1181 BLESSMAIL_TARGET
1182 LIBS_MAIL
1183 liblockfile
1184 LIBXML2_LIBS
1185 LIBXML2_CFLAGS
1186 LIBXSM
1187 LIBGPM
1188 LIBGIF
1189 LIBTIFF
1190 LIBPNG
1191 LIBJPEG
1192 LIBXPM
1193 M17N_FLT_LIBS
1194 M17N_FLT_CFLAGS
1195 LIBOTF_LIBS
1196 LIBOTF_CFLAGS
1197 FREETYPE_LIBS
1198 FREETYPE_CFLAGS
1199 XFT_LIBS
1200 XFT_CFLAGS
1201 FONTCONFIG_LIBS
1202 FONTCONFIG_CFLAGS
1203 LIBXMU
1204 LIBXTR6
1205 LIBGNUTLS_LIBS
1206 LIBGNUTLS_CFLAGS
1207 LIBSELINUX_LIBS
1208 GCONF_LIBS
1209 GCONF_CFLAGS
1210 DBUS_OBJ
1211 DBUS_LIBS
1212 DBUS_CFLAGS
1213 GTK_OBJ
1214 GTK_LIBS
1215 GTK_CFLAGS
1216 IMAGEMAGICK_LIBS
1217 IMAGEMAGICK_CFLAGS
1218 RSVG_LIBS
1219 RSVG_CFLAGS
1220 LIB_PTHREAD
1221 VMLIMIT_OBJ
1222 GMALLOC_OBJ
1223 HAVE_XSERVER
1224 LIB_STANDARD
1225 NS_OBJC_OBJ
1226 NS_OBJ
1227 ns_self_contained
1228 INSTALL_ARCH_INDEP_EXTRA
1229 TEMACS_LDFLAGS2
1230 LD_SWITCH_X_SITE_RPATH
1231 XMKMF
1232 DEPFLAGS
1233 MKDEPDIR
1234 CFLAGS_SOUND
1235 ALSA_LIBS
1236 ALSA_CFLAGS
1237 LIBSOUND
1238 PKG_CONFIG
1239 <<<<<<< TREE
1240 LIBSOUND
1241 =======
1242 CRT_DIR
1243 >>>>>>> MERGE-SOURCE
1244 START_FILES
1245 LIB_MATH
1246 CRT_DIR
1247 LIBS_SYSTEM
1248 C_SWITCH_SYSTEM
1249 UNEXEC_OBJ
1250 C_SWITCH_MACHINE
1251 LD_SWITCH_SYSTEM
1252 CANNOT_DUMP
1253 INFO_OPTS
1254 INFO_EXT
1255 HAVE_MAKEINFO
1256 GZIP_PROG
1257 INSTALL_INFO
1258 GNULIB_WARN_CFLAGS
1259 WARN_CFLAGS
1260 WERROR_CFLAGS
1261 RANLIB
1262 ARFLAGS
1263 AR
1264 EGREP
1265 GREP
1266 CPP
1267 am__fastdepCC_FALSE
1268 am__fastdepCC_TRUE
1269 CCDEPMODE
1270 AMDEPBACKSLASH
1271 AMDEP_FALSE
1272 AMDEP_TRUE
1273 am__quote
1274 am__include
1275 DEPDIR
1276 OBJEXT
1277 EXEEXT
1278 ac_ct_CC
1279 CPPFLAGS
1280 LDFLAGS
1281 CFLAGS
1282 CC
1283 host_os
1284 host_vendor
1285 host_cpu
1286 host
1287 build_os
1288 build_vendor
1289 build_cpu
1290 build
1291 PROFILING_CFLAGS
1292 MAINT
1293 GZIP_INFO
1294 am__untar
1295 am__tar
1296 AMTAR
1297 am__leading_dot
1298 SET_MAKE
1299 AWK
1300 mkdir_p
1301 MKDIR_P
1302 INSTALL_STRIP_PROGRAM
1303 STRIP
1304 install_sh
1305 MAKEINFO
1306 AUTOHEADER
1307 AUTOMAKE
1308 AUTOCONF
1309 ACLOCAL
1310 VERSION
1311 PACKAGE
1312 CYGPATH_W
1313 am__isrc
1314 INSTALL_DATA
1315 INSTALL_SCRIPT
1316 INSTALL_PROGRAM
1317 target_alias
1318 host_alias
1319 build_alias
1320 LIBS
1321 ECHO_T
1322 ECHO_N
1323 ECHO_C
1324 DEFS
1325 mandir
1326 localedir
1327 libdir
1328 psdir
1329 pdfdir
1330 dvidir
1331 htmldir
1332 infodir
1333 docdir
1334 oldincludedir
1335 includedir
1336 localstatedir
1337 sharedstatedir
1338 sysconfdir
1339 datadir
1340 datarootdir
1341 libexecdir
1342 sbindir
1343 bindir
1344 program_transform_name
1345 prefix
1346 exec_prefix
1347 PACKAGE_URL
1348 PACKAGE_BUGREPORT
1349 PACKAGE_STRING
1350 PACKAGE_VERSION
1351 PACKAGE_TARNAME
1352 PACKAGE_NAME
1353 PATH_SEPARATOR
1354 SHELL'
1355 ac_subst_files='deps_frag
1356 lisp_frag
1357 ns_frag'
1358 ac_user_opts='
1359 enable_option_checking
1360 with_pop
1361 with_kerberos
1362 with_kerberos5
1363 with_hesiod
1364 with_mmdf
1365 with_mail_unlink
1366 with_mailhost
1367 with_sound
1368 with_sync_input
1369 with_x_toolkit
1370 with_wide_int
1371 with_xpm
1372 with_jpeg
1373 with_tiff
1374 with_gif
1375 with_png
1376 with_rsvg
1377 with_xml2
1378 with_imagemagick
1379 with_xft
1380 with_libotf
1381 with_m17n_flt
1382 with_toolkit_scroll_bars
1383 with_xaw3d
1384 with_xim
1385 with_ns
1386 with_gpm
1387 with_dbus
1388 with_gconf
1389 with_selinux
1390 with_gnutls
1391 with_makeinfo
1392 with_compress_info
1393 with_pkg_config_prog
1394 with_crt_dir
1395 with_gameuser
1396 with_gnustep_conf
1397 enable_ns_self_contained
1398 enable_asserts
1399 enable_maintainer_mode
1400 enable_locallisppath
1401 enable_checking
1402 enable_use_lisp_union_type
1403 enable_profiling
1404 enable_autodepend
1405 enable_dependency_tracking
1406 enable_largefile
1407 enable_gcc_warnings
1408 with_x
1409 '
1410 ac_precious_vars='build_alias
1411 host_alias
1412 target_alias
1413 CC
1414 CFLAGS
1415 LDFLAGS
1416 LIBS
1417 CPPFLAGS
1418 CPP
1419 XMKMF'
1420
1421
1422 # Initialize some variables set by options.
1423 ac_init_help=
1424 ac_init_version=false
1425 ac_unrecognized_opts=
1426 ac_unrecognized_sep=
1427 # The variables have the same names as the options, with
1428 # dashes changed to underlines.
1429 cache_file=/dev/null
1430 exec_prefix=NONE
1431 no_create=
1432 no_recursion=
1433 prefix=NONE
1434 program_prefix=NONE
1435 program_suffix=NONE
1436 program_transform_name=s,x,x,
1437 silent=
1438 site=
1439 srcdir=
1440 verbose=
1441 x_includes=NONE
1442 x_libraries=NONE
1443
1444 # Installation directory options.
1445 # These are left unexpanded so users can "make install exec_prefix=/foo"
1446 # and all the variables that are supposed to be based on exec_prefix
1447 # by default will actually change.
1448 # Use braces instead of parens because sh, perl, etc. also accept them.
1449 # (The list follows the same order as the GNU Coding Standards.)
1450 bindir='${exec_prefix}/bin'
1451 sbindir='${exec_prefix}/sbin'
1452 libexecdir='${exec_prefix}/libexec'
1453 datarootdir='${prefix}/share'
1454 datadir='${datarootdir}'
1455 sysconfdir='${prefix}/etc'
1456 sharedstatedir='${prefix}/com'
1457 localstatedir='${prefix}/var'
1458 includedir='${prefix}/include'
1459 oldincludedir='/usr/include'
1460 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1461 infodir='${datarootdir}/info'
1462 htmldir='${docdir}'
1463 dvidir='${docdir}'
1464 pdfdir='${docdir}'
1465 psdir='${docdir}'
1466 libdir='${exec_prefix}/lib'
1467 localedir='${datarootdir}/locale'
1468 mandir='${datarootdir}/man'
1469
1470 ac_prev=
1471 ac_dashdash=
1472 for ac_option
1473 do
1474 # If the previous option needs an argument, assign it.
1475 if test -n "$ac_prev"; then
1476 eval $ac_prev=\$ac_option
1477 ac_prev=
1478 continue
1479 fi
1480
1481 case $ac_option in
1482 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1483 *) ac_optarg=yes ;;
1484 esac
1485
1486 # Accept the important Cygnus configure options, so we can diagnose typos.
1487
1488 case $ac_dashdash$ac_option in
1489 --)
1490 ac_dashdash=yes ;;
1491
1492 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1493 ac_prev=bindir ;;
1494 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1495 bindir=$ac_optarg ;;
1496
1497 -build | --build | --buil | --bui | --bu)
1498 ac_prev=build_alias ;;
1499 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1500 build_alias=$ac_optarg ;;
1501
1502 -cache-file | --cache-file | --cache-fil | --cache-fi \
1503 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1504 ac_prev=cache_file ;;
1505 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1506 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1507 cache_file=$ac_optarg ;;
1508
1509 --config-cache | -C)
1510 cache_file=config.cache ;;
1511
1512 -datadir | --datadir | --datadi | --datad)
1513 ac_prev=datadir ;;
1514 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1515 datadir=$ac_optarg ;;
1516
1517 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1518 | --dataroo | --dataro | --datar)
1519 ac_prev=datarootdir ;;
1520 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1521 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1522 datarootdir=$ac_optarg ;;
1523
1524 -disable-* | --disable-*)
1525 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1528 as_fn_error "invalid feature name: $ac_useropt"
1529 ac_useropt_orig=$ac_useropt
1530 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1531 case $ac_user_opts in
1532 *"
1533 "enable_$ac_useropt"
1534 "*) ;;
1535 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1536 ac_unrecognized_sep=', ';;
1537 esac
1538 eval enable_$ac_useropt=no ;;
1539
1540 -docdir | --docdir | --docdi | --doc | --do)
1541 ac_prev=docdir ;;
1542 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1543 docdir=$ac_optarg ;;
1544
1545 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1546 ac_prev=dvidir ;;
1547 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1548 dvidir=$ac_optarg ;;
1549
1550 -enable-* | --enable-*)
1551 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1552 # Reject names that are not valid shell variable names.
1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1554 as_fn_error "invalid feature name: $ac_useropt"
1555 ac_useropt_orig=$ac_useropt
1556 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1558 *"
1559 "enable_$ac_useropt"
1560 "*) ;;
1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1562 ac_unrecognized_sep=', ';;
1563 esac
1564 eval enable_$ac_useropt=\$ac_optarg ;;
1565
1566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1568 | --exec | --exe | --ex)
1569 ac_prev=exec_prefix ;;
1570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1572 | --exec=* | --exe=* | --ex=*)
1573 exec_prefix=$ac_optarg ;;
1574
1575 -gas | --gas | --ga | --g)
1576 # Obsolete; use --with-gas.
1577 with_gas=yes ;;
1578
1579 -help | --help | --hel | --he | -h)
1580 ac_init_help=long ;;
1581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1582 ac_init_help=recursive ;;
1583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1584 ac_init_help=short ;;
1585
1586 -host | --host | --hos | --ho)
1587 ac_prev=host_alias ;;
1588 -host=* | --host=* | --hos=* | --ho=*)
1589 host_alias=$ac_optarg ;;
1590
1591 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1592 ac_prev=htmldir ;;
1593 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1594 | --ht=*)
1595 htmldir=$ac_optarg ;;
1596
1597 -includedir | --includedir | --includedi | --included | --include \
1598 | --includ | --inclu | --incl | --inc)
1599 ac_prev=includedir ;;
1600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1601 | --includ=* | --inclu=* | --incl=* | --inc=*)
1602 includedir=$ac_optarg ;;
1603
1604 -infodir | --infodir | --infodi | --infod | --info | --inf)
1605 ac_prev=infodir ;;
1606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1607 infodir=$ac_optarg ;;
1608
1609 -libdir | --libdir | --libdi | --libd)
1610 ac_prev=libdir ;;
1611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1612 libdir=$ac_optarg ;;
1613
1614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1615 | --libexe | --libex | --libe)
1616 ac_prev=libexecdir ;;
1617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1618 | --libexe=* | --libex=* | --libe=*)
1619 libexecdir=$ac_optarg ;;
1620
1621 -localedir | --localedir | --localedi | --localed | --locale)
1622 ac_prev=localedir ;;
1623 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1624 localedir=$ac_optarg ;;
1625
1626 -localstatedir | --localstatedir | --localstatedi | --localstated \
1627 | --localstate | --localstat | --localsta | --localst | --locals)
1628 ac_prev=localstatedir ;;
1629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1630 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1631 localstatedir=$ac_optarg ;;
1632
1633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1634 ac_prev=mandir ;;
1635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1636 mandir=$ac_optarg ;;
1637
1638 -nfp | --nfp | --nf)
1639 # Obsolete; use --without-fp.
1640 with_fp=no ;;
1641
1642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1643 | --no-cr | --no-c | -n)
1644 no_create=yes ;;
1645
1646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1648 no_recursion=yes ;;
1649
1650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1652 | --oldin | --oldi | --old | --ol | --o)
1653 ac_prev=oldincludedir ;;
1654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1657 oldincludedir=$ac_optarg ;;
1658
1659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1660 ac_prev=prefix ;;
1661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1662 prefix=$ac_optarg ;;
1663
1664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1665 | --program-pre | --program-pr | --program-p)
1666 ac_prev=program_prefix ;;
1667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1669 program_prefix=$ac_optarg ;;
1670
1671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1672 | --program-suf | --program-su | --program-s)
1673 ac_prev=program_suffix ;;
1674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1676 program_suffix=$ac_optarg ;;
1677
1678 -program-transform-name | --program-transform-name \
1679 | --program-transform-nam | --program-transform-na \
1680 | --program-transform-n | --program-transform- \
1681 | --program-transform | --program-transfor \
1682 | --program-transfo | --program-transf \
1683 | --program-trans | --program-tran \
1684 | --progr-tra | --program-tr | --program-t)
1685 ac_prev=program_transform_name ;;
1686 -program-transform-name=* | --program-transform-name=* \
1687 | --program-transform-nam=* | --program-transform-na=* \
1688 | --program-transform-n=* | --program-transform-=* \
1689 | --program-transform=* | --program-transfor=* \
1690 | --program-transfo=* | --program-transf=* \
1691 | --program-trans=* | --program-tran=* \
1692 | --progr-tra=* | --program-tr=* | --program-t=*)
1693 program_transform_name=$ac_optarg ;;
1694
1695 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1696 ac_prev=pdfdir ;;
1697 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1698 pdfdir=$ac_optarg ;;
1699
1700 -psdir | --psdir | --psdi | --psd | --ps)
1701 ac_prev=psdir ;;
1702 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1703 psdir=$ac_optarg ;;
1704
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1707 silent=yes ;;
1708
1709 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1710 ac_prev=sbindir ;;
1711 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1712 | --sbi=* | --sb=*)
1713 sbindir=$ac_optarg ;;
1714
1715 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1716 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1717 | --sharedst | --shareds | --shared | --share | --shar \
1718 | --sha | --sh)
1719 ac_prev=sharedstatedir ;;
1720 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1721 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1722 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1723 | --sha=* | --sh=*)
1724 sharedstatedir=$ac_optarg ;;
1725
1726 -site | --site | --sit)
1727 ac_prev=site ;;
1728 -site=* | --site=* | --sit=*)
1729 site=$ac_optarg ;;
1730
1731 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1732 ac_prev=srcdir ;;
1733 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1734 srcdir=$ac_optarg ;;
1735
1736 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1737 | --syscon | --sysco | --sysc | --sys | --sy)
1738 ac_prev=sysconfdir ;;
1739 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1740 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1741 sysconfdir=$ac_optarg ;;
1742
1743 -target | --target | --targe | --targ | --tar | --ta | --t)
1744 ac_prev=target_alias ;;
1745 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1746 target_alias=$ac_optarg ;;
1747
1748 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1749 verbose=yes ;;
1750
1751 -version | --version | --versio | --versi | --vers | -V)
1752 ac_init_version=: ;;
1753
1754 -with-* | --with-*)
1755 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1756 # Reject names that are not valid shell variable names.
1757 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1758 as_fn_error "invalid package name: $ac_useropt"
1759 ac_useropt_orig=$ac_useropt
1760 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1761 case $ac_user_opts in
1762 *"
1763 "with_$ac_useropt"
1764 "*) ;;
1765 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1766 ac_unrecognized_sep=', ';;
1767 esac
1768 eval with_$ac_useropt=\$ac_optarg ;;
1769
1770 -without-* | --without-*)
1771 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1774 as_fn_error "invalid package name: $ac_useropt"
1775 ac_useropt_orig=$ac_useropt
1776 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1778 *"
1779 "with_$ac_useropt"
1780 "*) ;;
1781 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1782 ac_unrecognized_sep=', ';;
1783 esac
1784 eval with_$ac_useropt=no ;;
1785
1786 --x)
1787 # Obsolete; use --with-x.
1788 with_x=yes ;;
1789
1790 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1791 | --x-incl | --x-inc | --x-in | --x-i)
1792 ac_prev=x_includes ;;
1793 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1794 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1795 x_includes=$ac_optarg ;;
1796
1797 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1798 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1799 ac_prev=x_libraries ;;
1800 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1801 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1802 x_libraries=$ac_optarg ;;
1803
1804 -*) as_fn_error "unrecognized option: \`$ac_option'
1805 Try \`$0 --help' for more information."
1806 ;;
1807
1808 *=*)
1809 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1810 # Reject names that are not valid shell variable names.
1811 case $ac_envvar in #(
1812 '' | [0-9]* | *[!_$as_cr_alnum]* )
1813 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1814 esac
1815 eval $ac_envvar=\$ac_optarg
1816 export $ac_envvar ;;
1817
1818 *)
1819 # FIXME: should be removed in autoconf 3.0.
1820 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1821 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1822 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1823 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1824 ;;
1825
1826 esac
1827 done
1828
1829 if test -n "$ac_prev"; then
1830 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1831 as_fn_error "missing argument to $ac_option"
1832 fi
1833
1834 if test -n "$ac_unrecognized_opts"; then
1835 case $enable_option_checking in
1836 no) ;;
1837 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1838 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1839 esac
1840 fi
1841
1842 # Check all directory arguments for consistency.
1843 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1844 datadir sysconfdir sharedstatedir localstatedir includedir \
1845 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1846 libdir localedir mandir
1847 do
1848 eval ac_val=\$$ac_var
1849 # Remove trailing slashes.
1850 case $ac_val in
1851 */ )
1852 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1853 eval $ac_var=\$ac_val;;
1854 esac
1855 # Be sure to have absolute directory names.
1856 case $ac_val in
1857 [\\/$]* | ?:[\\/]* ) continue;;
1858 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1859 esac
1860 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1861 done
1862
1863 # There might be people who depend on the old broken behavior: `$host'
1864 # used to hold the argument of --host etc.
1865 # FIXME: To remove some day.
1866 build=$build_alias
1867 host=$host_alias
1868 target=$target_alias
1869
1870 # FIXME: To remove some day.
1871 if test "x$host_alias" != x; then
1872 if test "x$build_alias" = x; then
1873 cross_compiling=maybe
1874 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1875 If a cross compiler is detected then cross compile mode will be used." >&2
1876 elif test "x$build_alias" != "x$host_alias"; then
1877 cross_compiling=yes
1878 fi
1879 fi
1880
1881 ac_tool_prefix=
1882 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1883
1884 test "$silent" = yes && exec 6>/dev/null
1885
1886
1887 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1888 ac_ls_di=`ls -di .` &&
1889 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1890 as_fn_error "working directory cannot be determined"
1891 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1892 as_fn_error "pwd does not report name of working directory"
1893
1894
1895 # Find the source files, if location was not specified.
1896 if test -z "$srcdir"; then
1897 ac_srcdir_defaulted=yes
1898 # Try the directory containing this script, then the parent directory.
1899 ac_confdir=`$as_dirname -- "$as_myself" ||
1900 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1901 X"$as_myself" : 'X\(//\)[^/]' \| \
1902 X"$as_myself" : 'X\(//\)$' \| \
1903 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1904 $as_echo X"$as_myself" |
1905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1906 s//\1/
1907 q
1908 }
1909 /^X\(\/\/\)[^/].*/{
1910 s//\1/
1911 q
1912 }
1913 /^X\(\/\/\)$/{
1914 s//\1/
1915 q
1916 }
1917 /^X\(\/\).*/{
1918 s//\1/
1919 q
1920 }
1921 s/.*/./; q'`
1922 srcdir=$ac_confdir
1923 if test ! -r "$srcdir/$ac_unique_file"; then
1924 srcdir=..
1925 fi
1926 else
1927 ac_srcdir_defaulted=no
1928 fi
1929 if test ! -r "$srcdir/$ac_unique_file"; then
1930 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1931 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1932 fi
1933 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1934 ac_abs_confdir=`(
1935 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1936 pwd)`
1937 # When building in place, set srcdir=.
1938 if test "$ac_abs_confdir" = "$ac_pwd"; then
1939 srcdir=.
1940 fi
1941 # Remove unnecessary trailing slashes from srcdir.
1942 # Double slashes in file names in object file debugging info
1943 # mess up M-x gdb in Emacs.
1944 case $srcdir in
1945 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1946 esac
1947 for ac_var in $ac_precious_vars; do
1948 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1949 eval ac_env_${ac_var}_value=\$${ac_var}
1950 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1951 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1952 done
1953
1954 #
1955 # Report the --help message.
1956 #
1957 if test "$ac_init_help" = "long"; then
1958 # Omit some internal or obsolete options to make the list less imposing.
1959 # This message is too long to be a string in the A/UX 3.1 sh.
1960 cat <<_ACEOF
1961 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1962
1963 Usage: $0 [OPTION]... [VAR=VALUE]...
1964
1965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1966 VAR=VALUE. See below for descriptions of some of the useful variables.
1967
1968 Defaults for the options are specified in brackets.
1969
1970 Configuration:
1971 -h, --help display this help and exit
1972 --help=short display options specific to this package
1973 --help=recursive display the short help of all the included packages
1974 -V, --version display version information and exit
1975 -q, --quiet, --silent do not print \`checking...' messages
1976 --cache-file=FILE cache test results in FILE [disabled]
1977 -C, --config-cache alias for \`--cache-file=config.cache'
1978 -n, --no-create do not create output files
1979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1980
1981 Installation directories:
1982 --prefix=PREFIX install architecture-independent files in PREFIX
1983 [$ac_default_prefix]
1984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1985 [PREFIX]
1986
1987 By default, \`make install' will install all the files in
1988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1990 for instance \`--prefix=\$HOME'.
1991
1992 For better control, use the options below.
1993
1994 Fine tuning of the installation directories:
1995 --bindir=DIR user executables [EPREFIX/bin]
1996 --sbindir=DIR system admin executables [EPREFIX/sbin]
1997 --libexecdir=DIR program executables [EPREFIX/libexec]
1998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2001 --libdir=DIR object code libraries [EPREFIX/lib]
2002 --includedir=DIR C header files [PREFIX/include]
2003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2004 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2005 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2006 --infodir=DIR info documentation [DATAROOTDIR/info]
2007 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2008 --mandir=DIR man documentation [DATAROOTDIR/man]
2009 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2010 --htmldir=DIR html documentation [DOCDIR]
2011 --dvidir=DIR dvi documentation [DOCDIR]
2012 --pdfdir=DIR pdf documentation [DOCDIR]
2013 --psdir=DIR ps documentation [DOCDIR]
2014 _ACEOF
2015
2016 cat <<\_ACEOF
2017
2018 Program names:
2019 --program-prefix=PREFIX prepend PREFIX to installed program names
2020 --program-suffix=SUFFIX append SUFFIX to installed program names
2021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2022
2023 X features:
2024 --x-includes=DIR X include files are in DIR
2025 --x-libraries=DIR X library files are in DIR
2026
2027 System types:
2028 --build=BUILD configure for building on BUILD [guessed]
2029 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2030 _ACEOF
2031 fi
2032
2033 if test -n "$ac_init_help"; then
2034 case $ac_init_help in
2035 short | recursive ) echo "Configuration of emacs 24.1.50:";;
2036 esac
2037 cat <<\_ACEOF
2038
2039 Optional Features:
2040 --disable-option-checking ignore unrecognized --enable/--with options
2041 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2042 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2043 --disable-ns-self-contained
2044 disable self contained build under NeXTstep
2045 --enable-asserts compile code with asserts enabled
2046 --enable-maintainer-mode
2047 enable make rules and dependencies not useful (and
2048 sometimes confusing) to the casual installer
2049 --enable-locallisppath=PATH
2050 directories Emacs should search for lisp files
2051 specific to this site
2052 --enable-checking[=LIST]
2053 enable expensive run-time checks. With LIST, enable
2054 only specific categories of checks. Categories are:
2055 all,yes,no. Flags are: stringbytes, stringoverrun,
2056 stringfreelist, xmallocoverrun, conslist
2057 --enable-use-lisp-union-type
2058 use a union for the Lisp_Object data type. This is
2059 only useful for development for catching certain
2060 types of bugs.
2061 --enable-profiling build emacs with profiling support. This might not
2062 work on all platforms
2063 --enable-autodepend automatically generate dependencies to .h-files.
2064 Requires GNU Make and Gcc. Enabled if GNU Make and
2065 Gcc is found
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --disable-largefile omit support for large files
2069 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2070
2071 Optional Packages:
2072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2074 --without-pop don't support POP mail retrieval with movemail
2075 --with-kerberos support Kerberos-authenticated POP
2076 --with-kerberos5 support Kerberos version 5 authenticated POP
2077 --with-hesiod support Hesiod to get the POP server host
2078 --with-mmdf support MMDF mailboxes
2079 --with-mail-unlink unlink, rather than empty, mail spool after reading
2080 --with-mailhost=HOSTNAME
2081 string giving default POP mail host
2082 --without-sound don't compile with sound support
2083 --without-sync-input process async input synchronously
2084 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2085 lucid or athena, motif, no)
2086 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2087 --without-xpm don't compile with XPM image support
2088 --without-jpeg don't compile with JPEG image support
2089 --without-tiff don't compile with TIFF image support
2090 --without-gif don't compile with GIF image support
2091 --without-png don't compile with PNG image support
2092 --without-rsvg don't compile with SVG image support
2093 --without-xml2 don't compile with XML parsing support
2094 --without-imagemagick don't compile with ImageMagick image support
2095 --without-xft don't use XFT for anti aliased fonts
2096 --without-libotf don't use libotf for OpenType font support
2097 --without-m17n-flt don't use m17n-flt for text shaping
2098 --without-toolkit-scroll-bars
2099 don't use Motif or Xaw3d scroll bars
2100 --without-xaw3d don't use Xaw3d
2101 --without-xim don't use X11 XIM
2102 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2103 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2104 console
2105 --without-dbus don't compile with D-Bus support
2106 --without-gconf don't compile with GConf support
2107 --without-selinux don't compile with SELinux support
2108 --without-gnutls don't use -lgnutls for SSL/TLS support
2109 --without-makeinfo don't require makeinfo for building manuals
2110 --without-compress-info don't compress the installed Info pages
2111 --with-pkg-config-prog=PATH
2112 path to pkg-config for finding GTK and librsvg
2113 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2114 /usr/lib, or /usr/lib64 on some platforms.
2115 --with-gameuser=USER user for shared game score files
2116 --with-gnustep-conf=PATH
2117 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2118 or /etc/GNUstep/GNUstep.conf
2119 --with-x use the X Window System
2120
2121 Some influential environment variables:
2122 CC C compiler command
2123 CFLAGS C compiler flags
2124 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2125 nonstandard directory <lib dir>
2126 LIBS libraries to pass to the linker, e.g. -l<library>
2127 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2128 you have headers in a nonstandard directory <include dir>
2129 CPP C preprocessor
2130 XMKMF Path to xmkmf, Makefile generator for X Window System
2131
2132 Use these variables to override the choices made by `configure' or to help
2133 it to find libraries and programs with nonstandard names/locations.
2134
2135 Report bugs to the package provider.
2136 _ACEOF
2137 ac_status=$?
2138 fi
2139
2140 if test "$ac_init_help" = "recursive"; then
2141 # If there are subdirs, report their specific --help.
2142 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2143 test -d "$ac_dir" ||
2144 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2145 continue
2146 ac_builddir=.
2147
2148 case "$ac_dir" in
2149 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2150 *)
2151 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2152 # A ".." for each directory in $ac_dir_suffix.
2153 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2154 case $ac_top_builddir_sub in
2155 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2156 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2157 esac ;;
2158 esac
2159 ac_abs_top_builddir=$ac_pwd
2160 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2161 # for backward compatibility:
2162 ac_top_builddir=$ac_top_build_prefix
2163
2164 case $srcdir in
2165 .) # We are building in place.
2166 ac_srcdir=.
2167 ac_top_srcdir=$ac_top_builddir_sub
2168 ac_abs_top_srcdir=$ac_pwd ;;
2169 [\\/]* | ?:[\\/]* ) # Absolute name.
2170 ac_srcdir=$srcdir$ac_dir_suffix;
2171 ac_top_srcdir=$srcdir
2172 ac_abs_top_srcdir=$srcdir ;;
2173 *) # Relative name.
2174 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2175 ac_top_srcdir=$ac_top_build_prefix$srcdir
2176 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2177 esac
2178 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2179
2180 cd "$ac_dir" || { ac_status=$?; continue; }
2181 # Check for guested configure.
2182 if test -f "$ac_srcdir/configure.gnu"; then
2183 echo &&
2184 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2185 elif test -f "$ac_srcdir/configure"; then
2186 echo &&
2187 $SHELL "$ac_srcdir/configure" --help=recursive
2188 else
2189 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2190 fi || ac_status=$?
2191 cd "$ac_pwd" || { ac_status=$?; break; }
2192 done
2193 fi
2194
2195 test -n "$ac_init_help" && exit $ac_status
2196 if $ac_init_version; then
2197 cat <<\_ACEOF
2198 emacs configure 24.1.50
2199 generated by GNU Autoconf 2.65
2200
2201 Copyright (C) 2009 Free Software Foundation, Inc.
2202 This configure script is free software; the Free Software Foundation
2203 gives unlimited permission to copy, distribute and modify it.
2204 _ACEOF
2205 exit
2206 fi
2207
2208 ## ------------------------ ##
2209 ## Autoconf initialization. ##
2210 ## ------------------------ ##
2211
2212 # ac_fn_c_try_compile LINENO
2213 # --------------------------
2214 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_c_try_compile ()
2216 {
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 rm -f conftest.$ac_objext
2219 if { { ac_try="$ac_compile"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_compile") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2232 fi
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_c_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest.$ac_objext; then :
2238 ac_retval=0
2239 else
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=1
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 as_fn_set_status $ac_retval
2247
2248 } # ac_fn_c_try_compile
2249
2250 # ac_fn_c_try_cpp LINENO
2251 # ----------------------
2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2253 ac_fn_c_try_cpp ()
2254 {
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { { ac_try="$ac_cpp conftest.$ac_ext"
2257 case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260 esac
2261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262 $as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2264 ac_status=$?
2265 if test -s conftest.err; then
2266 grep -v '^ *+' conftest.err >conftest.er1
2267 cat conftest.er1 >&5
2268 mv -f conftest.er1 conftest.err
2269 fi
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; } >/dev/null && {
2272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2273 test ! -s conftest.err
2274 }; then :
2275 ac_retval=0
2276 else
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=1
2281 fi
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 as_fn_set_status $ac_retval
2284
2285 } # ac_fn_c_try_cpp
2286
2287 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2288 # -------------------------------------------------------
2289 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2290 # the include files in INCLUDES and setting the cache variable VAR
2291 # accordingly.
2292 ac_fn_c_check_header_mongrel ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2299 $as_echo_n "(cached) " >&6
2300 fi
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 else
2305 # Is the header compilable?
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2307 $as_echo_n "checking $2 usability... " >&6; }
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $4
2311 #include <$2>
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 ac_header_compiler=yes
2315 else
2316 ac_header_compiler=no
2317 fi
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2320 $as_echo "$ac_header_compiler" >&6; }
2321
2322 # Is the header present?
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2324 $as_echo_n "checking $2 presence... " >&6; }
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 #include <$2>
2328 _ACEOF
2329 if ac_fn_c_try_cpp "$LINENO"; then :
2330 ac_header_preproc=yes
2331 else
2332 ac_header_preproc=no
2333 fi
2334 rm -f conftest.err conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2336 $as_echo "$ac_header_preproc" >&6; }
2337
2338 # So? What about this header?
2339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2340 yes:no: )
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2342 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2345 ;;
2346 no:yes:* )
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2348 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2350 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2352 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2354 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2356 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2357 ;;
2358 esac
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 eval "$3=\$ac_header_compiler"
2365 fi
2366 eval ac_res=\$$3
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 fi
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371
2372 } # ac_fn_c_check_header_mongrel
2373
2374 # ac_fn_c_try_run LINENO
2375 # ----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2377 # that executables *can* be run.
2378 ac_fn_c_try_run ()
2379 {
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 if { { ac_try="$ac_link"
2382 case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385 esac
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>&5
2389 ac_status=$?
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2392 { { case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_try") 2>&5
2399 ac_status=$?
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; }; }; then :
2402 ac_retval=0
2403 else
2404 $as_echo "$as_me: program exited with status $ac_status" >&5
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_retval=$ac_status
2409 fi
2410 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 as_fn_set_status $ac_retval
2413
2414 } # ac_fn_c_try_run
2415
2416 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2417 # -------------------------------------------------------
2418 # Tests whether HEADER exists and can be compiled using the include files in
2419 # INCLUDES, setting the cache variable VAR accordingly.
2420 ac_fn_c_check_header_compile ()
2421 {
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 #include <$2>
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 eval "$3=yes"
2435 else
2436 eval "$3=no"
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 fi
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_check_header_compile
2446
2447 # ac_fn_c_try_link LINENO
2448 # -----------------------
2449 # Try to link conftest.$ac_ext, and return whether this succeeded.
2450 ac_fn_c_try_link ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 rm -f conftest.$ac_objext conftest$ac_exeext
2454 if { { ac_try="$ac_link"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>conftest.err
2462 ac_status=$?
2463 if test -s conftest.err; then
2464 grep -v '^ *+' conftest.err >conftest.er1
2465 cat conftest.er1 >&5
2466 mv -f conftest.er1 conftest.err
2467 fi
2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469 test $ac_status = 0; } && {
2470 test -z "$ac_c_werror_flag" ||
2471 test ! -s conftest.err
2472 } && test -s conftest$ac_exeext && {
2473 test "$cross_compiling" = yes ||
2474 $as_test_x conftest$ac_exeext
2475 }; then :
2476 ac_retval=0
2477 else
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 ac_retval=1
2482 fi
2483 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2484 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2485 # interfere with the next link command; also delete a directory that is
2486 # left behind by Apple's compiler. We do this before executing the actions.
2487 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 as_fn_set_status $ac_retval
2490
2491 } # ac_fn_c_try_link
2492
2493 # ac_fn_c_check_decl LINENO SYMBOL VAR
2494 # ------------------------------------
2495 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2496 ac_fn_c_check_decl ()
2497 {
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2500 $as_echo_n "checking whether $2 is declared... " >&6; }
2501 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 $4
2507 int
2508 main ()
2509 {
2510 #ifndef $2
2511 (void) $2;
2512 #endif
2513
2514 ;
2515 return 0;
2516 }
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519 eval "$3=yes"
2520 else
2521 eval "$3=no"
2522 fi
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 fi
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529
2530 } # ac_fn_c_check_decl
2531
2532 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2533 # ----------------------------------------------
2534 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2535 ac_fn_c_check_header_preproc ()
2536 {
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 #include <$2>
2546 _ACEOF
2547 if ac_fn_c_try_cpp "$LINENO"; then :
2548 eval "$3=yes"
2549 else
2550 eval "$3=no"
2551 fi
2552 rm -f conftest.err conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559 } # ac_fn_c_check_header_preproc
2560
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2566 {
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2575 $5
2576 int
2577 main ()
2578 {
2579 static $2 ac_aggr;
2580 if (ac_aggr.$3)
2581 return 0;
2582 ;
2583 return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 eval "$4=yes"
2588 else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591 $5
2592 int
2593 main ()
2594 {
2595 static $2 ac_aggr;
2596 if (sizeof ac_aggr.$3)
2597 return 0;
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$4=yes"
2604 else
2605 eval "$4=no"
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 eval ac_res=\$$4
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615
2616 } # ac_fn_c_check_member
2617
2618 # ac_fn_c_check_func LINENO FUNC VAR
2619 # ----------------------------------
2620 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2621 ac_fn_c_check_func ()
2622 {
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2633 #define $2 innocuous_$2
2634
2635 /* System header to define __stub macros and hopefully few prototypes,
2636 which can conflict with char $2 (); below.
2637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2638 <limits.h> exists even on freestanding compilers. */
2639
2640 #ifdef __STDC__
2641 # include <limits.h>
2642 #else
2643 # include <assert.h>
2644 #endif
2645
2646 #undef $2
2647
2648 /* Override any GCC internal prototype to avoid an error.
2649 Use char because int might match the return type of a GCC
2650 builtin and then its argument prototype would still apply. */
2651 #ifdef __cplusplus
2652 extern "C"
2653 #endif
2654 char $2 ();
2655 /* The GNU C library defines this for functions which it implements
2656 to always fail with ENOSYS. Some functions are actually named
2657 something starting with __ and the normal name is an alias. */
2658 #if defined __stub_$2 || defined __stub___$2
2659 choke me
2660 #endif
2661
2662 int
2663 main ()
2664 {
2665 return $2 ();
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 if ac_fn_c_try_link "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2674 fi
2675 rm -f core conftest.err conftest.$ac_objext \
2676 conftest$ac_exeext conftest.$ac_ext
2677 fi
2678 eval ac_res=\$$3
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680 $as_echo "$ac_res" >&6; }
2681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682
2683 } # ac_fn_c_check_func
2684
2685 <<<<<<< TREE
2686 =======
2687 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2688 # ----------------------------------------------------
2689 # Tries to find if the field MEMBER exists in type AGGR, after including
2690 # INCLUDES, setting cache variable VAR accordingly.
2691 ac_fn_c_check_member ()
2692 {
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2695 $as_echo_n "checking for $2.$3... " >&6; }
2696 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2701 $5
2702 int
2703 main ()
2704 {
2705 static $2 ac_aggr;
2706 if (ac_aggr.$3)
2707 return 0;
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_c_try_compile "$LINENO"; then :
2713 eval "$4=yes"
2714 else
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2717 $5
2718 int
2719 main ()
2720 {
2721 static $2 ac_aggr;
2722 if (sizeof ac_aggr.$3)
2723 return 0;
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 if ac_fn_c_try_compile "$LINENO"; then :
2729 eval "$4=yes"
2730 else
2731 eval "$4=no"
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737 eval ac_res=\$$4
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2741
2742 } # ac_fn_c_check_member
2743
2744 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2745 # -------------------------------------------
2746 # Tests whether TYPE exists after having included INCLUDES, setting cache
2747 # variable VAR accordingly.
2748 ac_fn_c_check_type ()
2749 {
2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2752 $as_echo_n "checking for $2... " >&6; }
2753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 eval "$3=no"
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2759 $4
2760 int
2761 main ()
2762 {
2763 if (sizeof ($2))
2764 return 0;
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 if ac_fn_c_try_compile "$LINENO"; then :
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 $4
2773 int
2774 main ()
2775 {
2776 if (sizeof (($2)))
2777 return 0;
2778 ;
2779 return 0;
2780 }
2781 _ACEOF
2782 if ac_fn_c_try_compile "$LINENO"; then :
2783
2784 else
2785 eval "$3=yes"
2786 fi
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 fi
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 fi
2791 eval ac_res=\$$3
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2793 $as_echo "$ac_res" >&6; }
2794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2795
2796 } # ac_fn_c_check_type
2797
2798 >>>>>>> MERGE-SOURCE
2799 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2800 # --------------------------------------------
2801 # Tries to find the compile-time value of EXPR in a program that includes
2802 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2803 # computed
2804 ac_fn_c_compute_int ()
2805 {
2806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2807 if test "$cross_compiling" = yes; then
2808 # Depending upon the size, compute the lo and hi bounds.
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2811 $4
2812 int
2813 main ()
2814 {
2815 static int test_array [1 - 2 * !(($2) >= 0)];
2816 test_array [0] = 0
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_lo=0 ac_mid=0
2824 while :; do
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2827 $4
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2832 test_array [0] = 0
2833
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_c_try_compile "$LINENO"; then :
2839 ac_hi=$ac_mid; break
2840 else
2841 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2842 if test $ac_lo -le $ac_mid; then
2843 ac_lo= ac_hi=
2844 break
2845 fi
2846 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2847 fi
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 done
2850 else
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2853 $4
2854 int
2855 main ()
2856 {
2857 static int test_array [1 - 2 * !(($2) < 0)];
2858 test_array [0] = 0
2859
2860 ;
2861 return 0;
2862 }
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_hi=-1 ac_mid=-1
2866 while :; do
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2869 $4
2870 int
2871 main ()
2872 {
2873 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2874 test_array [0] = 0
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_lo=$ac_mid; break
2882 else
2883 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2884 if test $ac_mid -le $ac_hi; then
2885 ac_lo= ac_hi=
2886 break
2887 fi
2888 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2889 fi
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 done
2892 else
2893 ac_lo= ac_hi=
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 # Binary search between lo and hi bounds.
2899 while test "x$ac_lo" != "x$ac_hi"; do
2900 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2903 $4
2904 int
2905 main ()
2906 {
2907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2908 test_array [0] = 0
2909
2910 ;
2911 return 0;
2912 }
2913 _ACEOF
2914 if ac_fn_c_try_compile "$LINENO"; then :
2915 ac_hi=$ac_mid
2916 else
2917 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 done
2921 case $ac_lo in #((
2922 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2923 '') ac_retval=1 ;;
2924 esac
2925 else
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 $4
2929 static long int longval () { return $2; }
2930 static unsigned long int ulongval () { return $2; }
2931 #include <stdio.h>
2932 #include <stdlib.h>
2933 int
2934 main ()
2935 {
2936
2937 FILE *f = fopen ("conftest.val", "w");
2938 if (! f)
2939 return 1;
2940 if (($2) < 0)
2941 {
2942 long int i = longval ();
2943 if (i != ($2))
2944 return 1;
2945 fprintf (f, "%ld", i);
2946 }
2947 else
2948 {
2949 unsigned long int i = ulongval ();
2950 if (i != ($2))
2951 return 1;
2952 fprintf (f, "%lu", i);
2953 }
2954 /* Do not output a trailing newline, as this causes \r\n confusion
2955 on some platforms. */
2956 return ferror (f) || fclose (f) != 0;
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 if ac_fn_c_try_run "$LINENO"; then :
2963 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2964 else
2965 ac_retval=1
2966 fi
2967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2968 conftest.$ac_objext conftest.beam conftest.$ac_ext
2969 rm -f conftest.val
2970
2971 fi
2972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2973 as_fn_set_status $ac_retval
2974
2975 } # ac_fn_c_compute_int
2976
2977 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2978 # -------------------------------------------
2979 # Tests whether TYPE exists after having included INCLUDES, setting cache
2980 # variable VAR accordingly.
2981 ac_fn_c_check_type ()
2982 {
2983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2985 $as_echo_n "checking for $2... " >&6; }
2986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 eval "$3=no"
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h. */
2992 $4
2993 int
2994 main ()
2995 {
2996 if (sizeof ($2))
2997 return 0;
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 if ac_fn_c_try_compile "$LINENO"; then :
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005 $4
3006 int
3007 main ()
3008 {
3009 if (sizeof (($2)))
3010 return 0;
3011 ;
3012 return 0;
3013 }
3014 _ACEOF
3015 if ac_fn_c_try_compile "$LINENO"; then :
3016
3017 else
3018 eval "$3=yes"
3019 fi
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 fi
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 fi
3024 eval ac_res=\$$3
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3026 $as_echo "$ac_res" >&6; }
3027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3028
3029 } # ac_fn_c_check_type
3030 cat >config.log <<_ACEOF
3031 This file contains any messages produced by compilers while
3032 running configure, to aid debugging if configure makes a mistake.
3033
3034 It was created by emacs $as_me 24.1.50, which was
3035 generated by GNU Autoconf 2.65. Invocation command line was
3036
3037 $ $0 $@
3038
3039 _ACEOF
3040 exec 5>>config.log
3041 {
3042 cat <<_ASUNAME
3043 ## --------- ##
3044 ## Platform. ##
3045 ## --------- ##
3046
3047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3052
3053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3055
3056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3059 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3063
3064 _ASUNAME
3065
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 $as_echo "PATH: $as_dir"
3072 done
3073 IFS=$as_save_IFS
3074
3075 } >&5
3076
3077 cat >&5 <<_ACEOF
3078
3079
3080 ## ----------- ##
3081 ## Core tests. ##
3082 ## ----------- ##
3083
3084 _ACEOF
3085
3086
3087 # Keep a trace of the command line.
3088 # Strip out --no-create and --no-recursion so they do not pile up.
3089 # Strip out --silent because we don't want to record it for future runs.
3090 # Also quote any args containing shell meta-characters.
3091 # Make two passes to allow for proper duplicate-argument suppression.
3092 ac_configure_args=
3093 ac_configure_args0=
3094 ac_configure_args1=
3095 ac_must_keep_next=false
3096 for ac_pass in 1 2
3097 do
3098 for ac_arg
3099 do
3100 case $ac_arg in
3101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3103 | -silent | --silent | --silen | --sile | --sil)
3104 continue ;;
3105 *\'*)
3106 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3107 esac
3108 case $ac_pass in
3109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3110 2)
3111 as_fn_append ac_configure_args1 " '$ac_arg'"
3112 if test $ac_must_keep_next = true; then
3113 ac_must_keep_next=false # Got value, back to normal.
3114 else
3115 case $ac_arg in
3116 *=* | --config-cache | -C | -disable-* | --disable-* \
3117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3119 | -with-* | --with-* | -without-* | --without-* | --x)
3120 case "$ac_configure_args0 " in
3121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3122 esac
3123 ;;
3124 -* ) ac_must_keep_next=true ;;
3125 esac
3126 fi
3127 as_fn_append ac_configure_args " '$ac_arg'"
3128 ;;
3129 esac
3130 done
3131 done
3132 { ac_configure_args0=; unset ac_configure_args0;}
3133 { ac_configure_args1=; unset ac_configure_args1;}
3134
3135 # When interrupted or exit'd, cleanup temporary files, and complete
3136 # config.log. We remove comments because anyway the quotes in there
3137 # would cause problems or look ugly.
3138 # WARNING: Use '\'' to represent an apostrophe within the trap.
3139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3140 trap 'exit_status=$?
3141 # Save into config.log some information that might help in debugging.
3142 {
3143 echo
3144
3145 cat <<\_ASBOX
3146 ## ---------------- ##
3147 ## Cache variables. ##
3148 ## ---------------- ##
3149 _ASBOX
3150 echo
3151 # The following way of writing the cache mishandles newlines in values,
3152 (
3153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3154 eval ac_val=\$$ac_var
3155 case $ac_val in #(
3156 *${as_nl}*)
3157 case $ac_var in #(
3158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3160 esac
3161 case $ac_var in #(
3162 _ | IFS | as_nl) ;; #(
3163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3164 *) { eval $ac_var=; unset $ac_var;} ;;
3165 esac ;;
3166 esac
3167 done
3168 (set) 2>&1 |
3169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3170 *${as_nl}ac_space=\ *)
3171 sed -n \
3172 "s/'\''/'\''\\\\'\'''\''/g;
3173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3174 ;; #(
3175 *)
3176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3177 ;;
3178 esac |
3179 sort
3180 )
3181 echo
3182
3183 cat <<\_ASBOX
3184 ## ----------------- ##
3185 ## Output variables. ##
3186 ## ----------------- ##
3187 _ASBOX
3188 echo
3189 for ac_var in $ac_subst_vars
3190 do
3191 eval ac_val=\$$ac_var
3192 case $ac_val in
3193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3194 esac
3195 $as_echo "$ac_var='\''$ac_val'\''"
3196 done | sort
3197 echo
3198
3199 if test -n "$ac_subst_files"; then
3200 cat <<\_ASBOX
3201 ## ------------------- ##
3202 ## File substitutions. ##
3203 ## ------------------- ##
3204 _ASBOX
3205 echo
3206 for ac_var in $ac_subst_files
3207 do
3208 eval ac_val=\$$ac_var
3209 case $ac_val in
3210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3211 esac
3212 $as_echo "$ac_var='\''$ac_val'\''"
3213 done | sort
3214 echo
3215 fi
3216
3217 if test -s confdefs.h; then
3218 cat <<\_ASBOX
3219 ## ----------- ##
3220 ## confdefs.h. ##
3221 ## ----------- ##
3222 _ASBOX
3223 echo
3224 cat confdefs.h
3225 echo
3226 fi
3227 test "$ac_signal" != 0 &&
3228 $as_echo "$as_me: caught signal $ac_signal"
3229 $as_echo "$as_me: exit $exit_status"
3230 } >&5
3231 rm -f core *.core core.conftest.* &&
3232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3233 exit $exit_status
3234 ' 0
3235 for ac_signal in 1 2 13 15; do
3236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3237 done
3238 ac_signal=0
3239
3240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3241 rm -f -r conftest* confdefs.h
3242
3243 $as_echo "/* confdefs.h */" > confdefs.h
3244
3245 # Predefined preprocessor variables.
3246
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE_NAME "$PACKAGE_NAME"
3249 _ACEOF
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3253 _ACEOF
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3257 _ACEOF
3258
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_STRING "$PACKAGE_STRING"
3261 _ACEOF
3262
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3265 _ACEOF
3266
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_URL "$PACKAGE_URL"
3269 _ACEOF
3270
3271
3272 # Let the site file select an alternate cache file if it wants to.
3273 # Prefer an explicitly selected file to automatically selected ones.
3274 ac_site_file1=NONE
3275 ac_site_file2=NONE
3276 if test -n "$CONFIG_SITE"; then
3277 ac_site_file1=$CONFIG_SITE
3278 elif test "x$prefix" != xNONE; then
3279 ac_site_file1=$prefix/share/config.site
3280 ac_site_file2=$prefix/etc/config.site
3281 else
3282 ac_site_file1=$ac_default_prefix/share/config.site
3283 ac_site_file2=$ac_default_prefix/etc/config.site
3284 fi
3285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3286 do
3287 test "x$ac_site_file" = xNONE && continue
3288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3291 sed 's/^/| /' "$ac_site_file" >&5
3292 . "$ac_site_file"
3293 fi
3294 done
3295
3296 if test -r "$cache_file"; then
3297 # Some versions of bash will fail to source /dev/null (special files
3298 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3301 $as_echo "$as_me: loading cache $cache_file" >&6;}
3302 case $cache_file in
3303 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3304 *) . "./$cache_file";;
3305 esac
3306 fi
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3309 $as_echo "$as_me: creating cache $cache_file" >&6;}
3310 >$cache_file
3311 fi
3312
3313 as_fn_append ac_header_list " sys/select.h"
3314 as_fn_append ac_header_list " sys/time.h"
3315 as_fn_append ac_header_list " utime.h"
3316 as_fn_append ac_header_list " linux/version.h"
3317 as_fn_append ac_header_list " sys/systeminfo.h"
3318 as_fn_append ac_header_list " stdio_ext.h"
3319 as_fn_append ac_header_list " fcntl.h"
3320 as_fn_append ac_header_list " coff.h"
3321 as_fn_append ac_header_list " pty.h"
3322 as_fn_append ac_header_list " sys/vlimit.h"
3323 as_fn_append ac_header_list " sys/resource.h"
3324 as_fn_append ac_header_list " sys/utsname.h"
3325 as_fn_append ac_header_list " pwd.h"
3326 as_fn_append ac_header_list " utmp.h"
3327 as_fn_append ac_header_list " dirent.h"
3328 as_fn_append ac_header_list " util.h"
3329 as_fn_append ac_header_list " sys/socket.h"
3330 as_fn_append ac_header_list " stdlib.h"
3331 as_fn_append ac_header_list " unistd.h"
3332 as_fn_append ac_header_list " sys/param.h"
3333 as_fn_append ac_header_list " pthread.h"
3334 as_fn_append ac_header_list " malloc/malloc.h"
3335 as_fn_append ac_header_list " maillock.h"
3336 as_fn_append ac_header_list " sys/un.h"
3337 as_fn_append ac_func_list " tzset"
3338 as_fn_append ac_func_list " readlinkat"
3339 gl_getopt_required=GNU
3340 as_fn_append ac_header_list " getopt.h"
3341 as_fn_append ac_header_list " wchar.h"
3342 as_fn_append ac_header_list " stdint.h"
3343 as_fn_append ac_header_list " inttypes.h"
3344 as_fn_append ac_func_list " lstat"
3345 as_fn_append ac_func_list " alarm"
3346 as_fn_append ac_func_list " readlink"
3347 as_fn_append ac_func_list " strtoimax"
3348 as_fn_append ac_func_list " strtoumax"
3349 as_fn_append ac_func_list " symlink"
3350 as_fn_append ac_header_list " sys/stat.h"
3351 as_fn_append ac_func_list " localtime_r"
3352 # Check that the precious variables saved in the cache have kept the same
3353 # value.
3354 ac_cache_corrupted=false
3355 for ac_var in $ac_precious_vars; do
3356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3357 eval ac_new_set=\$ac_env_${ac_var}_set
3358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3359 eval ac_new_val=\$ac_env_${ac_var}_value
3360 case $ac_old_set,$ac_new_set in
3361 set,)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3363 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3364 ac_cache_corrupted=: ;;
3365 ,set)
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3367 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3368 ac_cache_corrupted=: ;;
3369 ,);;
3370 *)
3371 if test "x$ac_old_val" != "x$ac_new_val"; then
3372 # differences in whitespace do not lead to failure.
3373 ac_old_val_w=`echo x $ac_old_val`
3374 ac_new_val_w=`echo x $ac_new_val`
3375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3378 ac_cache_corrupted=:
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3382 eval $ac_var=\$ac_old_val
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3385 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3387 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3388 fi;;
3389 esac
3390 # Pass precious variables to config.status.
3391 if test "$ac_new_set" = set; then
3392 case $ac_new_val in
3393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3394 *) ac_arg=$ac_var=$ac_new_val ;;
3395 esac
3396 case " $ac_configure_args " in
3397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3399 esac
3400 fi
3401 done
3402 if $ac_cache_corrupted; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3407 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3408 fi
3409 ## -------------------- ##
3410 ## Main body of script. ##
3411 ## -------------------- ##
3412
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418
3419
3420 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3421
3422
3423 ac_aux_dir=
3424 for ac_dir in build-aux "$srcdir"/build-aux; do
3425 for ac_t in install-sh install.sh shtool; do
3426 if test -f "$ac_dir/$ac_t"; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/$ac_t -c"
3429 break 2
3430 fi
3431 done
3432 done
3433 if test -z "$ac_aux_dir"; then
3434 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3435 fi
3436
3437 # These three variables are undocumented and unsupported,
3438 # and are intended to be withdrawn in a future Autoconf release.
3439 # They can cause serious problems if a builder's source tree is in a directory
3440 # whose full name contains unusual characters.
3441 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3442 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3443 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3444
3445
3446 am__api_version='1.11'
3447
3448 # Find a good install program. We prefer a C program (faster),
3449 # so one script is as good as another. But avoid the broken or
3450 # incompatible versions:
3451 # SysV /etc/install, /usr/sbin/install
3452 # SunOS /usr/etc/install
3453 # IRIX /sbin/install
3454 # AIX /bin/install
3455 # AmigaOS /C/install, which installs bootblocks on floppy discs
3456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3459 # OS/2's system install, which has a completely different semantic
3460 # ./install, which can be erroneously created by make from ./install.sh.
3461 # Reject install programs that cannot install multiple files.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3464 if test -z "$INSTALL"; then
3465 if test "${ac_cv_path_install+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 # Account for people who put trailing slashes in PATH elements.
3474 case $as_dir/ in #((
3475 ./ | .// | /[cC]/* | \
3476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3478 /usr/ucb/* ) ;;
3479 *)
3480 # OSF1 and SCO ODT 3.0 have their own names for install.
3481 # Don't use installbsd from OSF since it installs stuff as root
3482 # by default.
3483 for ac_prog in ginstall scoinst install; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3486 if test $ac_prog = install &&
3487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # AIX install. It has an incompatible calling convention.
3489 :
3490 elif test $ac_prog = install &&
3491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492 # program-specific install script used by HP pwplus--don't use.
3493 :
3494 else
3495 rm -rf conftest.one conftest.two conftest.dir
3496 echo one > conftest.one
3497 echo two > conftest.two
3498 mkdir conftest.dir
3499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3500 test -s conftest.one && test -s conftest.two &&
3501 test -s conftest.dir/conftest.one &&
3502 test -s conftest.dir/conftest.two
3503 then
3504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3505 break 3
3506 fi
3507 fi
3508 fi
3509 done
3510 done
3511 ;;
3512 esac
3513
3514 done
3515 IFS=$as_save_IFS
3516
3517 rm -rf conftest.one conftest.two conftest.dir
3518
3519 fi
3520 if test "${ac_cv_path_install+set}" = set; then
3521 INSTALL=$ac_cv_path_install
3522 else
3523 # As a last resort, use the slow shell script. Don't cache a
3524 # value for INSTALL within a source directory, because that will
3525 # break other packages using the cache if that directory is
3526 # removed, or if the value is a relative name.
3527 INSTALL=$ac_install_sh
3528 fi
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3531 $as_echo "$INSTALL" >&6; }
3532
3533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3534 # It thinks the first close brace ends the variable substitution.
3535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3536
3537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3538
3539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3540
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3542 $as_echo_n "checking whether build environment is sane... " >&6; }
3543 # Just in case
3544 sleep 1
3545 echo timestamp > conftest.file
3546 # Reject unsafe characters in $srcdir or the absolute working directory
3547 # name. Accept space and tab only in the latter.
3548 am_lf='
3549 '
3550 case `pwd` in
3551 *[\\\"\#\$\&\'\`$am_lf]*)
3552 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3553 esac
3554 case $srcdir in
3555 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3556 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3557 esac
3558
3559 # Do `set' in a subshell so we don't clobber the current shell's
3560 # arguments. Must try -L first in case configure is actually a
3561 # symlink; some systems play weird games with the mod time of symlinks
3562 # (eg FreeBSD returns the mod time of the symlink's containing
3563 # directory).
3564 if (
3565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3566 if test "$*" = "X"; then
3567 # -L didn't work.
3568 set X `ls -t "$srcdir/configure" conftest.file`
3569 fi
3570 rm -f conftest.file
3571 if test "$*" != "X $srcdir/configure conftest.file" \
3572 && test "$*" != "X conftest.file $srcdir/configure"; then
3573
3574 # If neither matched, then we have a broken ls. This can happen
3575 # if, for instance, CONFIG_SHELL is bash and it inherits a
3576 # broken ls alias from the environment. This has actually
3577 # happened. Such a system could not be considered "sane".
3578 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3579 alias in your environment" "$LINENO" 5
3580 fi
3581
3582 test "$2" = conftest.file
3583 )
3584 then
3585 # Ok.
3586 :
3587 else
3588 as_fn_error "newly created file is older than distributed files!
3589 Check your system clock" "$LINENO" 5
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 $as_echo "yes" >&6; }
3593 test "$program_prefix" != NONE &&
3594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3595 # Use a double $ so make ignores it.
3596 test "$program_suffix" != NONE &&
3597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3598 # Double any \ or $.
3599 # By default was `s,x,x', remove it if useless.
3600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3602
3603 # expand $ac_aux_dir to an absolute path
3604 am_aux_dir=`cd $ac_aux_dir && pwd`
3605
3606 if test x"${MISSING+set}" != xset; then
3607 case $am_aux_dir in
3608 *\ * | *\ *)
3609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3610 *)
3611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3612 esac
3613 fi
3614 # Use eval to expand $SHELL
3615 if eval "$MISSING --run true"; then
3616 am_missing_run="$MISSING --run "
3617 else
3618 am_missing_run=
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3620 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3621 fi
3622
3623 if test x"${install_sh}" != xset; then
3624 case $am_aux_dir in
3625 *\ * | *\ *)
3626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3627 *)
3628 install_sh="\${SHELL} $am_aux_dir/install-sh"
3629 esac
3630 fi
3631
3632 # Installed binaries are usually stripped using `strip' when the user
3633 # run `make install-strip'. However `strip' might not be the right
3634 # tool to use in cross-compilation environments, therefore Automake
3635 # will honor the `STRIP' environment variable to overrule this program.
3636 if test "$cross_compiling" != no; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3639 set dummy ${ac_tool_prefix}strip; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$STRIP"; then
3646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 STRIP=$ac_cv_prog_STRIP
3666 if test -n "$STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3668 $as_echo "$STRIP" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674
3675 fi
3676 if test -z "$ac_cv_prog_STRIP"; then
3677 ac_ct_STRIP=$STRIP
3678 # Extract the first word of "strip", so it can be a program name with args.
3679 set dummy strip; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$ac_ct_STRIP"; then
3686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_ac_ct_STRIP="strip"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3706 if test -n "$ac_ct_STRIP"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3708 $as_echo "$ac_ct_STRIP" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714 if test "x$ac_ct_STRIP" = x; then
3715 STRIP=":"
3716 else
3717 case $cross_compiling:$ac_tool_warned in
3718 yes:)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721 ac_tool_warned=yes ;;
3722 esac
3723 STRIP=$ac_ct_STRIP
3724 fi
3725 else
3726 STRIP="$ac_cv_prog_STRIP"
3727 fi
3728
3729 fi
3730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3734 if test -z "$MKDIR_P"; then
3735 if test "${ac_cv_path_mkdir+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3740 do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in mkdir gmkdir; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3747 'mkdir (GNU coreutils) '* | \
3748 'mkdir (coreutils) '* | \
3749 'mkdir (fileutils) '4.1*)
3750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3751 break 3;;
3752 esac
3753 done
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759
3760 test -d ./--version && rmdir ./--version
3761 if test "${ac_cv_path_mkdir+set}" = set; then
3762 MKDIR_P="$ac_cv_path_mkdir -p"
3763 else
3764 # As a last resort, use the slow shell script. Don't cache a
3765 # value for MKDIR_P within a source directory, because that will
3766 # break other packages using the cache if that directory is
3767 # removed, or if the value is a relative name.
3768 MKDIR_P="$ac_install_sh -d"
3769 fi
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3772 $as_echo "$MKDIR_P" >&6; }
3773
3774
3775 mkdir_p="$MKDIR_P"
3776 case $mkdir_p in
3777 [\\/$]* | ?:[\\/]*) ;;
3778 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3779 esac
3780
3781 for ac_prog in gawk mawk nawk awk
3782 do
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_AWK+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$AWK"; then
3791 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_AWK="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 AWK=$ac_cv_prog_AWK
3811 if test -n "$AWK"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3813 $as_echo "$AWK" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820 test -n "$AWK" && break
3821 done
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3824 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3825 set x ${MAKE-make}
3826 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 cat >conftest.make <<\_ACEOF
3831 SHELL = /bin/sh
3832 all:
3833 @echo '@@@%%%=$(MAKE)=@@@%%%'
3834 _ACEOF
3835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3837 *@@@%%%=?*=@@@%%%*)
3838 eval ac_cv_prog_make_${ac_make}_set=yes;;
3839 *)
3840 eval ac_cv_prog_make_${ac_make}_set=no;;
3841 esac
3842 rm -f conftest.make
3843 fi
3844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3847 SET_MAKE=
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 SET_MAKE="MAKE=${MAKE-make}"
3852 fi
3853
3854 rm -rf .tst 2>/dev/null
3855 mkdir .tst 2>/dev/null
3856 if test -d .tst; then
3857 am__leading_dot=.
3858 else
3859 am__leading_dot=_
3860 fi
3861 rmdir .tst 2>/dev/null
3862
3863 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3864 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3865 # is not polluted with repeated "-I."
3866 am__isrc=' -I$(srcdir)'
3867 # test to see if srcdir already configured
3868 if test -f $srcdir/config.status; then
3869 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3870 fi
3871 fi
3872
3873 # test whether we have cygpath
3874 if test -z "$CYGPATH_W"; then
3875 if (cygpath --version) >/dev/null 2>/dev/null; then
3876 CYGPATH_W='cygpath -w'
3877 else
3878 CYGPATH_W=echo
3879 fi
3880 fi
3881
3882
3883 # Define the identity of the package.
3884 PACKAGE='emacs'
3885 VERSION='24.1.50'
3886
3887
3888 cat >>confdefs.h <<_ACEOF
3889 #define PACKAGE "$PACKAGE"
3890 _ACEOF
3891
3892
3893 cat >>confdefs.h <<_ACEOF
3894 #define VERSION "$VERSION"
3895 _ACEOF
3896
3897 # Some tools Automake needs.
3898
3899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3900
3901
3902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3903
3904
3905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3906
3907
3908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3909
3910
3911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3912
3913 # We need awk for the "check" target. The system "awk" is bad on
3914 # some platforms.
3915 # Always define AMTAR for backward compatibility.
3916
3917 AMTAR=${AMTAR-"${am_missing_run}tar"}
3918
3919 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3920
3921
3922
3923
3924
3925
3926
3927
3928 lispdir='${datadir}/emacs/${version}/lisp'
3929 leimdir='${datadir}/emacs/${version}/leim'
3930 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3931 '${datadir}/emacs/site-lisp'
3932 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3933 etcdir='${datadir}/emacs/${version}/etc'
3934 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3935 docdir='${datadir}/emacs/${version}/etc'
3936 gamedir='${localstatedir}/games/emacs'
3937
3938
3939
3940
3941 # Check whether --with-pop was given.
3942 if test "${with_pop+set}" = set; then :
3943 withval=$with_pop;
3944 else
3945 with_pop=yes
3946 fi
3947
3948 if test "$with_pop" = yes; then
3949 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3950
3951 fi
3952
3953
3954 # Check whether --with-kerberos was given.
3955 if test "${with_kerberos+set}" = set; then :
3956 withval=$with_kerberos;
3957 else
3958 with_kerberos=no
3959 fi
3960
3961 if test "$with_kerberos" != no; then
3962 $as_echo "#define KERBEROS 1" >>confdefs.h
3963
3964 fi
3965
3966
3967 # Check whether --with-kerberos5 was given.
3968 if test "${with_kerberos5+set}" = set; then :
3969 withval=$with_kerberos5;
3970 else
3971 with_kerberos5=no
3972 fi
3973
3974 if test "${with_kerberos5}" != no; then
3975 if test "${with_kerberos}" = no; then
3976 with_kerberos=yes
3977 $as_echo "#define KERBEROS 1" >>confdefs.h
3978
3979 fi
3980
3981 $as_echo "#define KERBEROS5 1" >>confdefs.h
3982
3983 fi
3984
3985
3986 # Check whether --with-hesiod was given.
3987 if test "${with_hesiod+set}" = set; then :
3988 withval=$with_hesiod;
3989 else
3990 with_hesiod=no
3991 fi
3992
3993 if test "$with_hesiod" != no; then
3994
3995 $as_echo "#define HESIOD 1" >>confdefs.h
3996
3997 fi
3998
3999
4000 # Check whether --with-mmdf was given.
4001 if test "${with_mmdf+set}" = set; then :
4002 withval=$with_mmdf;
4003 else
4004 with_mmdf=no
4005 fi
4006
4007 if test "$with_mmdf" != no; then
4008
4009 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4010
4011 fi
4012
4013
4014 # Check whether --with-mail-unlink was given.
4015 if test "${with_mail_unlink+set}" = set; then :
4016 withval=$with_mail_unlink;
4017 else
4018 with_mail_unlink=no
4019 fi
4020
4021 if test "$with_mail_unlink" != no; then
4022
4023 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4024
4025 fi
4026
4027
4028 # Check whether --with-mailhost was given.
4029 if test "${with_mailhost+set}" = set; then :
4030 withval=$with_mailhost;
4031 cat >>confdefs.h <<_ACEOF
4032 #define MAILHOST "$withval"
4033 _ACEOF
4034
4035 fi
4036
4037
4038
4039 # Check whether --with-sound was given.
4040 if test "${with_sound+set}" = set; then :
4041 withval=$with_sound;
4042 else
4043 with_sound=yes
4044 fi
4045
4046
4047
4048 # Check whether --with-sync-input was given.
4049 if test "${with_sync_input+set}" = set; then :
4050 withval=$with_sync_input;
4051 else
4052 with_sync_input=yes
4053 fi
4054
4055 if test "$with_sync_input" = yes; then
4056
4057 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
4058
4059 fi
4060
4061
4062 # Check whether --with-x-toolkit was given.
4063 if test "${with_x_toolkit+set}" = set; then :
4064 withval=$with_x_toolkit; case "${withval}" in
4065 y | ye | yes ) val=gtk ;;
4066 n | no ) val=no ;;
4067 l | lu | luc | luci | lucid ) val=lucid ;;
4068 a | at | ath | athe | athen | athena ) val=athena ;;
4069 m | mo | mot | moti | motif ) val=motif ;;
4070 g | gt | gtk ) val=gtk ;;
4071 gtk3 ) val=gtk3 ;;
4072 * )
4073 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4074 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
4075 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
4076 ;;
4077 esac
4078 with_x_toolkit=$val
4079
4080 fi
4081
4082
4083
4084 # Check whether --with-wide-int was given.
4085 if test "${with_wide_int+set}" = set; then :
4086 withval=$with_wide_int;
4087 else
4088 with_wide_int=no
4089 fi
4090
4091 if test "$with_wide_int" = yes; then
4092
4093 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4094
4095 fi
4096
4097
4098 # Check whether --with-xpm was given.
4099 if test "${with_xpm+set}" = set; then :
4100 withval=$with_xpm;
4101 else
4102 with_xpm=yes
4103 fi
4104
4105
4106 # Check whether --with-jpeg was given.
4107 if test "${with_jpeg+set}" = set; then :
4108 withval=$with_jpeg;
4109 else
4110 with_jpeg=yes
4111 fi
4112
4113
4114 # Check whether --with-tiff was given.
4115 if test "${with_tiff+set}" = set; then :
4116 withval=$with_tiff;
4117 else
4118 with_tiff=yes
4119 fi
4120
4121
4122 # Check whether --with-gif was given.
4123 if test "${with_gif+set}" = set; then :
4124 withval=$with_gif;
4125 else
4126 with_gif=yes
4127 fi
4128
4129
4130 # Check whether --with-png was given.
4131 if test "${with_png+set}" = set; then :
4132 withval=$with_png;
4133 else
4134 with_png=yes
4135 fi
4136
4137
4138 # Check whether --with-rsvg was given.
4139 if test "${with_rsvg+set}" = set; then :
4140 withval=$with_rsvg;
4141 else
4142 with_rsvg=yes
4143 fi
4144
4145
4146 # Check whether --with-xml2 was given.
4147 if test "${with_xml2+set}" = set; then :
4148 withval=$with_xml2;
4149 else
4150 with_xml2=yes
4151 fi
4152
4153
4154 # Check whether --with-imagemagick was given.
4155 if test "${with_imagemagick+set}" = set; then :
4156 withval=$with_imagemagick;
4157 else
4158 with_imagemagick=yes
4159 fi
4160
4161
4162
4163 # Check whether --with-xft was given.
4164 if test "${with_xft+set}" = set; then :
4165 withval=$with_xft;
4166 else
4167 with_xft=yes
4168 fi
4169
4170
4171 # Check whether --with-libotf was given.
4172 if test "${with_libotf+set}" = set; then :
4173 withval=$with_libotf;
4174 else
4175 with_libotf=yes
4176 fi
4177
4178
4179 # Check whether --with-m17n-flt was given.
4180 if test "${with_m17n_flt+set}" = set; then :
4181 withval=$with_m17n_flt;
4182 else
4183 with_m17n_flt=yes
4184 fi
4185
4186
4187
4188 # Check whether --with-toolkit-scroll-bars was given.
4189 if test "${with_toolkit_scroll_bars+set}" = set; then :
4190 withval=$with_toolkit_scroll_bars;
4191 else
4192 with_toolkit_scroll_bars=yes
4193 fi
4194
4195
4196 # Check whether --with-xaw3d was given.
4197 if test "${with_xaw3d+set}" = set; then :
4198 withval=$with_xaw3d;
4199 else
4200 with_xaw3d=yes
4201 fi
4202
4203
4204 # Check whether --with-xim was given.
4205 if test "${with_xim+set}" = set; then :
4206 withval=$with_xim;
4207 else
4208 with_xim=yes
4209 fi
4210
4211
4212 # Check whether --with-ns was given.
4213 if test "${with_ns+set}" = set; then :
4214 withval=$with_ns;
4215 else
4216 with_ns=no
4217 fi
4218
4219
4220
4221 # Check whether --with-gpm was given.
4222 if test "${with_gpm+set}" = set; then :
4223 withval=$with_gpm;
4224 else
4225 with_gpm=yes
4226 fi
4227
4228
4229 # Check whether --with-dbus was given.
4230 if test "${with_dbus+set}" = set; then :
4231 withval=$with_dbus;
4232 else
4233 with_dbus=yes
4234 fi
4235
4236
4237 # Check whether --with-gconf was given.
4238 if test "${with_gconf+set}" = set; then :
4239 withval=$with_gconf;
4240 else
4241 with_gconf=yes
4242 fi
4243
4244
4245 # Check whether --with-selinux was given.
4246 if test "${with_selinux+set}" = set; then :
4247 withval=$with_selinux;
4248 else
4249 with_selinux=yes
4250 fi
4251
4252
4253 # Check whether --with-gnutls was given.
4254 if test "${with_gnutls+set}" = set; then :
4255 withval=$with_gnutls;
4256 else
4257 with_gnutls=yes
4258 fi
4259
4260
4261 ## For the times when you want to build Emacs but don't have
4262 ## a suitable makeinfo, and can live without the manuals.
4263
4264 # Check whether --with-makeinfo was given.
4265 if test "${with_makeinfo+set}" = set; then :
4266 withval=$with_makeinfo;
4267 else
4268 with_makeinfo=yes
4269 fi
4270
4271
4272 ## This is an option because I do not know if all info/man support
4273 ## compressed files, nor how to test if they do so.
4274
4275 # Check whether --with-compress-info was given.
4276 if test "${with_compress_info+set}" = set; then :
4277 withval=$with_compress_info;
4278 else
4279 with_compress_info=yes
4280 fi
4281
4282 if test $with_compress_info = yes; then
4283 GZIP_INFO=yes
4284 else
4285 GZIP_INFO=
4286 fi
4287
4288
4289
4290 # Check whether --with-pkg-config-prog was given.
4291 if test "${with_pkg_config_prog+set}" = set; then :
4292 withval=$with_pkg_config_prog;
4293 fi
4294
4295 if test "X${with_pkg_config_prog}" != X; then
4296 if test "${with_pkg_config_prog}" != yes; then
4297 PKG_CONFIG="${with_pkg_config_prog}"
4298 fi
4299 fi
4300
4301 CRT_DIR=
4302
4303 # Check whether --with-crt-dir was given.
4304 if test "${with_crt_dir+set}" = set; then :
4305 withval=$with_crt_dir;
4306 fi
4307
4308 CRT_DIR="${with_crt_dir}"
4309
4310
4311 # Check whether --with-gameuser was given.
4312 if test "${with_gameuser+set}" = set; then :
4313 withval=$with_gameuser;
4314 fi
4315
4316 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4317 && gameuser="${with_gameuser}"
4318 test "X$gameuser" = X && gameuser=games
4319
4320
4321 # Check whether --with-gnustep-conf was given.
4322 if test "${with_gnustep_conf+set}" = set; then :
4323 withval=$with_gnustep_conf;
4324 fi
4325
4326 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4327 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4328 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4329 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4330
4331 # Check whether --enable-ns-self-contained was given.
4332 if test "${enable_ns_self_contained+set}" = set; then :
4333 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4334 else
4335 EN_NS_SELF_CONTAINED=yes
4336 fi
4337
4338
4339 # Check whether --enable-asserts was given.
4340 if test "${enable_asserts+set}" = set; then :
4341 enableval=$enable_asserts; USE_XASSERTS=$enableval
4342 else
4343 USE_XASSERTS=no
4344 fi
4345
4346
4347 # Check whether --enable-maintainer-mode was given.
4348 if test "${enable_maintainer_mode+set}" = set; then :
4349 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4350 else
4351 USE_MAINTAINER_MODE=yes
4352 fi
4353
4354 if test $USE_MAINTAINER_MODE = yes; then
4355 MAINT=
4356 else
4357 MAINT=#
4358 fi
4359
4360
4361 # Check whether --enable-locallisppath was given.
4362 if test "${enable_locallisppath+set}" = set; then :
4363 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4364 locallisppath=
4365 elif test "${enableval}" != "yes"; then
4366 locallisppath=${enableval}
4367 fi
4368 fi
4369
4370
4371 # Check whether --enable-checking was given.
4372 if test "${enable_checking+set}" = set; then :
4373 enableval=$enable_checking; ac_checking_flags="${enableval}"
4374 fi
4375
4376 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4377 for check in $ac_checking_flags
4378 do
4379 case $check in
4380 # these set all the flags to specific states
4381 yes) ac_enable_checking=1 ;;
4382 no) ac_enable_checking= ;
4383 ac_gc_check_stringbytes= ;
4384 ac_gc_check_string_overrun= ;
4385 ac_gc_check_string_free_list= ;
4386 ac_xmalloc_overrun= ;
4387 ac_gc_check_cons_list= ;;
4388 all) ac_enable_checking=1 ;
4389 ac_gc_check_stringbytes=1 ;
4390 ac_gc_check_string_overrun=1 ;
4391 ac_gc_check_string_free_list=1 ;
4392 ac_xmalloc_overrun=1 ;
4393 ac_gc_check_cons_list=1 ;;
4394 # these enable particular checks
4395 stringbytes) ac_gc_check_stringbytes=1 ;;
4396 stringoverrun) ac_gc_check_string_overrun=1 ;;
4397 stringfreelist) ac_gc_check_string_free_list=1 ;;
4398 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4399 conslist) ac_gc_check_cons_list=1 ;;
4400 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4401 esac
4402 done
4403 IFS="$ac_save_IFS"
4404
4405 if test x$ac_enable_checking != x ; then
4406
4407 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4408
4409 fi
4410 if test x$ac_gc_check_stringbytes != x ; then
4411
4412 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4413
4414 fi
4415 if test x$ac_gc_check_string_overrun != x ; then
4416
4417 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4418
4419 fi
4420 if test x$ac_gc_check_string_free_list != x ; then
4421
4422 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4423
4424 fi
4425 if test x$ac_xmalloc_overrun != x ; then
4426
4427 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4428
4429 fi
4430 if test x$ac_gc_check_cons_list != x ; then
4431
4432 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4433
4434 fi
4435
4436 # Check whether --enable-use-lisp-union-type was given.
4437 if test "${enable_use_lisp_union_type+set}" = set; then :
4438 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4439
4440 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4441
4442 fi
4443 fi
4444
4445
4446
4447 # Check whether --enable-profiling was given.
4448 if test "${enable_profiling+set}" = set; then :
4449 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4450 fi
4451
4452 if test x$ac_enable_profiling != x ; then
4453 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4454 else
4455 PROFILING_CFLAGS=
4456 fi
4457
4458
4459 # Check whether --enable-autodepend was given.
4460 if test "${enable_autodepend+set}" = set; then :
4461 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4462 else
4463 ac_enable_autodepend=yes
4464 fi
4465
4466
4467 #### Make srcdir absolute, if it isn't already. It's important to
4468 #### avoid running the path through pwd unnecessarily, since pwd can
4469 #### give you automounter prefixes, which can go away. We do all this
4470 #### so Emacs can find its files when run uninstalled.
4471 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4472 unset CDPATH
4473 case "${srcdir}" in
4474 /* ) ;;
4475 . )
4476 ## We may be able to use the $PWD environment variable to make this
4477 ## absolute. But sometimes PWD is inaccurate.
4478 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4479 ## but that tested only for a well-formed and valid PWD,
4480 ## it did not object when PWD was well-formed and valid but just wrong.
4481 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4482 then
4483 srcdir="$PWD"
4484 else
4485 srcdir="`(cd ${srcdir}; pwd)`"
4486 fi
4487 ;;
4488 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4489 esac
4490
4491 #### Given the configuration name, set opsysfile to the
4492 #### name of s/*.h file we should use.
4493
4494 ### Canonicalize the configuration name.
4495
4496 # Make sure we can run config.sub.
4497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4498 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4501 $as_echo_n "checking build system type... " >&6; }
4502 if test "${ac_cv_build+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 ac_build_alias=$build_alias
4506 test "x$ac_build_alias" = x &&
4507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4508 test "x$ac_build_alias" = x &&
4509 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4511 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4512
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4515 $as_echo "$ac_cv_build" >&6; }
4516 case $ac_cv_build in
4517 *-*-*) ;;
4518 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4519 esac
4520 build=$ac_cv_build
4521 ac_save_IFS=$IFS; IFS='-'
4522 set x $ac_cv_build
4523 shift
4524 build_cpu=$1
4525 build_vendor=$2
4526 shift; shift
4527 # Remember, the first character of IFS is used to create $*,
4528 # except with old shells:
4529 build_os=$*
4530 IFS=$ac_save_IFS
4531 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4535 $as_echo_n "checking host system type... " >&6; }
4536 if test "${ac_cv_host+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test "x$host_alias" = x; then
4540 ac_cv_host=$ac_cv_build
4541 else
4542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4543 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4548 $as_echo "$ac_cv_host" >&6; }
4549 case $ac_cv_host in
4550 *-*-*) ;;
4551 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4552 esac
4553 host=$ac_cv_host
4554 ac_save_IFS=$IFS; IFS='-'
4555 set x $ac_cv_host
4556 shift
4557 host_cpu=$1
4558 host_vendor=$2
4559 shift; shift
4560 # Remember, the first character of IFS is used to create $*,
4561 # except with old shells:
4562 host_os=$*
4563 IFS=$ac_save_IFS
4564 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4565
4566
4567 canonical=$host
4568 configuration=${host_alias-${build_alias-$host}}
4569
4570
4571
4572 ### If you add support for a new configuration, add code to this
4573 ### switch statement to recognize your configuration name and select
4574 ### the appropriate operating system file.
4575
4576 ### You would hope that you could choose an s/*.h
4577 ### file based on the operating system portion. However, it turns out
4578 ### that each s/*.h file is pretty manufacturer-specific.
4579 ### So we basically have to have a special case for each
4580 ### configuration name.
4581 ###
4582 ### As far as handling version numbers on operating systems is
4583 ### concerned, make sure things will fail in a fixable way. If
4584 ### /etc/MACHINES doesn't say anything about version numbers, be
4585 ### prepared to handle anything reasonably. If version numbers
4586 ### matter, be sure /etc/MACHINES says something about it.
4587
4588 opsys='' unported=no
4589 case "${canonical}" in
4590
4591 ## GNU/Linux and similar ports
4592 *-*-linux* )
4593 opsys=gnu-linux
4594 ;;
4595
4596 ## FreeBSD ports
4597 *-*-freebsd* )
4598 opsys=freebsd
4599 ;;
4600
4601 ## FreeBSD kernel + glibc based userland
4602 *-*-kfreebsd*gnu* )
4603 opsys=gnu-kfreebsd
4604 ;;
4605
4606 ## NetBSD ports
4607 *-*-netbsd* )
4608 opsys=netbsd
4609 ;;
4610
4611 ## OpenBSD ports
4612 *-*-openbsd* )
4613 opsys=openbsd
4614 ;;
4615
4616 ## Apple Darwin / Mac OS X
4617 *-apple-darwin* )
4618 case "${canonical}" in
4619 i[3456]86-* ) ;;
4620 powerpc-* ) ;;
4621 x86_64-* ) ;;
4622 * ) unported=yes ;;
4623 esac
4624 opsys=darwin
4625 ## Use fink packages if available.
4626 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4627 ## if test -d /sw/include && test -d /sw/lib; then
4628 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4629 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4630 ## fi
4631 ;;
4632
4633 ## HP 9000 series 700 and 800, running HP/UX
4634 hppa*-hp-hpux10.2* )
4635 opsys=hpux10-20
4636 ;;
4637 hppa*-hp-hpux1[1-9]* )
4638 opsys=hpux11
4639 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4640 ;;
4641
4642 ## IBM machines
4643 rs6000-ibm-aix4.[23]* )
4644 opsys=aix4-2
4645 ;;
4646 powerpc-ibm-aix4.[23]* )
4647 opsys=aix4-2
4648 ;;
4649 rs6000-ibm-aix[56]* )
4650 opsys=aix4-2
4651 ;;
4652 powerpc-ibm-aix[56]* )
4653 opsys=aix4-2
4654 ;;
4655
4656 ## Silicon Graphics machines
4657 ## Iris 4D
4658 mips-sgi-irix6.5 )
4659 machine=iris4d opsys=irix6-5
4660 # Without defining _LANGUAGE_C, things get masked out in the headers
4661 # so that, for instance, grepping for `free' in stdlib.h fails and
4662 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4663 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4664 ;;
4665
4666 ## Suns
4667 *-sun-solaris* \
4668 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4669 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4670 case "${canonical}" in
4671 i[3456]86-*-* ) ;;
4672 amd64-*-*|x86_64-*-*) ;;
4673 sparc* ) ;;
4674 * ) unported=yes ;;
4675 esac
4676 case "${canonical}" in
4677 *-sunos5.6* | *-solaris2.6* )
4678 opsys=sol2-6
4679 RANLIB="ar -ts"
4680 ;;
4681 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4682 opsys=sol2-6
4683 emacs_check_sunpro_c=yes
4684 ;;
4685 *-sunos5* | *-solaris* )
4686 opsys=sol2-10
4687 emacs_check_sunpro_c=yes
4688 ;;
4689 esac
4690 ## Watch out for a compiler that we know will not work.
4691 case "${canonical}" in
4692 *-solaris* | *-sunos5* )
4693 if [ "x$CC" = x/usr/ucb/cc ]; then
4694 ## /usr/ucb/cc doesn't work;
4695 ## we should find some other compiler that does work.
4696 unset CC
4697 fi
4698 ;;
4699 *) ;;
4700 esac
4701 ;;
4702
4703 ## Intel 386 machines where we don't care about the manufacturer.
4704 i[3456]86-*-* )
4705 case "${canonical}" in
4706 *-cygwin ) opsys=cygwin ;;
4707 *-darwin* ) opsys=darwin ;;
4708 *-sysv4.2uw* ) opsys=unixware ;;
4709 *-sysv5uw* ) opsys=unixware ;;
4710 *-sysv5OpenUNIX* ) opsys=unixware ;;
4711 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4712 esac
4713 ;;
4714
4715 * )
4716 unported=yes
4717 ;;
4718 esac
4719
4720 ### If the code above didn't choose an operating system, just choose
4721 ### an operating system based on the configuration name. You really
4722 ### only want to use this when you have no idea what the right
4723 ### operating system is; if you know what operating systems a machine
4724 ### runs, it's cleaner to make it explicit in the case statement
4725 ### above.
4726 if test x"${opsys}" = x; then
4727 case "${canonical}" in
4728 *-gnu* ) opsys=gnu ;;
4729 * )
4730 unported=yes
4731 ;;
4732 esac
4733 fi
4734
4735
4736
4737 if test $unported = yes; then
4738 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4739 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4740 fi
4741
4742 opsysfile="s/${opsys}.h"
4743
4744
4745 #### Choose a compiler.
4746
4747 ac_ext=c
4748 ac_cpp='$CPP $CPPFLAGS'
4749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}gcc; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 fi
4791 if test -z "$ac_cv_prog_CC"; then
4792 ac_ct_CC=$CC
4793 # Extract the first word of "gcc", so it can be a program name with args.
4794 set dummy gcc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$ac_ct_CC"; then
4801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_ac_ct_CC="gcc"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4813 fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818 fi
4819 fi
4820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4821 if test -n "$ac_ct_CC"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4823 $as_echo "$ac_ct_CC" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828
4829 if test "x$ac_ct_CC" = x; then
4830 CC=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833 yes:)
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836 ac_tool_warned=yes ;;
4837 esac
4838 CC=$ac_ct_CC
4839 fi
4840 else
4841 CC="$ac_cv_prog_CC"
4842 fi
4843
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}cc; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if test "${ac_cv_prog_CC+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$CC"; then
4854 ac_cv_prog_CC="$CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_CC="${ac_tool_prefix}cc"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 CC=$ac_cv_prog_CC
4874 if test -n "$CC"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4876 $as_echo "$CC" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883 fi
4884 fi
4885 if test -z "$CC"; then
4886 # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_CC+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$CC"; then
4894 ac_cv_prog_CC="$CC" # Let the user override the test.
4895 else
4896 ac_prog_rejected=no
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905 ac_prog_rejected=yes
4906 continue
4907 fi
4908 ac_cv_prog_CC="cc"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 if test $ac_prog_rejected = yes; then
4917 # We found a bogon in the path, so make sure we never use it.
4918 set dummy $ac_cv_prog_CC
4919 shift
4920 if test $# != 0; then
4921 # We chose a different compiler from the bogus one.
4922 # However, it has the same basename, so the bogon will be chosen
4923 # first if we set CC to just the basename; use the full file name.
4924 shift
4925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4926 fi
4927 fi
4928 fi
4929 fi
4930 CC=$ac_cv_prog_CC
4931 if test -n "$CC"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4933 $as_echo "$CC" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 fi
4941 if test -z "$CC"; then
4942 if test -n "$ac_tool_prefix"; then
4943 for ac_prog in cl.exe
4944 do
4945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_CC+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$CC"; then
4953 ac_cv_prog_CC="$CC" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 CC=$ac_cv_prog_CC
4973 if test -n "$CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 $as_echo "$CC" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 test -n "$CC" && break
4983 done
4984 fi
4985 if test -z "$CC"; then
4986 ac_ct_CC=$CC
4987 for ac_prog in cl.exe
4988 do
4989 # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy $ac_prog; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$ac_ct_CC"; then
4997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_ac_ct_CC="$ac_prog"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5017 if test -n "$ac_ct_CC"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5019 $as_echo "$ac_ct_CC" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 test -n "$ac_ct_CC" && break
5027 done
5028
5029 if test "x$ac_ct_CC" = x; then
5030 CC=""
5031 else
5032 case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038 CC=$ac_ct_CC
5039 fi
5040 fi
5041
5042 fi
5043
5044
5045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 as_fn_error "no acceptable C compiler found in \$PATH
5048 See \`config.log' for more details." "$LINENO" 5; }
5049
5050 # Provide some information about the compiler.
5051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5052 set X $ac_compile
5053 ac_compiler=$2
5054 for ac_option in --version -v -V -qversion; do
5055 { { ac_try="$ac_compiler $ac_option >&5"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 $as_echo "$ac_try_echo"; } >&5
5062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5063 ac_status=$?
5064 if test -s conftest.err; then
5065 sed '10a\
5066 ... rest of stderr output deleted ...
5067 10q' conftest.err >conftest.er1
5068 cat conftest.er1 >&5
5069 fi
5070 rm -f conftest.er1 conftest.err
5071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072 test $ac_status = 0; }
5073 done
5074
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077
5078 int
5079 main ()
5080 {
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 ac_clean_files_save=$ac_clean_files
5087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5088 # Try to create an executable without -o first, disregard a.out.
5089 # It will help us diagnose broken compilers, and finding out an intuition
5090 # of exeext.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5092 $as_echo_n "checking whether the C compiler works... " >&6; }
5093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5094
5095 # The possible output files:
5096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5097
5098 ac_rmfiles=
5099 for ac_file in $ac_files
5100 do
5101 case $ac_file in
5102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5104 esac
5105 done
5106 rm -f $ac_rmfiles
5107
5108 if { { ac_try="$ac_link_default"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114 $as_echo "$ac_try_echo"; } >&5
5115 (eval "$ac_link_default") 2>&5
5116 ac_status=$?
5117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }; then :
5119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5122 # so that the user can short-circuit this test for compilers unknown to
5123 # Autoconf.
5124 for ac_file in $ac_files ''
5125 do
5126 test -f "$ac_file" || continue
5127 case $ac_file in
5128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5129 ;;
5130 [ab].out )
5131 # We found the default executable, but exeext='' is most
5132 # certainly right.
5133 break;;
5134 *.* )
5135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5136 then :; else
5137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5138 fi
5139 # We set ac_cv_exeext here because the later test for it is not
5140 # safe: cross compilers may not add the suffix if given an `-o'
5141 # argument, so we may need to know it at that point already.
5142 # Even if this section looks crufty: it has the advantage of
5143 # actually working.
5144 break;;
5145 * )
5146 break;;
5147 esac
5148 done
5149 test "$ac_cv_exeext" = no && ac_cv_exeext=
5150
5151 else
5152 ac_file=''
5153 fi
5154 if test -z "$ac_file"; then :
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 $as_echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5162 { as_fn_set_status 77
5163 as_fn_error "C compiler cannot create executables
5164 See \`config.log' for more details." "$LINENO" 5; }; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5170 $as_echo_n "checking for C compiler default output file name... " >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5172 $as_echo "$ac_file" >&6; }
5173 ac_exeext=$ac_cv_exeext
5174
5175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5176 ac_clean_files=$ac_clean_files_save
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5178 $as_echo_n "checking for suffix of executables... " >&6; }
5179 if { { ac_try="$ac_link"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5185 $as_echo "$ac_try_echo"; } >&5
5186 (eval "$ac_link") 2>&5
5187 ac_status=$?
5188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }; then :
5190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5192 # work properly (i.e., refer to `conftest.exe'), while it won't with
5193 # `rm'.
5194 for ac_file in conftest.exe conftest conftest.*; do
5195 test -f "$ac_file" || continue
5196 case $ac_file in
5197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5199 break;;
5200 * ) break;;
5201 esac
5202 done
5203 else
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "cannot compute suffix of executables: cannot compile and link
5207 See \`config.log' for more details." "$LINENO" 5; }
5208 fi
5209 rm -f conftest conftest$ac_cv_exeext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5211 $as_echo "$ac_cv_exeext" >&6; }
5212
5213 rm -f conftest.$ac_ext
5214 EXEEXT=$ac_cv_exeext
5215 ac_exeext=$EXEEXT
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <stdio.h>
5219 int
5220 main ()
5221 {
5222 FILE *f = fopen ("conftest.out", "w");
5223 return ferror (f) || fclose (f) != 0;
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 ac_clean_files="$ac_clean_files conftest.out"
5230 # Check that the compiler produces executables we can run. If not, either
5231 # the compiler is broken, or we cross compile.
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5233 $as_echo_n "checking whether we are cross compiling... " >&6; }
5234 if test "$cross_compiling" != yes; then
5235 { { ac_try="$ac_link"
5236 case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239 esac
5240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5241 $as_echo "$ac_try_echo"; } >&5
5242 (eval "$ac_link") 2>&5
5243 ac_status=$?
5244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; }
5246 if { ac_try='./conftest$ac_cv_exeext'
5247 { { case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 $as_echo "$ac_try_echo"; } >&5
5253 (eval "$ac_try") 2>&5
5254 ac_status=$?
5255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }; }; then
5257 cross_compiling=no
5258 else
5259 if test "$cross_compiling" = maybe; then
5260 cross_compiling=yes
5261 else
5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264 as_fn_error "cannot run C compiled programs.
5265 If you meant to cross compile, use \`--host'.
5266 See \`config.log' for more details." "$LINENO" 5; }
5267 fi
5268 fi
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5271 $as_echo "$cross_compiling" >&6; }
5272
5273 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5274 ac_clean_files=$ac_clean_files_save
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5276 $as_echo_n "checking for suffix of object files... " >&6; }
5277 if test "${ac_cv_objext+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282
5283 int
5284 main ()
5285 {
5286
5287 ;
5288 return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.o conftest.obj
5292 if { { ac_try="$ac_compile"
5293 case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296 esac
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_compile") 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; then :
5303 for ac_file in conftest.o conftest.obj conftest.*; do
5304 test -f "$ac_file" || continue;
5305 case $ac_file in
5306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5308 break;;
5309 esac
5310 done
5311 else
5312 $as_echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5317 as_fn_error "cannot compute suffix of object files: cannot compile
5318 See \`config.log' for more details." "$LINENO" 5; }
5319 fi
5320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5323 $as_echo "$ac_cv_objext" >&6; }
5324 OBJEXT=$ac_cv_objext
5325 ac_objext=$OBJEXT
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5328 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333
5334 int
5335 main ()
5336 {
5337 #ifndef __GNUC__
5338 choke me
5339 #endif
5340
5341 ;
5342 return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_compiler_gnu=yes
5347 else
5348 ac_compiler_gnu=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5352
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5356 if test $ac_compiler_gnu = yes; then
5357 GCC=yes
5358 else
5359 GCC=
5360 fi
5361 ac_test_CFLAGS=${CFLAGS+set}
5362 ac_save_CFLAGS=$CFLAGS
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5365 if test "${ac_cv_prog_cc_g+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 ac_save_c_werror_flag=$ac_c_werror_flag
5369 ac_c_werror_flag=yes
5370 ac_cv_prog_cc_g=no
5371 CFLAGS="-g"
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374
5375 int
5376 main ()
5377 {
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_prog_cc_g=yes
5385 else
5386 CFLAGS=""
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399
5400 else
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5402 CFLAGS="-g"
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405
5406 int
5407 main ()
5408 {
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415 ac_cv_prog_cc_g=yes
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_c_werror_flag=$ac_save_c_werror_flag
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5425 $as_echo "$ac_cv_prog_cc_g" >&6; }
5426 if test "$ac_test_CFLAGS" = set; then
5427 CFLAGS=$ac_save_CFLAGS
5428 elif test $ac_cv_prog_cc_g = yes; then
5429 if test "$GCC" = yes; then
5430 CFLAGS="-g -O2"
5431 else
5432 CFLAGS="-g"
5433 fi
5434 else
5435 if test "$GCC" = yes; then
5436 CFLAGS="-O2"
5437 else
5438 CFLAGS=
5439 fi
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 ac_cv_prog_cc_c89=no
5447 ac_save_CC=$CC
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <stdarg.h>
5451 #include <stdio.h>
5452 #include <sys/types.h>
5453 #include <sys/stat.h>
5454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5455 struct buf { int x; };
5456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457 static char *e (p, i)
5458 char **p;
5459 int i;
5460 {
5461 return p[i];
5462 }
5463 static char *f (char * (*g) (char **, int), char **p, ...)
5464 {
5465 char *s;
5466 va_list v;
5467 va_start (v,p);
5468 s = g (p, va_arg (v,int));
5469 va_end (v);
5470 return s;
5471 }
5472
5473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5474 function prototypes and stuff, but not '\xHH' hex character constants.
5475 These don't provoke an error unfortunately, instead are silently treated
5476 as 'x'. The following induces an error, until -std is added to get
5477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5478 array size at least. It's necessary to write '\x00'==0 to get something
5479 that's true only with -std. */
5480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5481
5482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483 inside strings and character constants. */
5484 #define FOO(x) 'x'
5485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5486
5487 int test (int i, double x);
5488 struct s1 {int (*f) (int a);};
5489 struct s2 {int (*f) (double a);};
5490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5491 int argc;
5492 char **argv;
5493 int
5494 main ()
5495 {
5496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5503 do
5504 CC="$ac_save_CC $ac_arg"
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_prog_cc_c89=$ac_arg
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext
5509 test "x$ac_cv_prog_cc_c89" != "xno" && break
5510 done
5511 rm -f conftest.$ac_ext
5512 CC=$ac_save_CC
5513
5514 fi
5515 # AC_CACHE_VAL
5516 case "x$ac_cv_prog_cc_c89" in
5517 x)
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5519 $as_echo "none needed" >&6; } ;;
5520 xno)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5522 $as_echo "unsupported" >&6; } ;;
5523 *)
5524 CC="$CC $ac_cv_prog_cc_c89"
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5527 esac
5528 if test "x$ac_cv_prog_cc_c89" != xno; then :
5529
5530 fi
5531
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 DEPDIR="${am__leading_dot}deps"
5538
5539 ac_config_commands="$ac_config_commands depfiles"
5540
5541
5542 am_make=${MAKE-make}
5543 cat > confinc << 'END'
5544 am__doit:
5545 @echo this is the am__doit target
5546 .PHONY: am__doit
5547 END
5548 # If we don't find an include directive, just comment out the code.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5551 am__include="#"
5552 am__quote=
5553 _am_result=none
5554 # First try GNU make style include.
5555 echo "include confinc" > confmf
5556 # Ignore all kinds of additional output from `make'.
5557 case `$am_make -s -f confmf 2> /dev/null` in #(
5558 *the\ am__doit\ target*)
5559 am__include=include
5560 am__quote=
5561 _am_result=GNU
5562 ;;
5563 esac
5564 # Now try BSD make style include.
5565 if test "$am__include" = "#"; then
5566 echo '.include "confinc"' > confmf
5567 case `$am_make -s -f confmf 2> /dev/null` in #(
5568 *the\ am__doit\ target*)
5569 am__include=.include
5570 am__quote="\""
5571 _am_result=BSD
5572 ;;
5573 esac
5574 fi
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5578 $as_echo "$_am_result" >&6; }
5579 rm -f confinc confmf
5580
5581 # Check whether --enable-dependency-tracking was given.
5582 if test "${enable_dependency_tracking+set}" = set; then :
5583 enableval=$enable_dependency_tracking;
5584 fi
5585
5586 if test "x$enable_dependency_tracking" != xno; then
5587 am_depcomp="$ac_aux_dir/depcomp"
5588 AMDEPBACKSLASH='\'
5589 fi
5590 if test "x$enable_dependency_tracking" != xno; then
5591 AMDEP_TRUE=
5592 AMDEP_FALSE='#'
5593 else
5594 AMDEP_TRUE='#'
5595 AMDEP_FALSE=
5596 fi
5597
5598
5599
5600 depcc="$CC" am_compiler_list=
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5603 $as_echo_n "checking dependency style of $depcc... " >&6; }
5604 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608 # We make a subdir and do the tests there. Otherwise we can end up
5609 # making bogus files that we don't know about and never remove. For
5610 # instance it was reported that on HP-UX the gcc test will end up
5611 # making a dummy file named `D' -- because `-MD' means `put the output
5612 # in D'.
5613 mkdir conftest.dir
5614 # Copy depcomp to subdir because otherwise we won't find it if we're
5615 # using a relative directory.
5616 cp "$am_depcomp" conftest.dir
5617 cd conftest.dir
5618 # We will build objects and dependencies in a subdirectory because
5619 # it helps to detect inapplicable dependency modes. For instance
5620 # both Tru64's cc and ICC support -MD to output dependencies as a
5621 # side effect of compilation, but ICC will put the dependencies in
5622 # the current directory while Tru64 will put them in the object
5623 # directory.
5624 mkdir sub
5625
5626 am_cv_CC_dependencies_compiler_type=none
5627 if test "$am_compiler_list" = ""; then
5628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5629 fi
5630 am__universal=false
5631 case " $depcc " in #(
5632 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5633 esac
5634
5635 for depmode in $am_compiler_list; do
5636 # Setup a source with many dependencies, because some compilers
5637 # like to wrap large dependency lists on column 80 (with \), and
5638 # we should not choose a depcomp mode which is confused by this.
5639 #
5640 # We need to recreate these files for each test, as the compiler may
5641 # overwrite some of them when testing with obscure command lines.
5642 # This happens at least with the AIX C compiler.
5643 : > sub/conftest.c
5644 for i in 1 2 3 4 5 6; do
5645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5647 # Solaris 8's {/usr,}/bin/sh.
5648 touch sub/conftst$i.h
5649 done
5650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5651
5652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5653 # mode. It turns out that the SunPro C++ compiler does not properly
5654 # handle `-M -o', and we need to detect this. Also, some Intel
5655 # versions had trouble with output in subdirs
5656 am__obj=sub/conftest.${OBJEXT-o}
5657 am__minus_obj="-o $am__obj"
5658 case $depmode in
5659 gcc)
5660 # This depmode causes a compiler race in universal mode.
5661 test "$am__universal" = false || continue
5662 ;;
5663 nosideeffect)
5664 # after this tag, mechanisms are not by side-effect, so they'll
5665 # only be used when explicitly requested
5666 if test "x$enable_dependency_tracking" = xyes; then
5667 continue
5668 else
5669 break
5670 fi
5671 ;;
5672 msvisualcpp | msvcmsys)
5673 # This compiler won't grok `-c -o', but also, the minuso test has
5674 # not run yet. These depmodes are late enough in the game, and
5675 # so weak that their functioning should not be impacted.
5676 am__obj=conftest.${OBJEXT-o}
5677 am__minus_obj=
5678 ;;
5679 none) break ;;
5680 esac
5681 if depmode=$depmode \
5682 source=sub/conftest.c object=$am__obj \
5683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5684 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5685 >/dev/null 2>conftest.err &&
5686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5688 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5690 # icc doesn't choke on unknown options, it will just issue warnings
5691 # or remarks (even with -Werror). So we grep stderr for any message
5692 # that says an option was ignored or not supported.
5693 # When given -MP, icc 7.0 and 7.1 complain thusly:
5694 # icc: Command line warning: ignoring option '-M'; no argument required
5695 # The diagnosis changed in icc 8.0:
5696 # icc: Command line remark: option '-MP' not supported
5697 if (grep 'ignoring option' conftest.err ||
5698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5699 am_cv_CC_dependencies_compiler_type=$depmode
5700 break
5701 fi
5702 fi
5703 done
5704
5705 cd ..
5706 rm -rf conftest.dir
5707 else
5708 am_cv_CC_dependencies_compiler_type=none
5709 fi
5710
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5713 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5714 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5715
5716 if
5717 test "x$enable_dependency_tracking" != xno \
5718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5719 am__fastdepCC_TRUE=
5720 am__fastdepCC_FALSE='#'
5721 else
5722 am__fastdepCC_TRUE='#'
5723 am__fastdepCC_FALSE=
5724 fi
5725
5726
5727 if test "x$CC" != xcc; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5729 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5732 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5733 fi
5734 set dummy $CC; ac_cc=`$as_echo "$2" |
5735 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5736 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741
5742 int
5743 main ()
5744 {
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 # Make sure it works both with $CC and with simple cc.
5751 # We do the test twice because some compilers refuse to overwrite an
5752 # existing .o file with -o, though they will create one.
5753 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5754 rm -f conftest2.*
5755 if { { case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5760 $as_echo "$ac_try_echo"; } >&5
5761 (eval "$ac_try") 2>&5
5762 ac_status=$?
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; } &&
5765 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5770 $as_echo "$ac_try_echo"; } >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; };
5775 then
5776 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5777 if test "x$CC" != xcc; then
5778 # Test first that cc exists at all.
5779 if { ac_try='cc -c conftest.$ac_ext >&5'
5780 { { case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786 (eval "$ac_try") 2>&5
5787 ac_status=$?
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }; }; then
5790 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5791 rm -f conftest2.*
5792 if { { case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5797 $as_echo "$ac_try_echo"; } >&5
5798 (eval "$ac_try") 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } &&
5802 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5807 $as_echo "$ac_try_echo"; } >&5
5808 (eval "$ac_try") 2>&5
5809 ac_status=$?
5810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811 test $ac_status = 0; };
5812 then
5813 # cc works too.
5814 :
5815 else
5816 # cc exists but doesn't like -o.
5817 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5818 fi
5819 fi
5820 fi
5821 else
5822 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5823 fi
5824 rm -f core conftest*
5825
5826 fi
5827 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5829 $as_echo "yes" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833
5834 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5835
5836 fi
5837
5838 # FIXME: we rely on the cache variable name because
5839 # there is no other way.
5840 set dummy $CC
5841 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5842 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5843 if test "$am_t" != yes; then
5844 # Losing compiler, so override with the script.
5845 # FIXME: It is wrong to rewrite CC.
5846 # But if we don't then we get into trouble of one sort or another.
5847 # A longer-term fix would be to have automake use am__CC in this case,
5848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5849 CC="$am_aux_dir/compile $CC"
5850 fi
5851
5852
5853
5854 if test x$GCC = xyes; then
5855 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5856 else
5857 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5858 fi
5859
5860 # Initialize gnulib right after choosing the compiler.
5861
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5869 # On Suns, sometimes $CPP names a directory.
5870 if test -n "$CPP" && test -d "$CPP"; then
5871 CPP=
5872 fi
5873 if test -z "$CPP"; then
5874 if test "${ac_cv_prog_CPP+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 # Double quotes because CPP needs to be expanded
5878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5879 do
5880 ac_preproc_ok=false
5881 for ac_c_preproc_warn_flag in '' yes
5882 do
5883 # Use a header file that comes with gcc, so configuring glibc
5884 # with a fresh cross-compiler works.
5885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5886 # <limits.h> exists even on freestanding compilers.
5887 # On the NeXT, cc -E runs the code through the compiler's parser,
5888 # not just through cpp. "Syntax error" is here to catch this case.
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #ifdef __STDC__
5892 # include <limits.h>
5893 #else
5894 # include <assert.h>
5895 #endif
5896 Syntax error
5897 _ACEOF
5898 if ac_fn_c_try_cpp "$LINENO"; then :
5899
5900 else
5901 # Broken: fails on valid input.
5902 continue
5903 fi
5904 rm -f conftest.err conftest.$ac_ext
5905
5906 # OK, works on sane cases. Now check whether nonexistent headers
5907 # can be detected and how.
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5911 _ACEOF
5912 if ac_fn_c_try_cpp "$LINENO"; then :
5913 # Broken: success on invalid input.
5914 continue
5915 else
5916 # Passes both tests.
5917 ac_preproc_ok=:
5918 break
5919 fi
5920 rm -f conftest.err conftest.$ac_ext
5921
5922 done
5923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924 rm -f conftest.err conftest.$ac_ext
5925 if $ac_preproc_ok; then :
5926 break
5927 fi
5928
5929 done
5930 ac_cv_prog_CPP=$CPP
5931
5932 fi
5933 CPP=$ac_cv_prog_CPP
5934 else
5935 ac_cv_prog_CPP=$CPP
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5938 $as_echo "$CPP" >&6; }
5939 ac_preproc_ok=false
5940 for ac_c_preproc_warn_flag in '' yes
5941 do
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #ifdef __STDC__
5951 # include <limits.h>
5952 #else
5953 # include <assert.h>
5954 #endif
5955 Syntax error
5956 _ACEOF
5957 if ac_fn_c_try_cpp "$LINENO"; then :
5958
5959 else
5960 # Broken: fails on valid input.
5961 continue
5962 fi
5963 rm -f conftest.err conftest.$ac_ext
5964
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5970 _ACEOF
5971 if ac_fn_c_try_cpp "$LINENO"; then :
5972 # Broken: success on invalid input.
5973 continue
5974 else
5975 # Passes both tests.
5976 ac_preproc_ok=:
5977 break
5978 fi
5979 rm -f conftest.err conftest.$ac_ext
5980
5981 done
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.$ac_ext
5984 if $ac_preproc_ok; then :
5985
5986 else
5987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5989 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5990 See \`config.log' for more details." "$LINENO" 5; }
5991 fi
5992
5993 ac_ext=c
5994 ac_cpp='$CPP $CPPFLAGS'
5995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6002 if test "${ac_cv_path_GREP+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -z "$GREP"; then
6006 ac_path_GREP_found=false
6007 # Loop through the user's path and test for each of PROGNAME-LIST
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6010 do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_prog in grep ggrep; do
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6017 # Check for GNU ac_path_GREP and select it if it is found.
6018 # Check for GNU $ac_path_GREP
6019 case `"$ac_path_GREP" --version 2>&1` in
6020 *GNU*)
6021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6022 *)
6023 ac_count=0
6024 $as_echo_n 0123456789 >"conftest.in"
6025 while :
6026 do
6027 cat "conftest.in" "conftest.in" >"conftest.tmp"
6028 mv "conftest.tmp" "conftest.in"
6029 cp "conftest.in" "conftest.nl"
6030 $as_echo 'GREP' >> "conftest.nl"
6031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6033 as_fn_arith $ac_count + 1 && ac_count=$as_val
6034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6035 # Best one so far, save it but keep looking for a better one
6036 ac_cv_path_GREP="$ac_path_GREP"
6037 ac_path_GREP_max=$ac_count
6038 fi
6039 # 10*(2^10) chars as input seems more than enough
6040 test $ac_count -gt 10 && break
6041 done
6042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6043 esac
6044
6045 $ac_path_GREP_found && break 3
6046 done
6047 done
6048 done
6049 IFS=$as_save_IFS
6050 if test -z "$ac_cv_path_GREP"; then
6051 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6052 fi
6053 else
6054 ac_cv_path_GREP=$GREP
6055 fi
6056
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6059 $as_echo "$ac_cv_path_GREP" >&6; }
6060 GREP="$ac_cv_path_GREP"
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6064 $as_echo_n "checking for egrep... " >&6; }
6065 if test "${ac_cv_path_EGREP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6069 then ac_cv_path_EGREP="$GREP -E"
6070 else
6071 if test -z "$EGREP"; then
6072 ac_path_EGREP_found=false
6073 # Loop through the user's path and test for each of PROGNAME-LIST
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6076 do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_prog in egrep; do
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6083 # Check for GNU ac_path_EGREP and select it if it is found.
6084 # Check for GNU $ac_path_EGREP
6085 case `"$ac_path_EGREP" --version 2>&1` in
6086 *GNU*)
6087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6088 *)
6089 ac_count=0
6090 $as_echo_n 0123456789 >"conftest.in"
6091 while :
6092 do
6093 cat "conftest.in" "conftest.in" >"conftest.tmp"
6094 mv "conftest.tmp" "conftest.in"
6095 cp "conftest.in" "conftest.nl"
6096 $as_echo 'EGREP' >> "conftest.nl"
6097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6099 as_fn_arith $ac_count + 1 && ac_count=$as_val
6100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6101 # Best one so far, save it but keep looking for a better one
6102 ac_cv_path_EGREP="$ac_path_EGREP"
6103 ac_path_EGREP_max=$ac_count
6104 fi
6105 # 10*(2^10) chars as input seems more than enough
6106 test $ac_count -gt 10 && break
6107 done
6108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6109 esac
6110
6111 $ac_path_EGREP_found && break 3
6112 done
6113 done
6114 done
6115 IFS=$as_save_IFS
6116 if test -z "$ac_cv_path_EGREP"; then
6117 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6118 fi
6119 else
6120 ac_cv_path_EGREP=$EGREP
6121 fi
6122
6123 fi
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6126 $as_echo "$ac_cv_path_EGREP" >&6; }
6127 EGREP="$ac_cv_path_EGREP"
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6133 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6134 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140
6141 #ifdef __ACK__
6142 Amsterdam
6143 #endif
6144
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6148 gl_cv_c_amsterdam_compiler=yes
6149 else
6150 gl_cv_c_amsterdam_compiler=no
6151 fi
6152 rm -f conftest*
6153
6154
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6157 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6158 if test -z "$AR"; then
6159 if test $gl_cv_c_amsterdam_compiler = yes; then
6160 AR='cc -c.a'
6161 if test -z "$ARFLAGS"; then
6162 ARFLAGS='-o'
6163 fi
6164 else
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ar; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_AR+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$AR"; then
6174 ac_cv_prog_AR="$AR" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_AR="${ac_tool_prefix}ar"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 AR=$ac_cv_prog_AR
6194 if test -n "$AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6196 $as_echo "$AR" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_AR"; then
6205 ac_ct_AR=$AR
6206 # Extract the first word of "ar", so it can be a program name with args.
6207 set dummy ar; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$ac_ct_AR"; then
6214 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_AR="ar"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6234 if test -n "$ac_ct_AR"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6236 $as_echo "$ac_ct_AR" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242 if test "x$ac_ct_AR" = x; then
6243 AR="ar"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251 AR=$ac_ct_AR
6252 fi
6253 else
6254 AR="$ac_cv_prog_AR"
6255 fi
6256
6257 if test -z "$ARFLAGS"; then
6258 ARFLAGS='cru'
6259 fi
6260 fi
6261 else
6262 if test -z "$ARFLAGS"; then
6263 ARFLAGS='cru'
6264 fi
6265 fi
6266
6267
6268 if test -z "$RANLIB"; then
6269 if test $gl_cv_c_amsterdam_compiler = yes; then
6270 RANLIB=':'
6271 else
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$RANLIB"; then
6281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 RANLIB=$ac_cv_prog_RANLIB
6301 if test -n "$RANLIB"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6303 $as_echo "$RANLIB" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_RANLIB"; then
6312 ac_ct_RANLIB=$RANLIB
6313 # Extract the first word of "ranlib", so it can be a program name with args.
6314 set dummy ranlib; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$ac_ct_RANLIB"; then
6321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_RANLIB="ranlib"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6341 if test -n "$ac_ct_RANLIB"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6343 $as_echo "$ac_ct_RANLIB" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349 if test "x$ac_ct_RANLIB" = x; then
6350 RANLIB=":"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358 RANLIB=$ac_ct_RANLIB
6359 fi
6360 else
6361 RANLIB="$ac_cv_prog_RANLIB"
6362 fi
6363
6364 fi
6365 fi
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6369 $as_echo_n "checking for ANSI C header files... " >&6; }
6370 if test "${ac_cv_header_stdc+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 #include <stdlib.h>
6376 #include <stdarg.h>
6377 #include <string.h>
6378 #include <float.h>
6379
6380 int
6381 main ()
6382 {
6383
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389 ac_cv_header_stdc=yes
6390 else
6391 ac_cv_header_stdc=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394
6395 if test $ac_cv_header_stdc = yes; then
6396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #include <string.h>
6400
6401 _ACEOF
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 $EGREP "memchr" >/dev/null 2>&1; then :
6404
6405 else
6406 ac_cv_header_stdc=no
6407 fi
6408 rm -f conftest*
6409
6410 fi
6411
6412 if test $ac_cv_header_stdc = yes; then
6413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 #include <stdlib.h>
6417
6418 _ACEOF
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420 $EGREP "free" >/dev/null 2>&1; then :
6421
6422 else
6423 ac_cv_header_stdc=no
6424 fi
6425 rm -f conftest*
6426
6427 fi
6428
6429 if test $ac_cv_header_stdc = yes; then
6430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6431 if test "$cross_compiling" = yes; then :
6432 :
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <ctype.h>
6437 #include <stdlib.h>
6438 #if ((' ' & 0x0FF) == 0x020)
6439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 #else
6442 # define ISLOWER(c) \
6443 (('a' <= (c) && (c) <= 'i') \
6444 || ('j' <= (c) && (c) <= 'r') \
6445 || ('s' <= (c) && (c) <= 'z'))
6446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6447 #endif
6448
6449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6450 int
6451 main ()
6452 {
6453 int i;
6454 for (i = 0; i < 256; i++)
6455 if (XOR (islower (i), ISLOWER (i))
6456 || toupper (i) != TOUPPER (i))
6457 return 2;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_run "$LINENO"; then :
6462
6463 else
6464 ac_cv_header_stdc=no
6465 fi
6466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6467 conftest.$ac_objext conftest.beam conftest.$ac_ext
6468 fi
6469
6470 fi
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6473 $as_echo "$ac_cv_header_stdc" >&6; }
6474 if test $ac_cv_header_stdc = yes; then
6475
6476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6477
6478 fi
6479
6480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6482 inttypes.h stdint.h unistd.h
6483 do :
6484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6485 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6486 "
6487 eval as_val=\$$as_ac_Header
6488 if test "x$as_val" = x""yes; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6491 _ACEOF
6492
6493 fi
6494
6495 done
6496
6497
6498
6499
6500
6501 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6502 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6503 MINIX=yes
6504 else
6505 MINIX=
6506 fi
6507
6508
6509 if test "$MINIX" = yes; then
6510
6511 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6512
6513
6514 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6515
6516
6517 $as_echo "#define _MINIX 1" >>confdefs.h
6518
6519 fi
6520
6521 case "$host_os" in
6522 hpux*)
6523
6524 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6525
6526 ;;
6527 esac
6528
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6531 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6532 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537
6538 # define __EXTENSIONS__ 1
6539 $ac_includes_default
6540 int
6541 main ()
6542 {
6543
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 ac_cv_safe_to_define___extensions__=yes
6550 else
6551 ac_cv_safe_to_define___extensions__=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6556 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6557 test $ac_cv_safe_to_define___extensions__ = yes &&
6558 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6559
6560 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6561
6562 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6563
6564 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6565
6566 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6567
6568 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6569
6570
6571
6572
6573
6574
6575
6576
6577 # Check whether --enable-largefile was given.
6578 if test "${enable_largefile+set}" = set; then :
6579 enableval=$enable_largefile;
6580 fi
6581
6582 if test "$enable_largefile" != no; then
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6585 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6586 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 ac_cv_sys_largefile_CC=no
6590 if test "$GCC" != yes; then
6591 ac_save_CC=$CC
6592 while :; do
6593 # IRIX 6.2 and later do not support large files by default,
6594 # so use the C compiler's -n32 option if that helps.
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 /* Check that off_t can represent 2**63 - 1 correctly.
6599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6600 since some C++ compilers masquerading as C compilers
6601 incorrectly reject 9223372036854775807. */
6602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6604 && LARGE_OFF_T % 2147483647 == 1)
6605 ? 1 : -1];
6606 int
6607 main ()
6608 {
6609
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 break
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext
6618 CC="$CC -n32"
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 ac_cv_sys_largefile_CC=' -n32'; break
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext
6623 break
6624 done
6625 CC=$ac_save_CC
6626 rm -f conftest.$ac_ext
6627 fi
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6630 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6631 if test "$ac_cv_sys_largefile_CC" != no; then
6632 CC=$CC$ac_cv_sys_largefile_CC
6633 fi
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6636 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6637 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 while :; do
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 /* Check that off_t can represent 2**63 - 1 correctly.
6645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6646 since some C++ compilers masquerading as C compilers
6647 incorrectly reject 9223372036854775807. */
6648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6650 && LARGE_OFF_T % 2147483647 == 1)
6651 ? 1 : -1];
6652 int
6653 main ()
6654 {
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 ac_cv_sys_file_offset_bits=no; break
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #define _FILE_OFFSET_BITS 64
6667 #include <sys/types.h>
6668 /* Check that off_t can represent 2**63 - 1 correctly.
6669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6670 since some C++ compilers masquerading as C compilers
6671 incorrectly reject 9223372036854775807. */
6672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6674 && LARGE_OFF_T % 2147483647 == 1)
6675 ? 1 : -1];
6676 int
6677 main ()
6678 {
6679
6680 ;
6681 return 0;
6682 }
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_sys_file_offset_bits=64; break
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 ac_cv_sys_file_offset_bits=unknown
6689 break
6690 done
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6693 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6694 case $ac_cv_sys_file_offset_bits in #(
6695 no | unknown) ;;
6696 *)
6697 cat >>confdefs.h <<_ACEOF
6698 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6699 _ACEOF
6700 ;;
6701 esac
6702 rm -rf conftest*
6703 if test $ac_cv_sys_file_offset_bits = unknown; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6705 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6706 if test "${ac_cv_sys_large_files+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 while :; do
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 /* Check that off_t can represent 2**63 - 1 correctly.
6714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6715 since some C++ compilers masquerading as C compilers
6716 incorrectly reject 9223372036854775807. */
6717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6719 && LARGE_OFF_T % 2147483647 == 1)
6720 ? 1 : -1];
6721 int
6722 main ()
6723 {
6724
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 ac_cv_sys_large_files=no; break
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #define _LARGE_FILES 1
6736 #include <sys/types.h>
6737 /* Check that off_t can represent 2**63 - 1 correctly.
6738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6739 since some C++ compilers masquerading as C compilers
6740 incorrectly reject 9223372036854775807. */
6741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6743 && LARGE_OFF_T % 2147483647 == 1)
6744 ? 1 : -1];
6745 int
6746 main ()
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754 ac_cv_sys_large_files=1; break
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 ac_cv_sys_large_files=unknown
6758 break
6759 done
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6762 $as_echo "$ac_cv_sys_large_files" >&6; }
6763 case $ac_cv_sys_large_files in #(
6764 no | unknown) ;;
6765 *)
6766 cat >>confdefs.h <<_ACEOF
6767 #define _LARGE_FILES $ac_cv_sys_large_files
6768 _ACEOF
6769 ;;
6770 esac
6771 rm -rf conftest*
6772 fi
6773
6774
6775 fi
6776
6777 case $ac_cv_prog_cc_stdc in #(
6778 no) :
6779 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6780 *) :
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6782 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6783 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 ac_cv_prog_cc_c99=no
6787 ac_save_CC=$CC
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <stdarg.h>
6791 #include <stdbool.h>
6792 #include <stdlib.h>
6793 #include <wchar.h>
6794 #include <stdio.h>
6795
6796 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6797 #define debug(...) fprintf (stderr, __VA_ARGS__)
6798 #define showlist(...) puts (#__VA_ARGS__)
6799 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6800 static void
6801 test_varargs_macros (void)
6802 {
6803 int x = 1234;
6804 int y = 5678;
6805 debug ("Flag");
6806 debug ("X = %d\n", x);
6807 showlist (The first, second, and third items.);
6808 report (x>y, "x is %d but y is %d", x, y);
6809 }
6810
6811 // Check long long types.
6812 #define BIG64 18446744073709551615ull
6813 #define BIG32 4294967295ul
6814 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6815 #if !BIG_OK
6816 your preprocessor is broken;
6817 #endif
6818 #if BIG_OK
6819 #else
6820 your preprocessor is broken;
6821 #endif
6822 static long long int bignum = -9223372036854775807LL;
6823 static unsigned long long int ubignum = BIG64;
6824
6825 struct incomplete_array
6826 {
6827 int datasize;
6828 double data[];
6829 };
6830
6831 struct named_init {
6832 int number;
6833 const wchar_t *name;
6834 double average;
6835 };
6836
6837 typedef const char *ccp;
6838
6839 static inline int
6840 test_restrict (ccp restrict text)
6841 {
6842 // See if C++-style comments work.
6843 // Iterate through items via the restricted pointer.
6844 // Also check for declarations in for loops.
6845 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6846 continue;
6847 return 0;
6848 }
6849
6850 // Check varargs and va_copy.
6851 static void
6852 test_varargs (const char *format, ...)
6853 {
6854 va_list args;
6855 va_start (args, format);
6856 va_list args_copy;
6857 va_copy (args_copy, args);
6858
6859 const char *str;
6860 int number;
6861 float fnumber;
6862
6863 while (*format)
6864 {
6865 switch (*format++)
6866 {
6867 case 's': // string
6868 str = va_arg (args_copy, const char *);
6869 break;
6870 case 'd': // int
6871 number = va_arg (args_copy, int);
6872 break;
6873 case 'f': // float
6874 fnumber = va_arg (args_copy, double);
6875 break;
6876 default:
6877 break;
6878 }
6879 }
6880 va_end (args_copy);
6881 va_end (args);
6882 }
6883
6884 int
6885 main ()
6886 {
6887
6888 // Check bool.
6889 _Bool success = false;
6890
6891 // Check restrict.
6892 if (test_restrict ("String literal") == 0)
6893 success = true;
6894 char *restrict newvar = "Another string";
6895
6896 // Check varargs.
6897 test_varargs ("s, d' f .", "string", 65, 34.234);
6898 test_varargs_macros ();
6899
6900 // Check flexible array members.
6901 struct incomplete_array *ia =
6902 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6903 ia->datasize = 10;
6904 for (int i = 0; i < ia->datasize; ++i)
6905 ia->data[i] = i * 1.234;
6906
6907 // Check named initializers.
6908 struct named_init ni = {
6909 .number = 34,
6910 .name = L"Test wide string",
6911 .average = 543.34343,
6912 };
6913
6914 ni.number = 58;
6915
6916 int dynamic_array[ni.number];
6917 dynamic_array[ni.number - 1] = 543;
6918
6919 // work around unused variable warnings
6920 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6921 || dynamic_array[ni.number - 1] != 543);
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6928 do
6929 CC="$ac_save_CC $ac_arg"
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 ac_cv_prog_cc_c99=$ac_arg
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext
6934 test "x$ac_cv_prog_cc_c99" != "xno" && break
6935 done
6936 rm -f conftest.$ac_ext
6937 CC=$ac_save_CC
6938
6939 fi
6940 # AC_CACHE_VAL
6941 case "x$ac_cv_prog_cc_c99" in
6942 x)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944 $as_echo "none needed" >&6; } ;;
6945 xno)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6947 $as_echo "unsupported" >&6; } ;;
6948 *)
6949 CC="$CC $ac_cv_prog_cc_c99"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6951 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6952 esac
6953 if test "x$ac_cv_prog_cc_c99" != xno; then :
6954 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6958 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 ac_cv_prog_cc_c89=no
6962 ac_save_CC=$CC
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #include <stdarg.h>
6966 #include <stdio.h>
6967 #include <sys/types.h>
6968 #include <sys/stat.h>
6969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6970 struct buf { int x; };
6971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6972 static char *e (p, i)
6973 char **p;
6974 int i;
6975 {
6976 return p[i];
6977 }
6978 static char *f (char * (*g) (char **, int), char **p, ...)
6979 {
6980 char *s;
6981 va_list v;
6982 va_start (v,p);
6983 s = g (p, va_arg (v,int));
6984 va_end (v);
6985 return s;
6986 }
6987
6988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6989 function prototypes and stuff, but not '\xHH' hex character constants.
6990 These don't provoke an error unfortunately, instead are silently treated
6991 as 'x'. The following induces an error, until -std is added to get
6992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6993 array size at least. It's necessary to write '\x00'==0 to get something
6994 that's true only with -std. */
6995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6996
6997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6998 inside strings and character constants. */
6999 #define FOO(x) 'x'
7000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7001
7002 int test (int i, double x);
7003 struct s1 {int (*f) (int a);};
7004 struct s2 {int (*f) (double a);};
7005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7006 int argc;
7007 char **argv;
7008 int
7009 main ()
7010 {
7011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7018 do
7019 CC="$ac_save_CC $ac_arg"
7020 if ac_fn_c_try_compile "$LINENO"; then :
7021 ac_cv_prog_cc_c89=$ac_arg
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext
7024 test "x$ac_cv_prog_cc_c89" != "xno" && break
7025 done
7026 rm -f conftest.$ac_ext
7027 CC=$ac_save_CC
7028
7029 fi
7030 # AC_CACHE_VAL
7031 case "x$ac_cv_prog_cc_c89" in
7032 x)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7034 $as_echo "none needed" >&6; } ;;
7035 xno)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7037 $as_echo "unsupported" >&6; } ;;
7038 *)
7039 CC="$CC $ac_cv_prog_cc_c89"
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7042 esac
7043 if test "x$ac_cv_prog_cc_c89" != xno; then :
7044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7045 else
7046 ac_cv_prog_cc_stdc=no
7047 fi
7048
7049 fi
7050 ;;
7051 esac
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7053 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7054 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 fi
7057
7058 case $ac_cv_prog_cc_stdc in #(
7059 no) :
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7061 $as_echo "unsupported" >&6; } ;; #(
7062 '') :
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7064 $as_echo "none needed" >&6; } ;; #(
7065 *) :
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7067 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7068 esac
7069
7070
7071
7072 # Code from module alloca-opt:
7073 # Code from module allocator:
7074 # Code from module careadlinkat:
7075 # Code from module crypto/md5:
7076 # Code from module crypto/sha1:
7077 # Code from module crypto/sha256:
7078 # Code from module crypto/sha512:
7079 # Code from module dosname:
7080 # Code from module dtoastr:
7081 # Code from module dup2:
7082 # Code from module extensions:
7083
7084 # Code from module filemode:
7085 # Code from module getloadavg:
7086 # Code from module getopt-gnu:
7087 # Code from module getopt-posix:
7088 # Code from module gettext-h:
7089 # Code from module ignore-value:
7090 # Code from module include_next:
7091 # Code from module intprops:
7092 # Code from module inttypes-incomplete:
7093 # Code from module largefile:
7094
7095 # Code from module lstat:
7096 # Code from module manywarnings:
7097 # Code from module mktime:
7098 # Code from module multiarch:
7099 <<<<<<< TREE
7100 =======
7101 # Code from module nocrash:
7102 # Code from module pathmax:
7103 # Code from module pthread_sigmask:
7104 >>>>>>> MERGE-SOURCE
7105 # Code from module readlink:
7106 <<<<<<< TREE
7107 =======
7108 # Code from module signal:
7109 # Code from module sigprocmask:
7110 # Code from module snippet/_Noreturn:
7111 # Code from module snippet/arg-nonnull:
7112 # Code from module snippet/c++defs:
7113 # Code from module snippet/warn-on-use:
7114 >>>>>>> MERGE-SOURCE
7115 # Code from module socklen:
7116 # Code from module ssize_t:
7117 # Code from module stat:
7118 # Code from module stdalign:
7119 # Code from module stdarg:
7120
7121
7122
7123 # Code from module stdbool:
7124 # Code from module stddef:
7125 # Code from module stdint:
7126 # Code from module stdio:
7127 # Code from module stdlib:
7128 # Code from module strftime:
7129 # Code from module strtoull:
7130 # Code from module strtoumax:
7131 # Code from module symlink:
7132 # Code from module sys_stat:
7133 # Code from module sys_types:
7134 # Code from module time:
7135 # Code from module time_r:
7136 # Code from module u64:
7137 # Code from module unistd:
7138 # Code from module verify:
7139 # Code from module warnings:
7140
7141
7142 # Check whether --enable-gcc-warnings was given.
7143 if test "${enable_gcc_warnings+set}" = set; then :
7144 enableval=$enable_gcc_warnings; case $enableval in
7145 yes|no) ;;
7146 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7147 esac
7148 gl_gcc_warnings=$enableval
7149 else
7150 gl_gcc_warnings=no
7151
7152 fi
7153
7154
7155 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7156 # ------------------------------------------------
7157 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7158 # Otherwise, run RUN-IF-NOT-FOUND.
7159
7160
7161 # When compiling with GCC, prefer -isystem to -I when including system
7162 # include files, to avoid generating useless diagnostics for the files.
7163 if test "$gl_gcc_warnings" != yes; then
7164 isystem='-I'
7165 else
7166 isystem='-isystem '
7167
7168 # This, $nw, is the list of warnings we disable.
7169 nw=
7170
7171 case $with_x_toolkit in
7172 lucid | athena | motif)
7173 # Old toolkits mishandle 'const'.
7174 nw="$nw -Wwrite-strings"
7175 ;;
7176 *)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7178 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7179 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182
7183 gl_save_compiler_FLAGS="$CFLAGS"
7184 as_fn_append CFLAGS " -Werror"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187
7188 int
7189 main ()
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 gl_cv_warn_c__Werror=yes
7198 else
7199 gl_cv_warn_c__Werror=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 CFLAGS="$gl_save_compiler_FLAGS"
7203
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7206 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7207 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7208 as_fn_append WERROR_CFLAGS " -Werror"
7209 fi
7210
7211
7212 ;;
7213 esac
7214
7215
7216 nw="$nw -Waggregate-return" # anachronistic
7217 nw="$nw -Wlong-long" # C90 is anachronistic
7218 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7219 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7220 nw="$nw -Wtraditional" # Warns on #elif which we use often
7221 nw="$nw -Wcast-qual" # Too many warnings for now
7222 nw="$nw -Wconversion" # Too many warnings for now
7223 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7224 nw="$nw -Wsign-conversion" # Too many warnings for now
7225 nw="$nw -Woverlength-strings" # Not a problem these days
7226 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7227 nw="$nw -Wpadded" # Our structs are not padded
7228 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7229 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7230 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7231 nw="$nw -Wvla" # warnings in gettext.h
7232 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7233 nw="$nw -Wswitch-enum" # Too many warnings for now
7234 nw="$nw -Wswitch-default" # Too many warnings for now
7235 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7236 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7237
7238 # Emacs doesn't care about shadowing; see
7239 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7240 nw="$nw -Wshadow"
7241
7242 # The following lines should be removable at some point.
7243 nw="$nw -Wstack-protector"
7244 nw="$nw -Wstrict-overflow"
7245 nw="$nw -Wsuggest-attribute=const"
7246 nw="$nw -Wsuggest-attribute=pure"
7247
7248
7249
7250 if test -n "$GCC"; then
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7253 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7254 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257
7258 gl_save_CFLAGS="$CFLAGS"
7259 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262
7263 int
7264 main ()
7265 {
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_compile "$LINENO"; then :
7272 gl_cv_cc_nomfi_supported=yes
7273 else
7274 gl_cv_cc_nomfi_supported=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 CFLAGS="$gl_save_CFLAGS"
7278 fi
7279
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7281 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7282
7283 if test "$gl_cv_cc_nomfi_supported" = yes; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7285 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7286 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289
7290 gl_save_CFLAGS="$CFLAGS"
7291 CFLAGS="$CFLAGS -W -Werror"
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 void f (void)
7295 {
7296 typedef struct { int a; int b; } s_t;
7297 s_t s1 = { 0, };
7298 }
7299
7300 int
7301 main ()
7302 {
7303
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 gl_cv_cc_nomfi_needed=no
7310 else
7311 gl_cv_cc_nomfi_needed=yes
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 CFLAGS="$gl_save_CFLAGS"
7315
7316 fi
7317
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7319 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7320 fi
7321 fi
7322
7323 gl_manywarn_set=
7324 for gl_manywarn_item in \
7325 -Wall \
7326 -W \
7327 -Wformat-y2k \
7328 -Wformat-nonliteral \
7329 -Wformat-security \
7330 -Winit-self \
7331 -Wmissing-include-dirs \
7332 -Wswitch-default \
7333 -Wswitch-enum \
7334 -Wunused \
7335 -Wunknown-pragmas \
7336 -Wstrict-aliasing \
7337 -Wstrict-overflow \
7338 -Wsystem-headers \
7339 -Wfloat-equal \
7340 -Wtraditional \
7341 -Wtraditional-conversion \
7342 -Wdeclaration-after-statement \
7343 -Wundef \
7344 -Wshadow \
7345 -Wunsafe-loop-optimizations \
7346 -Wpointer-arith \
7347 -Wbad-function-cast \
7348 -Wc++-compat \
7349 -Wcast-qual \
7350 -Wcast-align \
7351 -Wwrite-strings \
7352 -Wconversion \
7353 -Wsign-conversion \
7354 -Wlogical-op \
7355 -Waggregate-return \
7356 -Wstrict-prototypes \
7357 -Wold-style-definition \
7358 -Wmissing-prototypes \
7359 -Wmissing-declarations \
7360 -Wmissing-noreturn \
7361 -Wmissing-format-attribute \
7362 -Wpacked \
7363 -Wpadded \
7364 -Wredundant-decls \
7365 -Wnested-externs \
7366 -Wunreachable-code \
7367 -Winline \
7368 -Winvalid-pch \
7369 -Wlong-long \
7370 -Wvla \
7371 -Wvolatile-register-var \
7372 -Wdisabled-optimization \
7373 -Wstack-protector \
7374 -Woverlength-strings \
7375 -Wbuiltin-macro-redefined \
7376 -Wmudflap \
7377 -Wpacked-bitfield-compat \
7378 -Wsync-nand \
7379 ; do
7380 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7381 done
7382 # The following are not documented in the manual but are included in
7383 # output from gcc --help=warnings.
7384 for gl_manywarn_item in \
7385 -Wattributes \
7386 -Wcoverage-mismatch \
7387 -Wunused-macros \
7388 ; do
7389 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7390 done
7391 # More warnings from gcc 4.6.2 --help=warnings.
7392 for gl_manywarn_item in \
7393 -Wabi \
7394 -Wcpp \
7395 -Wdeprecated \
7396 -Wdeprecated-declarations \
7397 -Wdiv-by-zero \
7398 -Wdouble-promotion \
7399 -Wendif-labels \
7400 -Wextra \
7401 -Wformat-contains-nul \
7402 -Wformat-extra-args \
7403 -Wformat-zero-length \
7404 -Wformat=2 \
7405 -Wmultichar \
7406 -Wnormalized=nfc \
7407 -Woverflow \
7408 -Wpointer-to-int-cast \
7409 -Wpragmas \
7410 -Wsuggest-attribute=const \
7411 -Wsuggest-attribute=noreturn \
7412 -Wsuggest-attribute=pure \
7413 -Wtrampolines \
7414 ; do
7415 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7416 done
7417
7418 # Disable the missing-field-initializers warning if needed
7419 if test "$gl_cv_cc_nomfi_needed" = yes; then
7420 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7421 fi
7422
7423 ws=$gl_manywarn_set
7424
7425
7426 gl_warn_set=
7427 set x $ws; shift
7428 for gl_warn_item
7429 do
7430 case " $nw " in
7431 *" $gl_warn_item "*)
7432 ;;
7433 *)
7434 gl_warn_set="$gl_warn_set $gl_warn_item"
7435 ;;
7436 esac
7437 done
7438 ws=$gl_warn_set
7439
7440 for w in $ws; do
7441 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7443 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7444 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 as_fn_append CFLAGS " $w"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453 int
7454 main ()
7455 {
7456
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 eval "$as_gl_Warn=yes"
7463 else
7464 eval "$as_gl_Warn=no"
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7468
7469 fi
7470 eval ac_res=\$$as_gl_Warn
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7472 $as_echo "$ac_res" >&6; }
7473 eval as_val=\$$as_gl_Warn
7474 if test "x$as_val" = x""yes; then :
7475 as_fn_append WARN_CFLAGS " $w"
7476 fi
7477
7478
7479 done
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7481 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7482 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485
7486 gl_save_compiler_FLAGS="$CFLAGS"
7487 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490
7491 int
7492 main ()
7493 {
7494
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 gl_cv_warn_c__Wno_missing_field_initializers=yes
7501 else
7502 gl_cv_warn_c__Wno_missing_field_initializers=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 CFLAGS="$gl_save_compiler_FLAGS"
7506
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7509 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7510 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7511 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7512 fi
7513
7514 # We need this one
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7516 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7517 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520
7521 gl_save_compiler_FLAGS="$CFLAGS"
7522 as_fn_append CFLAGS " -Wno-sign-compare"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525
7526 int
7527 main ()
7528 {
7529
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_warn_c__Wno_sign_compare=yes
7536 else
7537 gl_cv_warn_c__Wno_sign_compare=no
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 CFLAGS="$gl_save_compiler_FLAGS"
7541
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7544 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7545 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7546 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7547 fi
7548
7549 # Too many warnings for now
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7551 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7552 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555
7556 gl_save_compiler_FLAGS="$CFLAGS"
7557 as_fn_append CFLAGS " -Wno-type-limits"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560
7561 int
7562 main ()
7563 {
7564
7565 ;
7566 return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 gl_cv_warn_c__Wno_type_limits=yes
7571 else
7572 gl_cv_warn_c__Wno_type_limits=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 CFLAGS="$gl_save_compiler_FLAGS"
7576
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7579 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7580 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7581 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7582 fi
7583
7584 # Too many warnings for now
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7586 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7587 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590
7591 gl_save_compiler_FLAGS="$CFLAGS"
7592 as_fn_append CFLAGS " -Wno-switch"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595
7596 int
7597 main ()
7598 {
7599
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 gl_cv_warn_c__Wno_switch=yes
7606 else
7607 gl_cv_warn_c__Wno_switch=no
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 CFLAGS="$gl_save_compiler_FLAGS"
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7614 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7615 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7616 as_fn_append WARN_CFLAGS " -Wno-switch"
7617 fi
7618
7619 # Too many warnings for now
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " -Wno-unused-parameter"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 int
7632 main ()
7633 {
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gl_cv_warn_c__Wno_unused_parameter=yes
7641 else
7642 gl_cv_warn_c__Wno_unused_parameter=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 CFLAGS="$gl_save_compiler_FLAGS"
7646
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7651 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7652 fi
7653
7654 # Too many warnings for now
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7656 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7657 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660
7661 gl_save_compiler_FLAGS="$CFLAGS"
7662 as_fn_append CFLAGS " -Wno-format-nonliteral"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665
7666 int
7667 main ()
7668 {
7669
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 gl_cv_warn_c__Wno_format_nonliteral=yes
7676 else
7677 gl_cv_warn_c__Wno_format_nonliteral=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 CFLAGS="$gl_save_compiler_FLAGS"
7681
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7684 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7685 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7686 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7687 fi
7688
7689
7690
7691 # In spite of excluding -Wlogical-op above, it is enabled, as of
7692 # gcc 4.5.0 20090517.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698
7699 gl_save_compiler_FLAGS="$CFLAGS"
7700 as_fn_append CFLAGS " -Wno-logical-op"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703
7704 int
7705 main ()
7706 {
7707
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 gl_cv_warn_c__Wno_logical_op=yes
7714 else
7715 gl_cv_warn_c__Wno_logical_op=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 CFLAGS="$gl_save_compiler_FLAGS"
7719
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7724 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7725 fi
7726
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7730 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7731 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734
7735 gl_save_compiler_FLAGS="$CFLAGS"
7736 as_fn_append CFLAGS " -fdiagnostics-show-option"
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739
7740 int
7741 main ()
7742 {
7743
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 gl_cv_warn_c__fdiagnostics_show_option=yes
7750 else
7751 gl_cv_warn_c__fdiagnostics_show_option=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 CFLAGS="$gl_save_compiler_FLAGS"
7755
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7758 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7759 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7760 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7761 fi
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7765 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7766 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769
7770 gl_save_compiler_FLAGS="$CFLAGS"
7771 as_fn_append CFLAGS " -funit-at-a-time"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774
7775 int
7776 main ()
7777 {
7778
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 gl_cv_warn_c__funit_at_a_time=yes
7785 else
7786 gl_cv_warn_c__funit_at_a_time=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 CFLAGS="$gl_save_compiler_FLAGS"
7790
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7793 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7794 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7795 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7796 fi
7797
7798
7799
7800
7801 $as_echo "#define lint 1" >>confdefs.h
7802
7803
7804 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7805
7806
7807 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7808
7809
7810 # We use a slightly smaller set of warning options for lib/.
7811 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7812 nw=
7813 nw="$nw -Wunused-macros"
7814
7815
7816 gl_warn_set=
7817 set x $WARN_CFLAGS; shift
7818 for gl_warn_item
7819 do
7820 case " $nw " in
7821 *" $gl_warn_item "*)
7822 ;;
7823 *)
7824 gl_warn_set="$gl_warn_set $gl_warn_item"
7825 ;;
7826 esac
7827 done
7828 GNULIB_WARN_CFLAGS=$gl_warn_set
7829
7830
7831 fi
7832
7833
7834
7835
7836 # Extract the first word of "install-info", so it can be a program name with args.
7837 set dummy install-info; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 case $INSTALL_INFO in
7844 [\\/]* | ?:[\\/]*)
7845 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7850 do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7864 ;;
7865 esac
7866 fi
7867 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7868 if test -n "$INSTALL_INFO"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7870 $as_echo "$INSTALL_INFO" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 # Extract the first word of "gzip", so it can be a program name with args.
7878 set dummy gzip; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 case $GZIP_PROG in
7885 [\\/]* | ?:[\\/]*)
7886 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7887 ;;
7888 *)
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 ;;
7905 esac
7906 fi
7907 GZIP_PROG=$ac_cv_path_GZIP_PROG
7908 if test -n "$GZIP_PROG"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7910 $as_echo "$GZIP_PROG" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917
7918
7919 ## Need makeinfo >= 4.7 (?) to build the manuals.
7920 # Extract the first word of "makeinfo", so it can be a program name with args.
7921 set dummy makeinfo; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 case $MAKEINFO in
7928 [\\/]* | ?:[\\/]*)
7929 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7930 ;;
7931 *)
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7948 ;;
7949 esac
7950 fi
7951 MAKEINFO=$ac_cv_path_MAKEINFO
7952 if test -n "$MAKEINFO"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7954 $as_echo "$MAKEINFO" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961 if test "$MAKEINFO" != "no" && \
7962 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
7963 MAKEINFO=no
7964 fi
7965
7966 ## Makeinfo is unusual. For a released Emacs, the manuals are
7967 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7968 ## therefore in the category of "special tools" not normally required, which
7969 ## configure does not have to check for (eg autoconf itself).
7970 ## In a Bazaar checkout on the other hand, the manuals are not included.
7971 ## So makeinfo is a requirement to build from Bazaar, and configure
7972 ## should test for it as it does for any other build requirement.
7973 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7974 ## with pre-built manuals, from a Bazaar checkout.
7975 HAVE_MAKEINFO=yes
7976
7977 if test "$MAKEINFO" = "no"; then
7978 MAKEINFO=makeinfo
7979 if test "x${with_makeinfo}" = "xno"; then
7980 HAVE_MAKEINFO=no
7981 elif test ! -e $srcdir/info/emacs; then
7982 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7983 source tree does not seem to have pre-built manuals in the \`info' directory.
7984 Either install a suitable version of makeinfo, or re-run configure
7985 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7986 fi
7987 fi
7988
7989
7990 INFO_EXT=.info
7991 INFO_OPTS=--no-split
7992
7993
7994
7995
7996 if test x$GCC = xyes; then
7997 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7998 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7999 else
8000 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8001 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8002 fi
8003
8004
8005 late_LDFLAGS=$LDFLAGS
8006 if test x$GCC = xyes; then
8007 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8008 else
8009 LDFLAGS="$LDFLAGS -znocombreloc"
8010 fi
8011
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8013 $as_echo_n "checking for -znocombreloc... " >&6; }
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016
8017 int
8018 main ()
8019 {
8020
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 if ac_fn_c_try_link "$LINENO"; then :
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8027 $as_echo "yes" >&6; }
8028 else
8029 LDFLAGS=$late_LDFLAGS
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035
8036
8037 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8038 case "$opsys" in
8039 your-opsys-here) CANNOT_DUMP=yes ;;
8040 esac
8041
8042 test "$CANNOT_DUMP" = "yes" && \
8043
8044 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8045
8046
8047
8048
8049
8050 UNEXEC_OBJ=unexelf.o
8051 case "$opsys" in
8052 # MSDOS uses unexcoff.o
8053 # MSWindows uses unexw32.o
8054 aix4-2)
8055 UNEXEC_OBJ=unexaix.o
8056 ;;
8057 cygwin)
8058 UNEXEC_OBJ=unexcw.o
8059 ;;
8060 darwin)
8061 UNEXEC_OBJ=unexmacosx.o
8062 ;;
8063 hpux10-20 | hpux11)
8064 UNEXEC_OBJ=unexhp9k800.o
8065 ;;
8066 sol2-10)
8067 # Use the Solaris dldump() function, called from unexsol.c, to dump
8068 # emacs, instead of the generic ELF dump code found in unexelf.c.
8069 # The resulting binary has a complete symbol table, and is better
8070 # for debugging and other observability tools (debuggers, pstack, etc).
8071 #
8072 # If you encounter a problem using dldump(), please consider sending
8073 # a message to the OpenSolaris tools-linking mailing list:
8074 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8075 #
8076 # It is likely that dldump() works with older Solaris too, but this has
8077 # not been tested, so for now this change is for Solaris 10 or newer.
8078 UNEXEC_OBJ=unexsol.o
8079 ;;
8080 esac
8081
8082 LD_SWITCH_SYSTEM=
8083 case "$opsys" in
8084 freebsd)
8085 ## Let `ld' find image libs and similar things in /usr/local/lib.
8086 ## The system compiler, GCC, has apparently been modified to not
8087 ## look there, contrary to what a stock GCC would do.
8088 ### It's not our place to do this. See bug#10313#17.
8089 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8090 :
8091 ;;
8092
8093 gnu-linux)
8094 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8095 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8096 ;;
8097
8098 netbsd)
8099 ### It's not our place to do this. See bug#10313#17.
8100 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8101 :
8102 ;;
8103
8104 openbsd)
8105 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8106 ## otherwise Emacs dumps core on elf systems.
8107 LD_SWITCH_SYSTEM="-Z"
8108 ;;
8109 esac
8110
8111
8112 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8113
8114 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8115 ## which has not been defined yet. When this was handled with cpp,
8116 ## it was expanded to null when configure sourced the s/*.h file.
8117 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8118 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8119 ## (or somesuch), but because it is supposed to go at the _front_
8120 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8121 ## Compare with the gnu-linux case below, which added to the end
8122 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8123 ## LD_SWITCH_SYSTEM_TEMACS.
8124 case "$opsys" in
8125 netbsd|openbsd)
8126 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8127 esac
8128
8129
8130 C_SWITCH_MACHINE=
8131 case $canonical in
8132 alpha*)
8133 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8134 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8135
8136 fi
8137
8138 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8139 ## With ELF, make sure that all common symbols get allocated to in the
8140 ## data section. Otherwise, the dump of temacs may miss variables in
8141 ## the shared library that have been initialized. For example, with
8142 ## GNU libc, __malloc_initialized would normally be resolved to the
8143 ## shared library's .bss section, which is fatal.
8144 if test "x$GCC" = "xyes"; then
8145 C_SWITCH_MACHINE="-fno-common"
8146 else
8147 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8148 fi
8149 else
8150 UNEXEC_OBJ=unexalpha.o
8151 fi
8152 ;;
8153 esac
8154
8155
8156
8157
8158 C_SWITCH_SYSTEM=
8159 ## Some programs in src produce warnings saying certain subprograms
8160 ## are too complex and need a MAXMEM value greater than 2000 for
8161 ## additional optimization. --nils@exp-math.uni-essen.de
8162 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8163 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8164 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8165 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8166
8167
8168
8169 LIBS_SYSTEM=
8170 case "$opsys" in
8171 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8172 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8173
8174 freebsd) LIBS_SYSTEM="-lutil" ;;
8175
8176 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8177
8178 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8179
8180 ## Motif needs -lgen.
8181 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8182 esac
8183
8184
8185
8186 ### Make sure subsequent tests use flags consistent with the build flags.
8187
8188 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8189 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8190 else
8191 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8192 fi
8193
8194 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8195
8196
8197
8198 ## If user specified a crt-dir, use that unconditionally.
8199 if test "X$CRT_DIR" = "X"; then
8200
8201 case "$canonical" in
8202 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8203 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8204 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8205 ## For anything else (eg /usr/lib32), it is up the user to specify
8206 ## the location (bug#5655).
8207 ## Test for crtn.o, not just the directory, because sometimes the
8208 ## directory exists but does not have the relevant files (bug#1287).
8209 ## FIXME better to test for binary compatibility somehow.
8210 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8211 ;;
8212
8213 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8214 esac
8215
8216 case "$opsys" in
8217 hpux10-20) CRT_DIR=/lib ;;
8218 esac
8219
8220 ## Default is /usr/lib.
8221 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8222
8223 ## If we're using gcc, try to determine it automatically by asking
8224 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8225 ## system-dependent default from above.]
8226 if test "x${GCC}" = xyes; then
8227 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8228 case "$crt_file" in
8229 */*)
8230 CRT_DIR=`$as_dirname -- "$crt_file" ||
8231 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8232 X"$crt_file" : 'X\(//\)[^/]' \| \
8233 X"$crt_file" : 'X\(//\)$' \| \
8234 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8235 $as_echo X"$crt_file" |
8236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8237 s//\1/
8238 q
8239 }
8240 /^X\(\/\/\)[^/].*/{
8241 s//\1/
8242 q
8243 }
8244 /^X\(\/\/\)$/{
8245 s//\1/
8246 q
8247 }
8248 /^X\(\/\).*/{
8249 s//\1/
8250 q
8251 }
8252 s/.*/./; q'`
8253 ;;
8254 esac
8255 fi
8256
8257 else
8258
8259 ## Some platforms don't use any of these files, so it is not
8260 ## appropriate to put this test outside the if block.
8261 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8262 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8263
8264 fi
8265
8266
8267
8268 LIB_MATH=-lm
8269 LIB_STANDARD=
8270 START_FILES=
8271
8272 case $opsys in
8273 cygwin )
8274 LIB_MATH=
8275 START_FILES='pre-crt0.o'
8276 ;;
8277 darwin )
8278 ## Adding -lm confuses the dynamic linker, so omit it.
8279 LIB_MATH=
8280 START_FILES='pre-crt0.o'
8281 ;;
8282 freebsd )
8283 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8284 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8285 ;;
8286 gnu-linux | gnu-kfreebsd )
8287 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8288 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8289 ;;
8290 hpux10-20 | hpux11 )
8291 LIB_STANDARD=-lc
8292 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8293 ;;
8294 netbsd | openbsd )
8295 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8296 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8297 ;;
8298 esac
8299
8300
8301
8302
8303 <<<<<<< TREE
8304 =======
8305 crt_files=
8306
8307 for file in x $LIB_STANDARD $START_FILES; do
8308 case "$file" in
8309 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8310 esac
8311 done
8312
8313 if test "x$crt_files" != x; then
8314
8315 ## If user specified a crt-dir, use that unconditionally.
8316 crt_gcc=no
8317
8318 if test "X$CRT_DIR" = "X"; then
8319
8320 CRT_DIR=/usr/lib # default
8321
8322 case "$canonical" in
8323 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8324 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8325 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8326 ## For anything else (eg /usr/lib32), it is up the user to specify
8327 ## the location (bug#5655).
8328 ## Test for crtn.o, not just the directory, because sometimes the
8329 ## directory exists but does not have the relevant files (bug#1287).
8330 ## FIXME better to test for binary compatibility somehow.
8331 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8332 ;;
8333
8334 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8335 esac
8336
8337 case "$opsys" in
8338 hpux10-20) CRT_DIR=/lib ;;
8339 esac
8340
8341 test "x${GCC}" = xyes && crt_gcc=yes
8342
8343 fi # CRT_DIR = ""
8344
8345 crt_missing=
8346
8347 for file in $crt_files; do
8348
8349 ## If we're using gcc, try to determine it automatically by asking
8350 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8351 ## system-dependent default from above.]
8352 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8353
8354 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8355 case "$crt_file" in
8356 */*)
8357 CRT_DIR=`$as_dirname -- "$crt_file" ||
8358 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8359 X"$crt_file" : 'X\(//\)[^/]' \| \
8360 X"$crt_file" : 'X\(//\)$' \| \
8361 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8362 $as_echo X"$crt_file" |
8363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8364 s//\1/
8365 q
8366 }
8367 /^X\(\/\/\)[^/].*/{
8368 s//\1/
8369 q
8370 }
8371 /^X\(\/\/\)$/{
8372 s//\1/
8373 q
8374 }
8375 /^X\(\/\).*/{
8376 s//\1/
8377 q
8378 }
8379 s/.*/./; q'`
8380 ;;
8381 esac
8382 fi
8383
8384 crt_gcc=no
8385
8386 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8387 done # $crt_files
8388
8389 test "x$crt_missing" = x || \
8390 as_fn_error "Required file(s) not found:$crt_missing
8391 Try using the --with-crt-dir option." "$LINENO" 5
8392
8393 fi # crt_files != ""
8394
8395
8396
8397 case $opsys in
8398 netbsd | openbsd )
8399 if test -f $CRT_DIR/crti.o; then
8400
8401 test -f $CRT_DIR/crtn.o || \
8402 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8403
8404 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8405 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8406 fi
8407 ;;
8408 esac
8409
8410
8411 <<<<<<< TREE
8412 >>>>>>> MERGE-SOURCE
8413 =======
8414 # Extract the first word of "pkg-config", so it can be a program name with args.
8415 set dummy pkg-config; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 case $PKG_CONFIG in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8442 ;;
8443 esac
8444 fi
8445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8446 if test -n "$PKG_CONFIG"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8448 $as_echo "$PKG_CONFIG" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453
8454
8455
8456 >>>>>>> MERGE-SOURCE
8457
8458
8459
8460 if test "${with_sound}" != "no"; then
8461 # Sound support for GNU/Linux and the free BSDs.
8462 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8463 do :
8464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8466 eval as_val=\$$as_ac_Header
8467 if test "x$as_val" = x""yes; then :
8468 cat >>confdefs.h <<_ACEOF
8469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8470 _ACEOF
8471 have_sound_header=yes
8472 fi
8473
8474 done
8475
8476 # Emulation library used on NetBSD.
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8478 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8479 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lossaudio $LIBS"
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char _oss_ioctl ();
8494 int
8495 main ()
8496 {
8497 return _oss_ioctl ();
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 ac_cv_lib_ossaudio__oss_ioctl=yes
8504 else
8505 ac_cv_lib_ossaudio__oss_ioctl=no
8506 fi
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8512 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8513 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8514 LIBSOUND=-lossaudio
8515 else
8516 LIBSOUND=
8517 fi
8518
8519
8520
8521 ALSA_REQUIRED=1.0.0
8522 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8523
8524 succeeded=no
8525
8526 if test "$PKG_CONFIG" = "no" ; then
8527 HAVE_ALSA=no
8528 else
8529 PKG_CONFIG_MIN_VERSION=0.9.0
8530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8532 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8533
8534 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8535 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8536 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8537 edit_cflags="
8538 s,///*,/,g
8539 s/^/ /
8540 s/ -I/ $isystem/g
8541 s/^ //
8542 "
8543 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8544 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8546 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8547 succeeded=yes
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 ALSA_CFLAGS=""
8552 ALSA_LIBS=""
8553 ## If we have a custom action on failure, don't print errors, but
8554 ## do set a variable so people can do so.
8555 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8556
8557 fi
8558
8559
8560
8561 else
8562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8564 fi
8565 fi
8566
8567 if test $succeeded = yes; then
8568 HAVE_ALSA=yes
8569 else
8570 HAVE_ALSA=no
8571 fi
8572
8573 if test $HAVE_ALSA = yes; then
8574 SAVE_CFLAGS="$CFLAGS"
8575 SAVE_LDFLAGS="$LDFLAGS"
8576 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8577 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <asoundlib.h>
8581 int
8582 main ()
8583 {
8584 snd_lib_error_set_handler (0);
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 emacs_alsa_normal=yes
8591 else
8592 emacs_alsa_normal=no
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 if test "$emacs_alsa_normal" != yes; then
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <alsa/asoundlib.h>
8599 int
8600 main ()
8601 {
8602 snd_lib_error_set_handler (0);
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"; then :
8608 emacs_alsa_subdir=yes
8609 else
8610 emacs_alsa_subdir=no
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 if test "$emacs_alsa_subdir" != yes; then
8614 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8615 fi
8616 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8617 fi
8618
8619 CFLAGS="$SAVE_CFLAGS"
8620 LDFLAGS="$SAVE_LDFLAGS"
8621 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8622 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8623
8624 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8625
8626 fi
8627
8628 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8629 case "$opsys" in
8630 gnu-linux|freebsd|netbsd)
8631
8632 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8633
8634 ;;
8635 esac
8636 fi
8637
8638
8639 fi
8640
8641
8642
8643
8644 for ac_header in $ac_header_list
8645 do :
8646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8648 "
8649 eval as_val=\$$as_ac_Header
8650 if test "x$as_val" = x""yes; then :
8651 cat >>confdefs.h <<_ACEOF
8652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 _ACEOF
8654
8655 fi
8656
8657 done
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8694 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/personality.h>
8698 int
8699 main ()
8700 {
8701 personality (PER_LINUX32)
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 emacs_cv_personality_linux32=yes
8708 else
8709 emacs_cv_personality_linux32=no
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8713 $as_echo "$emacs_cv_personality_linux32" >&6; }
8714
8715 if test $emacs_cv_personality_linux32 = yes; then
8716
8717 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8718
8719 fi
8720
8721 for ac_header in term.h
8722 do :
8723 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8724 if test "x$ac_cv_header_term_h" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_TERM_H 1
8727 _ACEOF
8728
8729 fi
8730
8731 done
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8734 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8735 if test "${ac_cv_header_time+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <sys/types.h>
8741 #include <sys/time.h>
8742 #include <time.h>
8743
8744 int
8745 main ()
8746 {
8747 if ((struct tm *) 0)
8748 return 0;
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 ac_cv_header_time=yes
8755 else
8756 ac_cv_header_time=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8761 $as_echo "$ac_cv_header_time" >&6; }
8762 if test $ac_cv_header_time = yes; then
8763
8764 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8765
8766 fi
8767
8768 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8769 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8770 ac_have_decl=1
8771 else
8772 ac_have_decl=0
8773 fi
8774
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8777 _ACEOF
8778
8779 if test $ac_cv_have_decl_sys_siglist != yes; then
8780 # For Tru64, at least:
8781 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8782 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8783 ac_have_decl=1
8784 else
8785 ac_have_decl=0
8786 fi
8787
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8790 _ACEOF
8791
8792 if test $ac_cv_have_decl___sys_siglist = yes; then
8793
8794 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8795
8796 fi
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8799 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8800 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 #include <sys/types.h>
8806 #include <sys/wait.h>
8807 #ifndef WEXITSTATUS
8808 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8809 #endif
8810 #ifndef WIFEXITED
8811 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8812 #endif
8813
8814 int
8815 main ()
8816 {
8817 int s;
8818 wait (&s);
8819 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 ac_cv_header_sys_wait_h=yes
8826 else
8827 ac_cv_header_sys_wait_h=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8832 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8833 if test $ac_cv_header_sys_wait_h = yes; then
8834
8835 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8836
8837 fi
8838
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8841 $as_echo_n "checking for struct utimbuf... " >&6; }
8842 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #ifdef TIME_WITH_SYS_TIME
8848 #include <sys/time.h>
8849 #include <time.h>
8850 #else
8851 #ifdef HAVE_SYS_TIME_H
8852 #include <sys/time.h>
8853 #else
8854 #include <time.h>
8855 #endif
8856 #endif
8857 #ifdef HAVE_UTIME_H
8858 #include <utime.h>
8859 #endif
8860 int
8861 main ()
8862 {
8863 static struct utimbuf x; x.actime = x.modtime;
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 if ac_fn_c_try_compile "$LINENO"; then :
8869 emacs_cv_struct_utimbuf=yes
8870 else
8871 emacs_cv_struct_utimbuf=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8876 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8877 if test $emacs_cv_struct_utimbuf = yes; then
8878
8879 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8880
8881 fi
8882
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8884 $as_echo_n "checking for speed_t... " >&6; }
8885 if test "${emacs_cv_speed_t+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 #include <termios.h>
8891 int
8892 main ()
8893 {
8894 speed_t x = 1;
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 emacs_cv_speed_t=yes
8901 else
8902 emacs_cv_speed_t=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8907 $as_echo "$emacs_cv_speed_t" >&6; }
8908 if test $emacs_cv_speed_t = yes; then
8909
8910 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8911
8912 fi
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8915 $as_echo_n "checking for struct timeval... " >&6; }
8916 if test "${emacs_cv_struct_timeval+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #ifdef TIME_WITH_SYS_TIME
8922 #include <sys/time.h>
8923 #include <time.h>
8924 #else
8925 #ifdef HAVE_SYS_TIME_H
8926 #include <sys/time.h>
8927 #else
8928 #include <time.h>
8929 #endif
8930 #endif
8931 int
8932 main ()
8933 {
8934 static struct timeval x; x.tv_sec = x.tv_usec;
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_compile "$LINENO"; then :
8940 emacs_cv_struct_timeval=yes
8941 else
8942 emacs_cv_struct_timeval=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8947 $as_echo "$emacs_cv_struct_timeval" >&6; }
8948 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8949 if test $emacs_cv_struct_timeval = yes; then
8950
8951 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8952
8953 fi
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8956 $as_echo_n "checking for struct exception... " >&6; }
8957 if test "${emacs_cv_struct_exception+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <math.h>
8963 int
8964 main ()
8965 {
8966 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 emacs_cv_struct_exception=yes
8973 else
8974 emacs_cv_struct_exception=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8979 $as_echo "$emacs_cv_struct_exception" >&6; }
8980 HAVE_EXCEPTION=$emacs_cv_struct_exception
8981 if test $emacs_cv_struct_exception != yes; then
8982
8983 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8984
8985 fi
8986
8987 <<<<<<< TREE
8988 <<<<<<< TREE
8989 =======
8990 for ac_header in sys/socket.h
8991 do :
8992 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8993 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8994 cat >>confdefs.h <<_ACEOF
8995 #define HAVE_SYS_SOCKET_H 1
8996 _ACEOF
8997
8998 fi
8999
9000 done
9001 =======
9002
9003
9004 >>>>>>> MERGE-SOURCE
9005
9006 >>>>>>> MERGE-SOURCE
9007 for ac_header in net/if.h
9008 do :
9009 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9010 #if HAVE_SYS_SOCKET_H
9011 #include <sys/socket.h>
9012 #endif
9013 "
9014 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_NET_IF_H 1
9017 _ACEOF
9018
9019 fi
9020
9021 done
9022
9023 <<<<<<< TREE
9024 =======
9025 for ac_header in ifaddrs.h
9026 do :
9027 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9028 #if HAVE_SYS_SOCKET_H
9029 #include <sys/socket.h>
9030 #endif
9031 "
9032 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_IFADDRS_H 1
9035 _ACEOF
9036
9037 fi
9038
9039 done
9040
9041 for ac_header in net/if_dl.h
9042 do :
9043 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9044 #if HAVE_SYS_SOCKET_H
9045 #include <sys/socket.h>
9046 #endif
9047 "
9048 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_NET_IF_DL_H 1
9051 _ACEOF
9052
9053 fi
9054
9055 done
9056
9057 for ac_func in getifaddrs freeifaddrs
9058 do :
9059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9061 eval as_val=\$$as_ac_var
9062 if test "x$as_val" = x""yes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065 _ACEOF
9066
9067 fi
9068 done
9069
9070 >>>>>>> MERGE-SOURCE
9071
9072 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9073 #if HAVE_SYS_SOCKET_H
9074 #include <sys/socket.h>
9075 #endif
9076 #if HAVE_NET_IF_H
9077 #include <net/if.h>
9078 #endif
9079 "
9080 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9081
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9084 _ACEOF
9085
9086
9087 fi
9088 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9089 #if HAVE_SYS_SOCKET_H
9090 #include <sys/socket.h>
9091 #endif
9092 #if HAVE_NET_IF_H
9093 #include <net/if.h>
9094 #endif
9095 "
9096 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9097
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9100 _ACEOF
9101
9102
9103 fi
9104 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9105 #if HAVE_SYS_SOCKET_H
9106 #include <sys/socket.h>
9107 #endif
9108 #if HAVE_NET_IF_H
9109 #include <net/if.h>
9110 #endif
9111 "
9112 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9113
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9116 _ACEOF
9117
9118
9119 fi
9120 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9121 #if HAVE_SYS_SOCKET_H
9122 #include <sys/socket.h>
9123 #endif
9124 #if HAVE_NET_IF_H
9125 #include <net/if.h>
9126 #endif
9127 "
9128 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9132 _ACEOF
9133
9134
9135 fi
9136 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9137 #if HAVE_SYS_SOCKET_H
9138 #include <sys/socket.h>
9139 #endif
9140 #if HAVE_NET_IF_H
9141 #include <net/if.h>
9142 #endif
9143 "
9144 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9145
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9148 _ACEOF
9149
9150
9151 fi
9152 <<<<<<< TREE
9153 =======
9154 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9155 #if HAVE_SYS_SOCKET_H
9156 #include <sys/socket.h>
9157 #endif
9158 #if HAVE_NET_IF_H
9159 #include <net/if.h>
9160 #endif
9161 "
9162 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9163
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9166 _ACEOF
9167
9168
9169 fi
9170 >>>>>>> MERGE-SOURCE
9171
9172
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9175 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9176 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 char __attribute__ ((__aligned__ (1 << 3))) c;
9182 int
9183 main ()
9184 {
9185
9186 ;
9187 return 0;
9188 }
9189 _ACEOF
9190 if ac_fn_c_try_compile "$LINENO"; then :
9191 emacs_cv_attribute_aligned=yes
9192 else
9193 emacs_cv_attribute_aligned=no
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9198 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9199 if test $emacs_cv_attribute_aligned = yes; then
9200
9201 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9202
9203 fi
9204
9205
9206 DEPFLAGS=
9207 MKDEPDIR=":"
9208 deps_frag=deps.mk
9209 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9211 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9212 HAVE_GNU_MAKE=no
9213 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9214 if test "x$testval" != x; then
9215 HAVE_GNU_MAKE=yes
9216 else
9217 ac_enable_autodepend=no
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9220 $as_echo "$HAVE_GNU_MAKE" >&6; }
9221 if test $HAVE_GNU_MAKE = yes; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9223 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9224 SAVE_CFLAGS="$CFLAGS"
9225 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228
9229 int
9230 main ()
9231 {
9232
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238
9239 else
9240 ac_enable_autodepend=no
9241 fi
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 CFLAGS="$SAVE_CFLAGS"
9244 test -f deps.d || ac_enable_autodepend=no
9245 rm -rf deps.d
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9247 $as_echo "$ac_enable_autodepend" >&6; }
9248 fi
9249 if test $ac_enable_autodepend = yes; then
9250 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9251 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9252 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9253 deps_frag=autodeps.mk
9254 fi
9255 fi
9256 deps_frag=$srcdir/src/$deps_frag
9257
9258
9259
9260
9261
9262 lisp_frag=$srcdir/src/lisp.mk
9263
9264
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9267 $as_echo_n "checking for long file names... " >&6; }
9268 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 ac_cv_sys_long_file_names=yes
9272 # Test for long file names in all the places we know might matter:
9273 # . the current directory, where building will happen
9274 # $prefix/lib where we will be installing things
9275 # $exec_prefix/lib likewise
9276 # $TMPDIR if set, where it might want to write temporary files
9277 # /tmp where it might want to write temporary files
9278 # /var/tmp likewise
9279 # /usr/tmp likewise
9280 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9281 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9282 # in the usual case where exec_prefix is '${prefix}'.
9283 case $ac_dir in #(
9284 . | /* | ?:[\\/]*) ;; #(
9285 *) continue;;
9286 esac
9287 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9288 ac_xdir=$ac_dir/cf$$
9289 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9290 ac_tf1=$ac_xdir/conftest9012345
9291 ac_tf2=$ac_xdir/conftest9012346
9292 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9293 ac_cv_sys_long_file_names=no
9294 rm -f -r "$ac_xdir" 2>/dev/null
9295 test $ac_cv_sys_long_file_names = no && break
9296 done
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9299 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9300 if test $ac_cv_sys_long_file_names = yes; then
9301
9302 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9303
9304 fi
9305
9306
9307 #### Choose a window system.
9308
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9310 $as_echo_n "checking for X... " >&6; }
9311
9312
9313 # Check whether --with-x was given.
9314 if test "${with_x+set}" = set; then :
9315 withval=$with_x;
9316 fi
9317
9318 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9319 if test "x$with_x" = xno; then
9320 # The user explicitly disabled X.
9321 have_x=disabled
9322 else
9323 case $x_includes,$x_libraries in #(
9324 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9325 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 # One or both of the vars are not set, and there is no cached value.
9329 ac_x_includes=no ac_x_libraries=no
9330 rm -f -r conftest.dir
9331 if mkdir conftest.dir; then
9332 cd conftest.dir
9333 cat >Imakefile <<'_ACEOF'
9334 incroot:
9335 @echo incroot='${INCROOT}'
9336 usrlibdir:
9337 @echo usrlibdir='${USRLIBDIR}'
9338 libdir:
9339 @echo libdir='${LIBDIR}'
9340 _ACEOF
9341 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9343 for ac_var in incroot usrlibdir libdir; do
9344 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9345 done
9346 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9347 for ac_extension in a so sl dylib la dll; do
9348 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9349 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9350 ac_im_usrlibdir=$ac_im_libdir; break
9351 fi
9352 done
9353 # Screen out bogus values from the imake configuration. They are
9354 # bogus both because they are the default anyway, and because
9355 # using them would break gcc on systems where it needs fixed includes.
9356 case $ac_im_incroot in
9357 /usr/include) ac_x_includes= ;;
9358 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9359 esac
9360 case $ac_im_usrlibdir in
9361 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9362 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9363 esac
9364 fi
9365 cd ..
9366 rm -f -r conftest.dir
9367 fi
9368
9369 # Standard set of common directories for X headers.
9370 # Check X11 before X11Rn because it is often a symlink to the current release.
9371 ac_x_header_dirs='
9372 /usr/X11/include
9373 /usr/X11R7/include
9374 /usr/X11R6/include
9375 /usr/X11R5/include
9376 /usr/X11R4/include
9377
9378 /usr/include/X11
9379 /usr/include/X11R7
9380 /usr/include/X11R6
9381 /usr/include/X11R5
9382 /usr/include/X11R4
9383
9384 /usr/local/X11/include
9385 /usr/local/X11R7/include
9386 /usr/local/X11R6/include
9387 /usr/local/X11R5/include
9388 /usr/local/X11R4/include
9389
9390 /usr/local/include/X11
9391 /usr/local/include/X11R7
9392 /usr/local/include/X11R6
9393 /usr/local/include/X11R5
9394 /usr/local/include/X11R4
9395
9396 /usr/X386/include
9397 /usr/x386/include
9398 /usr/XFree86/include/X11
9399
9400 /usr/include
9401 /usr/local/include
9402 /usr/unsupported/include
9403 /usr/athena/include
9404 /usr/local/x11r5/include
9405 /usr/lpp/Xamples/include
9406
9407 /usr/openwin/include
9408 /usr/openwin/share/include'
9409
9410 if test "$ac_x_includes" = no; then
9411 # Guess where to find include files, by looking for Xlib.h.
9412 # First, try using that file with no special directory specified.
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 #include <X11/Xlib.h>
9416 _ACEOF
9417 if ac_fn_c_try_cpp "$LINENO"; then :
9418 # We can compile using X headers with no special include directory.
9419 ac_x_includes=
9420 else
9421 for ac_dir in $ac_x_header_dirs; do
9422 if test -r "$ac_dir/X11/Xlib.h"; then
9423 ac_x_includes=$ac_dir
9424 break
9425 fi
9426 done
9427 fi
9428 rm -f conftest.err conftest.$ac_ext
9429 fi # $ac_x_includes = no
9430
9431 if test "$ac_x_libraries" = no; then
9432 # Check for the libraries.
9433 # See if we find them without any special options.
9434 # Don't add to $LIBS permanently.
9435 ac_save_LIBS=$LIBS
9436 LIBS="-lX11 $LIBS"
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 #include <X11/Xlib.h>
9440 int
9441 main ()
9442 {
9443 XrmInitialize ()
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"; then :
9449 LIBS=$ac_save_LIBS
9450 # We can link X programs with no special library path.
9451 ac_x_libraries=
9452 else
9453 LIBS=$ac_save_LIBS
9454 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9455 do
9456 # Don't even attempt the hair of trying to link an X program!
9457 for ac_extension in a so sl dylib la dll; do
9458 if test -r "$ac_dir/libX11.$ac_extension"; then
9459 ac_x_libraries=$ac_dir
9460 break 2
9461 fi
9462 done
9463 done
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 fi # $ac_x_libraries = no
9468
9469 case $ac_x_includes,$ac_x_libraries in #(
9470 no,* | *,no | *\'*)
9471 # Didn't find X, or a directory has "'" in its name.
9472 ac_cv_have_x="have_x=no";; #(
9473 *)
9474 # Record where we found X for the cache.
9475 ac_cv_have_x="have_x=yes\
9476 ac_x_includes='$ac_x_includes'\
9477 ac_x_libraries='$ac_x_libraries'"
9478 esac
9479 fi
9480 ;; #(
9481 *) have_x=yes;;
9482 esac
9483 eval "$ac_cv_have_x"
9484 fi # $with_x != no
9485
9486 if test "$have_x" != yes; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9488 $as_echo "$have_x" >&6; }
9489 no_x=yes
9490 else
9491 # If each of the values was on the command line, it overrides each guess.
9492 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9493 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9494 # Update the cache value to reflect the command line values.
9495 ac_cv_have_x="have_x=yes\
9496 ac_x_includes='$x_includes'\
9497 ac_x_libraries='$x_libraries'"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9499 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9500 fi
9501
9502 if test "$no_x" = yes; then
9503 window_system=none
9504 else
9505 window_system=x11
9506 fi
9507
9508 LD_SWITCH_X_SITE_RPATH=
9509 if test "${x_libraries}" != NONE; then
9510 if test -n "${x_libraries}"; then
9511 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9512 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9513 fi
9514 x_default_search_path=""
9515 x_search_path=${x_libraries}
9516 if test -z "${x_search_path}"; then
9517 x_search_path=/usr/lib
9518 fi
9519 for x_library in `echo ${x_search_path}: | \
9520 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9521 x_search_path="\
9522 ${x_library}/X11/%L/%T/%N%C%S:\
9523 ${x_library}/X11/%l/%T/%N%C%S:\
9524 ${x_library}/X11/%T/%N%C%S:\
9525 ${x_library}/X11/%L/%T/%N%S:\
9526 ${x_library}/X11/%l/%T/%N%S:\
9527 ${x_library}/X11/%T/%N%S"
9528 if test x"${x_default_search_path}" = x; then
9529 x_default_search_path=${x_search_path}
9530 else
9531 x_default_search_path="${x_search_path}:${x_default_search_path}"
9532 fi
9533 done
9534 fi
9535
9536
9537 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9538 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9539 fi
9540
9541 if test x"${x_includes}" = x; then
9542 bitmapdir=/usr/include/X11/bitmaps
9543 else
9544 # accumulate include directories that have X11 bitmap subdirectories
9545 bmd_acc="dummyval"
9546 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9547 if test -d "${bmd}/X11/bitmaps"; then
9548 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9549 fi
9550 if test -d "${bmd}/bitmaps"; then
9551 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9552 fi
9553 done
9554 if test ${bmd_acc} != "dummyval"; then
9555 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9556 fi
9557 fi
9558
9559 HAVE_NS=no
9560 NS_IMPL_COCOA=no
9561 NS_IMPL_GNUSTEP=no
9562 tmp_CPPFLAGS="$CPPFLAGS"
9563 tmp_CFLAGS="$CFLAGS"
9564 CPPFLAGS="$CPPFLAGS -x objective-c"
9565 CFLAGS="$CFLAGS -x objective-c"
9566 TEMACS_LDFLAGS2="\${LDFLAGS}"
9567 GNU_OBJC_CFLAGS=
9568 if test "${with_ns}" != no; then
9569 if test "${opsys}" = darwin; then
9570 NS_IMPL_COCOA=yes
9571 ns_appdir=`pwd`/nextstep/Emacs.app
9572 ns_appbindir=${ns_appdir}/Contents/MacOS
9573 ns_appresdir=${ns_appdir}/Contents/Resources
9574 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9575 elif test -f $GNUSTEP_CONFIG_FILE; then
9576 NS_IMPL_GNUSTEP=yes
9577 ns_appdir=`pwd`/nextstep/Emacs.app
9578 ns_appbindir=${ns_appdir}
9579 ns_appresdir=${ns_appdir}/Resources
9580 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9581 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9582 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9583 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9584 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9585 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9586 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9587 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9588 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9589 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9590 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9591 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9592 LIB_STANDARD=
9593 START_FILES=
9594 TEMACS_LDFLAGS2=
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9596 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9597 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <GNUstepBase/GSConfig.h>
9603 int
9604 main ()
9605 {
9606 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9607 1;
9608 #else
9609 fail;
9610 #endif
9611 ;
9612 return 0;
9613 }
9614 _ACEOF
9615 if ac_fn_c_try_compile "$LINENO"; then :
9616 emacs_cv_objc_exceptions=yes
9617 else
9618 emacs_cv_objc_exceptions=no
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9623 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9624 if test $emacs_cv_objc_exceptions = yes; then
9625
9626 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9627
9628 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9629 fi
9630 fi
9631
9632 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9633
9634 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9635 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9636 HAVE_NS=yes
9637 else
9638 as_fn_error "\`--with-ns' was specified, but the include
9639 files are missing or cannot be compiled." "$LINENO" 5
9640 fi
9641
9642
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <Foundation/NSObjCRuntime.h>
9646 int
9647 main ()
9648 {
9649 NSInteger i;
9650 ;
9651 return 0;
9652 }
9653 _ACEOF
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 ns_have_nsinteger=yes
9656 else
9657 ns_have_nsinteger=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 if test $ns_have_nsinteger = yes; then
9661
9662 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9663
9664 fi
9665 fi
9666
9667
9668 INSTALL_ARCH_INDEP_EXTRA=install-etc
9669 ns_self_contained=no
9670 ns_frag=/dev/null
9671 NS_OBJ=
9672 NS_OBJC_OBJ=
9673 if test "${HAVE_NS}" = yes; then
9674 if test "$with_toolkit_scroll_bars" = "no"; then
9675 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9676 fi
9677
9678 window_system=nextstep
9679 with_xft=no
9680 # set up packaging dirs
9681 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9682 ns_self_contained=yes
9683 prefix=${ns_appresdir}
9684 exec_prefix=${ns_appbindir}
9685 libexecdir="\${ns_appbindir}/libexec"
9686 archlibdir="\${ns_appbindir}/libexec"
9687 docdir="\${ns_appresdir}/etc"
9688 etcdir="\${ns_appresdir}/etc"
9689 infodir="\${ns_appresdir}/info"
9690 mandir="\${ns_appresdir}/man"
9691 lispdir="\${ns_appresdir}/lisp"
9692 leimdir="\${ns_appresdir}/leim"
9693 INSTALL_ARCH_INDEP_EXTRA=
9694 fi
9695 ns_frag=$srcdir/src/ns.mk
9696 NS_OBJ="fontset.o fringe.o image.o"
9697 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9698 fi
9699 CFLAGS="$tmp_CFLAGS"
9700 CPPFLAGS="$tmp_CPPFLAGS"
9701
9702
9703
9704
9705
9706
9707
9708 case "${window_system}" in
9709 x11 )
9710 HAVE_X_WINDOWS=yes
9711 HAVE_X11=yes
9712 case "${with_x_toolkit}" in
9713 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9714 motif ) USE_X_TOOLKIT=MOTIF ;;
9715 gtk ) with_gtk=yes
9716 USE_X_TOOLKIT=none ;;
9717 gtk3 ) with_gtk3=yes
9718 USE_X_TOOLKIT=none ;;
9719 no ) USE_X_TOOLKIT=none ;;
9720 * ) USE_X_TOOLKIT=maybe ;;
9721 esac
9722 ;;
9723 nextstep | none )
9724 HAVE_X_WINDOWS=no
9725 HAVE_X11=no
9726 USE_X_TOOLKIT=none
9727 ;;
9728 esac
9729
9730 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9731 # Extract the first word of "X", so it can be a program name with args.
9732 set dummy X; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 if test -n "$HAVE_XSERVER"; then
9739 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_HAVE_XSERVER="true"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752 done
9753 done
9754 IFS=$as_save_IFS
9755
9756 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9757 fi
9758 fi
9759 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9760 if test -n "$HAVE_XSERVER"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9762 $as_echo "$HAVE_XSERVER" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767
9768
9769 if test "$HAVE_XSERVER" = true ||
9770 test -n "$DISPLAY" ||
9771 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9772 as_fn_error "You seem to be running X, but no X development libraries
9773 were found. You should install the relevant development files for X
9774 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9775 sure you have development files for image handling, i.e.
9776 tiff, gif, jpeg, png and xpm.
9777 If you are sure you want Emacs compiled without X window support, pass
9778 --without-x
9779 to configure." "$LINENO" 5
9780 fi
9781 fi
9782
9783 ### If we're using X11, we should use the X menu package.
9784 HAVE_MENUS=no
9785 case ${HAVE_X11} in
9786 yes ) HAVE_MENUS=yes ;;
9787 esac
9788
9789 # Does the opsystem file prohibit the use of the GNU malloc?
9790 # Assume not, until told otherwise.
9791 GNU_MALLOC=yes
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9794 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9795 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <malloc.h>
9801 static void hook (void) {}
9802 int
9803 main ()
9804 {
9805 malloc_set_state (malloc_get_state ());
9806 __after_morecore_hook = hook;
9807 __malloc_initialize_hook = hook;
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 emacs_cv_var_doug_lea_malloc=yes
9814 else
9815 emacs_cv_var_doug_lea_malloc=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9821 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9822 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9823
9824
9825 system_malloc=no
9826 case "$opsys" in
9827 ## darwin ld insists on the use of malloc routines in the System framework.
9828 darwin|sol2-10) system_malloc=yes ;;
9829 esac
9830
9831 if test "${system_malloc}" = "yes"; then
9832
9833 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9834
9835 GNU_MALLOC=no
9836 GNU_MALLOC_reason="
9837 (The GNU allocators don't work with this system configuration.)"
9838 GMALLOC_OBJ=
9839 VMLIMIT_OBJ=
9840 else
9841 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9842 VMLIMIT_OBJ=vm-limit.o
9843 fi
9844
9845
9846
9847 if test "$doug_lea_malloc" = "yes" ; then
9848 if test "$GNU_MALLOC" = yes ; then
9849 GNU_MALLOC_reason="
9850 (Using Doug Lea's new malloc from the GNU C Library.)"
9851 fi
9852
9853 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9854
9855
9856 ## Use mmap directly for allocating larger buffers.
9857 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9858 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9859 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9860 case "$opsys" in
9861 gnu*) REL_ALLOC=no ;;
9862 esac
9863 fi
9864
9865 if test x"${REL_ALLOC}" = x; then
9866 REL_ALLOC=${GNU_MALLOC}
9867 fi
9868
9869 use_mmap_for_buffers=no
9870 case "$opsys" in
9871 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9872 esac
9873
9874
9875
9876
9877
9878
9879
9880
9881 for ac_func in getpagesize
9882 do :
9883 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9884 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_GETPAGESIZE 1
9887 _ACEOF
9888
9889 fi
9890 done
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9893 $as_echo_n "checking for working mmap... " >&6; }
9894 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test "$cross_compiling" = yes; then :
9898 ac_cv_func_mmap_fixed_mapped=no
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 /* malloc might have been renamed as rpl_malloc. */
9904 #undef malloc
9905
9906 /* Thanks to Mike Haertel and Jim Avera for this test.
9907 Here is a matrix of mmap possibilities:
9908 mmap private not fixed
9909 mmap private fixed at somewhere currently unmapped
9910 mmap private fixed at somewhere already mapped
9911 mmap shared not fixed
9912 mmap shared fixed at somewhere currently unmapped
9913 mmap shared fixed at somewhere already mapped
9914 For private mappings, we should verify that changes cannot be read()
9915 back from the file, nor mmap's back from the file at a different
9916 address. (There have been systems where private was not correctly
9917 implemented like the infamous i386 svr4.0, and systems where the
9918 VM page cache was not coherent with the file system buffer cache
9919 like early versions of FreeBSD and possibly contemporary NetBSD.)
9920 For shared mappings, we should conversely verify that changes get
9921 propagated back to all the places they're supposed to be.
9922
9923 Grep wants private fixed already mapped.
9924 The main things grep needs to know about mmap are:
9925 * does it exist and is it safe to write into the mmap'd area
9926 * how to use it (BSD variants) */
9927
9928 #include <fcntl.h>
9929 #include <sys/mman.h>
9930
9931 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9932 char *malloc ();
9933 #endif
9934
9935 /* This mess was copied from the GNU getpagesize.h. */
9936 #ifndef HAVE_GETPAGESIZE
9937 # ifdef _SC_PAGESIZE
9938 # define getpagesize() sysconf(_SC_PAGESIZE)
9939 # else /* no _SC_PAGESIZE */
9940 # ifdef HAVE_SYS_PARAM_H
9941 # include <sys/param.h>
9942 # ifdef EXEC_PAGESIZE
9943 # define getpagesize() EXEC_PAGESIZE
9944 # else /* no EXEC_PAGESIZE */
9945 # ifdef NBPG
9946 # define getpagesize() NBPG * CLSIZE
9947 # ifndef CLSIZE
9948 # define CLSIZE 1
9949 # endif /* no CLSIZE */
9950 # else /* no NBPG */
9951 # ifdef NBPC
9952 # define getpagesize() NBPC
9953 # else /* no NBPC */
9954 # ifdef PAGESIZE
9955 # define getpagesize() PAGESIZE
9956 # endif /* PAGESIZE */
9957 # endif /* no NBPC */
9958 # endif /* no NBPG */
9959 # endif /* no EXEC_PAGESIZE */
9960 # else /* no HAVE_SYS_PARAM_H */
9961 # define getpagesize() 8192 /* punt totally */
9962 # endif /* no HAVE_SYS_PARAM_H */
9963 # endif /* no _SC_PAGESIZE */
9964
9965 #endif /* no HAVE_GETPAGESIZE */
9966
9967 int
9968 main ()
9969 {
9970 char *data, *data2, *data3;
9971 const char *cdata2;
9972 int i, pagesize;
9973 int fd, fd2;
9974
9975 pagesize = getpagesize ();
9976
9977 /* First, make a file with some known garbage in it. */
9978 data = (char *) malloc (pagesize);
9979 if (!data)
9980 return 1;
9981 for (i = 0; i < pagesize; ++i)
9982 *(data + i) = rand ();
9983 umask (0);
9984 fd = creat ("conftest.mmap", 0600);
9985 if (fd < 0)
9986 return 2;
9987 if (write (fd, data, pagesize) != pagesize)
9988 return 3;
9989 close (fd);
9990
9991 /* Next, check that the tail of a page is zero-filled. File must have
9992 non-zero length, otherwise we risk SIGBUS for entire page. */
9993 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9994 if (fd2 < 0)
9995 return 4;
9996 cdata2 = "";
9997 if (write (fd2, cdata2, 1) != 1)
9998 return 5;
9999 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10000 if (data2 == MAP_FAILED)
10001 return 6;
10002 for (i = 0; i < pagesize; ++i)
10003 if (*(data2 + i))
10004 return 7;
10005 close (fd2);
10006 if (munmap (data2, pagesize))
10007 return 8;
10008
10009 /* Next, try to mmap the file at a fixed address which already has
10010 something else allocated at it. If we can, also make sure that
10011 we see the same garbage. */
10012 fd = open ("conftest.mmap", O_RDWR);
10013 if (fd < 0)
10014 return 9;
10015 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10016 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10017 return 10;
10018 for (i = 0; i < pagesize; ++i)
10019 if (*(data + i) != *(data2 + i))
10020 return 11;
10021
10022 /* Finally, make sure that changes to the mapped area do not
10023 percolate back to the file as seen by read(). (This is a bug on
10024 some variants of i386 svr4.0.) */
10025 for (i = 0; i < pagesize; ++i)
10026 *(data2 + i) = *(data2 + i) + 1;
10027 data3 = (char *) malloc (pagesize);
10028 if (!data3)
10029 return 12;
10030 if (read (fd, data3, pagesize) != pagesize)
10031 return 13;
10032 for (i = 0; i < pagesize; ++i)
10033 if (*(data + i) != *(data3 + i))
10034 return 14;
10035 close (fd);
10036 return 0;
10037 }
10038 _ACEOF
10039 if ac_fn_c_try_run "$LINENO"; then :
10040 ac_cv_func_mmap_fixed_mapped=yes
10041 else
10042 ac_cv_func_mmap_fixed_mapped=no
10043 fi
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10045 conftest.$ac_objext conftest.beam conftest.$ac_ext
10046 fi
10047
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10050 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10051 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10052
10053 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10054
10055 fi
10056 rm -f conftest.mmap conftest.txt
10057
10058 if test $use_mmap_for_buffers = yes; then
10059
10060 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10061
10062 REL_ALLOC=no
10063 fi
10064
10065 LIBS="$LIBS_SYSTEM $LIBS"
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10068 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10069 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldnet $LIBS"
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char dnet_ntoa ();
10084 int
10085 main ()
10086 {
10087 return dnet_ntoa ();
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10093 ac_cv_lib_dnet_dnet_ntoa=yes
10094 else
10095 ac_cv_lib_dnet_dnet_ntoa=no
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10102 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10103 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10104 cat >>confdefs.h <<_ACEOF
10105 #define HAVE_LIBDNET 1
10106 _ACEOF
10107
10108 LIBS="-ldnet $LIBS"
10109
10110 fi
10111
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10114 $as_echo_n "checking for main in -lXbsd... " >&6; }
10115 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lXbsd $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122
10123
10124 int
10125 main ()
10126 {
10127 return main ();
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 ac_cv_lib_Xbsd_main=yes
10134 else
10135 ac_cv_lib_Xbsd_main=no
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10142 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10143 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10144 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10145 fi
10146
10147
10148 LIB_PTHREAD=
10149
10150
10151
10152 if test "$ac_cv_header_pthread_h"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10154 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lpthread $LIBS"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char pthread_self ();
10170 int
10171 main ()
10172 {
10173 return pthread_self ();
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 ac_cv_lib_pthread_pthread_self=yes
10180 else
10181 ac_cv_lib_pthread_pthread_self=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10188 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10189 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10190 HAVE_PTHREAD=yes
10191 fi
10192
10193 fi
10194 if test "$HAVE_PTHREAD" = yes; then
10195 case "${canonical}" in
10196 *-hpux*) ;;
10197 *) LIB_PTHREAD="-lpthread"
10198 LIBS="$LIB_PTHREAD $LIBS" ;;
10199 esac
10200
10201 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10202
10203 fi
10204
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10207 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10208 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-lpthreads $LIBS"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 char cma_open ();
10223 int
10224 main ()
10225 {
10226 return cma_open ();
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 ac_cv_lib_pthreads_cma_open=yes
10233 else
10234 ac_cv_lib_pthreads_cma_open=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10241 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10242 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_LIBPTHREADS 1
10245 _ACEOF
10246
10247 LIBS="-lpthreads $LIBS"
10248
10249 fi
10250
10251
10252 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10253 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10254 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10255 ## added to LIBS in configure would never contain the pthreads part,
10256 ## but the value used in Makefiles might. FIXME?
10257 ##
10258 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10259 ## be harmless on older versions of X where it happens to exist.
10260 test "$opsys" = "aix4-2" && \
10261 test $ac_cv_lib_pthreads_cma_open = yes && \
10262 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10263
10264
10265 case ${host_os} in
10266 aix*)
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10268 $as_echo_n "checking for -bbigtoc option... " >&6; }
10269 if test "${gdb_cv_bigtoc+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272
10273 case $GCC in
10274 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10275 *) gdb_cv_bigtoc=-bbigtoc ;;
10276 esac
10277
10278 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281
10282 int
10283 main ()
10284 {
10285 int i;
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"; then :
10291
10292 else
10293 gdb_cv_bigtoc=
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10300 $as_echo "$gdb_cv_bigtoc" >&6; }
10301 ;;
10302 esac
10303
10304 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10305 # used for the tests that follow. We set them back to REAL_CFLAGS and
10306 # REAL_CPPFLAGS later on.
10307
10308 REAL_CFLAGS="$CFLAGS"
10309 REAL_CPPFLAGS="$CPPFLAGS"
10310
10311 if test "${HAVE_X11}" = "yes"; then
10312 DEFS="$C_SWITCH_X_SITE $DEFS"
10313 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10314 LIBS="-lX11 $LIBS"
10315 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10316 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10317
10318 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10319 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10320 # but it's more convenient here to set LD_RUN_PATH since this
10321 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10322 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10323 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10324 export LD_RUN_PATH
10325 fi
10326
10327 if test "${opsys}" = "gnu-linux"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10329 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332
10333 int
10334 main ()
10335 {
10336 XOpenDisplay ("foo");
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 xgnu_linux_first_failure=no
10343 else
10344 xgnu_linux_first_failure=yes
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 if test "${xgnu_linux_first_failure}" = "yes"; then
10349 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10350 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10351 OLD_CPPFLAGS="$CPPFLAGS"
10352 OLD_LIBS="$LIBS"
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10354 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10355 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10356 LIBS="$LIBS -b i486-linuxaout"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10359
10360 int
10361 main ()
10362 {
10363 XOpenDisplay ("foo");
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 xgnu_linux_second_failure=no
10370 else
10371 xgnu_linux_second_failure=yes
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 if test "${xgnu_linux_second_failure}" = "yes"; then
10376 # If we get the same failure with -b, there is no use adding -b.
10377 # So take it out. This plays safe.
10378 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10379 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10380 CPPFLAGS="$OLD_CPPFLAGS"
10381 LIBS="$OLD_LIBS"
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386 $as_echo "yes" >&6; }
10387 fi
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10391 fi
10392 fi
10393
10394 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10395 # header files included from there.
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10397 $as_echo_n "checking for Xkb... " >&6; }
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #include <X11/Xlib.h>
10401 #include <X11/XKBlib.h>
10402 int
10403 main ()
10404 {
10405 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10406 ;
10407 return 0;
10408 }
10409 _ACEOF
10410 if ac_fn_c_try_link "$LINENO"; then :
10411 emacs_xkb=yes
10412 else
10413 emacs_xkb=no
10414 fi
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10418 $as_echo "$emacs_xkb" >&6; }
10419 if test $emacs_xkb = yes; then
10420
10421 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10422
10423 fi
10424
10425 for ac_func in XrmSetDatabase XScreenResourceString \
10426 XScreenNumberOfScreen
10427 do :
10428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10430 eval as_val=\$$as_ac_var
10431 if test "x$as_val" = x""yes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10434 _ACEOF
10435
10436 fi
10437 done
10438
10439 fi
10440
10441 if test "${window_system}" = "x11"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10443 $as_echo_n "checking X11 version 6... " >&6; }
10444 if test "${emacs_cv_x11_version_6+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 #include <X11/Xlib.h>
10450 int
10451 main ()
10452 {
10453 #if XlibSpecificationRelease < 6
10454 fail;
10455 #endif
10456
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_link "$LINENO"; then :
10462 emacs_cv_x11_version_6=yes
10463 else
10464 emacs_cv_x11_version_6=no
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 fi
10469
10470 if test $emacs_cv_x11_version_6 = yes; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10472 $as_echo "6 or newer" >&6; }
10473
10474 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10475
10476
10477 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10478
10479 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10480 ## XIM support.
10481 case "$opsys" in
10482 sol2-*) : ;;
10483 *)
10484 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10485
10486 ;;
10487 esac
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10490 $as_echo "before 6" >&6; }
10491 fi
10492 fi
10493
10494
10495 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10496 HAVE_RSVG=no
10497 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10498 if test "${with_rsvg}" != "no"; then
10499 RSVG_REQUIRED=2.11.0
10500 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10501
10502
10503 succeeded=no
10504
10505 if test "$PKG_CONFIG" = "no" ; then
10506 :
10507 else
10508 PKG_CONFIG_MIN_VERSION=0.9.0
10509 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10511 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10512
10513 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10514 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10515 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10516 edit_cflags="
10517 s,///*,/,g
10518 s/^/ /
10519 s/ -I/ $isystem/g
10520 s/^ //
10521 "
10522 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10523 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10525 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10526 succeeded=yes
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 RSVG_CFLAGS=""
10531 RSVG_LIBS=""
10532 ## If we have a custom action on failure, don't print errors, but
10533 ## do set a variable so people can do so.
10534 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10535
10536 fi
10537
10538
10539
10540 else
10541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10543 fi
10544 fi
10545
10546 if test $succeeded = yes; then
10547 HAVE_RSVG=yes
10548 else
10549 :
10550 fi
10551
10552
10553
10554
10555 if test $HAVE_RSVG = yes; then
10556
10557 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10558
10559 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10560 LIBS="$RSVG_LIBS $LIBS"
10561 fi
10562 fi
10563 fi
10564
10565 HAVE_IMAGEMAGICK=no
10566 if test "${HAVE_X11}" = "yes"; then
10567 if test "${with_imagemagick}" != "no"; then
10568 ## 6.2.8 is the earliest version known to work, but earlier versions
10569 ## might work - let us know if you find one.
10570 ## 6.0.7 does not work. See bug#7955.
10571 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10572
10573 succeeded=no
10574
10575 if test "$PKG_CONFIG" = "no" ; then
10576 :
10577 else
10578 PKG_CONFIG_MIN_VERSION=0.9.0
10579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10581 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10582
10583 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10584 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10585 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10586 edit_cflags="
10587 s,///*,/,g
10588 s/^/ /
10589 s/ -I/ $isystem/g
10590 s/^ //
10591 "
10592 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10593 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10595 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10596 succeeded=yes
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10600 IMAGEMAGICK_CFLAGS=""
10601 IMAGEMAGICK_LIBS=""
10602 ## If we have a custom action on failure, don't print errors, but
10603 ## do set a variable so people can do so.
10604 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10605
10606 fi
10607
10608
10609
10610 else
10611 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10612 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10613 fi
10614 fi
10615
10616 if test $succeeded = yes; then
10617 HAVE_IMAGEMAGICK=yes
10618 else
10619 :
10620 fi
10621
10622
10623
10624
10625 if test $HAVE_IMAGEMAGICK = yes; then
10626
10627 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10628
10629 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10630 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10631 for ac_func in MagickExportImagePixels
10632 do :
10633 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10634 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10635 cat >>confdefs.h <<_ACEOF
10636 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10637 _ACEOF
10638
10639 fi
10640 done
10641
10642 fi
10643 fi
10644 fi
10645
10646
10647 HAVE_GTK=no
10648 GTK_OBJ=
10649 if test "${with_gtk3}" = "yes"; then
10650 GLIB_REQUIRED=2.28
10651 GTK_REQUIRED=3.0
10652 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10653
10654
10655 succeeded=no
10656
10657 if test "$PKG_CONFIG" = "no" ; then
10658 pkg_check_gtk=no
10659 else
10660 PKG_CONFIG_MIN_VERSION=0.9.0
10661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10663 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10664
10665 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10666 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10667 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10668 edit_cflags="
10669 s,///*,/,g
10670 s/^/ /
10671 s/ -I/ $isystem/g
10672 s/^ //
10673 "
10674 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10675 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10677 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10678 succeeded=yes
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 GTK_CFLAGS=""
10683 GTK_LIBS=""
10684 ## If we have a custom action on failure, don't print errors, but
10685 ## do set a variable so people can do so.
10686 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10687
10688 fi
10689
10690
10691
10692 else
10693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10695 fi
10696 fi
10697
10698 if test $succeeded = yes; then
10699 pkg_check_gtk=yes
10700 else
10701 pkg_check_gtk=no
10702 fi
10703
10704 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10705 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10706 fi
10707
10708 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10709
10710 GTK_OBJ=emacsgtkfixed.o
10711 fi
10712
10713 if test "$pkg_check_gtk" != "yes"; then
10714 HAVE_GTK=no
10715 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10716 GLIB_REQUIRED=2.10
10717 GTK_REQUIRED=2.10
10718 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10719
10720
10721 succeeded=no
10722
10723 if test "$PKG_CONFIG" = "no" ; then
10724 pkg_check_gtk=no
10725 else
10726 PKG_CONFIG_MIN_VERSION=0.9.0
10727 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10729 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10730
10731 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10732 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10733 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10734 edit_cflags="
10735 s,///*,/,g
10736 s/^/ /
10737 s/ -I/ $isystem/g
10738 s/^ //
10739 "
10740 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10741 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10743 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10744 succeeded=yes
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10748 GTK_CFLAGS=""
10749 GTK_LIBS=""
10750 ## If we have a custom action on failure, don't print errors, but
10751 ## do set a variable so people can do so.
10752 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10753
10754 fi
10755
10756
10757
10758 else
10759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10761 fi
10762 fi
10763
10764 if test $succeeded = yes; then
10765 pkg_check_gtk=yes
10766 else
10767 pkg_check_gtk=no
10768 fi
10769
10770 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10771 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10772 fi
10773 fi
10774 fi
10775
10776 if test x"$pkg_check_gtk" = xyes; then
10777
10778
10779
10780 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10781 CFLAGS="$CFLAGS $GTK_CFLAGS"
10782 LIBS="$GTK_LIBS $LIBS"
10783 GTK_COMPILES=no
10784 for ac_func in gtk_main
10785 do :
10786 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10787 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_GTK_MAIN 1
10790 _ACEOF
10791 GTK_COMPILES=yes
10792 fi
10793 done
10794
10795 if test "${GTK_COMPILES}" != "yes"; then
10796 if test "$USE_X_TOOLKIT" != "maybe"; then
10797 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10798 fi
10799 else
10800 HAVE_GTK=yes
10801
10802 $as_echo "#define USE_GTK 1" >>confdefs.h
10803
10804 GTK_OBJ="gtkutil.o $GTK_OBJ"
10805 USE_X_TOOLKIT=none
10806 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10807 :
10808 else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10810 closing open displays. This is no problem if you just use
10811 one display, but if you use more than one and close one of them
10812 Emacs may crash." >&5
10813 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10814 closing open displays. This is no problem if you just use
10815 one display, but if you use more than one and close one of them
10816 Emacs may crash." >&2;}
10817 sleep 3
10818 fi
10819 fi
10820
10821 fi
10822
10823
10824
10825 if test "${HAVE_GTK}" = "yes"; then
10826
10827 if test "$with_toolkit_scroll_bars" != no; then
10828 with_toolkit_scroll_bars=yes
10829 fi
10830
10831 HAVE_GTK_FILE_SELECTION=no
10832 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10833 #include <gtk/gtk.h>
10834 "
10835 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10836 HAVE_GTK_FILE_SELECTION=yes
10837 else
10838 HAVE_GTK_FILE_SELECTION=no
10839 fi
10840
10841 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10842 for ac_func in gtk_file_selection_new
10843 do :
10844 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10845 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_GTK_FILE_SELECTION_NEW 1
10848 _ACEOF
10849
10850 fi
10851 done
10852
10853 fi
10854
10855
10856 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10857 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10858 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10859 gtk_orientable_set_orientation \
10860 gtk_window_set_has_resize_grip
10861 do :
10862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10864 eval as_val=\$$as_ac_var
10865 if test "x$as_val" = x""yes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10868 _ACEOF
10869
10870 fi
10871 done
10872
10873 fi
10874
10875 HAVE_DBUS=no
10876 DBUS_OBJ=
10877 if test "${with_dbus}" = "yes"; then
10878
10879 succeeded=no
10880
10881 if test "$PKG_CONFIG" = "no" ; then
10882 HAVE_DBUS=no
10883 else
10884 PKG_CONFIG_MIN_VERSION=0.9.0
10885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10887 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10888
10889 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10891 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10892 edit_cflags="
10893 s,///*,/,g
10894 s/^/ /
10895 s/ -I/ $isystem/g
10896 s/^ //
10897 "
10898 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10899 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10901 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10902 succeeded=yes
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 DBUS_CFLAGS=""
10907 DBUS_LIBS=""
10908 ## If we have a custom action on failure, don't print errors, but
10909 ## do set a variable so people can do so.
10910 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10911
10912 fi
10913
10914
10915
10916 else
10917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10919 fi
10920 fi
10921
10922 if test $succeeded = yes; then
10923 HAVE_DBUS=yes
10924 else
10925 HAVE_DBUS=no
10926 fi
10927
10928 if test "$HAVE_DBUS" = yes; then
10929 LIBS="$LIBS $DBUS_LIBS"
10930
10931 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10932
10933 for ac_func in dbus_watch_get_unix_fd \
10934 dbus_validate_bus_name \
10935 dbus_validate_path \
10936 dbus_validate_interface \
10937 dbus_validate_member
10938 do :
10939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10941 eval as_val=\$$as_ac_var
10942 if test "x$as_val" = x""yes; then :
10943 cat >>confdefs.h <<_ACEOF
10944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 _ACEOF
10946
10947 fi
10948 done
10949
10950 DBUS_OBJ=dbusbind.o
10951 fi
10952 fi
10953
10954
10955 <<<<<<< TREE
10956 =======
10957 HAVE_GSETTINGS=no
10958 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10959
10960 succeeded=no
10961
10962 if test "$PKG_CONFIG" = "no" ; then
10963 HAVE_GSETTINGS=no
10964 else
10965 PKG_CONFIG_MIN_VERSION=0.9.0
10966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10968 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10969
10970 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10971 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10972 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10973 edit_cflags="
10974 s,///*,/,g
10975 s/^/ /
10976 s/ -I/ $isystem/g
10977 s/^ //
10978 "
10979 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10980 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10982 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10983 succeeded=yes
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 GSETTINGS_CFLAGS=""
10988 GSETTINGS_LIBS=""
10989 ## If we have a custom action on failure, don't print errors, but
10990 ## do set a variable so people can do so.
10991 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10992
10993 fi
10994
10995
10996
10997 else
10998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11000 fi
11001 fi
11002
11003 if test $succeeded = yes; then
11004 HAVE_GSETTINGS=yes
11005 else
11006 HAVE_GSETTINGS=no
11007 fi
11008
11009 if test "$HAVE_GSETTINGS" = "yes"; then
11010
11011 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11012
11013 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11014 SETTINGS_LIBS="$GSETTINGS_LIBS"
11015 fi
11016 fi
11017
11018 >>>>>>> MERGE-SOURCE
11019 HAVE_GCONF=no
11020 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11021
11022 succeeded=no
11023
11024 if test "$PKG_CONFIG" = "no" ; then
11025 HAVE_GCONF=no
11026 else
11027 PKG_CONFIG_MIN_VERSION=0.9.0
11028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11030 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11031
11032 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11033 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11034 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11035 edit_cflags="
11036 s,///*,/,g
11037 s/^/ /
11038 s/ -I/ $isystem/g
11039 s/^ //
11040 "
11041 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11042 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11044 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11045 succeeded=yes
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049 GCONF_CFLAGS=""
11050 GCONF_LIBS=""
11051 ## If we have a custom action on failure, don't print errors, but
11052 ## do set a variable so people can do so.
11053 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11054
11055 fi
11056
11057
11058
11059 else
11060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11062 fi
11063 fi
11064
11065 if test $succeeded = yes; then
11066 HAVE_GCONF=yes
11067 else
11068 HAVE_GCONF=no
11069 fi
11070
11071 if test "$HAVE_GCONF" = yes; then
11072
11073 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11074
11075 for ac_func in g_type_init
11076 do :
11077 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11078 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11079 cat >>confdefs.h <<_ACEOF
11080 #define HAVE_G_TYPE_INIT 1
11081 _ACEOF
11082
11083 fi
11084 done
11085
11086 fi
11087 fi
11088
11089 HAVE_LIBSELINUX=no
11090 LIBSELINUX_LIBS=
11091 if test "${with_selinux}" = "yes"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11093 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11094 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 ac_check_lib_save_LIBS=$LIBS
11098 LIBS="-lselinux $LIBS"
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char lgetfilecon ();
11109 int
11110 main ()
11111 {
11112 return lgetfilecon ();
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"; then :
11118 ac_cv_lib_selinux_lgetfilecon=yes
11119 else
11120 ac_cv_lib_selinux_lgetfilecon=no
11121 fi
11122 rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 LIBS=$ac_check_lib_save_LIBS
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11127 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11128 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11129 HAVE_LIBSELINUX=yes
11130 else
11131 HAVE_LIBSELINUX=no
11132 fi
11133
11134 if test "$HAVE_LIBSELINUX" = yes; then
11135
11136 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11137
11138 LIBSELINUX_LIBS=-lselinux
11139 fi
11140 fi
11141
11142
11143 HAVE_GNUTLS=no
11144 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11145 if test "${with_gnutls}" = "yes" ; then
11146
11147 succeeded=no
11148
11149 if test "$PKG_CONFIG" = "no" ; then
11150 HAVE_GNUTLS=no
11151 else
11152 PKG_CONFIG_MIN_VERSION=0.9.0
11153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11155 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11156
11157 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11158 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11159 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11160 edit_cflags="
11161 s,///*,/,g
11162 s/^/ /
11163 s/ -I/ $isystem/g
11164 s/^ //
11165 "
11166 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11167 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11169 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11170 succeeded=yes
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 LIBGNUTLS_CFLAGS=""
11175 LIBGNUTLS_LIBS=""
11176 ## If we have a custom action on failure, don't print errors, but
11177 ## do set a variable so people can do so.
11178 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11179
11180 fi
11181
11182
11183
11184 else
11185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11187 fi
11188 fi
11189
11190 if test $succeeded = yes; then
11191 HAVE_GNUTLS=yes
11192 else
11193 HAVE_GNUTLS=no
11194 fi
11195
11196 if test "${HAVE_GNUTLS}" = "yes"; then
11197
11198 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11199
11200 fi
11201
11202 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11203 LIBS="$LIBGNUTLS_LIBS $LIBS"
11204 for ac_func in gnutls_certificate_set_verify_function
11205 do :
11206 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11207 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11210 _ACEOF
11211 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11212 fi
11213 done
11214
11215
11216 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11217
11218 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11219
11220 fi
11221 fi
11222
11223
11224
11225
11226 HAVE_XAW3D=no
11227 LUCID_LIBW=
11228 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11229 if test "$with_xaw3d" != no; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11231 $as_echo_n "checking for xaw3d... " >&6; }
11232 if test "${emacs_cv_xaw3d+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 #include <X11/Intrinsic.h>
11239 #include <X11/Xaw3d/Simple.h>
11240 int
11241 main ()
11242 {
11243
11244 ;
11245 return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11250 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11251 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-lXaw3d $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 char XawScrollbarSetThumb ();
11266 int
11267 main ()
11268 {
11269 return XawScrollbarSetThumb ();
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11276 else
11277 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11284 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11285 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11286 emacs_cv_xaw3d=yes
11287 else
11288 emacs_cv_xaw3d=no
11289 fi
11290
11291 else
11292 emacs_cv_xaw3d=no
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 fi
11297
11298 else
11299 emacs_cv_xaw3d=no
11300 fi
11301 if test $emacs_cv_xaw3d = yes; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11303 $as_echo "yes; using Lucid toolkit" >&6; }
11304 USE_X_TOOLKIT=LUCID
11305 HAVE_XAW3D=yes
11306 LUCID_LIBW=-lXaw3d
11307
11308 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11309
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11314 $as_echo_n "checking for libXaw... " >&6; }
11315 if test "${emacs_cv_xaw+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320
11321 #include <X11/Intrinsic.h>
11322 #include <X11/Xaw/Simple.h>
11323 int
11324 main ()
11325 {
11326
11327 ;
11328 return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 emacs_cv_xaw=yes
11333 else
11334 emacs_cv_xaw=no
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 fi
11339
11340 if test $emacs_cv_xaw = yes; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11342 $as_echo "yes; using Lucid toolkit" >&6; }
11343 USE_X_TOOLKIT=LUCID
11344 LUCID_LIBW=-lXaw
11345 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11346 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11347 else
11348 as_fn_error "No X toolkit could be found.
11349 If you are sure you want Emacs compiled without an X toolkit, pass
11350 --with-x-toolkit=no
11351 to configure. Otherwise, install the development libraries for the toolkit
11352 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11353 fi
11354 fi
11355 fi
11356
11357 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11358
11359 LIBXTR6=
11360 if test "${USE_X_TOOLKIT}" != "none"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11362 $as_echo_n "checking X11 toolkit version... " >&6; }
11363 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 #include <X11/Intrinsic.h>
11369 int
11370 main ()
11371 {
11372 #if XtSpecificationRelease < 6
11373 fail;
11374 #endif
11375
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381 emacs_cv_x11_toolkit_version_6=yes
11382 else
11383 emacs_cv_x11_toolkit_version_6=no
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 fi
11388
11389 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11390 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11392 $as_echo "6 or newer" >&6; }
11393
11394 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11395
11396 LIBXTR6="-lSM -lICE"
11397 case "$opsys" in
11398 ## Use libw.a along with X11R6 Xt.
11399 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11400 esac
11401 else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11403 $as_echo "before 6" >&6; }
11404 fi
11405
11406 OLDLIBS="$LIBS"
11407 if test x$HAVE_X11XTR6 = xyes; then
11408 LIBS="-lXt -lSM -lICE $LIBS"
11409 else
11410 LIBS="-lXt $LIBS"
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11413 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11414 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-lXmu $LIBS"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char XmuConvertStandardSelection ();
11429 int
11430 main ()
11431 {
11432 return XmuConvertStandardSelection ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11439 else
11440 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11447 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11448 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_LIBXMU 1
11451 _ACEOF
11452
11453 LIBS="-lXmu $LIBS"
11454
11455 fi
11456
11457 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11458 fi
11459
11460
11461 LIBXMU=-lXmu
11462 case $opsys in
11463 ## These systems don't supply Xmu.
11464 hpux* | aix4-2 )
11465 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11466 ;;
11467 esac
11468
11469
11470 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11471 if test "${HAVE_X11}" = "yes"; then
11472 if test "${USE_X_TOOLKIT}" != "none"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11474 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11475 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-lXext $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char XShapeQueryExtension ();
11490 int
11491 main ()
11492 {
11493 return XShapeQueryExtension ();
11494 ;
11495 return 0;
11496 }
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_Xext_XShapeQueryExtension=yes
11500 else
11501 ac_cv_lib_Xext_XShapeQueryExtension=no
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11508 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11509 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_LIBXEXT 1
11512 _ACEOF
11513
11514 LIBS="-lXext $LIBS"
11515
11516 fi
11517
11518 fi
11519 fi
11520
11521 LIBXP=
11522 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11524 $as_echo_n "checking for Motif version 2.1... " >&6; }
11525 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <Xm/Xm.h>
11531 int
11532 main ()
11533 {
11534 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11535 int x = 5;
11536 #else
11537 Motif version prior to 2.1.
11538 #endif
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544 emacs_cv_motif_version_2_1=yes
11545 else
11546 emacs_cv_motif_version_2_1=no
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11551 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11552 if test $emacs_cv_motif_version_2_1 = yes; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11554 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11555 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-lXp $LIBS"
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char XpCreateContext ();
11570 int
11571 main ()
11572 {
11573 return XpCreateContext ();
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_Xp_XpCreateContext=yes
11580 else
11581 ac_cv_lib_Xp_XpCreateContext=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11588 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11589 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11590 LIBXP=-lXp
11591 fi
11592
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11595 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11596 if test "${emacs_cv_lesstif+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 # We put this in CFLAGS temporarily to precede other -I options
11600 # that might be in CFLAGS temporarily.
11601 # We put this in CPPFLAGS where it precedes the other -I options.
11602 OLD_CPPFLAGS=$CPPFLAGS
11603 OLD_CFLAGS=$CFLAGS
11604 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11605 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11609 int
11610 main ()
11611 {
11612 int x = 5;
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_compile "$LINENO"; then :
11618 emacs_cv_lesstif=yes
11619 else
11620 emacs_cv_lesstif=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: $emacs_cv_lesstif" >&5
11625 $as_echo "$emacs_cv_lesstif" >&6; }
11626 if test $emacs_cv_lesstif = yes; then
11627 # Make sure this -I option remains in CPPFLAGS after it is set
11628 # back to REAL_CPPFLAGS.
11629 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11630 # have those other -I options anyway. Ultimately, having this
11631 # directory ultimately in CPPFLAGS will be enough.
11632 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11633 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11634 else
11635 CFLAGS=$OLD_CFLAGS
11636 CPPFLAGS=$OLD_CPPFLAGS
11637 fi
11638 fi
11639 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11640 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11641
11642 else
11643 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11644 fi
11645
11646
11647 fi
11648
11649
11650 USE_TOOLKIT_SCROLL_BARS=no
11651 if test "${with_toolkit_scroll_bars}" != "no"; then
11652 if test "${USE_X_TOOLKIT}" != "none"; then
11653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11654 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11655
11656 HAVE_XAW3D=no
11657 USE_TOOLKIT_SCROLL_BARS=yes
11658 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11659 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11660
11661 USE_TOOLKIT_SCROLL_BARS=yes
11662 fi
11663 elif test "${HAVE_GTK}" = "yes"; then
11664 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11665
11666 USE_TOOLKIT_SCROLL_BARS=yes
11667 elif test "${HAVE_NS}" = "yes"; then
11668 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11669
11670 USE_TOOLKIT_SCROLL_BARS=yes
11671 fi
11672 fi
11673
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676
11677 #include <X11/Xlib.h>
11678 #include <X11/Xresource.h>
11679 int
11680 main ()
11681 {
11682 XIMProc callback;
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_c_try_compile "$LINENO"; then :
11688 HAVE_XIM=yes
11689
11690 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11691
11692 else
11693 HAVE_XIM=no
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696
11697
11698 if test "${with_xim}" != "no"; then
11699
11700 $as_echo "#define USE_XIM 1" >>confdefs.h
11701
11702 fi
11703
11704
11705 if test "${HAVE_XIM}" != "no"; then
11706 late_CFLAGS=$CFLAGS
11707 if test "$GCC" = yes; then
11708 CFLAGS="$CFLAGS --pedantic-errors"
11709 fi
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712
11713 #include <X11/Xlib.h>
11714 #include <X11/Xresource.h>
11715 int
11716 main ()
11717 {
11718 Display *display;
11719 XrmDatabase db;
11720 char *res_name;
11721 char *res_class;
11722 XIMProc callback;
11723 XPointer *client_data;
11724 #ifndef __GNUC__
11725 /* If we're not using GCC, it's probably not XFree86, and this is
11726 probably right, but we can't use something like --pedantic-errors. */
11727 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11728 char*, XIMProc, XPointer*);
11729 #endif
11730 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11731 client_data);
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_compile "$LINENO"; then :
11737 emacs_cv_arg6_star=yes
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 if test "$emacs_cv_arg6_star" = yes; then
11741 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11742
11743 else
11744 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11745
11746 fi
11747 CFLAGS=$late_CFLAGS
11748 fi
11749
11750 ### Start of font-backend (under any platform) section.
11751 # (nothing here yet -- this is a placeholder)
11752 ### End of font-backend (under any platform) section.
11753
11754 ### Start of font-backend (under X11) section.
11755 if test "${HAVE_X11}" = "yes"; then
11756
11757 succeeded=no
11758
11759 if test "$PKG_CONFIG" = "no" ; then
11760 HAVE_FC=no
11761 else
11762 PKG_CONFIG_MIN_VERSION=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11765 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11766
11767 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11768 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11769 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11770 edit_cflags="
11771 s,///*,/,g
11772 s/^/ /
11773 s/ -I/ $isystem/g
11774 s/^ //
11775 "
11776 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11777 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11779 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11780 succeeded=yes
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 FONTCONFIG_CFLAGS=""
11785 FONTCONFIG_LIBS=""
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so.
11788 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11789
11790 fi
11791
11792
11793
11794 else
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11797 fi
11798 fi
11799
11800 if test $succeeded = yes; then
11801 HAVE_FC=yes
11802 else
11803 HAVE_FC=no
11804 fi
11805
11806
11807 ## Use -lXft if available, unless `--with-xft=no'.
11808 HAVE_XFT=maybe
11809 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11810 with_xft="no";
11811 fi
11812 if test "x${with_xft}" != "xno"; then
11813
11814
11815 succeeded=no
11816
11817 if test "$PKG_CONFIG" = "no" ; then
11818 HAVE_XFT=no
11819 else
11820 PKG_CONFIG_MIN_VERSION=0.9.0
11821 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11823 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11824
11825 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11826 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11827 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11828 edit_cflags="
11829 s,///*,/,g
11830 s/^/ /
11831 s/ -I/ $isystem/g
11832 s/^ //
11833 "
11834 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11835 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11837 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11838 succeeded=yes
11839 else
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 XFT_CFLAGS=""
11843 XFT_LIBS=""
11844 ## If we have a custom action on failure, don't print errors, but
11845 ## do set a variable so people can do so.
11846 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11847
11848 fi
11849
11850
11851
11852 else
11853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11855 fi
11856 fi
11857
11858 if test $succeeded = yes; then
11859 :
11860 else
11861 HAVE_XFT=no
11862 fi
11863
11864 ## Because xftfont.c uses XRenderQueryExtension, we also
11865 ## need to link to -lXrender.
11866 HAVE_XRENDER=no
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11868 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11869 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lXrender $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char XRenderQueryExtension ();
11884 int
11885 main ()
11886 {
11887 return XRenderQueryExtension ();
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11894 else
11895 ac_cv_lib_Xrender_XRenderQueryExtension=no
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11902 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11903 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11904 HAVE_XRENDER=yes
11905 fi
11906
11907 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11908 OLD_CPPFLAGS="$CPPFLAGS"
11909 OLD_CFLAGS="$CFLAGS"
11910 OLD_LIBS="$LIBS"
11911 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11912 CFLAGS="$CFLAGS $XFT_CFLAGS"
11913 XFT_LIBS="-lXrender $XFT_LIBS"
11914 LIBS="$XFT_LIBS $LIBS"
11915 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11916 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11918 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11919 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lXft $XFT_LIBS $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char XftFontOpen ();
11934 int
11935 main ()
11936 {
11937 return XftFontOpen ();
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_Xft_XftFontOpen=yes
11944 else
11945 ac_cv_lib_Xft_XftFontOpen=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11952 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11953 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11954 HAVE_XFT=yes
11955 fi
11956
11957 fi
11958
11959
11960
11961 if test "${HAVE_XFT}" = "yes"; then
11962
11963 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11964
11965
11966 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11967 else
11968 CPPFLAGS="$OLD_CPPFLAGS"
11969 CFLAGS="$OLD_CFLAGS"
11970 LIBS="$OLD_LIBS"
11971 fi # "${HAVE_XFT}" = "yes"
11972 fi # "$HAVE_XFT" != no
11973 fi # "x${with_xft}" != "xno"
11974
11975 ## We used to allow building with FreeType and without Xft.
11976 ## However, the ftx font backend driver is not in good shape.
11977 if test "$HAVE_XFT" != "yes"; then
11978 HAVE_XFT=no
11979 HAVE_FREETYPE=no
11980 else
11981
11982 succeeded=no
11983
11984 if test "$PKG_CONFIG" = "no" ; then
11985 HAVE_FREETYPE=no
11986 else
11987 PKG_CONFIG_MIN_VERSION=0.9.0
11988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11990 $as_echo_n "checking for freetype2... " >&6; }
11991
11992 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11993 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11994 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11995 edit_cflags="
11996 s,///*,/,g
11997 s/^/ /
11998 s/ -I/ $isystem/g
11999 s/^ //
12000 "
12001 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12002 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12004 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12005 succeeded=yes
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 FREETYPE_CFLAGS=""
12010 FREETYPE_LIBS=""
12011 ## If we have a custom action on failure, don't print errors, but
12012 ## do set a variable so people can do so.
12013 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12014
12015 fi
12016
12017
12018
12019 else
12020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12022 fi
12023 fi
12024
12025 if test $succeeded = yes; then
12026 HAVE_FREETYPE=yes
12027 else
12028 HAVE_FREETYPE=no
12029 fi
12030
12031
12032 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12033 fi
12034
12035 HAVE_LIBOTF=no
12036 if test "${HAVE_FREETYPE}" = "yes"; then
12037
12038 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12039
12040 if test "${with_libotf}" != "no"; then
12041
12042 succeeded=no
12043
12044 if test "$PKG_CONFIG" = "no" ; then
12045 HAVE_LIBOTF=no
12046 else
12047 PKG_CONFIG_MIN_VERSION=0.9.0
12048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12050 $as_echo_n "checking for libotf... " >&6; }
12051
12052 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12053 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12054 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12055 edit_cflags="
12056 s,///*,/,g
12057 s/^/ /
12058 s/ -I/ $isystem/g
12059 s/^ //
12060 "
12061 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12062 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12064 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12065 succeeded=yes
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 LIBOTF_CFLAGS=""
12070 LIBOTF_LIBS=""
12071 ## If we have a custom action on failure, don't print errors, but
12072 ## do set a variable so people can do so.
12073 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12074
12075 fi
12076
12077
12078
12079 else
12080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12082 fi
12083 fi
12084
12085 if test $succeeded = yes; then
12086 HAVE_LIBOTF=yes
12087 else
12088 HAVE_LIBOTF=no
12089 fi
12090
12091 if test "$HAVE_LIBOTF" = "yes"; then
12092
12093 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12096 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12097 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-lotf $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char OTF_get_variation_glyphs ();
12112 int
12113 main ()
12114 {
12115 return OTF_get_variation_glyphs ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12122 else
12123 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12130 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12131 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12132 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12133 else
12134 HAVE_OTF_GET_VARIATION_GLYPHS=no
12135 fi
12136
12137 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12138
12139 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12140
12141 fi
12142 fi
12143 fi
12144 fi
12145
12146 HAVE_M17N_FLT=no
12147 if test "${HAVE_LIBOTF}" = yes; then
12148 if test "${with_m17n_flt}" != "no"; then
12149
12150 succeeded=no
12151
12152 if test "$PKG_CONFIG" = "no" ; then
12153 HAVE_M17N_FLT=no
12154 else
12155 PKG_CONFIG_MIN_VERSION=0.9.0
12156 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12158 $as_echo_n "checking for m17n-flt... " >&6; }
12159
12160 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12161 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12162 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12163 edit_cflags="
12164 s,///*,/,g
12165 s/^/ /
12166 s/ -I/ $isystem/g
12167 s/^ //
12168 "
12169 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12170 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12172 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12173 succeeded=yes
12174 else
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 M17N_FLT_CFLAGS=""
12178 M17N_FLT_LIBS=""
12179 ## If we have a custom action on failure, don't print errors, but
12180 ## do set a variable so people can do so.
12181 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12182
12183 fi
12184
12185
12186
12187 else
12188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12190 fi
12191 fi
12192
12193 if test $succeeded = yes; then
12194 HAVE_M17N_FLT=yes
12195 else
12196 HAVE_M17N_FLT=no
12197 fi
12198
12199 if test "$HAVE_M17N_FLT" = "yes"; then
12200
12201 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12202
12203 fi
12204 fi
12205 fi
12206 else
12207 HAVE_XFT=no
12208 HAVE_FREETYPE=no
12209 HAVE_LIBOTF=no
12210 HAVE_M17N_FLT=no
12211 fi
12212
12213 ### End of font-backend (under X11) section.
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224 ### Use -lXpm if available, unless `--with-xpm=no'.
12225 HAVE_XPM=no
12226 LIBXPM=
12227 if test "${HAVE_X11}" = "yes"; then
12228 if test "${with_xpm}" != "no"; then
12229 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12230 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12232 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12233 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lXpm -lX11 $LIBS"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char XpmReadFileToPixmap ();
12248 int
12249 main ()
12250 {
12251 return XpmReadFileToPixmap ();
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12258 else
12259 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12266 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12267 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12268 HAVE_XPM=yes
12269 fi
12270
12271 fi
12272
12273
12274 if test "${HAVE_XPM}" = "yes"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12276 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279 #include "X11/xpm.h"
12280 #ifndef XpmReturnAllocPixels
12281 no_return_alloc_pixels
12282 #endif
12283
12284 _ACEOF
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12287 HAVE_XPM=no
12288 else
12289 HAVE_XPM=yes
12290 fi
12291 rm -f conftest*
12292
12293
12294 if test "${HAVE_XPM}" = "yes"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296 $as_echo "yes" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301 fi
12302 fi
12303
12304 if test "${HAVE_XPM}" = "yes"; then
12305
12306 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12307
12308 LIBXPM=-lXpm
12309 fi
12310 fi
12311
12312
12313 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12314 HAVE_JPEG=no
12315 LIBJPEG=
12316 if test "${HAVE_X11}" = "yes"; then
12317 if test "${with_jpeg}" != "no"; then
12318 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12319 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12321 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12322 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-ljpeg $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char jpeg_destroy_compress ();
12337 int
12338 main ()
12339 {
12340 return jpeg_destroy_compress ();
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12347 else
12348 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12355 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12356 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12357 HAVE_JPEG=yes
12358 fi
12359
12360 fi
12361
12362
12363 fi
12364
12365 if test "${HAVE_JPEG}" = "yes"; then
12366 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12367
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <jpeglib.h>
12371 version=JPEG_LIB_VERSION
12372
12373 _ACEOF
12374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12375 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12376 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12377
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12380 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12381 HAVE_JPEG=no
12382 fi
12383 rm -f conftest*
12384
12385 fi
12386 if test "${HAVE_JPEG}" = "yes"; then
12387 LIBJPEG=-ljpeg
12388 fi
12389 fi
12390
12391
12392 ### Use -lpng if available, unless `--with-png=no'.
12393 HAVE_PNG=no
12394 LIBPNG=
12395 if test "${HAVE_X11}" = "yes"; then
12396 if test "${with_png}" != "no"; then
12397 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12398 # in /usr/include/libpng.
12399 for ac_header in png.h libpng/png.h
12400 do :
12401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12403 eval as_val=\$$as_ac_Header
12404 if test "x$as_val" = x""yes; then :
12405 cat >>confdefs.h <<_ACEOF
12406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12407 _ACEOF
12408
12409 fi
12410
12411 done
12412
12413 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12415 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12416 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lpng -lz -lm $LIBS"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char png_get_channels ();
12431 int
12432 main ()
12433 {
12434 return png_get_channels ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_lib_png_png_get_channels=yes
12441 else
12442 ac_cv_lib_png_png_get_channels=no
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12449 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12450 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12451 HAVE_PNG=yes
12452 fi
12453
12454 fi
12455 fi
12456
12457 if test "${HAVE_PNG}" = "yes"; then
12458
12459 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12460
12461 LIBPNG="-lpng -lz -lm"
12462 fi
12463 fi
12464
12465
12466 ### Use -ltiff if available, unless `--with-tiff=no'.
12467 HAVE_TIFF=no
12468 LIBTIFF=
12469 if test "${HAVE_X11}" = "yes"; then
12470 if test "${with_tiff}" != "no"; then
12471 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12472 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12473 tifflibs="-lz -lm"
12474 # At least one tiff package requires the jpeg library.
12475 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12477 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12478 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-ltiff $tifflibs $LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char TIFFGetVersion ();
12493 int
12494 main ()
12495 {
12496 return TIFFGetVersion ();
12497 ;
12498 return 0;
12499 }
12500 _ACEOF
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_lib_tiff_TIFFGetVersion=yes
12503 else
12504 ac_cv_lib_tiff_TIFFGetVersion=no
12505 fi
12506 rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12511 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12512 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12513 HAVE_TIFF=yes
12514 fi
12515
12516 fi
12517
12518
12519 fi
12520
12521 if test "${HAVE_TIFF}" = "yes"; then
12522
12523 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12524
12525 LIBTIFF=-ltiff
12526 fi
12527 fi
12528
12529
12530 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12531 HAVE_GIF=no
12532 LIBGIF=
12533 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12534 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12536 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12537 # Earlier versions can crash Emacs.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12539 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12540 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-lgif $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char EGifPutExtensionLast ();
12555 int
12556 main ()
12557 {
12558 return EGifPutExtensionLast ();
12559 ;
12560 return 0;
12561 }
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_gif_EGifPutExtensionLast=yes
12565 else
12566 ac_cv_lib_gif_EGifPutExtensionLast=no
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12573 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12574 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12575 HAVE_GIF=yes
12576 else
12577 HAVE_GIF=maybe
12578 fi
12579
12580 fi
12581
12582
12583
12584 if test "$HAVE_GIF" = yes; then
12585 LIBGIF=-lgif
12586 elif test "$HAVE_GIF" = maybe; then
12587 # If gif_lib.h but no libgif, try libungif.
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12589 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12590 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-lungif $LIBS"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char EGifPutExtensionLast ();
12605 int
12606 main ()
12607 {
12608 return EGifPutExtensionLast ();
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_link "$LINENO"; then :
12614 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12615 else
12616 ac_cv_lib_ungif_EGifPutExtensionLast=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12623 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12624 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12625 HAVE_GIF=yes
12626 else
12627 HAVE_GIF=no
12628 fi
12629
12630 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12631 fi
12632
12633 if test "${HAVE_GIF}" = "yes"; then
12634
12635 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12636
12637 fi
12638 fi
12639
12640
12641 if test "${HAVE_X11}" = "yes"; then
12642 MISSING=""
12643 WITH_NO=""
12644 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12645 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12646 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12647 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12648 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12649 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12650 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12651 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12652 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12653 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12654
12655 if test "X${MISSING}" != X; then
12656 as_fn_error "The following required libraries were not found:
12657 $MISSING
12658 Maybe some development libraries/packages are missing?
12659 If you don't want to link with them give
12660 $WITH_NO
12661 as options to configure" "$LINENO" 5
12662 fi
12663 fi
12664
12665 ### Use -lgpm if available, unless `--with-gpm=no'.
12666 HAVE_GPM=no
12667 LIBGPM=
12668 if test "${with_gpm}" != "no"; then
12669 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12670 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12672 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12673 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-lgpm $LIBS"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char Gpm_Open ();
12688 int
12689 main ()
12690 {
12691 return Gpm_Open ();
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_gpm_Gpm_Open=yes
12698 else
12699 ac_cv_lib_gpm_Gpm_Open=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12706 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12707 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12708 HAVE_GPM=yes
12709 fi
12710
12711 fi
12712
12713
12714
12715 if test "${HAVE_GPM}" = "yes"; then
12716
12717 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12718
12719 LIBGPM=-lgpm
12720 fi
12721 fi
12722
12723
12724
12725
12726
12727
12728 GNUSTEP_CFLAGS=
12729 ### Use NeXTstep API to implement GUI.
12730 if test "${HAVE_NS}" = "yes"; then
12731
12732 $as_echo "#define HAVE_NS 1" >>confdefs.h
12733
12734 if test "${NS_IMPL_COCOA}" = "yes"; then
12735
12736 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12737
12738 fi
12739 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12740
12741 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12742
12743 # See also .m.o rule in Makefile.in */
12744 # FIXME: are all these flags really needed? Document here why. */
12745 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12746 ## Extra CFLAGS applied to src/*.m files.
12747 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"
12748 fi
12749 # We also have mouse menus.
12750 HAVE_MENUS=yes
12751 OTHER_FILES=ns-app
12752 fi
12753
12754
12755 ### Use session management (-lSM -lICE) if available
12756 HAVE_X_SM=no
12757 LIBXSM=
12758 if test "${HAVE_X11}" = "yes"; then
12759 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12760 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12762 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12763 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-lSM -lICE $LIBS"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 char SmcOpenConnection ();
12778 int
12779 main ()
12780 {
12781 return SmcOpenConnection ();
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_link "$LINENO"; then :
12787 ac_cv_lib_SM_SmcOpenConnection=yes
12788 else
12789 ac_cv_lib_SM_SmcOpenConnection=no
12790 fi
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12796 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12797 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12798 HAVE_X_SM=yes
12799 fi
12800
12801 fi
12802
12803
12804
12805 if test "${HAVE_X_SM}" = "yes"; then
12806
12807 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12808
12809 LIBXSM="-lSM -lICE"
12810 case "$LIBS" in
12811 *-lSM*) ;;
12812 *) LIBS="$LIBXSM $LIBS" ;;
12813 esac
12814 fi
12815 fi
12816
12817
12818 ### Use libxml (-lxml2) if available
12819 if test "${with_xml2}" != "no"; then
12820 ### I'm not sure what the version number should be, so I just guessed.
12821
12822 succeeded=no
12823
12824 if test "$PKG_CONFIG" = "no" ; then
12825 HAVE_LIBXML2=no
12826 else
12827 PKG_CONFIG_MIN_VERSION=0.9.0
12828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12830 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12831
12832 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12833 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12834 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12835 edit_cflags="
12836 s,///*,/,g
12837 s/^/ /
12838 s/ -I/ $isystem/g
12839 s/^ //
12840 "
12841 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12842 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12844 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12845 succeeded=yes
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 LIBXML2_CFLAGS=""
12850 LIBXML2_LIBS=""
12851 ## If we have a custom action on failure, don't print errors, but
12852 ## do set a variable so people can do so.
12853 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12854
12855 fi
12856
12857
12858
12859 else
12860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12862 fi
12863 fi
12864
12865 if test $succeeded = yes; then
12866 HAVE_LIBXML2=yes
12867 else
12868 HAVE_LIBXML2=no
12869 fi
12870
12871 if test "${HAVE_LIBXML2}" = "yes"; then
12872 LIBS="$LIBXML2_LIBS $LIBS"
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12874 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12875 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-lxml2 $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char htmlReadMemory ();
12890 int
12891 main ()
12892 {
12893 return htmlReadMemory ();
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_xml2_htmlReadMemory=yes
12900 else
12901 ac_cv_lib_xml2_htmlReadMemory=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12908 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12909 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12910 HAVE_LIBXML2=yes
12911 else
12912 HAVE_LIBXML2=no
12913 fi
12914
12915 if test "${HAVE_LIBXML2}" = "yes"; then
12916
12917 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12918
12919 else
12920 LIBXML2_LIBS=""
12921 LIBXML2_CFLAGS=""
12922 fi
12923 fi
12924 fi
12925
12926
12927
12928 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12930 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12931 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 #include <netdb.h>
12937 int
12938 main ()
12939 {
12940 return h_errno;
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 emacs_cv_netdb_declares_h_errno=yes
12947 else
12948 emacs_cv_netdb_declares_h_errno=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12954 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12955 if test $emacs_cv_netdb_declares_h_errno = yes; then
12956
12957 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12958
12959 fi
12960
12961 # fmod, logb, and frexp are found in -lm on most systems.
12962 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12964 $as_echo_n "checking for sqrt in -lm... " >&6; }
12965 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 ac_check_lib_save_LIBS=$LIBS
12969 LIBS="-lm $LIBS"
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char sqrt ();
12980 int
12981 main ()
12982 {
12983 return sqrt ();
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_lib_m_sqrt=yes
12990 else
12991 ac_cv_lib_m_sqrt=no
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12998 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12999 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_LIBM 1
13002 _ACEOF
13003
13004 LIBS="-lm $LIBS"
13005
13006 fi
13007
13008
13009 # Check for mail-locking functions in a "mail" library. Probably this should
13010 # have the same check as for liblockfile below.
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13012 $as_echo_n "checking for maillock in -lmail... " >&6; }
13013 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 ac_check_lib_save_LIBS=$LIBS
13017 LIBS="-lmail $LIBS"
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13020
13021 /* Override any GCC internal prototype to avoid an error.
13022 Use char because int might match the return type of a GCC
13023 builtin and then its argument prototype would still apply. */
13024 #ifdef __cplusplus
13025 extern "C"
13026 #endif
13027 char maillock ();
13028 int
13029 main ()
13030 {
13031 return maillock ();
13032 ;
13033 return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_lib_mail_maillock=yes
13038 else
13039 ac_cv_lib_mail_maillock=no
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 LIBS=$ac_check_lib_save_LIBS
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13046 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13047 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13048 have_mail=yes
13049 else
13050 have_mail=no
13051 fi
13052
13053 if test $have_mail = yes; then
13054 LIBS_MAIL=-lmail
13055 LIBS="$LIBS_MAIL $LIBS"
13056
13057 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13058
13059 else
13060 LIBS_MAIL=
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13063 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13064 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-llockfile $LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 char maillock ();
13079 int
13080 main ()
13081 {
13082 return maillock ();
13083 ;
13084 return 0;
13085 }
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_lib_lockfile_maillock=yes
13089 else
13090 ac_cv_lib_lockfile_maillock=no
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13094 LIBS=$ac_check_lib_save_LIBS
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13097 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13098 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13099 have_lockfile=yes
13100 else
13101 have_lockfile=no
13102 fi
13103
13104 if test $have_lockfile = yes; then
13105 LIBS_MAIL=-llockfile
13106 LIBS="$LIBS_MAIL $LIBS"
13107
13108 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13109
13110 else
13111 # If we have the shared liblockfile, assume we must use it for mail
13112 # locking (e.g. Debian). If we couldn't link against liblockfile
13113 # (no liblockfile.a installed), ensure that we don't need to.
13114 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13115 set dummy liblockfile.so; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 if test -n "$liblockfile"; then
13122 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13126 for as_dir in $as_dummy
13127 do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_liblockfile="yes"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13135 fi
13136 done
13137 done
13138 IFS=$as_save_IFS
13139
13140 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13141 fi
13142 fi
13143 liblockfile=$ac_cv_prog_liblockfile
13144 if test -n "$liblockfile"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13146 $as_echo "$liblockfile" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151
13152
13153 if test $ac_cv_prog_liblockfile = yes; then
13154 as_fn_error "Shared liblockfile found but can't link against it.
13155 This probably means that movemail could lose mail.
13156 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13157 fi
13158 fi
13159 for ac_func in touchlock
13160 do :
13161 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13162 if test "x$ac_cv_func_touchlock" = x""yes; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_TOUCHLOCK 1
13165 _ACEOF
13166
13167 fi
13168 done
13169
13170
13171
13172
13173
13174
13175 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13176 ## interlock access to the mail spool. The alternative is a lock file named
13177 ## /usr/spool/mail/$USER.lock.
13178 mail_lock=no
13179 case "$opsys" in
13180 aix4-2) mail_lock="lockf" ;;
13181
13182 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13183
13184 ## On GNU/Linux systems, both methods are used by various mail programs.
13185 ## I assume most people are using newer mailers that have heard of flock.
13186 ## Change this if you need to.
13187 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13188 ## configure gets the right answers, and that means *NOT* using flock.
13189 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13190 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13191 ## Debian maintainer hasn't provided a clean fix for Emacs.
13192 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13193 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13194 ## correct logic. -- fx
13195 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13196 ## liblockfile is a Free Software replacement for libmail, used on
13197 ## Debian systems and elsewhere. -rfr.
13198 gnu-*)
13199 mail_lock="flock"
13200 if test $have_mail = yes || test $have_lockfile = yes; then
13201 test $ac_cv_header_maillock_h = yes && mail_lock=no
13202 fi
13203 ;;
13204 esac
13205
13206 BLESSMAIL_TARGET=
13207 case "$mail_lock" in
13208 flock)
13209 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13210 ;;
13211
13212 lockf)
13213 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13214 ;;
13215
13216 *) BLESSMAIL_TARGET="need-blessmail" ;;
13217 esac
13218
13219
13220
13221 for ac_func in gethostname \
13222 rename closedir mkdir rmdir getrusage get_current_dir_name \
13223 random lrand48 logb frexp fmod rint cbrt setsid \
13224 strerror fpathconf select euidaccess getpagesize setlocale \
13225 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13226 __fpending strsignal setitimer \
13227 sendto recvfrom getsockname getpeername \
13228 gai_strerror mkstemp getline getdelim fsync sync \
13229 difftime posix_memalign \
13230 getpwent endpwent getgrent endgrent \
13231 cfmakeraw cfsetspeed copysign __executable_start
13232 do :
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13235 eval as_val=\$$as_ac_var
13236 if test "x$as_val" = x""yes; then :
13237 cat >>confdefs.h <<_ACEOF
13238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13239 _ACEOF
13240
13241 fi
13242 done
13243
13244
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13246 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13247 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252
13253 int
13254 main ()
13255 {
13256 __builtin_unwind_init ();
13257 ;
13258 return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 emacs_cv_func___builtin_unwind_init=yes
13263 else
13264 emacs_cv_func___builtin_unwind_init=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13270 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13271 if test $emacs_cv_func___builtin_unwind_init = yes; then
13272
13273 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13274
13275 fi
13276
13277
13278
13279
13280
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13282 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13283 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 while :; do
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <sys/types.h> /* for off_t */
13290 #include <stdio.h>
13291 int
13292 main ()
13293 {
13294 int (*fp) (FILE *, off_t, int) = fseeko;
13295 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_link "$LINENO"; then :
13301 ac_cv_sys_largefile_source=no; break
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #define _LARGEFILE_SOURCE 1
13308 #include <sys/types.h> /* for off_t */
13309 #include <stdio.h>
13310 int
13311 main ()
13312 {
13313 int (*fp) (FILE *, off_t, int) = fseeko;
13314 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 ac_cv_sys_largefile_source=1; break
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 ac_cv_sys_largefile_source=unknown
13325 break
13326 done
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13329 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13330 case $ac_cv_sys_largefile_source in #(
13331 no | unknown) ;;
13332 *)
13333 cat >>confdefs.h <<_ACEOF
13334 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13335 _ACEOF
13336 ;;
13337 esac
13338 rm -rf conftest*
13339
13340 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13341 # in glibc 2.1.3, but that breaks too many other things.
13342 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13343 if test $ac_cv_sys_largefile_source != unknown; then
13344
13345 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13346
13347 fi
13348
13349
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13351 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13352 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 # Use it with a single arg.
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 $ac_includes_default
13359 int
13360 main ()
13361 {
13362 getpgrp (0);
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368 ac_cv_func_getpgrp_void=no
13369 else
13370 ac_cv_func_getpgrp_void=yes
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13376 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13377 if test $ac_cv_func_getpgrp_void = yes; then
13378
13379 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13380
13381 fi
13382
13383
13384 <<<<<<< TREE
13385 # Configure gnulib.
13386 =======
13387 # UNIX98 PTYs.
13388 for ac_func in grantpt
13389 do :
13390 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13391 if test "x$ac_cv_func_grantpt" = x""yes; then :
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_GRANTPT 1
13394 _ACEOF
13395
13396 fi
13397 done
13398
13399
13400 # PTY-related GNU extensions.
13401 for ac_func in getpt
13402 do :
13403 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13404 if test "x$ac_cv_func_getpt" = x""yes; then :
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_GETPT 1
13407 _ACEOF
13408
13409 fi
13410 done
13411
13412
13413 # Check this now, so that we will NOT find the above functions in ncurses.
13414 # That is because we have not set up to link ncurses in lib-src.
13415 # It's better to believe a function is not available
13416 # than to expect to find it in ncurses.
13417 # Also we need tputs and friends to be able to build at all.
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13419 $as_echo_n "checking for library containing tputs... " >&6; }
13420 # Run a test program that contains a call to tputs, a call that is
13421 # never executed. This tests whether a pre-'main' dynamic linker
13422 # works with the library. It's too much trouble to actually call
13423 # tputs in the test program, due to portability hassles. When
13424 # cross-compiling, assume the test program will run if it links.
13425
13426 # Maybe curses should be tried earlier?
13427 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13428 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13429 OLIBS=$LIBS
13430 if test -z "$tputs_library"; then
13431 LIBS_TERMCAP=
13432 msg='none required'
13433 else
13434 LIBS_TERMCAP=-l$tputs_library
13435 msg=$LIBS_TERMCAP
13436 LIBS="$LIBS_TERMCAP $LIBS"
13437 fi
13438 if test "$cross_compiling" = yes; then :
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441
13442 extern void tputs (const char *, int, int (*)(int));
13443 int main (int argc, char **argv)
13444 {
13445 if (argc == 10000)
13446 tputs (argv[0], 0, 0);
13447 return 0;
13448 }
13449
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452
13453 else
13454 msg=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13458 else
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461
13462 extern void tputs (const char *, int, int (*)(int));
13463 int main (int argc, char **argv)
13464 {
13465 if (argc == 10000)
13466 tputs (argv[0], 0, 0);
13467 return 0;
13468 }
13469
13470 _ACEOF
13471 if ac_fn_c_try_run "$LINENO"; then :
13472
13473 else
13474 msg=no
13475 fi
13476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13477 conftest.$ac_objext conftest.beam conftest.$ac_ext
13478 fi
13479
13480 LIBS=$OLIBS
13481 if test "X$msg" != Xno; then
13482 break
13483 fi
13484 done
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13486 $as_echo "$msg" >&6; }
13487 if test "X$msg" = Xno; then
13488 as_fn_error "The required function \`tputs' was not found in any library.
13489 The following libraries were tried (in order):
13490 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13491 Please try installing whichever of these libraries is most appropriate
13492 for your system, together with its header files.
13493 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13494 fi
13495
13496 ## Use termcap instead of terminfo?
13497 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13498 TERMINFO=yes
13499 ## FIXME? In the cases below where we unconditionally set
13500 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13501 ## if that was found above to have tputs.
13502 ## Should we use the gnu* logic everywhere?
13503 case "$opsys" in
13504 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13505 ## The ncurses library has been moved out of the System framework in
13506 ## Mac OS X 10.2. So if configure detects it, set the command-line
13507 ## option to use it.
13508 darwin) LIBS_TERMCAP="-lncurses" ;;
13509
13510 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13511
13512 freebsd)
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13514 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13515 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <osreldate.h>
13521 int
13522 main ()
13523 {
13524 #if __FreeBSD_version < 400000
13525 fail;
13526 #endif
13527
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 emacs_cv_freebsd_terminfo=yes
13534 else
13535 emacs_cv_freebsd_terminfo=no
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 fi
13540
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13543 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13544
13545 if test $emacs_cv_freebsd_terminfo = yes; then
13546 LIBS_TERMCAP="-lncurses"
13547 else
13548 TERMINFO=no
13549 LIBS_TERMCAP="-ltermcap"
13550 fi
13551 ;;
13552
13553 netbsd)
13554 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13555 TERMINFO=no
13556 LIBS_TERMCAP="-ltermcap"
13557 fi
13558 ;;
13559
13560 openbsd) LIBS_TERMCAP="-lncurses" ;;
13561
13562 ## hpux: Make sure we get select from libc rather than from libcurses
13563 ## because libcurses on HPUX 10.10 has a broken version of select.
13564 ## We used to use -lc -lcurses, but this may be cleaner.
13565 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13566 # set that way, now it uses the default). Isn't this a contradiction?
13567 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13568
13569 esac
13570
13571 TERMCAP_OBJ=tparam.o
13572 if test $TERMINFO = yes; then
13573
13574 $as_echo "#define TERMINFO 1" >>confdefs.h
13575
13576 TERMCAP_OBJ=terminfo.o
13577 fi
13578
13579
13580
13581
13582 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13583 resolv=no
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <netinet/in.h>
13587 #include <arpa/nameser.h>
13588 #include <resolv.h>
13589 int
13590 main ()
13591 {
13592 return res_init();
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 have_res_init=yes
13599 else
13600 have_res_init=no
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 if test "$have_res_init" = no; then
13605 OLIBS="$LIBS"
13606 LIBS="$LIBS -lresolv"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13608 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <netinet/in.h>
13612 #include <arpa/nameser.h>
13613 #include <resolv.h>
13614 int
13615 main ()
13616 {
13617 return res_init();
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 if ac_fn_c_try_link "$LINENO"; then :
13623 have_res_init=yes
13624 else
13625 have_res_init=no
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13630 $as_echo "$have_res_init" >&6; }
13631 if test "$have_res_init" = yes ; then
13632 resolv=yes
13633 fi
13634 LIBS="$OLIBS"
13635 fi
13636
13637 if test "$have_res_init" = yes; then
13638
13639 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13640
13641 fi
13642
13643 # Do we need the Hesiod library to provide the support routines?
13644 LIBHESIOD=
13645 if test "$with_hesiod" != no ; then
13646 # Don't set $LIBS here -- see comments above. FIXME which comments?
13647 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13648 if test "x$ac_cv_func_res_send" = x""yes; then :
13649
13650 else
13651 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13652 if test "x$ac_cv_func___res_send" = x""yes; then :
13653
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13656 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13657 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-lresolv $LIBS"
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664
13665 /* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13668 #ifdef __cplusplus
13669 extern "C"
13670 #endif
13671 char res_send ();
13672 int
13673 main ()
13674 {
13675 return res_send ();
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_link "$LINENO"; then :
13681 ac_cv_lib_resolv_res_send=yes
13682 else
13683 ac_cv_lib_resolv_res_send=no
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13690 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13691 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13692 resolv=yes
13693 else
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13695 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13696 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lresolv $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 char __res_send ();
13711 int
13712 main ()
13713 {
13714 return __res_send ();
13715 ;
13716 return 0;
13717 }
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_lib_resolv___res_send=yes
13721 else
13722 ac_cv_lib_resolv___res_send=no
13723 fi
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13727 fi
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13729 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13730 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13731 resolv=yes
13732 fi
13733
13734 fi
13735
13736 fi
13737
13738 fi
13739
13740 if test "$resolv" = yes ; then
13741 RESOLVLIB=-lresolv
13742 else
13743 RESOLVLIB=
13744 fi
13745 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13746 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13747
13748 else
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13750 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13751 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lhesiod $RESOLVLIB $LIBS"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char hes_getmailhost ();
13766 int
13767 main ()
13768 {
13769 return hes_getmailhost ();
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_lib_hesiod_hes_getmailhost=yes
13776 else
13777 ac_cv_lib_hesiod_hes_getmailhost=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LIBS=$ac_check_lib_save_LIBS
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13784 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13785 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13786 hesiod=yes
13787 else
13788 :
13789 fi
13790
13791 fi
13792
13793
13794 if test x"$hesiod" = xyes; then
13795
13796 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13797
13798 LIBHESIOD=-lhesiod
13799 fi
13800 fi
13801
13802
13803 # Do we need libresolv (due to res_init or Hesiod)?
13804 if test "$resolv" = yes ; then
13805
13806 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13807
13808 LIBRESOLV=-lresolv
13809 else
13810 LIBRESOLV=
13811 fi
13812
13813
13814 # These tell us which Kerberos-related libraries to use.
13815 COM_ERRLIB=
13816 CRYPTOLIB=
13817 KRB5LIB=
13818 DESLIB=
13819 KRB4LIB=
13820
13821 if test "${with_kerberos}" != no; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13823 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13824 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lcom_err $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char com_err ();
13839 int
13840 main ()
13841 {
13842 return com_err ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_com_err_com_err=yes
13849 else
13850 ac_cv_lib_com_err_com_err=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13857 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13858 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13859 have_com_err=yes
13860 else
13861 have_com_err=no
13862 fi
13863
13864 if test $have_com_err = yes; then
13865 COM_ERRLIB=-lcom_err
13866 LIBS="$COM_ERRLIB $LIBS"
13867
13868 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13869
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13872 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13873 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lcrypto $LIBS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char mit_des_cbc_encrypt ();
13888 int
13889 main ()
13890 {
13891 return mit_des_cbc_encrypt ();
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13898 else
13899 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 LIBS=$ac_check_lib_save_LIBS
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13906 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13907 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13908 have_crypto=yes
13909 else
13910 have_crypto=no
13911 fi
13912
13913 if test $have_crypto = yes; then
13914 CRYPTOLIB=-lcrypto
13915 LIBS="$CRYPTOLIB $LIBS"
13916
13917 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13918
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13921 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13922 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lk5crypto $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char mit_des_cbc_encrypt ();
13937 int
13938 main ()
13939 {
13940 return mit_des_cbc_encrypt ();
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13947 else
13948 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13955 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13956 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13957 have_k5crypto=yes
13958 else
13959 have_k5crypto=no
13960 fi
13961
13962 if test $have_k5crypto = yes; then
13963 CRYPTOLIB=-lk5crypto
13964 LIBS="$CRYPTOLIB $LIBS"
13965
13966 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13967
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13970 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13971 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 ac_check_lib_save_LIBS=$LIBS
13975 LIBS="-lkrb5 $LIBS"
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978
13979 /* Override any GCC internal prototype to avoid an error.
13980 Use char because int might match the return type of a GCC
13981 builtin and then its argument prototype would still apply. */
13982 #ifdef __cplusplus
13983 extern "C"
13984 #endif
13985 char krb5_init_context ();
13986 int
13987 main ()
13988 {
13989 return krb5_init_context ();
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_link "$LINENO"; then :
13995 ac_cv_lib_krb5_krb5_init_context=yes
13996 else
13997 ac_cv_lib_krb5_krb5_init_context=no
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS
14002 fi
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14004 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14005 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14006 have_krb5=yes
14007 else
14008 have_krb5=no
14009 fi
14010
14011 if test $have_krb5=yes; then
14012 KRB5LIB=-lkrb5
14013 LIBS="$KRB5LIB $LIBS"
14014
14015 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14016
14017 fi
14018 if test "${with_kerberos5}" = no; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14020 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14021 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 ac_check_lib_save_LIBS=$LIBS
14025 LIBS="-ldes425 $LIBS"
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028
14029 /* Override any GCC internal prototype to avoid an error.
14030 Use char because int might match the return type of a GCC
14031 builtin and then its argument prototype would still apply. */
14032 #ifdef __cplusplus
14033 extern "C"
14034 #endif
14035 char des_cbc_encrypt ();
14036 int
14037 main ()
14038 {
14039 return des_cbc_encrypt ();
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 ac_cv_lib_des425_des_cbc_encrypt=yes
14046 else
14047 ac_cv_lib_des425_des_cbc_encrypt=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS=$ac_check_lib_save_LIBS
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14054 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14055 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14056 have_des425=yes
14057 else
14058 have_des425=no
14059 fi
14060
14061 if test $have_des425 = yes; then
14062 DESLIB=-ldes425
14063 LIBS="$DESLIB $LIBS"
14064
14065 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14066
14067 else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14069 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14070 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-ldes $LIBS"
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char des_cbc_encrypt ();
14085 int
14086 main ()
14087 {
14088 return des_cbc_encrypt ();
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_des_des_cbc_encrypt=yes
14095 else
14096 ac_cv_lib_des_des_cbc_encrypt=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14101 fi
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14103 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14104 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14105 have_des=yes
14106 else
14107 have_des=no
14108 fi
14109
14110 if test $have_des = yes; then
14111 DESLIB=-ldes
14112 LIBS="$DESLIB $LIBS"
14113
14114 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14115
14116 fi
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14119 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14120 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 ac_check_lib_save_LIBS=$LIBS
14124 LIBS="-lkrb4 $LIBS"
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14131 #ifdef __cplusplus
14132 extern "C"
14133 #endif
14134 char krb_get_cred ();
14135 int
14136 main ()
14137 {
14138 return krb_get_cred ();
14139 ;
14140 return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_lib_krb4_krb_get_cred=yes
14145 else
14146 ac_cv_lib_krb4_krb_get_cred=no
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14151 fi
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14153 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14154 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14155 have_krb4=yes
14156 else
14157 have_krb4=no
14158 fi
14159
14160 if test $have_krb4 = yes; then
14161 KRB4LIB=-lkrb4
14162 LIBS="$KRB4LIB $LIBS"
14163
14164 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14165
14166 else
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14168 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14169 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lkrb $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char krb_get_cred ();
14184 int
14185 main ()
14186 {
14187 return krb_get_cred ();
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_krb_krb_get_cred=yes
14194 else
14195 ac_cv_lib_krb_krb_get_cred=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14202 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14203 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14204 have_krb=yes
14205 else
14206 have_krb=no
14207 fi
14208
14209 if test $have_krb = yes; then
14210 KRB4LIB=-lkrb
14211 LIBS="$KRB4LIB $LIBS"
14212
14213 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14214
14215 fi
14216 fi
14217 fi
14218
14219 if test "${with_kerberos5}" != no; then
14220 for ac_header in krb5.h
14221 do :
14222 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14223 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_KRB5_H 1
14226 _ACEOF
14227 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14228 "
14229 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14230
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_KRB5_ERROR_TEXT 1
14233 _ACEOF
14234
14235
14236 fi
14237 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14238 "
14239 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14240
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_KRB5_ERROR_E_TEXT 1
14243 _ACEOF
14244
14245
14246 fi
14247
14248 fi
14249
14250 done
14251
14252 else
14253 for ac_header in des.h
14254 do :
14255 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14256 if test "x$ac_cv_header_des_h" = x""yes; then :
14257 cat >>confdefs.h <<_ACEOF
14258 #define HAVE_DES_H 1
14259 _ACEOF
14260
14261 else
14262 for ac_header in kerberosIV/des.h
14263 do :
14264 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14265 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_KERBEROSIV_DES_H 1
14268 _ACEOF
14269
14270 else
14271 for ac_header in kerberos/des.h
14272 do :
14273 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14274 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14275 cat >>confdefs.h <<_ACEOF
14276 #define HAVE_KERBEROS_DES_H 1
14277 _ACEOF
14278
14279 fi
14280
14281 done
14282
14283 fi
14284
14285 done
14286
14287 fi
14288
14289 done
14290
14291 for ac_header in krb.h
14292 do :
14293 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14294 if test "x$ac_cv_header_krb_h" = x""yes; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_KRB_H 1
14297 _ACEOF
14298
14299 else
14300 for ac_header in kerberosIV/krb.h
14301 do :
14302 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_KERBEROSIV_KRB_H 1
14306 _ACEOF
14307
14308 else
14309 for ac_header in kerberos/krb.h
14310 do :
14311 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14312 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define HAVE_KERBEROS_KRB_H 1
14315 _ACEOF
14316
14317 fi
14318
14319 done
14320
14321 fi
14322
14323 done
14324
14325 fi
14326
14327 done
14328
14329 fi
14330 for ac_header in com_err.h
14331 do :
14332 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14333 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_COM_ERR_H 1
14336 _ACEOF
14337
14338 fi
14339
14340 done
14341
14342 fi
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353 for ac_func in $ac_func_list
14354 do :
14355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14357 eval as_val=\$$as_ac_var
14358 if test "x$as_val" = x""yes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14361 _ACEOF
14362
14363 fi
14364 done
14365
14366
14367
14368
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14370 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14371 if test "${emacs_cv_localtime_cache+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 if test x$ac_cv_func_tzset = xyes; then
14375 if test "$cross_compiling" = yes; then :
14376 # If we have tzset, assume the worst when cross-compiling.
14377 emacs_cv_localtime_cache=yes
14378 else
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 #include <time.h>
14382 char TZ_GMT0[] = "TZ=GMT0";
14383 char TZ_PST8[] = "TZ=PST8";
14384 main()
14385 {
14386 time_t now = time ((time_t *) 0);
14387 int hour_GMT0, hour_unset;
14388 if (putenv (TZ_GMT0) != 0)
14389 exit (1);
14390 hour_GMT0 = localtime (&now)->tm_hour;
14391 unsetenv("TZ");
14392 hour_unset = localtime (&now)->tm_hour;
14393 if (putenv (TZ_PST8) != 0)
14394 exit (1);
14395 if (localtime (&now)->tm_hour == hour_GMT0)
14396 exit (1);
14397 unsetenv("TZ");
14398 if (localtime (&now)->tm_hour != hour_unset)
14399 exit (1);
14400 exit (0);
14401 }
14402 _ACEOF
14403 if ac_fn_c_try_run "$LINENO"; then :
14404 emacs_cv_localtime_cache=no
14405 else
14406 emacs_cv_localtime_cache=yes
14407 fi
14408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14409 conftest.$ac_objext conftest.beam conftest.$ac_ext
14410 fi
14411
14412 else
14413 # If we lack tzset, report that localtime does not cache TZ,
14414 # since we can't invalidate the cache if we don't have tzset.
14415 emacs_cv_localtime_cache=no
14416 fi
14417 fi
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14419 $as_echo "$emacs_cv_localtime_cache" >&6; }
14420 if test $emacs_cv_localtime_cache = yes; then
14421
14422 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14423
14424 fi
14425
14426 if test "x$HAVE_TIMEVAL" = xyes; then
14427 for ac_func in gettimeofday
14428 do :
14429 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14430 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_GETTIMEOFDAY 1
14433 _ACEOF
14434
14435 fi
14436 done
14437
14438 if test $ac_cv_func_gettimeofday = yes; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14440 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14441 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446
14447 #ifdef TIME_WITH_SYS_TIME
14448 #include <sys/time.h>
14449 #include <time.h>
14450 #else
14451 #ifdef HAVE_SYS_TIME_H
14452 #include <sys/time.h>
14453 #else
14454 #include <time.h>
14455 #endif
14456 #endif
14457 int
14458 main ()
14459 {
14460 struct timeval time;
14461 gettimeofday (&time, 0);
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 emacs_cv_gettimeofday_two_arguments=yes
14468 else
14469 emacs_cv_gettimeofday_two_arguments=no
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472 fi
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14474 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14475 if test $emacs_cv_gettimeofday_two_arguments = no; then
14476
14477 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14478
14479 fi
14480 fi
14481 fi
14482
14483 ok_so_far=yes
14484 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14485 if test "x$ac_cv_func_socket" = x""yes; then :
14486
14487 else
14488 ok_so_far=no
14489 fi
14490
14491 if test $ok_so_far = yes; then
14492 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14493 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14494
14495 else
14496 ok_so_far=no
14497 fi
14498
14499
14500 fi
14501 if test $ok_so_far = yes; then
14502 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14503 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14504
14505 else
14506 ok_so_far=no
14507 fi
14508
14509
14510 fi
14511 if test $ok_so_far = yes; then
14512
14513 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14514
14515 fi
14516
14517 if test -f /usr/lpp/X11/bin/smt.exp; then
14518
14519 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14520
14521 fi
14522
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14524 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14525 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14527 $as_echo "yes" >&6; }
14528
14529 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14530
14531 else
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 fi
14535
14536 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14537 if test "x$ac_cv_type_pid_t" = x""yes; then :
14538
14539 else
14540
14541 cat >>confdefs.h <<_ACEOF
14542 #define pid_t int
14543 _ACEOF
14544
14545 fi
14546
14547 for ac_header in vfork.h
14548 do :
14549 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14550 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_VFORK_H 1
14553 _ACEOF
14554
14555 fi
14556
14557 done
14558
14559 for ac_func in fork vfork
14560 do :
14561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14563 eval as_val=\$$as_ac_var
14564 if test "x$as_val" = x""yes; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14567 _ACEOF
14568
14569 fi
14570 done
14571
14572 if test "x$ac_cv_func_fork" = xyes; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14574 $as_echo_n "checking for working fork... " >&6; }
14575 if test "${ac_cv_func_fork_works+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 if test "$cross_compiling" = yes; then :
14579 ac_cv_func_fork_works=cross
14580 else
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 $ac_includes_default
14584 int
14585 main ()
14586 {
14587
14588 /* By Ruediger Kuhlmann. */
14589 return fork () < 0;
14590
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 if ac_fn_c_try_run "$LINENO"; then :
14596 ac_cv_func_fork_works=yes
14597 else
14598 ac_cv_func_fork_works=no
14599 fi
14600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14601 conftest.$ac_objext conftest.beam conftest.$ac_ext
14602 fi
14603
14604 fi
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14606 $as_echo "$ac_cv_func_fork_works" >&6; }
14607
14608 else
14609 ac_cv_func_fork_works=$ac_cv_func_fork
14610 fi
14611 if test "x$ac_cv_func_fork_works" = xcross; then
14612 case $host in
14613 *-*-amigaos* | *-*-msdosdjgpp*)
14614 # Override, as these systems have only a dummy fork() stub
14615 ac_cv_func_fork_works=no
14616 ;;
14617 *)
14618 ac_cv_func_fork_works=yes
14619 ;;
14620 esac
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14622 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14623 fi
14624 ac_cv_func_vfork_works=$ac_cv_func_vfork
14625 if test "x$ac_cv_func_vfork" = xyes; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14627 $as_echo_n "checking for working vfork... " >&6; }
14628 if test "${ac_cv_func_vfork_works+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 if test "$cross_compiling" = yes; then :
14632 ac_cv_func_vfork_works=cross
14633 else
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 /* Thanks to Paul Eggert for this test. */
14637 $ac_includes_default
14638 #include <sys/wait.h>
14639 #ifdef HAVE_VFORK_H
14640 # include <vfork.h>
14641 #endif
14642 /* On some sparc systems, changes by the child to local and incoming
14643 argument registers are propagated back to the parent. The compiler
14644 is told about this with #include <vfork.h>, but some compilers
14645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14646 static variable whose address is put into a register that is
14647 clobbered by the vfork. */
14648 static void
14649 #ifdef __cplusplus
14650 sparc_address_test (int arg)
14651 # else
14652 sparc_address_test (arg) int arg;
14653 #endif
14654 {
14655 static pid_t child;
14656 if (!child) {
14657 child = vfork ();
14658 if (child < 0) {
14659 perror ("vfork");
14660 _exit(2);
14661 }
14662 if (!child) {
14663 arg = getpid();
14664 write(-1, "", 0);
14665 _exit (arg);
14666 }
14667 }
14668 }
14669
14670 int
14671 main ()
14672 {
14673 pid_t parent = getpid ();
14674 pid_t child;
14675
14676 sparc_address_test (0);
14677
14678 child = vfork ();
14679
14680 if (child == 0) {
14681 /* Here is another test for sparc vfork register problems. This
14682 test uses lots of local variables, at least as many local
14683 variables as main has allocated so far including compiler
14684 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14685 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14686 reuse the register of parent for one of the local variables,
14687 since it will think that parent can't possibly be used any more
14688 in this routine. Assigning to the local variable will thus
14689 munge parent in the parent process. */
14690 pid_t
14691 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14692 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14693 /* Convince the compiler that p..p7 are live; otherwise, it might
14694 use the same hardware register for all 8 local variables. */
14695 if (p != p1 || p != p2 || p != p3 || p != p4
14696 || p != p5 || p != p6 || p != p7)
14697 _exit(1);
14698
14699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14700 from child file descriptors. If the child closes a descriptor
14701 before it execs or exits, this munges the parent's descriptor
14702 as well. Test for this by closing stdout in the child. */
14703 _exit(close(fileno(stdout)) != 0);
14704 } else {
14705 int status;
14706 struct stat st;
14707
14708 while (wait(&status) != child)
14709 ;
14710 return (
14711 /* Was there some problem with vforking? */
14712 child < 0
14713
14714 /* Did the child fail? (This shouldn't happen.) */
14715 || status
14716
14717 /* Did the vfork/compiler bug occur? */
14718 || parent != getpid()
14719
14720 /* Did the file descriptor bug occur? */
14721 || fstat(fileno(stdout), &st) != 0
14722 );
14723 }
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_run "$LINENO"; then :
14727 ac_cv_func_vfork_works=yes
14728 else
14729 ac_cv_func_vfork_works=no
14730 fi
14731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14732 conftest.$ac_objext conftest.beam conftest.$ac_ext
14733 fi
14734
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14737 $as_echo "$ac_cv_func_vfork_works" >&6; }
14738
14739 fi;
14740 if test "x$ac_cv_func_fork_works" = xcross; then
14741 ac_cv_func_vfork_works=$ac_cv_func_vfork
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14743 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14744 fi
14745
14746 if test "x$ac_cv_func_vfork_works" = xyes; then
14747
14748 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14749
14750 else
14751
14752 $as_echo "#define vfork fork" >>confdefs.h
14753
14754 fi
14755 if test "x$ac_cv_func_fork_works" = xyes; then
14756
14757 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14758
14759 fi
14760
14761
14762 for ac_func in snprintf
14763 do :
14764 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14765 if test "x$ac_cv_func_snprintf" = x""yes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define HAVE_SNPRINTF 1
14768 _ACEOF
14769
14770 fi
14771 done
14772
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14775 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14776 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 #include <langinfo.h>
14782 int
14783 main ()
14784 {
14785 char* cs = nl_langinfo(CODESET);
14786 ;
14787 return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"; then :
14791 emacs_cv_langinfo_codeset=yes
14792 else
14793 emacs_cv_langinfo_codeset=no
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14797
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14800 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14801 if test $emacs_cv_langinfo_codeset = yes; then
14802
14803 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14804
14805 fi
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14808 $as_echo_n "checking for mbstate_t... " >&6; }
14809 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814 $ac_includes_default
14815 # include <wchar.h>
14816 int
14817 main ()
14818 {
14819 mbstate_t x; return sizeof x;
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 if ac_fn_c_try_compile "$LINENO"; then :
14825 ac_cv_type_mbstate_t=yes
14826 else
14827 ac_cv_type_mbstate_t=no
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14832 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14833 if test $ac_cv_type_mbstate_t = yes; then
14834
14835 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14836
14837 else
14838
14839 $as_echo "#define mbstate_t int" >>confdefs.h
14840
14841 fi
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14844 $as_echo_n "checking for C restricted array declarations... " >&6; }
14845 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 void fred (int x[__restrict]);
14851 int
14852 main ()
14853 {
14854
14855 ;
14856 return 0;
14857 }
14858 _ACEOF
14859 if ac_fn_c_try_compile "$LINENO"; then :
14860 emacs_cv_c_restrict_arr=yes
14861 else
14862 emacs_cv_c_restrict_arr=no
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14867 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14868 if test "$emacs_cv_c_restrict_arr" = yes; then
14869
14870 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14871
14872 fi
14873
14874
14875 # Set up the CFLAGS for real compilation, so we can substitute it.
14876 CFLAGS="$REAL_CFLAGS"
14877 CPPFLAGS="$REAL_CPPFLAGS"
14878
14879 ## Hack to detect a buggy GCC version.
14880 if test "x$GCC" = xyes \
14881 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14882 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14883 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14884 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14885 fi
14886
14887 version=$PACKAGE_VERSION
14888
14889 ### Specify what sort of things we'll be editing into Makefile and config.h.
14890 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14891
14892
14893 ## Unused?
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14916 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14917 ## end of LIBX_BASE, but nothing ever set it.
14918
14919
14920
14921
14922 ## Used in lwlib/Makefile.in.
14923
14924 S_FILE="\$(srcdir)/${opsysfile}"
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934 cat >>confdefs.h <<_ACEOF
14935 #define EMACS_CONFIGURATION "${canonical}"
14936 _ACEOF
14937
14938
14939 cat >>confdefs.h <<_ACEOF
14940 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14941 _ACEOF
14942
14943
14944 cat >>confdefs.h <<_ACEOF
14945 #define config_opsysfile "${opsysfile}"
14946 _ACEOF
14947
14948
14949 XMENU_OBJ=
14950 XOBJ=
14951 FONT_OBJ=
14952 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14953
14954 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14955
14956 XMENU_OBJ=xmenu.o
14957 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14958 FONT_OBJ=xfont.o
14959 if test "$HAVE_XFT" = "yes"; then
14960 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14961 elif test "$HAVE_FREETYPE" = "yes"; then
14962 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14963 fi
14964
14965 fi
14966
14967
14968
14969
14970 WIDGET_OBJ=
14971 MOTIF_LIBW=
14972 if test "${USE_X_TOOLKIT}" != "none" ; then
14973 WIDGET_OBJ=widget.o
14974
14975 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14976
14977 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14978
14979 $as_echo "#define USE_LUCID 1" >>confdefs.h
14980
14981 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14982
14983 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14984
14985 MOTIF_LIBW=-lXm
14986 case "$opsys" in
14987 gnu-linux)
14988 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14989 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14990 ;;
14991
14992 unixware)
14993 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14994 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14995 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14996 ;;
14997
14998 aix4-2)
14999 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15000 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15001 ;;
15002 esac
15003 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15004 fi
15005 fi
15006
15007
15008 TOOLKIT_LIBW=
15009 case "$USE_X_TOOLKIT" in
15010 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15011 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15012 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15013 esac
15014
15015
15016 if test "$USE_X_TOOLKIT" = "none"; then
15017 LIBXT_OTHER="\$(LIBXSM)"
15018 OLDXMENU_TARGET="really-oldXMenu"
15019 else
15020 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15021 OLDXMENU_TARGET="really-lwlib"
15022 fi
15023
15024
15025 ## The X Menu stuff is present in the X10 distribution, but missing
15026 ## from X11. If we have X10, just use the installed library;
15027 ## otherwise, use our own copy.
15028 if test "${HAVE_X11}" = "yes" ; then
15029
15030 $as_echo "#define HAVE_X11 1" >>confdefs.h
15031
15032
15033 if test "$USE_X_TOOLKIT" = "none"; then
15034 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15035 else
15036 OLDXMENU="\${lwlibdir}/liblw.a"
15037 fi
15038 LIBXMENU="\$(OLDXMENU)"
15039 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15040 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15041 else
15042 ## For a syntactically valid Makefile; not actually used for anything.
15043 ## See comments in src/Makefile.in.
15044 OLDXMENU=nothing
15045 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15046 if test "${HAVE_X_WINDOWS}" = "yes"; then
15047 LIBXMENU="-lXMenu"
15048 else
15049 LIBXMENU=
15050 fi
15051 LIBX_OTHER=
15052 OLDXMENU_DEPS=
15053 fi
15054
15055 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15056 OLDXMENU_TARGET=
15057 OLDXMENU=nothing
15058 LIBXMENU=
15059 OLDXMENU_DEPS=
15060 fi
15061
15062
15063
15064
15065
15066
15067
15068 if test "${HAVE_MENUS}" = "yes" ; then
15069
15070 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15071
15072 fi
15073
15074 if test "${GNU_MALLOC}" = "yes" ; then
15075
15076 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15077
15078 fi
15079
15080 RALLOC_OBJ=
15081 if test "${REL_ALLOC}" = "yes" ; then
15082
15083 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15084
15085
15086 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15087 fi
15088
15089
15090 if test "$opsys" = "cygwin"; then
15091 CYGWIN_OBJ="sheap.o"
15092 ## Cygwin differs because of its unexec().
15093 PRE_ALLOC_OBJ=
15094 POST_ALLOC_OBJ=lastfile.o
15095 else
15096 CYGWIN_OBJ=
15097 PRE_ALLOC_OBJ=lastfile.o
15098 POST_ALLOC_OBJ=
15099 fi
15100
15101
15102
15103
15104 # Configure gnulib here, now that we know LIBS.
15105 >>>>>>> MERGE-SOURCE
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117 LIBC_FATAL_STDERR_=1
15118 export LIBC_FATAL_STDERR_
15119
15120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15121 # for constant arguments. Useless!
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15123 $as_echo_n "checking for working alloca.h... " >&6; }
15124 if test "${ac_cv_working_alloca_h+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <alloca.h>
15130 int
15131 main ()
15132 {
15133 char *p = (char *) alloca (2 * sizeof (int));
15134 if (p) return 0;
15135 ;
15136 return 0;
15137 }
15138 _ACEOF
15139 if ac_fn_c_try_link "$LINENO"; then :
15140 ac_cv_working_alloca_h=yes
15141 else
15142 ac_cv_working_alloca_h=no
15143 fi
15144 rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15146 fi
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15148 $as_echo "$ac_cv_working_alloca_h" >&6; }
15149 if test $ac_cv_working_alloca_h = yes; then
15150
15151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15152
15153 fi
15154
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15156 $as_echo_n "checking for alloca... " >&6; }
15157 if test "${ac_cv_func_alloca_works+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #ifdef __GNUC__
15163 # define alloca __builtin_alloca
15164 #else
15165 # ifdef _MSC_VER
15166 # include <malloc.h>
15167 # define alloca _alloca
15168 # else
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15171 # else
15172 # ifdef _AIX
15173 #pragma alloca
15174 # else
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15176 char *alloca ();
15177 # endif
15178 # endif
15179 # endif
15180 # endif
15181 #endif
15182
15183 int
15184 main ()
15185 {
15186 char *p = (char *) alloca (1);
15187 if (p) return 0;
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_func_alloca_works=yes
15194 else
15195 ac_cv_func_alloca_works=no
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199 fi
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15201 $as_echo "$ac_cv_func_alloca_works" >&6; }
15202
15203 if test $ac_cv_func_alloca_works = yes; then
15204
15205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15206
15207 else
15208 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15209 # that cause trouble. Some versions do not even contain alloca or
15210 # contain a buggy version. If you still want to use their alloca,
15211 # use ar to extract alloca.o from them instead of compiling alloca.c.
15212
15213
15214
15215
15216
15217 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15218
15219 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15220
15221
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15223 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15224 if test "${ac_cv_os_cray+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #if defined CRAY && ! defined CRAY2
15230 webecray
15231 #else
15232 wenotbecray
15233 #endif
15234
15235 _ACEOF
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "webecray" >/dev/null 2>&1; then :
15238 ac_cv_os_cray=yes
15239 else
15240 ac_cv_os_cray=no
15241 fi
15242 rm -f conftest*
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15246 $as_echo "$ac_cv_os_cray" >&6; }
15247 if test $ac_cv_os_cray = yes; then
15248 for ac_func in _getb67 GETB67 getb67; do
15249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15251 eval as_val=\$$as_ac_var
15252 if test "x$as_val" = x""yes; then :
15253
15254 cat >>confdefs.h <<_ACEOF
15255 #define CRAY_STACKSEG_END $ac_func
15256 _ACEOF
15257
15258 break
15259 fi
15260
15261 done
15262 fi
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15265 $as_echo_n "checking stack direction for C alloca... " >&6; }
15266 if test "${ac_cv_c_stack_direction+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 if test "$cross_compiling" = yes; then :
15270 ac_cv_c_stack_direction=0
15271 else
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 $ac_includes_default
15275 int
15276 find_stack_direction (int *addr, int depth)
15277 {
15278 int dir, dummy = 0;
15279 if (! addr)
15280 addr = &dummy;
15281 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15282 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15283 return dir + dummy;
15284 }
15285
15286 int
15287 main (int argc, char **argv)
15288 {
15289 return find_stack_direction (0, argc + !argv + 20) < 0;
15290 }
15291 _ACEOF
15292 if ac_fn_c_try_run "$LINENO"; then :
15293 ac_cv_c_stack_direction=1
15294 else
15295 ac_cv_c_stack_direction=-1
15296 fi
15297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298 conftest.$ac_objext conftest.beam conftest.$ac_ext
15299 fi
15300
15301 fi
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15303 $as_echo "$ac_cv_c_stack_direction" >&6; }
15304 cat >>confdefs.h <<_ACEOF
15305 #define STACK_DIRECTION $ac_cv_c_stack_direction
15306 _ACEOF
15307
15308
15309 fi
15310
15311
15312
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15315 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15316 if test "${ac_cv_c_bigendian+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 ac_cv_c_bigendian=unknown
15320 # See if we're dealing with a universal compiler.
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 #ifndef __APPLE_CC__
15324 not a universal capable compiler
15325 #endif
15326 typedef int dummy;
15327
15328 _ACEOF
15329 if ac_fn_c_try_compile "$LINENO"; then :
15330
15331 # Check for potential -arch flags. It is not universal unless
15332 # there are at least two -arch flags with different values.
15333 ac_arch=
15334 ac_prev=
15335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15336 if test -n "$ac_prev"; then
15337 case $ac_word in
15338 i?86 | x86_64 | ppc | ppc64)
15339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15340 ac_arch=$ac_word
15341 else
15342 ac_cv_c_bigendian=universal
15343 break
15344 fi
15345 ;;
15346 esac
15347 ac_prev=
15348 elif test "x$ac_word" = "x-arch"; then
15349 ac_prev=arch
15350 fi
15351 done
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 if test $ac_cv_c_bigendian = unknown; then
15355 # See if sys/param.h defines the BYTE_ORDER macro.
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #include <sys/param.h>
15360
15361 int
15362 main ()
15363 {
15364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15366 && LITTLE_ENDIAN)
15367 bogus endian macros
15368 #endif
15369
15370 ;
15371 return 0;
15372 }
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"; then :
15375 # It does; now see whether it defined to BIG_ENDIAN or not.
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <sys/types.h>
15379 #include <sys/param.h>
15380
15381 int
15382 main ()
15383 {
15384 #if BYTE_ORDER != BIG_ENDIAN
15385 not big endian
15386 #endif
15387
15388 ;
15389 return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_compile "$LINENO"; then :
15393 ac_cv_c_bigendian=yes
15394 else
15395 ac_cv_c_bigendian=no
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 fi
15401 if test $ac_cv_c_bigendian = unknown; then
15402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 #include <limits.h>
15406
15407 int
15408 main ()
15409 {
15410 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15411 bogus endian macros
15412 #endif
15413
15414 ;
15415 return 0;
15416 }
15417 _ACEOF
15418 if ac_fn_c_try_compile "$LINENO"; then :
15419 # It does; now see whether it defined to _BIG_ENDIAN or not.
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422 #include <limits.h>
15423
15424 int
15425 main ()
15426 {
15427 #ifndef _BIG_ENDIAN
15428 not big endian
15429 #endif
15430
15431 ;
15432 return 0;
15433 }
15434 _ACEOF
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436 ac_cv_c_bigendian=yes
15437 else
15438 ac_cv_c_bigendian=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 fi
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 fi
15444 if test $ac_cv_c_bigendian = unknown; then
15445 # Compile a test program.
15446 if test "$cross_compiling" = yes; then :
15447 # Try to guess by grepping values from an object file.
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 short int ascii_mm[] =
15451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15452 short int ascii_ii[] =
15453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15454 int use_ascii (int i) {
15455 return ascii_mm[i] + ascii_ii[i];
15456 }
15457 short int ebcdic_ii[] =
15458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15459 short int ebcdic_mm[] =
15460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15461 int use_ebcdic (int i) {
15462 return ebcdic_mm[i] + ebcdic_ii[i];
15463 }
15464 extern int foo;
15465
15466 int
15467 main ()
15468 {
15469 return use_ascii (foo) == use_ebcdic (foo);
15470 ;
15471 return 0;
15472 }
15473 _ACEOF
15474 if ac_fn_c_try_compile "$LINENO"; then :
15475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15476 ac_cv_c_bigendian=yes
15477 fi
15478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15479 if test "$ac_cv_c_bigendian" = unknown; then
15480 ac_cv_c_bigendian=no
15481 else
15482 # finding both strings is unlikely to happen, but who knows?
15483 ac_cv_c_bigendian=unknown
15484 fi
15485 fi
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 else
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 $ac_includes_default
15492 int
15493 main ()
15494 {
15495
15496 /* Are we little or big endian? From Harbison&Steele. */
15497 union
15498 {
15499 long int l;
15500 char c[sizeof (long int)];
15501 } u;
15502 u.l = 1;
15503 return u.c[sizeof (long int) - 1] == 1;
15504
15505 ;
15506 return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_run "$LINENO"; then :
15510 ac_cv_c_bigendian=no
15511 else
15512 ac_cv_c_bigendian=yes
15513 fi
15514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15515 conftest.$ac_objext conftest.beam conftest.$ac_ext
15516 fi
15517
15518 fi
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15521 $as_echo "$ac_cv_c_bigendian" >&6; }
15522 case $ac_cv_c_bigendian in #(
15523 yes)
15524 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15525 ;; #(
15526 no)
15527 ;; #(
15528 universal)
15529
15530 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15531
15532 ;; #(
15533 *)
15534 as_fn_error "unknown endianness
15535 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15536 esac
15537
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15540 $as_echo_n "checking for inline... " >&6; }
15541 if test "${ac_cv_c_inline+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15543 else
15544 ac_cv_c_inline=no
15545 for ac_kw in inline __inline__ __inline; do
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #ifndef __cplusplus
15549 typedef int foo_t;
15550 static $ac_kw foo_t static_foo () {return 0; }
15551 $ac_kw foo_t foo () {return 0; }
15552 #endif
15553
15554 _ACEOF
15555 if ac_fn_c_try_compile "$LINENO"; then :
15556 ac_cv_c_inline=$ac_kw
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 test "$ac_cv_c_inline" != no && break
15560 done
15561
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15564 $as_echo "$ac_cv_c_inline" >&6; }
15565
15566 case $ac_cv_c_inline in
15567 inline | yes) ;;
15568 *)
15569 case $ac_cv_c_inline in
15570 no) ac_val=;;
15571 *) ac_val=$ac_cv_c_inline;;
15572 esac
15573 cat >>confdefs.h <<_ACEOF
15574 #ifndef __cplusplus
15575 #define inline $ac_val
15576 #endif
15577 _ACEOF
15578 ;;
15579 esac
15580
15581
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15583 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15584 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 /* On HP-UX before 11.23, strtold returns a struct instead of
15590 long double. Reject implementations like that, by requiring
15591 compatibility with the C99 prototype. */
15592 #include <stdlib.h>
15593 static long double (*p) (char const *, char **) = strtold;
15594 static long double
15595 test (char const *nptr, char **endptr)
15596 {
15597 long double r;
15598 r = strtold (nptr, endptr);
15599 return r;
15600 }
15601 int
15602 main ()
15603 {
15604 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15605 ;
15606 return 0;
15607 }
15608 _ACEOF
15609 if ac_fn_c_try_link "$LINENO"; then :
15610 gl_cv_func_c99_strtold=yes
15611 else
15612 gl_cv_func_c99_strtold=no
15613 fi
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15618 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15619 if test $gl_cv_func_c99_strtold = yes; then
15620
15621 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15622
15623 fi
15624
15625
15626 GNULIB_CHOWN=0;
15627 GNULIB_CLOSE=0;
15628 GNULIB_DUP2=0;
15629 GNULIB_DUP3=0;
15630 GNULIB_ENVIRON=0;
15631 GNULIB_EUIDACCESS=0;
15632 GNULIB_FACCESSAT=0;
15633 GNULIB_FCHDIR=0;
15634 GNULIB_FCHOWNAT=0;
15635 GNULIB_FSYNC=0;
15636 GNULIB_FTRUNCATE=0;
15637 GNULIB_GETCWD=0;
15638 GNULIB_GETDOMAINNAME=0;
15639 GNULIB_GETDTABLESIZE=0;
15640 GNULIB_GETGROUPS=0;
15641 GNULIB_GETHOSTNAME=0;
15642 GNULIB_GETLOGIN=0;
15643 GNULIB_GETLOGIN_R=0;
15644 GNULIB_GETPAGESIZE=0;
15645 GNULIB_GETUSERSHELL=0;
15646 GNULIB_GROUP_MEMBER=0;
15647 GNULIB_ISATTY=0;
15648 GNULIB_LCHOWN=0;
15649 GNULIB_LINK=0;
15650 GNULIB_LINKAT=0;
15651 GNULIB_LSEEK=0;
15652 GNULIB_PIPE=0;
15653 GNULIB_PIPE2=0;
15654 GNULIB_PREAD=0;
15655 GNULIB_PWRITE=0;
15656 GNULIB_READ=0;
15657 GNULIB_READLINK=0;
15658 GNULIB_READLINKAT=0;
15659 GNULIB_RMDIR=0;
15660 GNULIB_SETHOSTNAME=0;
15661 GNULIB_SLEEP=0;
15662 GNULIB_SYMLINK=0;
15663 GNULIB_SYMLINKAT=0;
15664 GNULIB_TTYNAME_R=0;
15665 GNULIB_UNISTD_H_NONBLOCKING=0;
15666 GNULIB_UNISTD_H_SIGPIPE=0;
15667 GNULIB_UNLINK=0;
15668 GNULIB_UNLINKAT=0;
15669 GNULIB_USLEEP=0;
15670 GNULIB_WRITE=0;
15671 HAVE_CHOWN=1;
15672 HAVE_DUP2=1;
15673 HAVE_DUP3=1;
15674 HAVE_EUIDACCESS=1;
15675 HAVE_FACCESSAT=1;
15676 HAVE_FCHDIR=1;
15677 HAVE_FCHOWNAT=1;
15678 HAVE_FSYNC=1;
15679 HAVE_FTRUNCATE=1;
15680 HAVE_GETDTABLESIZE=1;
15681 HAVE_GETGROUPS=1;
15682 HAVE_GETHOSTNAME=1;
15683 HAVE_GETLOGIN=1;
15684 HAVE_GETPAGESIZE=1;
15685 HAVE_GROUP_MEMBER=1;
15686 HAVE_LCHOWN=1;
15687 HAVE_LINK=1;
15688 HAVE_LINKAT=1;
15689 HAVE_PIPE=1;
15690 HAVE_PIPE2=1;
15691 HAVE_PREAD=1;
15692 HAVE_PWRITE=1;
15693 HAVE_READLINK=1;
15694 HAVE_READLINKAT=1;
15695 HAVE_SETHOSTNAME=1;
15696 HAVE_SLEEP=1;
15697 HAVE_SYMLINK=1;
15698 HAVE_SYMLINKAT=1;
15699 HAVE_UNLINKAT=1;
15700 HAVE_USLEEP=1;
15701 HAVE_DECL_ENVIRON=1;
15702 HAVE_DECL_FCHDIR=1;
15703 HAVE_DECL_GETDOMAINNAME=1;
15704 HAVE_DECL_GETLOGIN_R=1;
15705 HAVE_DECL_GETPAGESIZE=1;
15706 HAVE_DECL_GETUSERSHELL=1;
15707 HAVE_DECL_SETHOSTNAME=1;
15708 HAVE_DECL_TTYNAME_R=1;
15709 HAVE_OS_H=0;
15710 HAVE_SYS_PARAM_H=0;
15711 REPLACE_CHOWN=0;
15712 REPLACE_CLOSE=0;
15713 REPLACE_DUP=0;
15714 REPLACE_DUP2=0;
15715 REPLACE_FCHOWNAT=0;
15716 REPLACE_FTRUNCATE=0;
15717 REPLACE_GETCWD=0;
15718 REPLACE_GETDOMAINNAME=0;
15719 REPLACE_GETLOGIN_R=0;
15720 REPLACE_GETGROUPS=0;
15721 REPLACE_GETPAGESIZE=0;
15722 REPLACE_ISATTY=0;
15723 REPLACE_LCHOWN=0;
15724 REPLACE_LINK=0;
15725 REPLACE_LINKAT=0;
15726 REPLACE_LSEEK=0;
15727 REPLACE_PREAD=0;
15728 REPLACE_PWRITE=0;
15729 REPLACE_READ=0;
15730 REPLACE_READLINK=0;
15731 REPLACE_RMDIR=0;
15732 REPLACE_SLEEP=0;
15733 REPLACE_SYMLINK=0;
15734 REPLACE_TTYNAME_R=0;
15735 REPLACE_UNLINK=0;
15736 REPLACE_UNLINKAT=0;
15737 REPLACE_USLEEP=0;
15738 REPLACE_WRITE=0;
15739 UNISTD_H_HAVE_WINSOCK2_H=0;
15740 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15741
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15744 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15745 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750
15751 #include <sys/types.h>
15752 #include <sys/stat.h>
15753 int
15754 main ()
15755 {
15756 struct stat s; s.st_dm_mode;
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762 ac_cv_struct_st_dm_mode=yes
15763 else
15764 ac_cv_struct_st_dm_mode=no
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15769 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15770
15771 if test $ac_cv_struct_st_dm_mode = yes; then
15772
15773 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15774
15775 fi
15776
15777
15778 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15779 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15780 ac_have_decl=1
15781 else
15782 ac_have_decl=0
15783 fi
15784
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_DECL_STRMODE $ac_have_decl
15787 _ACEOF
15788
15789
15790 GNULIB__EXIT=0;
15791 GNULIB_ATOLL=0;
15792 GNULIB_CALLOC_POSIX=0;
15793 GNULIB_CANONICALIZE_FILE_NAME=0;
15794 GNULIB_GETLOADAVG=0;
15795 GNULIB_GETSUBOPT=0;
15796 GNULIB_GRANTPT=0;
15797 GNULIB_MALLOC_POSIX=0;
15798 GNULIB_MBTOWC=0;
15799 GNULIB_MKDTEMP=0;
15800 GNULIB_MKOSTEMP=0;
15801 GNULIB_MKOSTEMPS=0;
15802 GNULIB_MKSTEMP=0;
15803 GNULIB_MKSTEMPS=0;
15804 GNULIB_POSIX_OPENPT=0;
15805 GNULIB_PTSNAME=0;
15806 GNULIB_PTSNAME_R=0;
15807 GNULIB_PUTENV=0;
15808 GNULIB_RANDOM=0;
15809 GNULIB_RANDOM_R=0;
15810 GNULIB_REALLOC_POSIX=0;
15811 GNULIB_REALPATH=0;
15812 GNULIB_RPMATCH=0;
15813 GNULIB_SETENV=0;
15814 GNULIB_STRTOD=0;
15815 GNULIB_STRTOLL=0;
15816 GNULIB_STRTOULL=0;
15817 GNULIB_SYSTEM_POSIX=0;
15818 GNULIB_UNLOCKPT=0;
15819 GNULIB_UNSETENV=0;
15820 GNULIB_WCTOMB=0;
15821 HAVE__EXIT=1;
15822 HAVE_ATOLL=1;
15823 HAVE_CANONICALIZE_FILE_NAME=1;
15824 HAVE_DECL_GETLOADAVG=1;
15825 HAVE_GETSUBOPT=1;
15826 HAVE_GRANTPT=1;
15827 HAVE_MKDTEMP=1;
15828 HAVE_MKOSTEMP=1;
15829 HAVE_MKOSTEMPS=1;
15830 HAVE_MKSTEMP=1;
15831 HAVE_MKSTEMPS=1;
15832 HAVE_POSIX_OPENPT=1;
15833 HAVE_PTSNAME=1;
15834 HAVE_PTSNAME_R=1;
15835 HAVE_RANDOM=1;
15836 HAVE_RANDOM_H=1;
15837 HAVE_RANDOM_R=1;
15838 HAVE_REALPATH=1;
15839 HAVE_RPMATCH=1;
15840 HAVE_SETENV=1;
15841 HAVE_DECL_SETENV=1;
15842 HAVE_STRTOD=1;
15843 HAVE_STRTOLL=1;
15844 HAVE_STRTOULL=1;
15845 HAVE_STRUCT_RANDOM_DATA=1;
15846 HAVE_SYS_LOADAVG_H=0;
15847 HAVE_UNLOCKPT=1;
15848 HAVE_DECL_UNSETENV=1;
15849 REPLACE_CALLOC=0;
15850 REPLACE_CANONICALIZE_FILE_NAME=0;
15851 REPLACE_MALLOC=0;
15852 REPLACE_MBTOWC=0;
15853 REPLACE_MKSTEMP=0;
15854 REPLACE_PTSNAME_R=0;
15855 REPLACE_PUTENV=0;
15856 REPLACE_RANDOM_R=0;
15857 REPLACE_REALLOC=0;
15858 REPLACE_REALPATH=0;
15859 REPLACE_SETENV=0;
15860 REPLACE_STRTOD=0;
15861 REPLACE_UNSETENV=0;
15862 REPLACE_WCTOMB=0;
15863
15864
15865
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15867 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15868 if test "${gl_cv_have_include_next+set}" = set; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 rm -rf conftestd1a conftestd1b conftestd2
15872 mkdir conftestd1a conftestd1b conftestd2
15873 cat <<EOF > conftestd1a/conftest.h
15874 #define DEFINED_IN_CONFTESTD1
15875 #include_next <conftest.h>
15876 #ifdef DEFINED_IN_CONFTESTD2
15877 int foo;
15878 #else
15879 #error "include_next doesn't work"
15880 #endif
15881 EOF
15882 cat <<EOF > conftestd1b/conftest.h
15883 #define DEFINED_IN_CONFTESTD1
15884 #include <stdio.h>
15885 #include_next <conftest.h>
15886 #ifdef DEFINED_IN_CONFTESTD2
15887 int foo;
15888 #else
15889 #error "include_next doesn't work"
15890 #endif
15891 EOF
15892 cat <<EOF > conftestd2/conftest.h
15893 #ifndef DEFINED_IN_CONFTESTD1
15894 #error "include_next test doesn't work"
15895 #endif
15896 #define DEFINED_IN_CONFTESTD2
15897 EOF
15898 gl_save_CPPFLAGS="$CPPFLAGS"
15899 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 #include <conftest.h>
15903 _ACEOF
15904 if ac_fn_c_try_compile "$LINENO"; then :
15905 gl_cv_have_include_next=yes
15906 else
15907 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <conftest.h>
15911 _ACEOF
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 gl_cv_have_include_next=buggy
15914 else
15915 gl_cv_have_include_next=no
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918
15919 fi
15920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 CPPFLAGS="$gl_save_CPPFLAGS"
15922 rm -rf conftestd1a conftestd1b conftestd2
15923
15924 fi
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15926 $as_echo "$gl_cv_have_include_next" >&6; }
15927 PRAGMA_SYSTEM_HEADER=
15928 if test $gl_cv_have_include_next = yes; then
15929 INCLUDE_NEXT=include_next
15930 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15931 if test -n "$GCC"; then
15932 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15933 fi
15934 else
15935 if test $gl_cv_have_include_next = buggy; then
15936 INCLUDE_NEXT=include
15937 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15938 else
15939 INCLUDE_NEXT=include
15940 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15941 fi
15942 fi
15943
15944
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15947 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15948 if test "${gl_cv_pragma_columns+set}" = set; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953
15954 #ifdef __TANDEM
15955 choke me
15956 #endif
15957
15958 _ACEOF
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 $EGREP "choke me" >/dev/null 2>&1; then :
15961 gl_cv_pragma_columns=yes
15962 else
15963 gl_cv_pragma_columns=no
15964 fi
15965 rm -f conftest*
15966
15967
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15970 $as_echo "$gl_cv_pragma_columns" >&6; }
15971 if test $gl_cv_pragma_columns = yes; then
15972 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15973 else
15974 PRAGMA_COLUMNS=
15975 fi
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993 if test $gl_cv_have_include_next = yes; then
15994 gl_cv_next_getopt_h='<'getopt.h'>'
15995 else
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15997 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15998 if test "${gl_cv_next_getopt_h+set}" = set; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001
16002 if test $ac_cv_header_getopt_h = yes; then
16003
16004
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <getopt.h>
16008
16009 _ACEOF
16010 case "$host_os" in
16011 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16012 *) gl_absname_cpp="$ac_cpp" ;;
16013 esac
16014
16015 case "$host_os" in
16016 mingw*)
16017 gl_dirsep_regex='[/\\]'
16018 ;;
16019 *)
16020 gl_dirsep_regex='\/'
16021 ;;
16022 esac
16023 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16024
16025 <<<<<<< TREE
16026 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
16027 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
16028 s#^/[^/]#//&#
16029 =======
16030 gl_header_literal_regex=`echo 'getopt.h' \
16031 | sed -e "$gl_make_literal_regex_sed"`
16032 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16033 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16034 s|^/[^/]|//&|
16035 >>>>>>> MERGE-SOURCE
16036 p
16037 q
16038 }'
16039 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16040 sed -n "$gl_absolute_header_sed"`'"'
16041 else
16042 gl_cv_next_getopt_h='<'getopt.h'>'
16043 fi
16044
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16048 $as_echo "$gl_cv_next_getopt_h" >&6; }
16049 fi
16050 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16051
16052 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16054 gl_next_as_first_directive='<'getopt.h'>'
16055 else
16056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16057 gl_next_as_first_directive=$gl_cv_next_getopt_h
16058 fi
16059 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16060
16061
16062
16063
16064 if test $ac_cv_header_getopt_h = yes; then
16065 HAVE_GETOPT_H=1
16066 else
16067 HAVE_GETOPT_H=0
16068 fi
16069
16070
16071 gl_replace_getopt=
16072
16073 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16074 for ac_header in getopt.h
16075 do :
16076 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16077 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_GETOPT_H 1
16080 _ACEOF
16081
16082 else
16083 gl_replace_getopt=yes
16084 fi
16085
16086 done
16087
16088 fi
16089
16090 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16091 for ac_func in getopt_long_only
16092 do :
16093 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16094 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_GETOPT_LONG_ONLY 1
16097 _ACEOF
16098
16099 else
16100 gl_replace_getopt=yes
16101 fi
16102 done
16103
16104 fi
16105
16106 if test -z "$gl_replace_getopt"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16108 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16109 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16111 else
16112
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #include <unistd.h>
16116 int
16117 main ()
16118 {
16119 int *p = &optreset; return optreset;
16120 ;
16121 return 0;
16122 }
16123 _ACEOF
16124 if ac_fn_c_try_compile "$LINENO"; then :
16125 gl_optind_min=1
16126 else
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #include <getopt.h>
16130 int
16131 main ()
16132 {
16133 return !getopt_clip;
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 gl_optind_min=1
16140 else
16141 gl_optind_min=0
16142 fi
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146
16147 gl_save_CPPFLAGS=$CPPFLAGS
16148 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16149 if test "$cross_compiling" = yes; then :
16150 case "$host_os" in
16151 mingw*) gl_cv_func_getopt_posix="guessing no";;
16152 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16153 *) gl_cv_func_getopt_posix="guessing yes";;
16154 esac
16155
16156 else
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159
16160 #include <unistd.h>
16161 #include <stdlib.h>
16162 #include <string.h>
16163
16164 int
16165 main ()
16166 {
16167 {
16168 int argc = 0;
16169 char *argv[10];
16170 int c;
16171
16172 argv[argc++] = "program";
16173 argv[argc++] = "-a";
16174 argv[argc++] = "foo";
16175 argv[argc++] = "bar";
16176 argv[argc] = NULL;
16177 optind = OPTIND_MIN;
16178 opterr = 0;
16179
16180 c = getopt (argc, argv, "ab");
16181 if (!(c == 'a'))
16182 return 1;
16183 c = getopt (argc, argv, "ab");
16184 if (!(c == -1))
16185 return 2;
16186 if (!(optind == 2))
16187 return 3;
16188 }
16189 /* Some internal state exists at this point. */
16190 {
16191 int argc = 0;
16192 char *argv[10];
16193 int c;
16194
16195 argv[argc++] = "program";
16196 argv[argc++] = "donald";
16197 argv[argc++] = "-p";
16198 argv[argc++] = "billy";
16199 argv[argc++] = "duck";
16200 argv[argc++] = "-a";
16201 argv[argc++] = "bar";
16202 argv[argc] = NULL;
16203 optind = OPTIND_MIN;
16204 opterr = 0;
16205
16206 c = getopt (argc, argv, "+abp:q:");
16207 if (!(c == -1))
16208 return 4;
16209 if (!(strcmp (argv[0], "program") == 0))
16210 return 5;
16211 if (!(strcmp (argv[1], "donald") == 0))
16212 return 6;
16213 if (!(strcmp (argv[2], "-p") == 0))
16214 return 7;
16215 if (!(strcmp (argv[3], "billy") == 0))
16216 return 8;
16217 if (!(strcmp (argv[4], "duck") == 0))
16218 return 9;
16219 if (!(strcmp (argv[5], "-a") == 0))
16220 return 10;
16221 if (!(strcmp (argv[6], "bar") == 0))
16222 return 11;
16223 if (!(optind == 1))
16224 return 12;
16225 }
16226 /* Detect MacOS 10.5, AIX 7.1 bug. */
16227 {
16228 char *argv[3] = { "program", "-ab", NULL };
16229 optind = OPTIND_MIN;
16230 opterr = 0;
16231 if (getopt (2, argv, "ab:") != 'a')
16232 return 13;
16233 if (getopt (2, argv, "ab:") != '?')
16234 return 14;
16235 if (optopt != 'b')
16236 return 15;
16237 if (optind != 2)
16238 return 16;
16239 }
16240
16241 return 0;
16242 }
16243
16244 _ACEOF
16245 if ac_fn_c_try_run "$LINENO"; then :
16246 gl_cv_func_getopt_posix=yes
16247 else
16248 gl_cv_func_getopt_posix=no
16249 fi
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16251 conftest.$ac_objext conftest.beam conftest.$ac_ext
16252 fi
16253
16254 CPPFLAGS=$gl_save_CPPFLAGS
16255
16256 fi
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16258 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16259 case "$gl_cv_func_getopt_posix" in
16260 *no) gl_replace_getopt=yes ;;
16261 esac
16262 fi
16263
16264 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16266 $as_echo_n "checking for working GNU getopt function... " >&6; }
16267 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16271 # optstring is necessary for programs like m4 that have POSIX-mandated
16272 # semantics for supporting options interspersed with files.
16273 # Also, since getopt_long is a GNU extension, we require optind=0.
16274 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16275 # so take care to revert to the correct (non-)export state.
16276 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16277 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16278 xx) gl_had_POSIXLY_CORRECT=exported ;;
16279 x) gl_had_POSIXLY_CORRECT=yes ;;
16280 *) gl_had_POSIXLY_CORRECT= ;;
16281 esac
16282 POSIXLY_CORRECT=1
16283 export POSIXLY_CORRECT
16284 if test "$cross_compiling" = yes; then :
16285 case $host_os:$ac_cv_have_decl_optreset in
16286 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16287 *:yes) gl_cv_func_getopt_gnu=no;;
16288 *) gl_cv_func_getopt_gnu=yes;;
16289 esac
16290
16291 else
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <getopt.h>
16295 #include <stddef.h>
16296 #include <string.h>
16297
16298 #include <stdlib.h>
16299 #if defined __MACH__ && defined __APPLE__
16300 /* Avoid a crash on MacOS X. */
16301 #include <mach/mach.h>
16302 #include <mach/mach_error.h>
16303 #include <mach/thread_status.h>
16304 #include <mach/exception.h>
16305 #include <mach/task.h>
16306 #include <pthread.h>
16307 /* The exception port on which our thread listens. */
16308 static mach_port_t our_exception_port;
16309 /* The main function of the thread listening for exceptions of type
16310 EXC_BAD_ACCESS. */
16311 static void *
16312 mach_exception_thread (void *arg)
16313 {
16314 /* Buffer for a message to be received. */
16315 struct {
16316 mach_msg_header_t head;
16317 mach_msg_body_t msgh_body;
16318 char data[1024];
16319 } msg;
16320 mach_msg_return_t retval;
16321 /* Wait for a message on the exception port. */
16322 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16323 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16324 if (retval != MACH_MSG_SUCCESS)
16325 abort ();
16326 exit (1);
16327 }
16328 static void
16329 nocrash_init (void)
16330 {
16331 mach_port_t self = mach_task_self ();
16332 /* Allocate a port on which the thread shall listen for exceptions. */
16333 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16334 == KERN_SUCCESS) {
16335 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16336 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16337 MACH_MSG_TYPE_MAKE_SEND)
16338 == KERN_SUCCESS) {
16339 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16340 for us. */
16341 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16342 /* Create the thread listening on the exception port. */
16343 pthread_attr_t attr;
16344 pthread_t thread;
16345 if (pthread_attr_init (&attr) == 0
16346 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16347 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16348 pthread_attr_destroy (&attr);
16349 /* Replace the exception port info for these exceptions with our own.
16350 Note that we replace the exception port for the entire task, not only
16351 for a particular thread. This has the effect that when our exception
16352 port gets the message, the thread specific exception port has already
16353 been asked, and we don't need to bother about it.
16354 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16355 task_set_exception_ports (self, mask, our_exception_port,
16356 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16357 }
16358 }
16359 }
16360 }
16361 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16362 /* Avoid a crash on native Windows. */
16363 #define WIN32_LEAN_AND_MEAN
16364 #include <windows.h>
16365 #include <winerror.h>
16366 static LONG WINAPI
16367 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16368 {
16369 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16370 {
16371 case EXCEPTION_ACCESS_VIOLATION:
16372 case EXCEPTION_IN_PAGE_ERROR:
16373 case EXCEPTION_STACK_OVERFLOW:
16374 case EXCEPTION_GUARD_PAGE:
16375 case EXCEPTION_PRIV_INSTRUCTION:
16376 case EXCEPTION_ILLEGAL_INSTRUCTION:
16377 case EXCEPTION_DATATYPE_MISALIGNMENT:
16378 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16379 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16380 exit (1);
16381 }
16382 return EXCEPTION_CONTINUE_SEARCH;
16383 }
16384 static void
16385 nocrash_init (void)
16386 {
16387 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16388 }
16389 #else
16390 /* Avoid a crash on POSIX systems. */
16391 #include <signal.h>
16392 /* A POSIX signal handler. */
16393 static void
16394 exception_handler (int sig)
16395 {
16396 exit (1);
16397 }
16398 static void
16399 nocrash_init (void)
16400 {
16401 #ifdef SIGSEGV
16402 signal (SIGSEGV, exception_handler);
16403 #endif
16404 #ifdef SIGBUS
16405 signal (SIGBUS, exception_handler);
16406 #endif
16407 }
16408 #endif
16409
16410
16411 int
16412 main ()
16413 {
16414
16415 int result = 0;
16416
16417 nocrash_init();
16418
16419 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16420 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16421 OSF/1 5.1, Solaris 10. */
16422 {
16423 char *myargv[3];
16424 myargv[0] = "conftest";
16425 myargv[1] = "-+";
16426 myargv[2] = 0;
16427 opterr = 0;
16428 if (getopt (2, myargv, "+a") != '?')
16429 result |= 1;
16430 }
16431 /* This code succeeds on glibc 2.8, mingw,
16432 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16433 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16434 {
16435 char *argv[] = { "program", "-p", "foo", "bar", NULL };
16436
16437 optind = 1;
16438 if (getopt (4, argv, "p::") != 'p')
16439 result |= 2;
16440 else if (optarg != NULL)
16441 result |= 4;
16442 else if (getopt (4, argv, "p::") != -1)
16443 result |= 6;
16444 else if (optind != 2)
16445 result |= 8;
16446 }
16447 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16448 {
16449 char *argv[] = { "program", "foo", "-p", NULL };
16450 optind = 0;
16451 if (getopt (3, argv, "-p") != 1)
16452 result |= 16;
16453 else if (getopt (3, argv, "-p") != 'p')
16454 result |= 32;
16455 }
16456 /* This code fails on glibc 2.11. */
16457 {
16458 char *argv[] = { "program", "-b", "-a", NULL };
16459 optind = opterr = 0;
16460 if (getopt (3, argv, "+:a:b") != 'b')
16461 result |= 64;
16462 else if (getopt (3, argv, "+:a:b") != ':')
16463 result |= 64;
16464 }
16465 return result;
16466
16467 ;
16468 return 0;
16469 }
16470 _ACEOF
16471 if ac_fn_c_try_run "$LINENO"; then :
16472 gl_cv_func_getopt_gnu=yes
16473 else
16474 gl_cv_func_getopt_gnu=no
16475 fi
16476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16477 conftest.$ac_objext conftest.beam conftest.$ac_ext
16478 fi
16479
16480 case $gl_had_POSIXLY_CORRECT in
16481 exported) ;;
16482 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16483 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16484 esac
16485
16486 fi
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16488 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16489 if test "$gl_cv_func_getopt_gnu" = "no"; then
16490 gl_replace_getopt=yes
16491 fi
16492 fi
16493
16494
16495
16496
16497
16498 REPLACE_GETOPT=0
16499
16500
16501 if test -n "$gl_replace_getopt"; then :
16502
16503 REPLACE_GETOPT=1
16504
16505 fi
16506
16507
16508 if test $REPLACE_GETOPT = 1; then
16509
16510 GETOPT_H=getopt.h
16511
16512 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16513
16514
16515
16516 fi
16517
16518 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16519 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16520 ac_have_decl=1
16521 else
16522 ac_have_decl=0
16523 fi
16524
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DECL_GETENV $ac_have_decl
16527 _ACEOF
16528
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16531 $as_echo_n "checking for unsigned long long int... " >&6; }
16532 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 ac_cv_type_unsigned_long_long_int=yes
16536 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539
16540 /* For now, do not test the preprocessor; as of 2007 there are too many
16541 implementations with broken preprocessors. Perhaps this can
16542 be revisited in 2012. In the meantime, code should not expect
16543 #if to work with literals wider than 32 bits. */
16544 /* Test literals. */
16545 long long int ll = 9223372036854775807ll;
16546 long long int nll = -9223372036854775807LL;
16547 unsigned long long int ull = 18446744073709551615ULL;
16548 /* Test constant expressions. */
16549 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16550 ? 1 : -1)];
16551 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16552 ? 1 : -1)];
16553 int i = 63;
16554 int
16555 main ()
16556 {
16557 /* Test availability of runtime routines for shift and division. */
16558 long long int llmax = 9223372036854775807ll;
16559 unsigned long long int ullmax = 18446744073709551615ull;
16560 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16561 | (llmax / ll) | (llmax % ll)
16562 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16563 | (ullmax / ull) | (ullmax % ull));
16564 ;
16565 return 0;
16566 }
16567
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570
16571 else
16572 ac_cv_type_unsigned_long_long_int=no
16573 fi
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 fi
16577 fi
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16579 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16580 if test $ac_cv_type_unsigned_long_long_int = yes; then
16581
16582 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16583
16584 fi
16585
16586
16587
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16589 $as_echo_n "checking for long long int... " >&6; }
16590 if test "${ac_cv_type_long_long_int+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 ac_cv_type_long_long_int=yes
16594 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16595 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16596 if test $ac_cv_type_long_long_int = yes; then
16597 if test "$cross_compiling" = yes; then :
16598 :
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 #include <limits.h>
16603 #ifndef LLONG_MAX
16604 # define HALF \
16605 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16606 # define LLONG_MAX (HALF - 1 + HALF)
16607 #endif
16608 int
16609 main ()
16610 {
16611 long long int n = 1;
16612 int i;
16613 for (i = 0; ; i++)
16614 {
16615 long long int m = n << i;
16616 if (m >> i != n)
16617 return 1;
16618 if (LLONG_MAX / 2 < m)
16619 break;
16620 }
16621 return 0;
16622 ;
16623 return 0;
16624 }
16625 _ACEOF
16626 if ac_fn_c_try_run "$LINENO"; then :
16627
16628 else
16629 ac_cv_type_long_long_int=no
16630 fi
16631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16632 conftest.$ac_objext conftest.beam conftest.$ac_ext
16633 fi
16634
16635 fi
16636 fi
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16639 $as_echo "$ac_cv_type_long_long_int" >&6; }
16640 if test $ac_cv_type_long_long_int = yes; then
16641
16642 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16643
16644 fi
16645
16646
16647
16648
16649
16650
16651 gl_cv_c_multiarch=no
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #ifndef __APPLE_CC__
16655 not a universal capable compiler
16656 #endif
16657 typedef int dummy;
16658
16659 _ACEOF
16660 if ac_fn_c_try_compile "$LINENO"; then :
16661
16662 arch=
16663 prev=
16664 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16665 if test -n "$prev"; then
16666 case $word in
16667 i?86 | x86_64 | ppc | ppc64)
16668 if test -z "$arch" || test "$arch" = "$word"; then
16669 arch="$word"
16670 else
16671 gl_cv_c_multiarch=yes
16672 fi
16673 ;;
16674 esac
16675 prev=
16676 else
16677 if test "x$word" = "x-arch"; then
16678 prev=arch
16679 fi
16680 fi
16681 done
16682
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 if test $gl_cv_c_multiarch = yes; then
16686 APPLE_UNIVERSAL_BUILD=1
16687 else
16688 APPLE_UNIVERSAL_BUILD=0
16689 fi
16690
16691
16692
16693
16694
16695 if test $ac_cv_type_long_long_int = yes; then
16696 HAVE_LONG_LONG_INT=1
16697 else
16698 HAVE_LONG_LONG_INT=0
16699 fi
16700
16701
16702 if test $ac_cv_type_unsigned_long_long_int = yes; then
16703 HAVE_UNSIGNED_LONG_LONG_INT=1
16704 else
16705 HAVE_UNSIGNED_LONG_LONG_INT=0
16706 fi
16707
16708
16709
16710 if test $ac_cv_header_wchar_h = yes; then
16711 HAVE_WCHAR_H=1
16712 else
16713 HAVE_WCHAR_H=0
16714 fi
16715
16716
16717 if test $ac_cv_header_inttypes_h = yes; then
16718 HAVE_INTTYPES_H=1
16719 else
16720 HAVE_INTTYPES_H=0
16721 fi
16722
16723
16724 if test $ac_cv_header_sys_types_h = yes; then
16725 HAVE_SYS_TYPES_H=1
16726 else
16727 HAVE_SYS_TYPES_H=0
16728 fi
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740 if test $gl_cv_have_include_next = yes; then
16741 gl_cv_next_stdint_h='<'stdint.h'>'
16742 else
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16744 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16745 if test "${gl_cv_next_stdint_h+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748
16749 if test $ac_cv_header_stdint_h = yes; then
16750
16751
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16754 #include <stdint.h>
16755
16756 _ACEOF
16757 case "$host_os" in
16758 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16759 *) gl_absname_cpp="$ac_cpp" ;;
16760 esac
16761
16762 case "$host_os" in
16763 mingw*)
16764 gl_dirsep_regex='[/\\]'
16765 ;;
16766 *)
16767 gl_dirsep_regex='\/'
16768 ;;
16769 esac
16770 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16771
16772 <<<<<<< TREE
16773 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
16774 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
16775 s#^/[^/]#//&#
16776 =======
16777 gl_header_literal_regex=`echo 'stdint.h' \
16778 | sed -e "$gl_make_literal_regex_sed"`
16779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16781 s|^/[^/]|//&|
16782 >>>>>>> MERGE-SOURCE
16783 p
16784 q
16785 }'
16786 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16787 sed -n "$gl_absolute_header_sed"`'"'
16788 else
16789 gl_cv_next_stdint_h='<'stdint.h'>'
16790 fi
16791
16792
16793 fi
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16795 $as_echo "$gl_cv_next_stdint_h" >&6; }
16796 fi
16797 NEXT_STDINT_H=$gl_cv_next_stdint_h
16798
16799 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16801 gl_next_as_first_directive='<'stdint.h'>'
16802 else
16803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16804 gl_next_as_first_directive=$gl_cv_next_stdint_h
16805 fi
16806 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16807
16808
16809
16810
16811 if test $ac_cv_header_stdint_h = yes; then
16812 HAVE_STDINT_H=1
16813 else
16814 HAVE_STDINT_H=0
16815 fi
16816
16817
16818 if test $ac_cv_header_stdint_h = yes; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16820 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16821 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16823 else
16824 gl_cv_header_working_stdint_h=no
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827
16828
16829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16830 #include <stdint.h>
16831 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16832 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16833 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16834 #endif
16835
16836
16837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16838 included before <wchar.h>. */
16839 #include <stddef.h>
16840 #include <signal.h>
16841 #if HAVE_WCHAR_H
16842 # include <stdio.h>
16843 # include <time.h>
16844 # include <wchar.h>
16845 #endif
16846
16847
16848 #ifdef INT8_MAX
16849 int8_t a1 = INT8_MAX;
16850 int8_t a1min = INT8_MIN;
16851 #endif
16852 #ifdef INT16_MAX
16853 int16_t a2 = INT16_MAX;
16854 int16_t a2min = INT16_MIN;
16855 #endif
16856 #ifdef INT32_MAX
16857 int32_t a3 = INT32_MAX;
16858 int32_t a3min = INT32_MIN;
16859 #endif
16860 #ifdef INT64_MAX
16861 int64_t a4 = INT64_MAX;
16862 int64_t a4min = INT64_MIN;
16863 #endif
16864 #ifdef UINT8_MAX
16865 uint8_t b1 = UINT8_MAX;
16866 #else
16867 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16868 #endif
16869 #ifdef UINT16_MAX
16870 uint16_t b2 = UINT16_MAX;
16871 #endif
16872 #ifdef UINT32_MAX
16873 uint32_t b3 = UINT32_MAX;
16874 #endif
16875 #ifdef UINT64_MAX
16876 uint64_t b4 = UINT64_MAX;
16877 #endif
16878 int_least8_t c1 = INT8_C (0x7f);
16879 int_least8_t c1max = INT_LEAST8_MAX;
16880 int_least8_t c1min = INT_LEAST8_MIN;
16881 int_least16_t c2 = INT16_C (0x7fff);
16882 int_least16_t c2max = INT_LEAST16_MAX;
16883 int_least16_t c2min = INT_LEAST16_MIN;
16884 int_least32_t c3 = INT32_C (0x7fffffff);
16885 int_least32_t c3max = INT_LEAST32_MAX;
16886 int_least32_t c3min = INT_LEAST32_MIN;
16887 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16888 int_least64_t c4max = INT_LEAST64_MAX;
16889 int_least64_t c4min = INT_LEAST64_MIN;
16890 uint_least8_t d1 = UINT8_C (0xff);
16891 uint_least8_t d1max = UINT_LEAST8_MAX;
16892 uint_least16_t d2 = UINT16_C (0xffff);
16893 uint_least16_t d2max = UINT_LEAST16_MAX;
16894 uint_least32_t d3 = UINT32_C (0xffffffff);
16895 uint_least32_t d3max = UINT_LEAST32_MAX;
16896 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16897 uint_least64_t d4max = UINT_LEAST64_MAX;
16898 int_fast8_t e1 = INT_FAST8_MAX;
16899 int_fast8_t e1min = INT_FAST8_MIN;
16900 int_fast16_t e2 = INT_FAST16_MAX;
16901 int_fast16_t e2min = INT_FAST16_MIN;
16902 int_fast32_t e3 = INT_FAST32_MAX;
16903 int_fast32_t e3min = INT_FAST32_MIN;
16904 int_fast64_t e4 = INT_FAST64_MAX;
16905 int_fast64_t e4min = INT_FAST64_MIN;
16906 uint_fast8_t f1 = UINT_FAST8_MAX;
16907 uint_fast16_t f2 = UINT_FAST16_MAX;
16908 uint_fast32_t f3 = UINT_FAST32_MAX;
16909 uint_fast64_t f4 = UINT_FAST64_MAX;
16910 #ifdef INTPTR_MAX
16911 intptr_t g = INTPTR_MAX;
16912 intptr_t gmin = INTPTR_MIN;
16913 #endif
16914 #ifdef UINTPTR_MAX
16915 uintptr_t h = UINTPTR_MAX;
16916 #endif
16917 intmax_t i = INTMAX_MAX;
16918 uintmax_t j = UINTMAX_MAX;
16919
16920 #include <limits.h> /* for CHAR_BIT */
16921 #define TYPE_MINIMUM(t) \
16922 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16923 #define TYPE_MAXIMUM(t) \
16924 ((t) ((t) 0 < (t) -1 \
16925 ? (t) -1 \
16926 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16927 struct s {
16928 int check_PTRDIFF:
16929 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16930 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16931 ? 1 : -1;
16932 /* Detect bug in FreeBSD 6.0 / ia64. */
16933 int check_SIG_ATOMIC:
16934 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16935 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16936 ? 1 : -1;
16937 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16938 int check_WCHAR:
16939 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16940 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16941 ? 1 : -1;
16942 /* Detect bug in mingw. */
16943 int check_WINT:
16944 WINT_MIN == TYPE_MINIMUM (wint_t)
16945 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16946 ? 1 : -1;
16947
16948 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16949 int check_UINT8_C:
16950 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16951 int check_UINT16_C:
16952 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16953
16954 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16955 #ifdef UINT8_MAX
16956 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16957 #endif
16958 #ifdef UINT16_MAX
16959 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16960 #endif
16961 #ifdef UINT32_MAX
16962 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16963 #endif
16964 #ifdef UINT64_MAX
16965 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16966 #endif
16967 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16968 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16969 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16970 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16971 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16972 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16973 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16974 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16975 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16976 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16977 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16978 };
16979
16980 int
16981 main ()
16982 {
16983
16984 ;
16985 return 0;
16986 }
16987 _ACEOF
16988 if ac_fn_c_try_compile "$LINENO"; then :
16989 if test "$cross_compiling" = yes; then :
16990 gl_cv_header_working_stdint_h=yes
16991
16992 else
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995
16996
16997 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16998 #include <stdint.h>
16999
17000
17001 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17002 included before <wchar.h>. */
17003 #include <stddef.h>
17004 #include <signal.h>
17005 #if HAVE_WCHAR_H
17006 # include <stdio.h>
17007 # include <time.h>
17008 # include <wchar.h>
17009 #endif
17010
17011
17012 #include <stdio.h>
17013 #include <string.h>
17014 #define MVAL(macro) MVAL1(macro)
17015 #define MVAL1(expression) #expression
17016 static const char *macro_values[] =
17017 {
17018 #ifdef INT8_MAX
17019 MVAL (INT8_MAX),
17020 #endif
17021 #ifdef INT16_MAX
17022 MVAL (INT16_MAX),
17023 #endif
17024 #ifdef INT32_MAX
17025 MVAL (INT32_MAX),
17026 #endif
17027 #ifdef INT64_MAX
17028 MVAL (INT64_MAX),
17029 #endif
17030 #ifdef UINT8_MAX
17031 MVAL (UINT8_MAX),
17032 #endif
17033 #ifdef UINT16_MAX
17034 MVAL (UINT16_MAX),
17035 #endif
17036 #ifdef UINT32_MAX
17037 MVAL (UINT32_MAX),
17038 #endif
17039 #ifdef UINT64_MAX
17040 MVAL (UINT64_MAX),
17041 #endif
17042 NULL
17043 };
17044
17045 int
17046 main ()
17047 {
17048
17049 const char **mv;
17050 for (mv = macro_values; *mv != NULL; mv++)
17051 {
17052 const char *value = *mv;
17053 /* Test whether it looks like a cast expression. */
17054 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17055 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17056 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17057 || strncmp (value, "((int)"/*)*/, 6) == 0
17058 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17059 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17060 return mv - macro_values + 1;
17061 }
17062 return 0;
17063
17064 ;
17065 return 0;
17066 }
17067 _ACEOF
17068 if ac_fn_c_try_run "$LINENO"; then :
17069 gl_cv_header_working_stdint_h=yes
17070 fi
17071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17072 conftest.$ac_objext conftest.beam conftest.$ac_ext
17073 fi
17074
17075
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078
17079 fi
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17081 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17082 fi
17083 if test "$gl_cv_header_working_stdint_h" = yes; then
17084 STDINT_H=
17085 else
17086 for ac_header in sys/inttypes.h sys/bitypes.h
17087 do :
17088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17090 eval as_val=\$$as_ac_Header
17091 if test "x$as_val" = x""yes; then :
17092 cat >>confdefs.h <<_ACEOF
17093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17094 _ACEOF
17095
17096 fi
17097
17098 done
17099
17100 if test $ac_cv_header_sys_inttypes_h = yes; then
17101 HAVE_SYS_INTTYPES_H=1
17102 else
17103 HAVE_SYS_INTTYPES_H=0
17104 fi
17105
17106 if test $ac_cv_header_sys_bitypes_h = yes; then
17107 HAVE_SYS_BITYPES_H=1
17108 else
17109 HAVE_SYS_BITYPES_H=0
17110 fi
17111
17112
17113
17114
17115 if test $APPLE_UNIVERSAL_BUILD = 0; then
17116
17117
17118 for gltype in ptrdiff_t size_t ; do
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17120 $as_echo_n "checking for bit size of $gltype... " >&6; }
17121 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17122 $as_echo_n "(cached) " >&6
17123 else
17124 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17126 included before <wchar.h>. */
17127 #include <stddef.h>
17128 #include <signal.h>
17129 #if HAVE_WCHAR_H
17130 # include <stdio.h>
17131 # include <time.h>
17132 # include <wchar.h>
17133 #endif
17134
17135 #include <limits.h>"; then :
17136
17137 else
17138 result=unknown
17139 fi
17140
17141 eval gl_cv_bitsizeof_${gltype}=\$result
17142
17143 fi
17144 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17146 $as_echo "$ac_res" >&6; }
17147 eval result=\$gl_cv_bitsizeof_${gltype}
17148 if test $result = unknown; then
17149 result=0
17150 fi
17151 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17152 cat >>confdefs.h <<_ACEOF
17153 #define BITSIZEOF_${GLTYPE} $result
17154 _ACEOF
17155
17156 eval BITSIZEOF_${GLTYPE}=\$result
17157 done
17158
17159
17160 fi
17161
17162
17163 for gltype in sig_atomic_t wchar_t wint_t ; do
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17165 $as_echo_n "checking for bit size of $gltype... " >&6; }
17166 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17171 included before <wchar.h>. */
17172 #include <stddef.h>
17173 #include <signal.h>
17174 #if HAVE_WCHAR_H
17175 # include <stdio.h>
17176 # include <time.h>
17177 # include <wchar.h>
17178 #endif
17179
17180 #include <limits.h>"; then :
17181
17182 else
17183 result=unknown
17184 fi
17185
17186 eval gl_cv_bitsizeof_${gltype}=\$result
17187
17188 fi
17189 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17191 $as_echo "$ac_res" >&6; }
17192 eval result=\$gl_cv_bitsizeof_${gltype}
17193 if test $result = unknown; then
17194 result=0
17195 fi
17196 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17197 cat >>confdefs.h <<_ACEOF
17198 #define BITSIZEOF_${GLTYPE} $result
17199 _ACEOF
17200
17201 eval BITSIZEOF_${GLTYPE}=\$result
17202 done
17203
17204
17205
17206
17207 for gltype in sig_atomic_t wchar_t wint_t ; do
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17209 $as_echo_n "checking whether $gltype is signed... " >&6; }
17210 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215
17216 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17217 included before <wchar.h>. */
17218 #include <stddef.h>
17219 #include <signal.h>
17220 #if HAVE_WCHAR_H
17221 # include <stdio.h>
17222 # include <time.h>
17223 # include <wchar.h>
17224 #endif
17225
17226 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17227 int
17228 main ()
17229 {
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_compile "$LINENO"; then :
17236 result=yes
17237 else
17238 result=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 eval gl_cv_type_${gltype}_signed=\$result
17242
17243 fi
17244 eval ac_res=\$gl_cv_type_${gltype}_signed
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17246 $as_echo "$ac_res" >&6; }
17247 eval result=\$gl_cv_type_${gltype}_signed
17248 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17249 if test "$result" = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define HAVE_SIGNED_${GLTYPE} 1
17252 _ACEOF
17253
17254 eval HAVE_SIGNED_${GLTYPE}=1
17255 else
17256 eval HAVE_SIGNED_${GLTYPE}=0
17257 fi
17258 done
17259
17260
17261 gl_cv_type_ptrdiff_t_signed=yes
17262 gl_cv_type_size_t_signed=no
17263 if test $APPLE_UNIVERSAL_BUILD = 0; then
17264
17265
17266 for gltype in ptrdiff_t size_t ; do
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17268 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17269 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17270 $as_echo_n "(cached) " >&6
17271 else
17272 eval gl_cv_type_${gltype}_suffix=no
17273 eval result=\$gl_cv_type_${gltype}_signed
17274 if test "$result" = yes; then
17275 glsufu=
17276 else
17277 glsufu=u
17278 fi
17279 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17280 case $glsuf in
17281 '') gltype1='int';;
17282 l) gltype1='long int';;
17283 ll) gltype1='long long int';;
17284 i64) gltype1='__int64';;
17285 u) gltype1='unsigned int';;
17286 ul) gltype1='unsigned long int';;
17287 ull) gltype1='unsigned long long int';;
17288 ui64)gltype1='unsigned __int64';;
17289 esac
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292
17293 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17294 included before <wchar.h>. */
17295 #include <stddef.h>
17296 #include <signal.h>
17297 #if HAVE_WCHAR_H
17298 # include <stdio.h>
17299 # include <time.h>
17300 # include <wchar.h>
17301 #endif
17302
17303 extern $gltype foo;
17304 extern $gltype1 foo;
17305 int
17306 main ()
17307 {
17308
17309 ;
17310 return 0;
17311 }
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"; then :
17314 eval gl_cv_type_${gltype}_suffix=\$glsuf
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 eval result=\$gl_cv_type_${gltype}_suffix
17318 test "$result" != no && break
17319 done
17320 fi
17321 eval ac_res=\$gl_cv_type_${gltype}_suffix
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17323 $as_echo "$ac_res" >&6; }
17324 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17325 eval result=\$gl_cv_type_${gltype}_suffix
17326 test "$result" = no && result=
17327 eval ${GLTYPE}_SUFFIX=\$result
17328 cat >>confdefs.h <<_ACEOF
17329 #define ${GLTYPE}_SUFFIX $result
17330 _ACEOF
17331
17332 done
17333
17334
17335 fi
17336
17337
17338 for gltype in sig_atomic_t wchar_t wint_t ; do
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17340 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17341 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344 eval gl_cv_type_${gltype}_suffix=no
17345 eval result=\$gl_cv_type_${gltype}_signed
17346 if test "$result" = yes; then
17347 glsufu=
17348 else
17349 glsufu=u
17350 fi
17351 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17352 case $glsuf in
17353 '') gltype1='int';;
17354 l) gltype1='long int';;
17355 ll) gltype1='long long int';;
17356 i64) gltype1='__int64';;
17357 u) gltype1='unsigned int';;
17358 ul) gltype1='unsigned long int';;
17359 ull) gltype1='unsigned long long int';;
17360 ui64)gltype1='unsigned __int64';;
17361 esac
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17364
17365 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17366 included before <wchar.h>. */
17367 #include <stddef.h>
17368 #include <signal.h>
17369 #if HAVE_WCHAR_H
17370 # include <stdio.h>
17371 # include <time.h>
17372 # include <wchar.h>
17373 #endif
17374
17375 extern $gltype foo;
17376 extern $gltype1 foo;
17377 int
17378 main ()
17379 {
17380
17381 ;
17382 return 0;
17383 }
17384 _ACEOF
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386 eval gl_cv_type_${gltype}_suffix=\$glsuf
17387 fi
17388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389 eval result=\$gl_cv_type_${gltype}_suffix
17390 test "$result" != no && break
17391 done
17392 fi
17393 eval ac_res=\$gl_cv_type_${gltype}_suffix
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17395 $as_echo "$ac_res" >&6; }
17396 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17397 eval result=\$gl_cv_type_${gltype}_suffix
17398 test "$result" = no && result=
17399 eval ${GLTYPE}_SUFFIX=\$result
17400 cat >>confdefs.h <<_ACEOF
17401 #define ${GLTYPE}_SUFFIX $result
17402 _ACEOF
17403
17404 done
17405
17406
17407
17408 STDINT_H=stdint.h
17409 fi
17410
17411 if test -n "$STDINT_H"; then
17412 GL_GENERATE_STDINT_H_TRUE=
17413 GL_GENERATE_STDINT_H_FALSE='#'
17414 else
17415 GL_GENERATE_STDINT_H_TRUE='#'
17416 GL_GENERATE_STDINT_H_FALSE=
17417 fi
17418
17419
17420
17421
17422
17423 GNULIB_IMAXABS=0;
17424 GNULIB_IMAXDIV=0;
17425 GNULIB_STRTOIMAX=0;
17426 GNULIB_STRTOUMAX=0;
17427 HAVE_DECL_IMAXABS=1;
17428 HAVE_DECL_IMAXDIV=1;
17429 HAVE_DECL_STRTOIMAX=1;
17430 HAVE_DECL_STRTOUMAX=1;
17431 REPLACE_STRTOIMAX=0;
17432 INT32_MAX_LT_INTMAX_MAX=1;
17433 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17434 PRI_MACROS_BROKEN=0;
17435 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17436 UINT32_MAX_LT_UINTMAX_MAX=1;
17437 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453 if test $gl_cv_have_include_next = yes; then
17454 gl_cv_next_inttypes_h='<'inttypes.h'>'
17455 else
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17457 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17458 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461
17462 if test $ac_cv_header_inttypes_h = yes; then
17463
17464
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 #include <inttypes.h>
17468
17469 _ACEOF
17470 case "$host_os" in
17471 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17472 *) gl_absname_cpp="$ac_cpp" ;;
17473 esac
17474
17475 case "$host_os" in
17476 mingw*)
17477 gl_dirsep_regex='[/\\]'
17478 ;;
17479 *)
17480 gl_dirsep_regex='\/'
17481 ;;
17482 esac
17483 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17484
17485 <<<<<<< TREE
17486 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
17487 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
17488 s#^/[^/]#//&#
17489 =======
17490 gl_header_literal_regex=`echo 'inttypes.h' \
17491 | sed -e "$gl_make_literal_regex_sed"`
17492 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17493 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17494 s|^/[^/]|//&|
17495 >>>>>>> MERGE-SOURCE
17496 p
17497 q
17498 }'
17499 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17500 sed -n "$gl_absolute_header_sed"`'"'
17501 else
17502 gl_cv_next_inttypes_h='<'inttypes.h'>'
17503 fi
17504
17505
17506 fi
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17508 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17509 fi
17510 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17511
17512 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17513 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17514 gl_next_as_first_directive='<'inttypes.h'>'
17515 else
17516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17517 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17518 fi
17519 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531 case "$host_os" in
17532 mingw*)
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17534 $as_echo_n "checking for 64-bit off_t... " >&6; }
17535 if test "${gl_cv_type_off_t_64+set}" = set; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 #include <sys/types.h>
17541 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17542
17543 int
17544 main ()
17545 {
17546
17547 ;
17548 return 0;
17549 }
17550 _ACEOF
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552 gl_cv_type_off_t_64=yes
17553 else
17554 gl_cv_type_off_t_64=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557
17558 fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17560 $as_echo "$gl_cv_type_off_t_64" >&6; }
17561 if test $gl_cv_type_off_t_64 = no; then
17562 WINDOWS_64_BIT_OFF_T=1
17563 else
17564 WINDOWS_64_BIT_OFF_T=0
17565 fi
17566 WINDOWS_64_BIT_ST_SIZE=1
17567 ;;
17568 *)
17569 WINDOWS_64_BIT_OFF_T=0
17570 WINDOWS_64_BIT_ST_SIZE=0
17571 ;;
17572 esac
17573
17574
17575 GNULIB_FCHMODAT=0;
17576 GNULIB_FSTATAT=0;
17577 GNULIB_FUTIMENS=0;
17578 GNULIB_LCHMOD=0;
17579 GNULIB_LSTAT=0;
17580 GNULIB_MKDIRAT=0;
17581 GNULIB_MKFIFO=0;
17582 GNULIB_MKFIFOAT=0;
17583 GNULIB_MKNOD=0;
17584 GNULIB_MKNODAT=0;
17585 GNULIB_STAT=0;
17586 GNULIB_UTIMENSAT=0;
17587 HAVE_FCHMODAT=1;
17588 HAVE_FSTATAT=1;
17589 HAVE_FUTIMENS=1;
17590 HAVE_LCHMOD=1;
17591 HAVE_LSTAT=1;
17592 HAVE_MKDIRAT=1;
17593 HAVE_MKFIFO=1;
17594 HAVE_MKFIFOAT=1;
17595 HAVE_MKNOD=1;
17596 HAVE_MKNODAT=1;
17597 HAVE_UTIMENSAT=1;
17598 REPLACE_FSTAT=0;
17599 REPLACE_FSTATAT=0;
17600 REPLACE_FUTIMENS=0;
17601 REPLACE_LSTAT=0;
17602 REPLACE_MKDIR=0;
17603 REPLACE_MKFIFO=0;
17604 REPLACE_MKNOD=0;
17605 REPLACE_STAT=0;
17606 REPLACE_UTIMENSAT=0;
17607
17608
17609
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17612 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17613 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17614 $as_echo_n "(cached) " >&6
17615 else
17616 rm -f conftest.sym conftest.file
17617 echo >conftest.file
17618 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17619 if test "$cross_compiling" = yes; then :
17620 case "$host_os" in
17621 # Guess yes on glibc systems.
17622 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17623 # If we don't know, assume the worst.
17624 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17625 esac
17626
17627 else
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 int
17632 main ()
17633 {
17634 struct stat sbuf;
17635 /* Linux will dereference the symlink and fail, as required by
17636 POSIX. That is better in the sense that it means we will not
17637 have to compile and use the lstat wrapper. */
17638 return lstat ("conftest.sym/", &sbuf) == 0;
17639
17640 ;
17641 return 0;
17642 }
17643 _ACEOF
17644 if ac_fn_c_try_run "$LINENO"; then :
17645 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17646 else
17647 gl_cv_func_lstat_dereferences_slashed_symlink=no
17648 fi
17649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17650 conftest.$ac_objext conftest.beam conftest.$ac_ext
17651 fi
17652
17653 else
17654 # If the 'ln -s' command failed, then we probably don't even
17655 # have an lstat function.
17656 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17657 fi
17658 rm -f conftest.sym conftest.file
17659
17660 fi
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17662 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17663 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17664 *yes)
17665
17666 cat >>confdefs.h <<_ACEOF
17667 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17668 _ACEOF
17669
17670 ;;
17671 esac
17672
17673
17674 GNULIB_MKTIME=0;
17675 GNULIB_NANOSLEEP=0;
17676 GNULIB_STRPTIME=0;
17677 GNULIB_TIMEGM=0;
17678 GNULIB_TIME_R=0;
17679 HAVE_DECL_LOCALTIME_R=1;
17680 HAVE_NANOSLEEP=1;
17681 HAVE_STRPTIME=1;
17682 HAVE_TIMEGM=1;
17683 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17684 REPLACE_MKTIME=GNULIB_PORTCHECK;
17685 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17686 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17687
17688
17689
17690
17691 <<<<<<< TREE
17692
17693
17694 <<<<<<< TREE
17695 =======
17696 =======
17697 >>>>>>> MERGE-SOURCE
17698 GNULIB_PTHREAD_SIGMASK=0;
17699 GNULIB_SIGNAL_H_SIGPIPE=0;
17700 GNULIB_SIGPROCMASK=0;
17701 GNULIB_SIGACTION=0;
17702 HAVE_POSIX_SIGNALBLOCKING=1;
17703 HAVE_PTHREAD_SIGMASK=1;
17704 HAVE_SIGSET_T=1;
17705 HAVE_SIGINFO_T=1;
17706 HAVE_SIGACTION=1;
17707 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17708
17709 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17710
17711 HAVE_SIGHANDLER_T=1;
17712 REPLACE_PTHREAD_SIGMASK=0;
17713
17714
17715
17716
17717
17718
17719 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17720 #include <signal.h>
17721 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17722 #include <sys/types.h>
17723
17724 "
17725 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17726
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_SIGSET_T 1
17729 _ACEOF
17730
17731 gl_cv_type_sigset_t=yes
17732 else
17733 gl_cv_type_sigset_t=no
17734 fi
17735
17736 if test $gl_cv_type_sigset_t != yes; then
17737 HAVE_SIGSET_T=0
17738 fi
17739
17740
17741
17742 <<<<<<< TREE
17743 >>>>>>> MERGE-SOURCE
17744
17745
17746 =======
17747 >>>>>>> MERGE-SOURCE
17748 if test $ac_cv_header_sys_socket_h = no; then
17749 for ac_header in ws2tcpip.h
17750 do :
17751 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17752 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_WS2TCPIP_H 1
17755 _ACEOF
17756
17757 fi
17758
17759 done
17760
17761 fi
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17764 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17765 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770
17771 #include <stdbool.h>
17772 #ifndef bool
17773 "error: bool is not defined"
17774 #endif
17775 #ifndef false
17776 "error: false is not defined"
17777 #endif
17778 #if false
17779 "error: false is not 0"
17780 #endif
17781 #ifndef true
17782 "error: true is not defined"
17783 #endif
17784 #if true != 1
17785 "error: true is not 1"
17786 #endif
17787 #ifndef __bool_true_false_are_defined
17788 "error: __bool_true_false_are_defined is not defined"
17789 #endif
17790
17791 struct s { _Bool s: 1; _Bool t; } s;
17792
17793 char a[true == 1 ? 1 : -1];
17794 char b[false == 0 ? 1 : -1];
17795 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17796 char d[(bool) 0.5 == true ? 1 : -1];
17797 /* See body of main program for 'e'. */
17798 char f[(_Bool) 0.0 == false ? 1 : -1];
17799 char g[true];
17800 char h[sizeof (_Bool)];
17801 char i[sizeof s.t];
17802 enum { j = false, k = true, l = false * true, m = true * 256 };
17803 /* The following fails for
17804 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17805 _Bool n[m];
17806 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17807 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17808 /* Catch a bug in an HP-UX C compiler. See
17809 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17810 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17811 */
17812 _Bool q = true;
17813 _Bool *pq = &q;
17814
17815 int
17816 main ()
17817 {
17818
17819 bool e = &s;
17820 *pq |= q;
17821 *pq |= ! q;
17822 /* Refer to every declared value, to avoid compiler optimizations. */
17823 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17824 + !m + !n + !o + !p + !q + !pq);
17825
17826 ;
17827 return 0;
17828 }
17829 _ACEOF
17830 if ac_fn_c_try_compile "$LINENO"; then :
17831 ac_cv_header_stdbool_h=yes
17832 else
17833 ac_cv_header_stdbool_h=no
17834 fi
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 fi
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17838 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17839 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17840 if test "x$ac_cv_type__Bool" = x""yes; then :
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE__BOOL 1
17844 _ACEOF
17845
17846
17847 fi
17848
17849
17850
17851 REPLACE_NULL=0;
17852 HAVE_WCHAR_T=1;
17853
17854
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17856 $as_echo_n "checking for wchar_t... " >&6; }
17857 if test "${gt_cv_c_wchar_t+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17862 #include <stddef.h>
17863 wchar_t foo = (wchar_t)'\0';
17864 int
17865 main ()
17866 {
17867
17868 ;
17869 return 0;
17870 }
17871 _ACEOF
17872 if ac_fn_c_try_compile "$LINENO"; then :
17873 gt_cv_c_wchar_t=yes
17874 else
17875 gt_cv_c_wchar_t=no
17876 fi
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17880 $as_echo "$gt_cv_c_wchar_t" >&6; }
17881 if test $gt_cv_c_wchar_t = yes; then
17882
17883 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17884
17885 fi
17886
17887
17888 GNULIB_DPRINTF=0;
17889 GNULIB_FCLOSE=0;
17890 GNULIB_FFLUSH=0;
17891 GNULIB_FGETC=0;
17892 GNULIB_FGETS=0;
17893 GNULIB_FOPEN=0;
17894 GNULIB_FPRINTF=0;
17895 GNULIB_FPRINTF_POSIX=0;
17896 GNULIB_FPURGE=0;
17897 GNULIB_FPUTC=0;
17898 GNULIB_FPUTS=0;
17899 GNULIB_FREAD=0;
17900 GNULIB_FREOPEN=0;
17901 GNULIB_FSCANF=0;
17902 GNULIB_FSEEK=0;
17903 GNULIB_FSEEKO=0;
17904 GNULIB_FTELL=0;
17905 GNULIB_FTELLO=0;
17906 GNULIB_FWRITE=0;
17907 GNULIB_GETC=0;
17908 GNULIB_GETCHAR=0;
17909 GNULIB_GETDELIM=0;
17910 GNULIB_GETLINE=0;
17911 GNULIB_OBSTACK_PRINTF=0;
17912 GNULIB_OBSTACK_PRINTF_POSIX=0;
17913 GNULIB_PERROR=0;
17914 GNULIB_POPEN=0;
17915 GNULIB_PRINTF=0;
17916 GNULIB_PRINTF_POSIX=0;
17917 GNULIB_PUTC=0;
17918 GNULIB_PUTCHAR=0;
17919 GNULIB_PUTS=0;
17920 GNULIB_REMOVE=0;
17921 GNULIB_RENAME=0;
17922 GNULIB_RENAMEAT=0;
17923 GNULIB_SCANF=0;
17924 GNULIB_SNPRINTF=0;
17925 GNULIB_SPRINTF_POSIX=0;
17926 GNULIB_STDIO_H_NONBLOCKING=0;
17927 GNULIB_STDIO_H_SIGPIPE=0;
17928 GNULIB_TMPFILE=0;
17929 GNULIB_VASPRINTF=0;
17930 GNULIB_VFSCANF=0;
17931 GNULIB_VSCANF=0;
17932 GNULIB_VDPRINTF=0;
17933 GNULIB_VFPRINTF=0;
17934 GNULIB_VFPRINTF_POSIX=0;
17935 GNULIB_VPRINTF=0;
17936 GNULIB_VPRINTF_POSIX=0;
17937 GNULIB_VSNPRINTF=0;
17938 GNULIB_VSPRINTF_POSIX=0;
17939 HAVE_DECL_FPURGE=1;
17940 HAVE_DECL_FSEEKO=1;
17941 HAVE_DECL_FTELLO=1;
17942 HAVE_DECL_GETDELIM=1;
17943 HAVE_DECL_GETLINE=1;
17944 HAVE_DECL_OBSTACK_PRINTF=1;
17945 HAVE_DECL_SNPRINTF=1;
17946 HAVE_DECL_VSNPRINTF=1;
17947 HAVE_DPRINTF=1;
17948 HAVE_FSEEKO=1;
17949 HAVE_FTELLO=1;
17950 HAVE_RENAMEAT=1;
17951 HAVE_VASPRINTF=1;
17952 HAVE_VDPRINTF=1;
17953 REPLACE_DPRINTF=0;
17954 REPLACE_FCLOSE=0;
17955 REPLACE_FFLUSH=0;
17956 REPLACE_FOPEN=0;
17957 REPLACE_FPRINTF=0;
17958 REPLACE_FPURGE=0;
17959 REPLACE_FREOPEN=0;
17960 REPLACE_FSEEK=0;
17961 REPLACE_FSEEKO=0;
17962 REPLACE_FTELL=0;
17963 REPLACE_FTELLO=0;
17964 REPLACE_GETDELIM=0;
17965 REPLACE_GETLINE=0;
17966 REPLACE_OBSTACK_PRINTF=0;
17967 REPLACE_PERROR=0;
17968 REPLACE_POPEN=0;
17969 REPLACE_PRINTF=0;
17970 REPLACE_REMOVE=0;
17971 REPLACE_RENAME=0;
17972 REPLACE_RENAMEAT=0;
17973 REPLACE_SNPRINTF=0;
17974 REPLACE_SPRINTF=0;
17975 REPLACE_STDIO_READ_FUNCS=0;
17976 REPLACE_STDIO_WRITE_FUNCS=0;
17977 REPLACE_TMPFILE=0;
17978 REPLACE_VASPRINTF=0;
17979 REPLACE_VDPRINTF=0;
17980 REPLACE_VFPRINTF=0;
17981 REPLACE_VPRINTF=0;
17982 REPLACE_VSNPRINTF=0;
17983 REPLACE_VSPRINTF=0;
17984
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17986 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17987 if test "${ac_cv_struct_tm+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <sys/types.h>
17993 #include <time.h>
17994
17995 int
17996 main ()
17997 {
17998 struct tm tm;
17999 int *p = &tm.tm_sec;
18000 return !p;
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 if ac_fn_c_try_compile "$LINENO"; then :
18006 ac_cv_struct_tm=time.h
18007 else
18008 ac_cv_struct_tm=sys/time.h
18009 fi
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011 fi
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18013 $as_echo "$ac_cv_struct_tm" >&6; }
18014 if test $ac_cv_struct_tm = sys/time.h; then
18015
18016 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18017
18018 fi
18019
18020 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18021 #include <$ac_cv_struct_tm>
18022
18023 "
18024 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18025
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_STRUCT_TM_TM_ZONE 1
18028 _ACEOF
18029
18030
18031 fi
18032
18033 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18034
18035 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18036
18037 else
18038 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18039 "
18040 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18041 ac_have_decl=1
18042 else
18043 ac_have_decl=0
18044 fi
18045
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_DECL_TZNAME $ac_have_decl
18048 _ACEOF
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18051 $as_echo_n "checking for tzname... " >&6; }
18052 if test "${ac_cv_var_tzname+set}" = set; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18057 #include <time.h>
18058 #if !HAVE_DECL_TZNAME
18059 extern char *tzname[];
18060 #endif
18061
18062 int
18063 main ()
18064 {
18065 return tzname[0][0];
18066 ;
18067 return 0;
18068 }
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 ac_cv_var_tzname=yes
18072 else
18073 ac_cv_var_tzname=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18079 $as_echo "$ac_cv_var_tzname" >&6; }
18080 if test $ac_cv_var_tzname = yes; then
18081
18082 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18083
18084 fi
18085 fi
18086
18087
18088 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18089 "
18090 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18091
18092 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18093
18094 fi
18095
18096
18097
18098
18099 <<<<<<< TREE
18100 <<<<<<< TREE
18101 =======
18102
18103
18104 =======
18105 >>>>>>> MERGE-SOURCE
18106 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18107 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18108 ac_have_decl=1
18109 else
18110 ac_have_decl=0
18111 fi
18112
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18115 _ACEOF
18116
18117
18118
18119 >>>>>>> MERGE-SOURCE
18120 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18121 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18122 ac_have_decl=1
18123 else
18124 ac_have_decl=0
18125 fi
18126
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18129 _ACEOF
18130
18131
18132
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18134 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18135 if test "${ac_cv_header_stat_broken+set}" = set; then :
18136 $as_echo_n "(cached) " >&6
18137 else
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140 #include <sys/types.h>
18141 #include <sys/stat.h>
18142
18143 #if defined S_ISBLK && defined S_IFDIR
18144 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18145 #endif
18146
18147 #if defined S_ISBLK && defined S_IFCHR
18148 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18149 #endif
18150
18151 #if defined S_ISLNK && defined S_IFREG
18152 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18153 #endif
18154
18155 #if defined S_ISSOCK && defined S_IFREG
18156 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18157 #endif
18158
18159 _ACEOF
18160 if ac_fn_c_try_compile "$LINENO"; then :
18161 ac_cv_header_stat_broken=no
18162 else
18163 ac_cv_header_stat_broken=yes
18164 fi
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 fi
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18168 $as_echo "$ac_cv_header_stat_broken" >&6; }
18169 if test $ac_cv_header_stat_broken = yes; then
18170
18171 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18172
18173 fi
18174
18175
18176
18177 <<<<<<< TREE
18178 =======
18179 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18180 if test "x$ac_cv_type_mode_t" = x""yes; then :
18181
18182 else
18183
18184 cat >>confdefs.h <<_ACEOF
18185 #define mode_t int
18186 _ACEOF
18187
18188 fi
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198 >>>>>>> MERGE-SOURCE
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18200 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18201 if test "${ac_cv_c_restrict+set}" = set; then :
18202 $as_echo_n "(cached) " >&6
18203 else
18204 ac_cv_c_restrict=no
18205 # The order here caters to the fact that C++ does not require restrict.
18206 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209 typedef int * int_ptr;
18210 int foo (int_ptr $ac_kw ip) {
18211 return ip[0];
18212 }
18213 int
18214 main ()
18215 {
18216 int s[1];
18217 int * $ac_kw t = s;
18218 t[0] = 0;
18219 return foo(t)
18220 ;
18221 return 0;
18222 }
18223 _ACEOF
18224 if ac_fn_c_try_compile "$LINENO"; then :
18225 ac_cv_c_restrict=$ac_kw
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228 test "$ac_cv_c_restrict" != no && break
18229 done
18230
18231 fi
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18233 $as_echo "$ac_cv_c_restrict" >&6; }
18234
18235 case $ac_cv_c_restrict in
18236 restrict) ;;
18237 no) $as_echo "#define restrict /**/" >>confdefs.h
18238 ;;
18239 *) cat >>confdefs.h <<_ACEOF
18240 #define restrict $ac_cv_c_restrict
18241 _ACEOF
18242 ;;
18243 esac
18244
18245
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18248 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18249 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 #include <time.h>
18255
18256 int
18257 main ()
18258 {
18259 static struct timespec x; x.tv_sec = x.tv_nsec;
18260 ;
18261 return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265 gl_cv_sys_struct_timespec_in_time_h=yes
18266 else
18267 gl_cv_sys_struct_timespec_in_time_h=no
18268 fi
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270 fi
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18272 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18273
18274 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18275 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18276 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18277 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18278 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18279 else
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18281 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18282 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <sys/time.h>
18288
18289 int
18290 main ()
18291 {
18292 static struct timespec x; x.tv_sec = x.tv_nsec;
18293 ;
18294 return 0;
18295 }
18296 _ACEOF
18297 if ac_fn_c_try_compile "$LINENO"; then :
18298 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18299 else
18300 gl_cv_sys_struct_timespec_in_sys_time_h=no
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 fi
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18305 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18306 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18307 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18308 else
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18310 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18311 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18312 $as_echo_n "(cached) " >&6
18313 else
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <pthread.h>
18317
18318 int
18319 main ()
18320 {
18321 static struct timespec x; x.tv_sec = x.tv_nsec;
18322 ;
18323 return 0;
18324 }
18325 _ACEOF
18326 if ac_fn_c_try_compile "$LINENO"; then :
18327 gl_cv_sys_struct_timespec_in_pthread_h=yes
18328 else
18329 gl_cv_sys_struct_timespec_in_pthread_h=no
18330 fi
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332 fi
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18334 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18335 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18336 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18337 fi
18338 fi
18339 fi
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355 if test $gl_cv_have_include_next = yes; then
18356 gl_cv_next_time_h='<'time.h'>'
18357 else
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18359 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18360 if test "${gl_cv_next_time_h+set}" = set; then :
18361 $as_echo_n "(cached) " >&6
18362 else
18363
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366 #include <time.h>
18367
18368 _ACEOF
18369 case "$host_os" in
18370 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18371 *) gl_absname_cpp="$ac_cpp" ;;
18372 esac
18373
18374 case "$host_os" in
18375 mingw*)
18376 gl_dirsep_regex='[/\\]'
18377 ;;
18378 *)
18379 gl_dirsep_regex='\/'
18380 ;;
18381 esac
18382 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18383
18384 <<<<<<< TREE
18385 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
18386 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
18387 s#^/[^/]#//&#
18388 =======
18389 gl_header_literal_regex=`echo 'time.h' \
18390 | sed -e "$gl_make_literal_regex_sed"`
18391 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18392 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18393 s|^/[^/]|//&|
18394 >>>>>>> MERGE-SOURCE
18395 p
18396 q
18397 }'
18398 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18399 sed -n "$gl_absolute_header_sed"`'"'
18400
18401
18402 fi
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18404 $as_echo "$gl_cv_next_time_h" >&6; }
18405 fi
18406 NEXT_TIME_H=$gl_cv_next_time_h
18407
18408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18410 gl_next_as_first_directive='<'time.h'>'
18411 else
18412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18413 gl_next_as_first_directive=$gl_cv_next_time_h
18414 fi
18415 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18416
18417
18418
18419
18420
18421
18422
18423
18424 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18425 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18426 ac_have_decl=1
18427 else
18428 ac_have_decl=0
18429 fi
18430
18431 cat >>confdefs.h <<_ACEOF
18432 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18433 _ACEOF
18434
18435
18436
18437
18438 if false; then
18439 GL_COND_LIBTOOL_TRUE=
18440 GL_COND_LIBTOOL_FALSE='#'
18441 else
18442 GL_COND_LIBTOOL_TRUE='#'
18443 GL_COND_LIBTOOL_FALSE=
18444 fi
18445
18446 gl_cond_libtool=false
18447 gl_libdeps=
18448 gl_ltlibdeps=
18449 gl_m4_base='m4'
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459 gl_source_base='lib'
18460
18461
18462 if test $ac_cv_func_alloca_works = no; then
18463 :
18464 fi
18465
18466 # Define an additional variable used in the Makefile substitution.
18467 if test $ac_cv_working_alloca_h = yes; then
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18469 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18470 if test "${gl_cv_rpl_alloca+set}" = set; then :
18471 $as_echo_n "(cached) " >&6
18472 else
18473
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476
18477 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18478 Need own alloca
18479 #endif
18480
18481 _ACEOF
18482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18483 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18484 gl_cv_rpl_alloca=yes
18485 else
18486 gl_cv_rpl_alloca=no
18487 fi
18488 rm -f conftest*
18489
18490
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18493 $as_echo "$gl_cv_rpl_alloca" >&6; }
18494 if test $gl_cv_rpl_alloca = yes; then
18495
18496 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18497
18498 ALLOCA_H=alloca.h
18499 else
18500 ALLOCA_H=
18501 fi
18502 else
18503 ALLOCA_H=alloca.h
18504 fi
18505
18506 if test -n "$ALLOCA_H"; then
18507 GL_GENERATE_ALLOCA_H_TRUE=
18508 GL_GENERATE_ALLOCA_H_FALSE='#'
18509 else
18510 GL_GENERATE_ALLOCA_H_TRUE='#'
18511 GL_GENERATE_ALLOCA_H_FALSE=
18512 fi
18513
18514
18515
18516
18517
18518
18519 :
18520
18521
18522
18523
18524 :
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18541
18542
18543 if test $HAVE_DUP2 = 1; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18545 $as_echo_n "checking whether dup2 works... " >&6; }
18546 if test "${gl_cv_func_dup2_works+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18548 else
18549 if test "$cross_compiling" = yes; then :
18550 case "$host_os" in
18551 mingw*) # on this platform, dup2 always returns 0 for success
18552 gl_cv_func_dup2_works="guessing no" ;;
18553 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18554 gl_cv_func_dup2_works="guessing no" ;;
18555 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18556 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18557 gl_cv_func_dup2_works="guessing no" ;;
18558 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18559 gl_cv_func_dup2_works="guessing no" ;;
18560 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18561 gl_cv_func_dup2_works="guessing no" ;;
18562 *) gl_cv_func_dup2_works="guessing yes" ;;
18563 esac
18564 else
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h. */
18567
18568 #include <unistd.h>
18569 #include <fcntl.h>
18570 #include <errno.h>
18571 int
18572 main ()
18573 {
18574 int result = 0;
18575 #ifdef FD_CLOEXEC
18576 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18577 result |= 1;
18578 #endif
18579 if (dup2 (1, 1) == 0)
18580 result |= 2;
18581 #ifdef FD_CLOEXEC
18582 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18583 result |= 4;
18584 #endif
18585 close (0);
18586 if (dup2 (0, 0) != -1)
18587 result |= 8;
18588 /* Many gnulib modules require POSIX conformance of EBADF. */
18589 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18590 result |= 16;
18591 return result;
18592
18593 ;
18594 return 0;
18595 }
18596
18597 _ACEOF
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_dup2_works=yes
18600 else
18601 gl_cv_func_dup2_works=no
18602 fi
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18605 fi
18606
18607
18608 fi
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18610 $as_echo "$gl_cv_func_dup2_works" >&6; }
18611 case "$gl_cv_func_dup2_works" in
18612 *yes) ;;
18613 *)
18614 REPLACE_DUP2=1
18615 ;;
18616 esac
18617 fi
18618
18619
18620 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18621
18622
18623
18624
18625
18626
18627
18628
18629 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18630
18631 fi
18632
18633
18634
18635
18636
18637 GNULIB_DUP2=1
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649 # Persuade glibc <stdlib.h> to declare getloadavg().
18650
18651
18652 gl_save_LIBS=$LIBS
18653
18654 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18655 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18656 HAVE_GETLOADAVG=1
18657 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18658 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18659
18660 else
18661 gl_func_getloadavg_done=no
18662
18663 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18664 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18665 # to get the right answer into the cache.
18666 # For kstat on solaris, we need to test for libelf and libkvm to force the
18667 # definition of SVR4 below.
18668 if test $gl_func_getloadavg_done = no; then
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18670 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18671 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18672 $as_echo_n "(cached) " >&6
18673 else
18674 ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lelf $LIBS"
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18678
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18682 #ifdef __cplusplus
18683 extern "C"
18684 #endif
18685 char elf_begin ();
18686 int
18687 main ()
18688 {
18689 return elf_begin ();
18690 ;
18691 return 0;
18692 }
18693 _ACEOF
18694 if ac_fn_c_try_link "$LINENO"; then :
18695 ac_cv_lib_elf_elf_begin=yes
18696 else
18697 ac_cv_lib_elf_elf_begin=no
18698 fi
18699 rm -f core conftest.err conftest.$ac_objext \
18700 conftest$ac_exeext conftest.$ac_ext
18701 LIBS=$ac_check_lib_save_LIBS
18702 fi
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18704 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18705 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18706 LIBS="-lelf $LIBS"
18707 fi
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18710 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18711 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18712 $as_echo_n "(cached) " >&6
18713 else
18714 ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-lkvm $LIBS"
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18718
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18722 #ifdef __cplusplus
18723 extern "C"
18724 #endif
18725 char kvm_open ();
18726 int
18727 main ()
18728 {
18729 return kvm_open ();
18730 ;
18731 return 0;
18732 }
18733 _ACEOF
18734 if ac_fn_c_try_link "$LINENO"; then :
18735 ac_cv_lib_kvm_kvm_open=yes
18736 else
18737 ac_cv_lib_kvm_kvm_open=no
18738 fi
18739 rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18741 LIBS=$ac_check_lib_save_LIBS
18742 fi
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18744 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18745 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18746 LIBS="-lkvm $LIBS"
18747 fi
18748
18749 # Check for the 4.4BSD definition of getloadavg.
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18751 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18752 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18753 $as_echo_n "(cached) " >&6
18754 else
18755 ac_check_lib_save_LIBS=$LIBS
18756 LIBS="-lutil $LIBS"
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18759
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char getloadavg ();
18767 int
18768 main ()
18769 {
18770 return getloadavg ();
18771 ;
18772 return 0;
18773 }
18774 _ACEOF
18775 if ac_fn_c_try_link "$LINENO"; then :
18776 ac_cv_lib_util_getloadavg=yes
18777 else
18778 ac_cv_lib_util_getloadavg=no
18779 fi
18780 rm -f core conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18783 fi
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18785 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18786 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18787 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18788 fi
18789
18790 fi
18791
18792 if test $gl_func_getloadavg_done = no; then
18793 # There is a commonly available library for RS/6000 AIX.
18794 # Since it is not a standard part of AIX, it might be installed locally.
18795 gl_getloadavg_LIBS=$LIBS
18796 LIBS="-L/usr/local/lib $LIBS"
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18798 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18799 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18800 $as_echo_n "(cached) " >&6
18801 else
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lgetloadavg $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 char getloadavg ();
18814 int
18815 main ()
18816 {
18817 return getloadavg ();
18818 ;
18819 return 0;
18820 }
18821 _ACEOF
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 ac_cv_lib_getloadavg_getloadavg=yes
18824 else
18825 ac_cv_lib_getloadavg_getloadavg=no
18826 fi
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18832 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18833 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18834 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18835 else
18836 LIBS=$gl_getloadavg_LIBS
18837 fi
18838
18839 fi
18840
18841 # Set up the replacement function if necessary.
18842 if test $gl_func_getloadavg_done = no; then
18843 HAVE_GETLOADAVG=0
18844
18845 # Solaris has libkstat which does not require root.
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18847 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18848 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851 ac_check_lib_save_LIBS=$LIBS
18852 LIBS="-lkstat $LIBS"
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18859 #ifdef __cplusplus
18860 extern "C"
18861 #endif
18862 char kstat_open ();
18863 int
18864 main ()
18865 {
18866 return kstat_open ();
18867 ;
18868 return 0;
18869 }
18870 _ACEOF
18871 if ac_fn_c_try_link "$LINENO"; then :
18872 ac_cv_lib_kstat_kstat_open=yes
18873 else
18874 ac_cv_lib_kstat_kstat_open=no
18875 fi
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18879 fi
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18881 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18882 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define HAVE_LIBKSTAT 1
18885 _ACEOF
18886
18887 LIBS="-lkstat $LIBS"
18888
18889 fi
18890
18891 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18892
18893 # AIX has libperfstat which does not require root
18894 if test $gl_func_getloadavg_done = no; then
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18896 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18897 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18898 $as_echo_n "(cached) " >&6
18899 else
18900 ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lperfstat $LIBS"
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 char perfstat_cpu_total ();
18912 int
18913 main ()
18914 {
18915 return perfstat_cpu_total ();
18916 ;
18917 return 0;
18918 }
18919 _ACEOF
18920 if ac_fn_c_try_link "$LINENO"; then :
18921 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18922 else
18923 ac_cv_lib_perfstat_perfstat_cpu_total=no
18924 fi
18925 rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18930 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18931 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18932 cat >>confdefs.h <<_ACEOF
18933 #define HAVE_LIBPERFSTAT 1
18934 _ACEOF
18935
18936 LIBS="-lperfstat $LIBS"
18937
18938 fi
18939
18940 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18941 fi
18942
18943 if test $gl_func_getloadavg_done = no; then
18944 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18945 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18946 gl_func_getloadavg_done=yes
18947
18948 $as_echo "#define DGUX 1" >>confdefs.h
18949
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18951 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18952 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18953 $as_echo_n "(cached) " >&6
18954 else
18955 ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-ldgc $LIBS"
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959
18960 /* Override any GCC internal prototype to avoid an error.
18961 Use char because int might match the return type of a GCC
18962 builtin and then its argument prototype would still apply. */
18963 #ifdef __cplusplus
18964 extern "C"
18965 #endif
18966 char dg_sys_info ();
18967 int
18968 main ()
18969 {
18970 return dg_sys_info ();
18971 ;
18972 return 0;
18973 }
18974 _ACEOF
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 ac_cv_lib_dgc_dg_sys_info=yes
18977 else
18978 ac_cv_lib_dgc_dg_sys_info=no
18979 fi
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18983 fi
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18985 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18986 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18987 cat >>confdefs.h <<_ACEOF
18988 #define HAVE_LIBDGC 1
18989 _ACEOF
18990
18991 LIBS="-ldgc $LIBS"
18992
18993 fi
18994
18995 fi
18996
18997
18998 fi
18999 fi
19000 fi
19001
19002
19003 if test "x$gl_save_LIBS" = x; then
19004 GETLOADAVG_LIBS=$LIBS
19005 else
19006 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19007 fi
19008 LIBS=$gl_save_LIBS
19009
19010
19011 # Test whether the system declares getloadavg. Solaris has the function
19012 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19013 for ac_header in sys/loadavg.h
19014 do :
19015 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19016 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_SYS_LOADAVG_H 1
19019 _ACEOF
19020
19021 fi
19022
19023 done
19024
19025 if test $ac_cv_header_sys_loadavg_h = yes; then
19026 HAVE_SYS_LOADAVG_H=1
19027 else
19028 HAVE_SYS_LOADAVG_H=0
19029 fi
19030 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19031 # include <sys/loadavg.h>
19032 #endif
19033 #include <stdlib.h>
19034 "
19035 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19036
19037 else
19038 HAVE_DECL_GETLOADAVG=0
19039 fi
19040
19041
19042 if test $HAVE_GETLOADAVG = 0; then
19043
19044
19045
19046
19047
19048
19049
19050
19051 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19052
19053
19054 # Figure out what our getloadavg.c needs.
19055
19056 # On HPUX9, an unprivileged user can get load averages this way.
19057 if test $gl_func_getloadavg_done = no; then
19058 for ac_func in pstat_getdynamic
19059 do :
19060 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19061 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19062 cat >>confdefs.h <<_ACEOF
19063 #define HAVE_PSTAT_GETDYNAMIC 1
19064 _ACEOF
19065 gl_func_getloadavg_done=yes
19066 fi
19067 done
19068
19069 fi
19070
19071 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19072 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19073 # Irix 4.0.5F has the header but not the library.
19074 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19075 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19076 gl_func_getloadavg_done=yes
19077
19078 $as_echo "#define SVR4 1" >>confdefs.h
19079
19080 fi
19081
19082 if test $gl_func_getloadavg_done = no; then
19083 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19084 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19085 gl_func_getloadavg_done=yes
19086
19087 $as_echo "#define UMAX 1" >>confdefs.h
19088
19089
19090 $as_echo "#define UMAX4_3 1" >>confdefs.h
19091
19092 fi
19093
19094
19095 fi
19096
19097 if test $gl_func_getloadavg_done = no; then
19098 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19099 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19100 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19101
19102 fi
19103
19104
19105 fi
19106
19107 if test $gl_func_getloadavg_done = no; then
19108 for ac_header in mach/mach.h
19109 do :
19110 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_MACH_MACH_H 1
19114 _ACEOF
19115
19116 fi
19117
19118 done
19119
19120 fi
19121
19122 for ac_header in nlist.h
19123 do :
19124 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19125 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_NLIST_H 1
19128 _ACEOF
19129 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19130 "
19131 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19132
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19135 _ACEOF
19136
19137
19138 fi
19139
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19142 #include <nlist.h>
19143 int
19144 main ()
19145 {
19146 struct nlist x;
19147 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19148 x.n_un.n_name = "";
19149 #else
19150 x.n_name = "";
19151 #endif
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 if ac_fn_c_try_link "$LINENO"; then :
19157
19158 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19159
19160 fi
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163
19164 fi
19165
19166 done
19167
19168 fi
19169
19170
19171
19172
19173
19174 GNULIB_GETLOADAVG=1
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185 if test $REPLACE_GETOPT = 1; then
19186
19187
19188
19189
19190
19191
19192
19193
19194 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19205
19206
19207
19208
19209 GNULIB_GL_UNISTD_H_GETOPT=1
19210 fi
19211
19212
19213
19214
19215
19216
19217 REPLACE_GETOPT=0
19218
19219
19220 if test -n "$gl_replace_getopt"; then :
19221
19222 REPLACE_GETOPT=1
19223
19224 fi
19225
19226
19227 if test $REPLACE_GETOPT = 1; then
19228
19229 GETOPT_H=getopt.h
19230
19231 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19232
19233
19234
19235 fi
19236
19237 if test $REPLACE_GETOPT = 1; then
19238
19239
19240
19241
19242
19243
19244
19245
19246 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19257
19258
19259
19260
19261 GNULIB_GL_UNISTD_H_GETOPT=1
19262 fi
19263
19264
19265
19266
19267
19268
19269
19270 if test $ac_cv_func_lstat = yes; then
19271
19272 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19273 *no)
19274 REPLACE_LSTAT=1
19275 ;;
19276 esac
19277 else
19278 HAVE_LSTAT=0
19279 fi
19280
19281 if test $REPLACE_LSTAT = 1; then
19282
19283
19284
19285
19286
19287
19288
19289
19290 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19291
19292
19293
19294 :
19295
19296 fi
19297
19298
19299
19300
19301
19302 GNULIB_LSTAT=1
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314 if test $APPLE_UNIVERSAL_BUILD = 1; then
19315 # A universal build on Apple MacOS X platforms.
19316 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19317 # But we need a configuration result that is valid in both modes.
19318 gl_cv_func_working_mktime=no
19319 fi
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19321 $as_echo_n "checking for working mktime... " >&6; }
19322 if test "${gl_cv_func_working_mktime+set}" = set; then :
19323 $as_echo_n "(cached) " >&6
19324 else
19325 if test "$cross_compiling" = yes; then :
19326 gl_cv_func_working_mktime=no
19327 else
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 /* Test program from Paul Eggert and Tony Leneis. */
19331 #include <limits.h>
19332 #include <stdlib.h>
19333 #include <time.h>
19334
19335 #ifdef HAVE_UNISTD_H
19336 # include <unistd.h>
19337 #endif
19338
19339 #ifndef HAVE_ALARM
19340 # define alarm(X) /* empty */
19341 #endif
19342
19343 /* Work around redefinition to rpl_putenv by other config tests. */
19344 #undef putenv
19345
19346 static time_t time_t_max;
19347 static time_t time_t_min;
19348
19349 /* Values we'll use to set the TZ environment variable. */
19350 static char *tz_strings[] = {
19351 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19352 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19353 };
19354 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19355
19356 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19357 Based on a problem report from Andreas Jaeger. */
19358 static int
19359 spring_forward_gap ()
19360 {
19361 /* glibc (up to about 1998-10-07) failed this test. */
19362 struct tm tm;
19363
19364 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19365 instead of "TZ=America/Vancouver" in order to detect the bug even
19366 on systems that don't support the Olson extension, or don't have the
19367 full zoneinfo tables installed. */
19368 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19369
19370 tm.tm_year = 98;
19371 tm.tm_mon = 3;
19372 tm.tm_mday = 5;
19373 tm.tm_hour = 2;
19374 tm.tm_min = 0;
19375 tm.tm_sec = 0;
19376 tm.tm_isdst = -1;
19377 return mktime (&tm) != (time_t) -1;
19378 }
19379
19380 static int
19381 mktime_test1 (time_t now)
19382 {
19383 struct tm *lt;
19384 return ! (lt = localtime (&now)) || mktime (lt) == now;
19385 }
19386
19387 static int
19388 mktime_test (time_t now)
19389 {
19390 return (mktime_test1 (now)
19391 && mktime_test1 ((time_t) (time_t_max - now))
19392 && mktime_test1 ((time_t) (time_t_min + now)));
19393 }
19394
19395 static int
19396 irix_6_4_bug ()
19397 {
19398 /* Based on code from Ariel Faigon. */
19399 struct tm tm;
19400 tm.tm_year = 96;
19401 tm.tm_mon = 3;
19402 tm.tm_mday = 0;
19403 tm.tm_hour = 0;
19404 tm.tm_min = 0;
19405 tm.tm_sec = 0;
19406 tm.tm_isdst = -1;
19407 mktime (&tm);
19408 return tm.tm_mon == 2 && tm.tm_mday == 31;
19409 }
19410
19411 static int
19412 bigtime_test (int j)
19413 {
19414 struct tm tm;
19415 time_t now;
19416 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19417 now = mktime (&tm);
19418 if (now != (time_t) -1)
19419 {
19420 struct tm *lt = localtime (&now);
19421 if (! (lt
19422 && lt->tm_year == tm.tm_year
19423 && lt->tm_mon == tm.tm_mon
19424 && lt->tm_mday == tm.tm_mday
19425 && lt->tm_hour == tm.tm_hour
19426 && lt->tm_min == tm.tm_min
19427 && lt->tm_sec == tm.tm_sec
19428 && lt->tm_yday == tm.tm_yday
19429 && lt->tm_wday == tm.tm_wday
19430 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19431 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19432 return 0;
19433 }
19434 return 1;
19435 }
19436
19437 static int
19438 year_2050_test ()
19439 {
19440 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19441 ignoring leap seconds. */
19442 unsigned long int answer = 2527315200UL;
19443
19444 struct tm tm;
19445 time_t t;
19446 tm.tm_year = 2050 - 1900;
19447 tm.tm_mon = 2 - 1;
19448 tm.tm_mday = 1;
19449 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19450 tm.tm_isdst = -1;
19451
19452 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19453 instead of "TZ=America/Vancouver" in order to detect the bug even
19454 on systems that don't support the Olson extension, or don't have the
19455 full zoneinfo tables installed. */
19456 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19457
19458 t = mktime (&tm);
19459
19460 /* Check that the result is either a failure, or close enough
19461 to the correct answer that we can assume the discrepancy is
19462 due to leap seconds. */
19463 return (t == (time_t) -1
19464 || (0 < t && answer - 120 <= t && t <= answer + 120));
19465 }
19466
19467 int
19468 main ()
19469 {
19470 int result = 0;
19471 time_t t, delta;
19472 int i, j;
19473 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19474 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19475
19476 /* This test makes some buggy mktime implementations loop.
19477 Give up after 60 seconds; a mktime slower than that
19478 isn't worth using anyway. */
19479 alarm (60);
19480
19481 time_t_max = (! time_t_signed
19482 ? (time_t) -1
19483 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19484 * 2 + 1));
19485 time_t_min = (! time_t_signed
19486 ? (time_t) 0
19487 : time_t_signed_magnitude
19488 ? ~ (time_t) 0
19489 : ~ time_t_max);
19490
19491 delta = time_t_max / 997; /* a suitable prime number */
19492 for (i = 0; i < N_STRINGS; i++)
19493 {
19494 if (tz_strings[i])
19495 putenv (tz_strings[i]);
19496
19497 for (t = 0; t <= time_t_max - delta; t += delta)
19498 if (! mktime_test (t))
19499 result |= 1;
19500 if (! (mktime_test ((time_t) 1)
19501 && mktime_test ((time_t) (60 * 60))
19502 && mktime_test ((time_t) (60 * 60 * 24))))
19503 result |= 2;
19504
19505 for (j = 1; ; j <<= 1)
19506 if (! bigtime_test (j))
19507 result |= 4;
19508 else if (INT_MAX / 2 < j)
19509 break;
19510 if (! bigtime_test (INT_MAX))
19511 result |= 8;
19512 }
19513 if (! irix_6_4_bug ())
19514 result |= 16;
19515 if (! spring_forward_gap ())
19516 result |= 32;
19517 if (! year_2050_test ())
19518 result |= 64;
19519 return result;
19520 }
19521 _ACEOF
19522 if ac_fn_c_try_run "$LINENO"; then :
19523 gl_cv_func_working_mktime=yes
19524 else
19525 gl_cv_func_working_mktime=no
19526 fi
19527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19528 conftest.$ac_objext conftest.beam conftest.$ac_ext
19529 fi
19530
19531
19532 fi
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19534 $as_echo "$gl_cv_func_working_mktime" >&6; }
19535
19536 if test $gl_cv_func_working_mktime = no; then
19537 REPLACE_MKTIME=1
19538 else
19539 REPLACE_MKTIME=0
19540 fi
19541
19542 if test $REPLACE_MKTIME = 1; then
19543
19544
19545
19546
19547
19548
19549
19550
19551 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19552
19553
19554
19555
19556 fi
19557
19558
19559
19560
19561
19562 GNULIB_MKTIME=1
19563
19564
19565
19566
19567
19568
19569
19570
19571 <<<<<<< TREE
19572 <<<<<<< TREE
19573 =======
19574 =======
19575
19576
19577 >>>>>>> MERGE-SOURCE
19578 LIB_PTHREAD_SIGMASK=
19579
19580
19581 if test $ac_cv_func_pthread_sigmask = yes; then
19582 :
19583 else
19584 HAVE_PTHREAD_SIGMASK=0
19585 REPLACE_PTHREAD_SIGMASK=1
19586 fi
19587
19588
19589
19590
19591 if test $HAVE_PTHREAD_SIGMASK = 1; then
19592
19593
19594 if test -z "$LIB_PTHREAD_SIGMASK"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19596 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19597 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19599 else
19600
19601 if test "$cross_compiling" = yes; then :
19602
19603 case "$host_os" in
19604 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19605 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19606 *)
19607 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19608 esac
19609
19610 else
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19613
19614 #include <pthread.h>
19615 #include <signal.h>
19616 #include <stddef.h>
19617 int main ()
19618 {
19619 sigset_t set;
19620 sigemptyset (&set);
19621 return pthread_sigmask (1729, &set, NULL) != 0;
19622 }
19623 _ACEOF
19624 if ac_fn_c_try_run "$LINENO"; then :
19625 gl_cv_func_pthread_sigmask_in_libc_works=no
19626 else
19627 gl_cv_func_pthread_sigmask_in_libc_works=yes
19628 fi
19629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19630 conftest.$ac_objext conftest.beam conftest.$ac_ext
19631 fi
19632
19633
19634 fi
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19636 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19637 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19638 *no)
19639 REPLACE_PTHREAD_SIGMASK=1
19640
19641 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19642
19643 ;;
19644 esac
19645 fi
19646
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19648 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19649 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19650 $as_echo_n "(cached) " >&6
19651 else
19652
19653 gl_save_LIBS="$LIBS"
19654 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19655 if test "$cross_compiling" = yes; then :
19656 case "$host_os" in
19657 cygwin*)
19658 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19659 *)
19660 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19661 esac
19662
19663 else
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666
19667 #include <pthread.h>
19668 #include <signal.h>
19669 #include <stddef.h>
19670 int main ()
19671 {
19672 sigset_t set;
19673 sigemptyset (&set);
19674 if (pthread_sigmask (1729, &set, NULL) == -1)
19675 return 1;
19676 return 0;
19677 }
19678 _ACEOF
19679 if ac_fn_c_try_run "$LINENO"; then :
19680 gl_cv_func_pthread_sigmask_return_works=yes
19681 else
19682 gl_cv_func_pthread_sigmask_return_works=no
19683 fi
19684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19685 conftest.$ac_objext conftest.beam conftest.$ac_ext
19686 fi
19687
19688 LIBS="$gl_save_LIBS"
19689
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19692 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19693 case "$gl_cv_func_pthread_sigmask_return_works" in
19694 *no)
19695 REPLACE_PTHREAD_SIGMASK=1
19696
19697 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19698
19699 ;;
19700 esac
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19703 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19704 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19705 $as_echo_n "(cached) " >&6
19706 else
19707
19708 case "$host_os" in
19709 irix*)
19710 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19711 *)
19712 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19713 esac
19714 gl_save_LIBS="$LIBS"
19715 LIBS="$LIBS $LIBMULTITHREAD"
19716 if test "$cross_compiling" = yes; then :
19717 :
19718 else
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19721
19722 #include <pthread.h>
19723 #include <signal.h>
19724 #include <stdio.h>
19725 #include <stdlib.h>
19726 #include <unistd.h>
19727 static volatile int sigint_occurred;
19728 static void
19729 sigint_handler (int sig)
19730 {
19731 sigint_occurred++;
19732 }
19733 int main ()
19734 {
19735 sigset_t set;
19736 int pid = getpid ();
19737 char command[80];
19738 signal (SIGINT, sigint_handler);
19739 sigemptyset (&set);
19740 sigaddset (&set, SIGINT);
19741 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19742 return 1;
19743 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19744 if (!(system (command) == 0))
19745 return 2;
19746 sleep (2);
19747 if (!(sigint_occurred == 0))
19748 return 3;
19749 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19750 return 4;
19751 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19752 return 5;
19753 return 0;
19754 }
19755 _ACEOF
19756 if ac_fn_c_try_run "$LINENO"; then :
19757 :
19758 else
19759 gl_cv_func_pthread_sigmask_unblock_works=no
19760 fi
19761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19762 conftest.$ac_objext conftest.beam conftest.$ac_ext
19763 fi
19764
19765 LIBS="$gl_save_LIBS"
19766
19767 fi
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19769 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19770 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19771 *no)
19772 REPLACE_PTHREAD_SIGMASK=1
19773
19774 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19775
19776 ;;
19777 esac
19778 fi
19779
19780 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19781
19782
19783
19784
19785
19786
19787
19788
19789 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19790
19791
19792 if test $HAVE_PTHREAD_SIGMASK = 1; then
19793
19794 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19795
19796 fi
19797
19798 fi
19799
19800
19801
19802
19803
19804 GNULIB_PTHREAD_SIGMASK=1
19805
19806
19807
19808
19809
19810
19811
19812 >>>>>>> MERGE-SOURCE
19813
19814 if test $ac_cv_func_readlink = no; then
19815 HAVE_READLINK=0
19816 else
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19818 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19819 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19820 $as_echo_n "(cached) " >&6
19821 else
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824 #include <unistd.h>
19825 /* Cause compilation failure if original declaration has wrong type. */
19826 ssize_t readlink (const char *, char *, size_t);
19827 int
19828 main ()
19829 {
19830
19831 ;
19832 return 0;
19833 }
19834 _ACEOF
19835 if ac_fn_c_try_compile "$LINENO"; then :
19836 gl_cv_decl_readlink_works=yes
19837 else
19838 gl_cv_decl_readlink_works=no
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 fi
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19843 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19845 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19846 if test "${gl_cv_func_readlink_works+set}" = set; then :
19847 $as_echo_n "(cached) " >&6
19848 else
19849 # We have readlink, so assume ln -s works.
19850 ln -s conftest.no-such conftest.link
19851 ln -s conftest.link conftest.lnk2
19852 if test "$cross_compiling" = yes; then :
19853 case "$host_os" in
19854 # Guess yes on glibc systems.
19855 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19856 # If we don't know, assume the worst.
19857 *) gl_cv_func_readlink_works="guessing no" ;;
19858 esac
19859
19860 else
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19863 #include <unistd.h>
19864
19865 int
19866 main ()
19867 {
19868 char buf[20];
19869 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19870 ;
19871 return 0;
19872 }
19873 _ACEOF
19874 if ac_fn_c_try_run "$LINENO"; then :
19875 gl_cv_func_readlink_works=yes
19876 else
19877 gl_cv_func_readlink_works=no
19878 fi
19879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19880 conftest.$ac_objext conftest.beam conftest.$ac_ext
19881 fi
19882
19883 rm -f conftest.link conftest.lnk2
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19886 $as_echo "$gl_cv_func_readlink_works" >&6; }
19887 case "$gl_cv_func_readlink_works" in
19888 *yes)
19889 if test "$gl_cv_decl_readlink_works" != yes; then
19890 REPLACE_READLINK=1
19891 fi
19892 ;;
19893 *)
19894
19895 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19896
19897 REPLACE_READLINK=1
19898 ;;
19899 esac
19900 fi
19901
19902 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19903
19904
19905
19906
19907
19908
19909
19910
19911 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19912
19913
19914 :
19915
19916 fi
19917
19918
19919
19920
19921
19922 GNULIB_READLINK=1
19923
19924
19925
19926
19927
19928 <<<<<<< TREE
19929 =======
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941 if test $gl_cv_have_include_next = yes; then
19942 gl_cv_next_signal_h='<'signal.h'>'
19943 else
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19945 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19946 if test "${gl_cv_next_signal_h+set}" = set; then :
19947 $as_echo_n "(cached) " >&6
19948 else
19949
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19952 #include <signal.h>
19953
19954 _ACEOF
19955 case "$host_os" in
19956 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19957 *) gl_absname_cpp="$ac_cpp" ;;
19958 esac
19959
19960 case "$host_os" in
19961 mingw*)
19962 gl_dirsep_regex='[/\\]'
19963 ;;
19964 *)
19965 gl_dirsep_regex='\/'
19966 ;;
19967 esac
19968 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19969
19970 <<<<<<< TREE
19971 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
19972 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
19973 s#^/[^/]#//&#
19974 =======
19975 gl_header_literal_regex=`echo 'signal.h' \
19976 | sed -e "$gl_make_literal_regex_sed"`
19977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19979 s|^/[^/]|//&|
19980 >>>>>>> MERGE-SOURCE
19981 p
19982 q
19983 }'
19984 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19985 sed -n "$gl_absolute_header_sed"`'"'
19986
19987
19988 fi
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19990 $as_echo "$gl_cv_next_signal_h" >&6; }
19991 fi
19992 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19993
19994 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19996 gl_next_as_first_directive='<'signal.h'>'
19997 else
19998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19999 gl_next_as_first_directive=$gl_cv_next_signal_h
20000 fi
20001 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20002
20003
20004
20005
20006
20007 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20008 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20009 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20010 #include <signal.h>
20011
20012 "
20013 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20014
20015 else
20016 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20017 fi
20018
20019
20020
20021
20022
20023
20024
20025 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20026 #include <signal.h>
20027
20028 "
20029 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20030
20031 else
20032 HAVE_SIGHANDLER_T=0
20033 fi
20034
20035
20036
20037
20038 >>>>>>> MERGE-SOURCE
20039 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20040 /* <sys/types.h> is not needed according to POSIX, but the
20041 <sys/socket.h> in i386-unknown-freebsd4.10 and
20042 powerpc-apple-darwin5.5 required it. */
20043 #include <sys/types.h>
20044 #if HAVE_SYS_SOCKET_H
20045 # include <sys/socket.h>
20046 #elif HAVE_WS2TCPIP_H
20047 # include <ws2tcpip.h>
20048 #endif
20049
20050 "
20051 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20052
20053 else
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20055 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20056 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20057 $as_echo_n "(cached) " >&6
20058 else
20059 # Systems have either "struct sockaddr *" or
20060 # "void *" as the second argument to getpeername
20061 gl_cv_socklen_t_equiv=
20062 for arg2 in "struct sockaddr" void; do
20063 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20066 #include <sys/types.h>
20067 #include <sys/socket.h>
20068
20069 int getpeername (int, $arg2 *, $t *);
20070 int
20071 main ()
20072 {
20073 $t len;
20074 getpeername (0, 0, &len);
20075 ;
20076 return 0;
20077 }
20078 _ACEOF
20079 if ac_fn_c_try_compile "$LINENO"; then :
20080 gl_cv_socklen_t_equiv="$t"
20081 fi
20082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083 test "$gl_cv_socklen_t_equiv" != "" && break
20084 done
20085 test "$gl_cv_socklen_t_equiv" != "" && break
20086 done
20087
20088 fi
20089
20090 if test "$gl_cv_socklen_t_equiv" = ""; then
20091 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20092 fi
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20094 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20095
20096 cat >>confdefs.h <<_ACEOF
20097 #define socklen_t $gl_cv_socklen_t_equiv
20098 _ACEOF
20099
20100 fi
20101
20102
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20104 $as_echo_n "checking for ssize_t... " >&6; }
20105 if test "${gt_cv_ssize_t+set}" = set; then :
20106 $as_echo_n "(cached) " >&6
20107 else
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20110 #include <sys/types.h>
20111 int
20112 main ()
20113 {
20114 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20115 return !x;
20116 ;
20117 return 0;
20118 }
20119 _ACEOF
20120 if ac_fn_c_try_compile "$LINENO"; then :
20121 gt_cv_ssize_t=yes
20122 else
20123 gt_cv_ssize_t=no
20124 fi
20125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20126 fi
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20128 $as_echo "$gt_cv_ssize_t" >&6; }
20129 if test $gt_cv_ssize_t = no; then
20130
20131 $as_echo "#define ssize_t int" >>confdefs.h
20132
20133 fi
20134
20135
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20137 $as_echo_n "checking for working stdalign.h... " >&6; }
20138 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20140 else
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <stdalign.h>
20144 #include <stddef.h>
20145
20146 /* Test that alignof yields a result consistent with offsetof.
20147 This catches GCC bug 52023
20148 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
20149 #ifdef __cplusplus
20150 template <class t> struct alignof_helper { char a; t b; };
20151 # define ao(type) offsetof (alignof_helper<type>, b)
20152 #else
20153 # define ao(type) offsetof (struct { char a; type b; }, b)
20154 #endif
20155 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20156 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20157 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20158
20159 /* Test _Alignas only on platforms where gnulib can help. */
20160 #if \
20161 (__GNUC__ || __IBMC__ || __IBMCPP__ \
20162 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
20163 int alignas (8) alignas_int = 1;
20164 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
20165 #endif
20166
20167 int
20168 main ()
20169 {
20170
20171 ;
20172 return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_compile "$LINENO"; then :
20176 gl_cv_header_working_stdalign_h=yes
20177 else
20178 gl_cv_header_working_stdalign_h=no
20179 fi
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 fi
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
20183 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
20184
20185 if test $gl_cv_header_working_stdalign_h = yes; then
20186 STDALIGN_H=''
20187 else
20188 STDALIGN_H='stdalign.h'
20189 fi
20190
20191
20192 if test -n "$STDALIGN_H"; then
20193 GL_GENERATE_STDALIGN_H_TRUE=
20194 GL_GENERATE_STDALIGN_H_FALSE='#'
20195 else
20196 GL_GENERATE_STDALIGN_H_TRUE='#'
20197 GL_GENERATE_STDALIGN_H_FALSE=
20198 fi
20199
20200
20201
20202 STDARG_H=''
20203 NEXT_STDARG_H='<stdarg.h>'
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20205 $as_echo_n "checking for va_copy... " >&6; }
20206 if test "${gl_cv_func_va_copy+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
20208 else
20209
20210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h. */
20212 #include <stdarg.h>
20213 int
20214 main ()
20215 {
20216
20217 #ifndef va_copy
20218 void (*func) (va_list, va_list) = va_copy;
20219 #endif
20220
20221 ;
20222 return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226 gl_cv_func_va_copy=yes
20227 else
20228 gl_cv_func_va_copy=no
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 fi
20232
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20234 $as_echo "$gl_cv_func_va_copy" >&6; }
20235 if test $gl_cv_func_va_copy = no; then
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #if defined _AIX && !defined __GNUC__
20239 AIX vaccine
20240 #endif
20241
20242 _ACEOF
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244 $EGREP "vaccine" >/dev/null 2>&1; then :
20245 gl_aixcc=yes
20246 else
20247 gl_aixcc=no
20248 fi
20249 rm -f conftest*
20250
20251 if test $gl_aixcc = yes; then
20252 STDARG_H=stdarg.h
20253
20254
20255
20256
20257
20258
20259
20260
20261 if test $gl_cv_have_include_next = yes; then
20262 gl_cv_next_stdarg_h='<'stdarg.h'>'
20263 else
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20265 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20266 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20267 $as_echo_n "(cached) " >&6
20268 else
20269
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20272 #include <stdarg.h>
20273
20274 _ACEOF
20275 case "$host_os" in
20276 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20277 *) gl_absname_cpp="$ac_cpp" ;;
20278 esac
20279
20280 case "$host_os" in
20281 mingw*)
20282 gl_dirsep_regex='[/\\]'
20283 ;;
20284 *)
20285 gl_dirsep_regex='\/'
20286 ;;
20287 esac
20288 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20289
20290 <<<<<<< TREE
20291 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
20292 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
20293 s#^/[^/]#//&#
20294 =======
20295 gl_header_literal_regex=`echo 'stdarg.h' \
20296 | sed -e "$gl_make_literal_regex_sed"`
20297 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20298 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20299 s|^/[^/]|//&|
20300 >>>>>>> MERGE-SOURCE
20301 p
20302 q
20303 }'
20304 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20305 sed -n "$gl_absolute_header_sed"`'"'
20306
20307
20308 fi
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20310 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20311 fi
20312 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20313
20314 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20316 gl_next_as_first_directive='<'stdarg.h'>'
20317 else
20318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20319 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20320 fi
20321 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20322
20323
20324
20325
20326 if test "$gl_cv_next_stdarg_h" = '""'; then
20327 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20328 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20329 fi
20330 else
20331
20332 saved_as_echo_n="$as_echo_n"
20333 as_echo_n=':'
20334 if test "${gl_cv_func___va_copy+set}" = set; then :
20335 $as_echo_n "(cached) " >&6
20336 else
20337
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <stdarg.h>
20341 int
20342 main ()
20343 {
20344
20345 #ifndef __va_copy
20346 error, bail out
20347 #endif
20348
20349 ;
20350 return 0;
20351 }
20352 _ACEOF
20353 if ac_fn_c_try_compile "$LINENO"; then :
20354 gl_cv_func___va_copy=yes
20355 else
20356 gl_cv_func___va_copy=no
20357 fi
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 fi
20360
20361 as_echo_n="$saved_as_echo_n"
20362
20363 if test $gl_cv_func___va_copy = yes; then
20364
20365 $as_echo "#define va_copy __va_copy" >>confdefs.h
20366
20367 else
20368
20369
20370 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20371
20372 fi
20373 fi
20374 fi
20375
20376 if test -n "$STDARG_H"; then
20377 GL_GENERATE_STDARG_H_TRUE=
20378 GL_GENERATE_STDARG_H_FALSE='#'
20379 else
20380 GL_GENERATE_STDARG_H_TRUE='#'
20381 GL_GENERATE_STDARG_H_FALSE=
20382 fi
20383
20384
20385
20386
20387
20388
20389 # Define two additional variables used in the Makefile substitution.
20390
20391 if test "$ac_cv_header_stdbool_h" = yes; then
20392 STDBOOL_H=''
20393 else
20394 STDBOOL_H='stdbool.h'
20395 fi
20396
20397 if test -n "$STDBOOL_H"; then
20398 GL_GENERATE_STDBOOL_H_TRUE=
20399 GL_GENERATE_STDBOOL_H_FALSE='#'
20400 else
20401 GL_GENERATE_STDBOOL_H_TRUE='#'
20402 GL_GENERATE_STDBOOL_H_FALSE=
20403 fi
20404
20405
20406 if test "$ac_cv_type__Bool" = yes; then
20407 HAVE__BOOL=1
20408 else
20409 HAVE__BOOL=0
20410 fi
20411
20412
20413
20414
20415
20416 STDDEF_H=
20417 if test $gt_cv_c_wchar_t = no; then
20418 HAVE_WCHAR_T=0
20419 STDDEF_H=stddef.h
20420 fi
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20422 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20423 if test "${gl_cv_decl_null_works+set}" = set; then :
20424 $as_echo_n "(cached) " >&6
20425 else
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <stddef.h>
20429 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20430
20431 int
20432 main ()
20433 {
20434
20435 ;
20436 return 0;
20437 }
20438 _ACEOF
20439 if ac_fn_c_try_compile "$LINENO"; then :
20440 gl_cv_decl_null_works=yes
20441 else
20442 gl_cv_decl_null_works=no
20443 fi
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20447 $as_echo "$gl_cv_decl_null_works" >&6; }
20448 if test $gl_cv_decl_null_works = no; then
20449 REPLACE_NULL=1
20450 STDDEF_H=stddef.h
20451 fi
20452
20453 if test -n "$STDDEF_H"; then
20454 GL_GENERATE_STDDEF_H_TRUE=
20455 GL_GENERATE_STDDEF_H_FALSE='#'
20456 else
20457 GL_GENERATE_STDDEF_H_TRUE='#'
20458 GL_GENERATE_STDDEF_H_FALSE=
20459 fi
20460
20461 if test -n "$STDDEF_H"; then
20462
20463
20464
20465
20466
20467
20468
20469
20470 if test $gl_cv_have_include_next = yes; then
20471 gl_cv_next_stddef_h='<'stddef.h'>'
20472 else
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20474 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20475 if test "${gl_cv_next_stddef_h+set}" = set; then :
20476 $as_echo_n "(cached) " >&6
20477 else
20478
20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20481 #include <stddef.h>
20482
20483 _ACEOF
20484 case "$host_os" in
20485 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20486 *) gl_absname_cpp="$ac_cpp" ;;
20487 esac
20488
20489 case "$host_os" in
20490 mingw*)
20491 gl_dirsep_regex='[/\\]'
20492 ;;
20493 *)
20494 gl_dirsep_regex='\/'
20495 ;;
20496 esac
20497 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20498
20499 <<<<<<< TREE
20500 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
20501 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
20502 s#^/[^/]#//&#
20503 =======
20504 gl_header_literal_regex=`echo 'stddef.h' \
20505 | sed -e "$gl_make_literal_regex_sed"`
20506 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20508 s|^/[^/]|//&|
20509 >>>>>>> MERGE-SOURCE
20510 p
20511 q
20512 }'
20513 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20514 sed -n "$gl_absolute_header_sed"`'"'
20515
20516
20517 fi
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20519 $as_echo "$gl_cv_next_stddef_h" >&6; }
20520 fi
20521 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20522
20523 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20525 gl_next_as_first_directive='<'stddef.h'>'
20526 else
20527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20528 gl_next_as_first_directive=$gl_cv_next_stddef_h
20529 fi
20530 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20531
20532
20533
20534
20535 fi
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549 if test $gl_cv_have_include_next = yes; then
20550 gl_cv_next_stdio_h='<'stdio.h'>'
20551 else
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20553 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20554 if test "${gl_cv_next_stdio_h+set}" = set; then :
20555 $as_echo_n "(cached) " >&6
20556 else
20557
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20560 #include <stdio.h>
20561
20562 _ACEOF
20563 case "$host_os" in
20564 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20565 *) gl_absname_cpp="$ac_cpp" ;;
20566 esac
20567
20568 case "$host_os" in
20569 mingw*)
20570 gl_dirsep_regex='[/\\]'
20571 ;;
20572 *)
20573 gl_dirsep_regex='\/'
20574 ;;
20575 esac
20576 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20577
20578 <<<<<<< TREE
20579 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
20580 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
20581 s#^/[^/]#//&#
20582 =======
20583 gl_header_literal_regex=`echo 'stdio.h' \
20584 | sed -e "$gl_make_literal_regex_sed"`
20585 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20586 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20587 s|^/[^/]|//&|
20588 >>>>>>> MERGE-SOURCE
20589 p
20590 q
20591 }'
20592 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20593 sed -n "$gl_absolute_header_sed"`'"'
20594
20595
20596 fi
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20598 $as_echo "$gl_cv_next_stdio_h" >&6; }
20599 fi
20600 NEXT_STDIO_H=$gl_cv_next_stdio_h
20601
20602 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20604 gl_next_as_first_directive='<'stdio.h'>'
20605 else
20606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20607 gl_next_as_first_directive=$gl_cv_next_stdio_h
20608 fi
20609 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20610
20611
20612
20613
20614
20615 GNULIB_FSCANF=1
20616 GNULIB_SCANF=1
20617 GNULIB_FGETC=1
20618 GNULIB_GETC=1
20619 GNULIB_GETCHAR=1
20620 GNULIB_FGETS=1
20621 GNULIB_FREAD=1
20622
20623
20624 GNULIB_FPRINTF=1
20625 GNULIB_PRINTF=1
20626 GNULIB_VFPRINTF=1
20627 GNULIB_VPRINTF=1
20628 GNULIB_FPUTC=1
20629 GNULIB_PUTC=1
20630 GNULIB_PUTCHAR=1
20631 GNULIB_FPUTS=1
20632 GNULIB_PUTS=1
20633 GNULIB_FWRITE=1
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649 if test $gl_cv_have_include_next = yes; then
20650 gl_cv_next_stdlib_h='<'stdlib.h'>'
20651 else
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20653 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20654 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20655 $as_echo_n "(cached) " >&6
20656 else
20657
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660 #include <stdlib.h>
20661
20662 _ACEOF
20663 case "$host_os" in
20664 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20665 *) gl_absname_cpp="$ac_cpp" ;;
20666 esac
20667
20668 case "$host_os" in
20669 mingw*)
20670 gl_dirsep_regex='[/\\]'
20671 ;;
20672 *)
20673 gl_dirsep_regex='\/'
20674 ;;
20675 esac
20676 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20677
20678 <<<<<<< TREE
20679 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
20680 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
20681 s#^/[^/]#//&#
20682 =======
20683 gl_header_literal_regex=`echo 'stdlib.h' \
20684 | sed -e "$gl_make_literal_regex_sed"`
20685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20687 s|^/[^/]|//&|
20688 >>>>>>> MERGE-SOURCE
20689 p
20690 q
20691 }'
20692 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20693 sed -n "$gl_absolute_header_sed"`'"'
20694
20695
20696 fi
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20698 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20699 fi
20700 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20701
20702 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20704 gl_next_as_first_directive='<'stdlib.h'>'
20705 else
20706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20707 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20708 fi
20709 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20720
20721
20722
20723
20724
20725
20726
20727 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20728
20729
20730
20731
20732
20733
20734
20735 <<<<<<< TREE
20736 =======
20737
20738 if test "$ac_cv_have_decl_strtoimax" != yes; then
20739 HAVE_DECL_STRTOIMAX=0
20740 fi
20741
20742 if test $ac_cv_func_strtoimax = yes; then
20743 HAVE_STRTOIMAX=1
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20745 $as_echo_n "checking whether strtoimax works... " >&6; }
20746 if test "${gl_cv_func_strtoimax+set}" = set; then :
20747 $as_echo_n "(cached) " >&6
20748 else
20749 if test "$cross_compiling" = yes; then :
20750 case "$host_os" in
20751 # Guess no on AIX 5.
20752 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20753 # Guess yes otherwise.
20754 *) gl_cv_func_strtoimax="guessing yes" ;;
20755 esac
20756
20757 else
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20760
20761 #include <errno.h>
20762 #include <string.h>
20763 #include <inttypes.h>
20764 int main ()
20765 {
20766 if (sizeof (intmax_t) > sizeof (int))
20767 {
20768 const char *s = "4294967295";
20769 char *p;
20770 intmax_t res;
20771 errno = 0;
20772 res = strtoimax (s, &p, 10);
20773 if (p != s + strlen (s))
20774 return 1;
20775 if (errno != 0)
20776 return 2;
20777 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20778 return 3;
20779 }
20780 else
20781 {
20782 const char *s = "2147483647";
20783 char *p;
20784 intmax_t res;
20785 errno = 0;
20786 res = strtoimax (s, &p, 10);
20787 if (p != s + strlen (s))
20788 return 1;
20789 if (errno != 0)
20790 return 2;
20791 if (res != 2147483647)
20792 return 3;
20793 }
20794 return 0;
20795 }
20796
20797 _ACEOF
20798 if ac_fn_c_try_run "$LINENO"; then :
20799 gl_cv_func_strtoimax=yes
20800 else
20801 gl_cv_func_strtoimax=no
20802 fi
20803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20804 conftest.$ac_objext conftest.beam conftest.$ac_ext
20805 fi
20806
20807
20808 fi
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20810 $as_echo "$gl_cv_func_strtoimax" >&6; }
20811 case "$gl_cv_func_strtoimax" in
20812 *no) REPLACE_STRTOIMAX=1 ;;
20813 esac
20814 else
20815 HAVE_STRTOIMAX=0
20816 fi
20817
20818 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20819
20820
20821
20822
20823
20824
20825
20826
20827 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20828
20829
20830 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20831 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20832 ac_have_decl=1
20833 else
20834 ac_have_decl=0
20835 fi
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_DECL_STRTOLL $ac_have_decl
20839 _ACEOF
20840
20841
20842
20843 fi
20844
20845
20846
20847
20848
20849 GNULIB_STRTOIMAX=1
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859 >>>>>>> MERGE-SOURCE
20860 if test "$ac_cv_have_decl_strtoumax" != yes; then
20861 HAVE_DECL_STRTOUMAX=0
20862 fi
20863
20864 if test $ac_cv_func_strtoumax = no; then
20865
20866
20867
20868
20869
20870
20871
20872
20873 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20874
20875
20876 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20877 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20878 ac_have_decl=1
20879 else
20880 ac_have_decl=0
20881 fi
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define HAVE_DECL_STRTOULL $ac_have_decl
20885 _ACEOF
20886
20887
20888
20889 fi
20890
20891
20892
20893
20894
20895 GNULIB_STRTOUMAX=1
20896
20897
20898
20899
20900
20901
20902
20903 if test $ac_cv_func_symlink = no; then
20904 HAVE_SYMLINK=0
20905 else
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20907 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20908 if test "${gl_cv_func_symlink_works+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 if test "$cross_compiling" = yes; then :
20912 case "$host_os" in
20913 # Guess yes on glibc systems.
20914 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20915 # If we don't know, assume the worst.
20916 *) gl_cv_func_symlink_works="guessing no" ;;
20917 esac
20918
20919 else
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #include <unistd.h>
20923
20924 int
20925 main ()
20926 {
20927 int result = 0;
20928 if (!symlink ("a", "conftest.link/"))
20929 result |= 1;
20930 if (symlink ("conftest.f", "conftest.lnk2"))
20931 result |= 2;
20932 else if (!symlink ("a", "conftest.lnk2/"))
20933 result |= 4;
20934 return result;
20935
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 if ac_fn_c_try_run "$LINENO"; then :
20941 gl_cv_func_symlink_works=yes
20942 else
20943 gl_cv_func_symlink_works=no
20944 fi
20945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20946 conftest.$ac_objext conftest.beam conftest.$ac_ext
20947 fi
20948
20949 rm -f conftest.f conftest.link conftest.lnk2
20950 fi
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20952 $as_echo "$gl_cv_func_symlink_works" >&6; }
20953 case "$gl_cv_func_symlink_works" in
20954 *yes) ;;
20955 *)
20956 REPLACE_SYMLINK=1
20957 ;;
20958 esac
20959 fi
20960
20961 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20962
20963
20964
20965
20966
20967
20968
20969
20970 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20971
20972 fi
20973
20974
20975
20976
20977
20978 GNULIB_SYMLINK=1
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000 if test $gl_cv_have_include_next = yes; then
21001 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21002 else
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21004 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21005 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21006 $as_echo_n "(cached) " >&6
21007 else
21008
21009 if test $ac_cv_header_sys_stat_h = yes; then
21010
21011
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014 #include <sys/stat.h>
21015
21016 _ACEOF
21017 case "$host_os" in
21018 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21019 *) gl_absname_cpp="$ac_cpp" ;;
21020 esac
21021
21022 case "$host_os" in
21023 mingw*)
21024 gl_dirsep_regex='[/\\]'
21025 ;;
21026 *)
21027 gl_dirsep_regex='\/'
21028 ;;
21029 esac
21030 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21031
21032 <<<<<<< TREE
21033 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21034 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21035 s#^/[^/]#//&#
21036 =======
21037 gl_header_literal_regex=`echo 'sys/stat.h' \
21038 | sed -e "$gl_make_literal_regex_sed"`
21039 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21041 s|^/[^/]|//&|
21042 >>>>>>> MERGE-SOURCE
21043 p
21044 q
21045 }'
21046 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21047 sed -n "$gl_absolute_header_sed"`'"'
21048 else
21049 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21050 fi
21051
21052
21053 fi
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21055 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21056 fi
21057 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21058
21059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21061 gl_next_as_first_directive='<'sys/stat.h'>'
21062 else
21063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21064 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21065 fi
21066 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21067
21068
21069
21070
21071
21072 <<<<<<< TREE
21073 =======
21074
21075
21076
21077
21078
21079
21080 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
21081
21082 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
21083
21084 fi
21085
21086 >>>>>>> MERGE-SOURCE
21087 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21088 #include <sys/stat.h>
21089 "
21090 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21091
21092 else
21093
21094 $as_echo "#define nlink_t int" >>confdefs.h
21095
21096 fi
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112 if test $gl_cv_have_include_next = yes; then
21113 gl_cv_next_sys_types_h='<'sys/types.h'>'
21114 else
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21116 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21117 if test "${gl_cv_next_sys_types_h+set}" = set; then :
21118 $as_echo_n "(cached) " >&6
21119 else
21120
21121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122 /* end confdefs.h. */
21123 #include <sys/types.h>
21124
21125 _ACEOF
21126 case "$host_os" in
21127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21128 *) gl_absname_cpp="$ac_cpp" ;;
21129 esac
21130
21131 case "$host_os" in
21132 mingw*)
21133 gl_dirsep_regex='[/\\]'
21134 ;;
21135 *)
21136 gl_dirsep_regex='\/'
21137 ;;
21138 esac
21139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21140
21141 gl_header_literal_regex=`echo 'sys/types.h' \
21142 | sed -e "$gl_make_literal_regex_sed"`
21143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21145 s|^/[^/]|//&|
21146 p
21147 q
21148 }'
21149 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21150 sed -n "$gl_absolute_header_sed"`'"'
21151
21152
21153 fi
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21155 $as_echo "$gl_cv_next_sys_types_h" >&6; }
21156 fi
21157 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21158
21159 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21161 gl_next_as_first_directive='<'sys/types.h'>'
21162 else
21163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21164 gl_next_as_first_directive=$gl_cv_next_sys_types_h
21165 fi
21166 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189 if test $ac_cv_have_decl_localtime_r = no; then
21190 HAVE_DECL_LOCALTIME_R=0
21191 fi
21192
21193
21194 if test $ac_cv_func_localtime_r = yes; then
21195 HAVE_LOCALTIME_R=1
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21197 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21198 if test "${gl_cv_time_r_posix+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21200 else
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h. */
21203 #include <time.h>
21204 int
21205 main ()
21206 {
21207 /* We don't need to append 'restrict's to the argument types,
21208 even though the POSIX signature has the 'restrict's,
21209 since C99 says they can't affect type compatibility. */
21210 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21211 if (ptr) return 0;
21212 /* Check the return type is a pointer.
21213 On HP-UX 10 it is 'int'. */
21214 *localtime_r (0, 0);
21215 ;
21216 return 0;
21217 }
21218
21219 _ACEOF
21220 if ac_fn_c_try_compile "$LINENO"; then :
21221 gl_cv_time_r_posix=yes
21222 else
21223 gl_cv_time_r_posix=no
21224 fi
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226
21227 fi
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21229 $as_echo "$gl_cv_time_r_posix" >&6; }
21230 if test $gl_cv_time_r_posix = yes; then
21231 REPLACE_LOCALTIME_R=0
21232 else
21233 REPLACE_LOCALTIME_R=1
21234 fi
21235 else
21236 HAVE_LOCALTIME_R=0
21237 fi
21238
21239 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21240
21241
21242
21243
21244
21245
21246
21247
21248 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21249
21250
21251 :
21252
21253 fi
21254
21255
21256
21257
21258
21259 GNULIB_TIME_R=1
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279 if test $gl_cv_have_include_next = yes; then
21280 gl_cv_next_unistd_h='<'unistd.h'>'
21281 else
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21283 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21284 if test "${gl_cv_next_unistd_h+set}" = set; then :
21285 $as_echo_n "(cached) " >&6
21286 else
21287
21288 if test $ac_cv_header_unistd_h = yes; then
21289
21290
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21293 #include <unistd.h>
21294
21295 _ACEOF
21296 case "$host_os" in
21297 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21298 *) gl_absname_cpp="$ac_cpp" ;;
21299 esac
21300
21301 case "$host_os" in
21302 mingw*)
21303 gl_dirsep_regex='[/\\]'
21304 ;;
21305 *)
21306 gl_dirsep_regex='\/'
21307 ;;
21308 esac
21309 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21310
21311 <<<<<<< TREE
21312 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21313 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21314 s#^/[^/]#//&#
21315 =======
21316 gl_header_literal_regex=`echo 'unistd.h' \
21317 | sed -e "$gl_make_literal_regex_sed"`
21318 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21319 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21320 s|^/[^/]|//&|
21321 >>>>>>> MERGE-SOURCE
21322 p
21323 q
21324 }'
21325 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21326 sed -n "$gl_absolute_header_sed"`'"'
21327 else
21328 gl_cv_next_unistd_h='<'unistd.h'>'
21329 fi
21330
21331
21332 fi
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21334 $as_echo "$gl_cv_next_unistd_h" >&6; }
21335 fi
21336 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21337
21338 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21340 gl_next_as_first_directive='<'unistd.h'>'
21341 else
21342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21343 gl_next_as_first_directive=$gl_cv_next_unistd_h
21344 fi
21345 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21346
21347
21348
21349
21350 if test $ac_cv_header_unistd_h = yes; then
21351 HAVE_UNISTD_H=1
21352 else
21353 HAVE_UNISTD_H=0
21354 fi
21355
21356
21357
21358
21359
21360
21361
21362
21363 gl_gnulib_enabled_dosname=false
21364 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21365 <<<<<<< TREE
21366 =======
21367 gl_gnulib_enabled_pathmax=false
21368 gl_gnulib_enabled_sigprocmask=false
21369 >>>>>>> MERGE-SOURCE
21370 gl_gnulib_enabled_stat=false
21371 gl_gnulib_enabled_strtoull=false
21372 gl_gnulib_enabled_verify=false
21373 func_gl_gnulib_m4code_dosname ()
21374 {
21375 if ! $gl_gnulib_enabled_dosname; then
21376 gl_gnulib_enabled_dosname=true
21377 fi
21378 }
21379 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21380 {
21381 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21382
21383
21384 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21385 fi
21386 }
21387 <<<<<<< TREE
21388 <<<<<<< TREE
21389 =======
21390 =======
21391 func_gl_gnulib_m4code_pathmax ()
21392 {
21393 if ! $gl_gnulib_enabled_pathmax; then
21394
21395
21396
21397 gl_gnulib_enabled_pathmax=true
21398 fi
21399 }
21400 >>>>>>> MERGE-SOURCE
21401 func_gl_gnulib_m4code_sigprocmask ()
21402 {
21403 if ! $gl_gnulib_enabled_sigprocmask; then
21404
21405
21406
21407 if test $gl_cv_type_sigset_t = yes; then
21408 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21409 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21410 gl_cv_func_sigprocmask=1
21411 fi
21412
21413 fi
21414 if test -z "$gl_cv_func_sigprocmask"; then
21415 HAVE_POSIX_SIGNALBLOCKING=0
21416 fi
21417
21418 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21419
21420
21421
21422
21423
21424
21425
21426
21427 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21428
21429 :
21430 fi
21431
21432
21433
21434
21435
21436 GNULIB_SIGPROCMASK=1
21437
21438
21439
21440
21441
21442 gl_gnulib_enabled_sigprocmask=true
21443 fi
21444 }
21445 >>>>>>> MERGE-SOURCE
21446 func_gl_gnulib_m4code_stat ()
21447 {
21448 if ! $gl_gnulib_enabled_stat; then
21449
21450
21451
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21453 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21454 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21455 $as_echo_n "(cached) " >&6
21456 else
21457 if test "$cross_compiling" = yes; then :
21458 case $host_os in
21459 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21460 *) gl_cv_func_stat_dir_slash="guessing yes";;
21461 esac
21462 else
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21465 #include <sys/stat.h>
21466
21467 int
21468 main ()
21469 {
21470 struct stat st; return stat (".", &st) != stat ("./", &st);
21471 ;
21472 return 0;
21473 }
21474 _ACEOF
21475 if ac_fn_c_try_run "$LINENO"; then :
21476 gl_cv_func_stat_dir_slash=yes
21477 else
21478 gl_cv_func_stat_dir_slash=no
21479 fi
21480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21481 conftest.$ac_objext conftest.beam conftest.$ac_ext
21482 fi
21483
21484 fi
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21486 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21488 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21489 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21490 $as_echo_n "(cached) " >&6
21491 else
21492 touch conftest.tmp
21493 # Assume that if we have lstat, we can also check symlinks.
21494 if test $ac_cv_func_lstat = yes; then
21495 ln -s conftest.tmp conftest.lnk
21496 fi
21497 if test "$cross_compiling" = yes; then :
21498 case "$host_os" in
21499 # Guess yes on glibc systems.
21500 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21501 # If we don't know, assume the worst.
21502 *) gl_cv_func_stat_file_slash="guessing no" ;;
21503 esac
21504
21505 else
21506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h. */
21508 #include <sys/stat.h>
21509
21510 int
21511 main ()
21512 {
21513 int result = 0;
21514 struct stat st;
21515 if (!stat ("conftest.tmp/", &st))
21516 result |= 1;
21517 #if HAVE_LSTAT
21518 if (!stat ("conftest.lnk/", &st))
21519 result |= 2;
21520 #endif
21521 return result;
21522
21523 ;
21524 return 0;
21525 }
21526 _ACEOF
21527 if ac_fn_c_try_run "$LINENO"; then :
21528 gl_cv_func_stat_file_slash=yes
21529 else
21530 gl_cv_func_stat_file_slash=no
21531 fi
21532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21533 conftest.$ac_objext conftest.beam conftest.$ac_ext
21534 fi
21535
21536 rm -f conftest.tmp conftest.lnk
21537 fi
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21539 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21540 case $gl_cv_func_stat_dir_slash in
21541 *no) REPLACE_STAT=1
21542
21543 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21544 ;;
21545 esac
21546 case $gl_cv_func_stat_file_slash in
21547 *no) REPLACE_STAT=1
21548
21549 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21550 ;;
21551 esac
21552
21553 if test $REPLACE_STAT = 1; then
21554
21555
21556
21557
21558
21559
21560
21561
21562 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21563
21564
21565
21566 :
21567
21568 fi
21569
21570
21571
21572
21573
21574 GNULIB_STAT=1
21575
21576
21577
21578
21579
21580 gl_gnulib_enabled_stat=true
21581 if test $REPLACE_STAT = 1; then
21582 func_gl_gnulib_m4code_dosname
21583 fi
21584 <<<<<<< TREE
21585 if $condition; then
21586 =======
21587 if test $REPLACE_STAT = 1; then
21588 <<<<<<< TREE
21589 >>>>>>> MERGE-SOURCE
21590 =======
21591 func_gl_gnulib_m4code_pathmax
21592 fi
21593 if test $REPLACE_STAT = 1; then
21594 >>>>>>> MERGE-SOURCE
21595 func_gl_gnulib_m4code_verify
21596 fi
21597 fi
21598 }
21599 <<<<<<< TREE
21600 =======
21601 func_gl_gnulib_m4code_strtoll ()
21602 {
21603 if ! $gl_gnulib_enabled_strtoll; then
21604
21605
21606
21607 if test "$ac_cv_type_long_long_int" = yes; then
21608 for ac_func in strtoll
21609 do :
21610 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21611 if test "x$ac_cv_func_strtoll" = x""yes; then :
21612 cat >>confdefs.h <<_ACEOF
21613 #define HAVE_STRTOLL 1
21614 _ACEOF
21615
21616 fi
21617 done
21618
21619 if test $ac_cv_func_strtoll = no; then
21620 HAVE_STRTOLL=0
21621 fi
21622 fi
21623
21624 if test $HAVE_STRTOLL = 0; then
21625
21626
21627
21628
21629
21630
21631
21632
21633 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21634
21635
21636 :
21637
21638 fi
21639
21640
21641
21642
21643
21644 GNULIB_STRTOLL=1
21645
21646
21647
21648
21649
21650 gl_gnulib_enabled_strtoll=true
21651 fi
21652 }
21653 >>>>>>> MERGE-SOURCE
21654 func_gl_gnulib_m4code_strtoull ()
21655 {
21656 if ! $gl_gnulib_enabled_strtoull; then
21657
21658
21659
21660 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21661 for ac_func in strtoull
21662 do :
21663 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21664 if test "x$ac_cv_func_strtoull" = x""yes; then :
21665 cat >>confdefs.h <<_ACEOF
21666 #define HAVE_STRTOULL 1
21667 _ACEOF
21668
21669 fi
21670 done
21671
21672 if test $ac_cv_func_strtoull = no; then
21673 HAVE_STRTOULL=0
21674 fi
21675 fi
21676
21677 if test $HAVE_STRTOULL = 0; then
21678
21679
21680
21681
21682
21683
21684
21685
21686 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21687
21688
21689 :
21690
21691 fi
21692
21693
21694
21695
21696
21697 GNULIB_STRTOULL=1
21698
21699
21700
21701
21702
21703 gl_gnulib_enabled_strtoull=true
21704 fi
21705 }
21706 func_gl_gnulib_m4code_verify ()
21707 {
21708 if ! $gl_gnulib_enabled_verify; then
21709 gl_gnulib_enabled_verify=true
21710 fi
21711 }
21712 if test $REPLACE_GETOPT = 1; then
21713 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21714 fi
21715 if test $REPLACE_LSTAT = 1; then
21716 func_gl_gnulib_m4code_dosname
21717 fi
21718 if test $REPLACE_LSTAT = 1; then
21719 func_gl_gnulib_m4code_stat
21720 fi
21721 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21722 func_gl_gnulib_m4code_stat
21723 fi
21724 <<<<<<< TREE
21725 <<<<<<< TREE
21726 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
21727 =======
21728 if test $ac_cv_func_strtoimax = no; then
21729 func_gl_gnulib_m4code_verify
21730 fi
21731 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
21732 =======
21733 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21734 >>>>>>> MERGE-SOURCE
21735 func_gl_gnulib_m4code_strtoll
21736 fi
21737 <<<<<<< TREE
21738 if test $ac_cv_func_strtoumax = no; then
21739 >>>>>>> MERGE-SOURCE
21740 =======
21741 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21742 >>>>>>> MERGE-SOURCE
21743 func_gl_gnulib_m4code_verify
21744 fi
21745 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21746 func_gl_gnulib_m4code_strtoull
21747 fi
21748 if test $ac_cv_func_strtoumax = no; then
21749 func_gl_gnulib_m4code_verify
21750 fi
21751
21752 if $gl_gnulib_enabled_dosname; then
21753 gl_GNULIB_ENABLED_dosname_TRUE=
21754 gl_GNULIB_ENABLED_dosname_FALSE='#'
21755 else
21756 gl_GNULIB_ENABLED_dosname_TRUE='#'
21757 gl_GNULIB_ENABLED_dosname_FALSE=
21758 fi
21759
21760 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21761 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21762 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21763 else
21764 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21765 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21766 fi
21767
21768 <<<<<<< TREE
21769 =======
21770 if $gl_gnulib_enabled_pathmax; then
21771 gl_GNULIB_ENABLED_pathmax_TRUE=
21772 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21773 else
21774 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21775 gl_GNULIB_ENABLED_pathmax_FALSE=
21776 fi
21777
21778 if $gl_gnulib_enabled_sigprocmask; then
21779 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21780 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21781 else
21782 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21783 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21784 fi
21785
21786 >>>>>>> MERGE-SOURCE
21787 if $gl_gnulib_enabled_stat; then
21788 gl_GNULIB_ENABLED_stat_TRUE=
21789 gl_GNULIB_ENABLED_stat_FALSE='#'
21790 else
21791 gl_GNULIB_ENABLED_stat_TRUE='#'
21792 gl_GNULIB_ENABLED_stat_FALSE=
21793 fi
21794
21795 if $gl_gnulib_enabled_strtoull; then
21796 gl_GNULIB_ENABLED_strtoull_TRUE=
21797 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21798 else
21799 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21800 gl_GNULIB_ENABLED_strtoull_FALSE=
21801 fi
21802
21803 if $gl_gnulib_enabled_verify; then
21804 gl_GNULIB_ENABLED_verify_TRUE=
21805 gl_GNULIB_ENABLED_verify_FALSE='#'
21806 else
21807 gl_GNULIB_ENABLED_verify_TRUE='#'
21808 gl_GNULIB_ENABLED_verify_FALSE=
21809 fi
21810
21811 # End of code from modules
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821 gltests_libdeps=
21822 gltests_ltlibdeps=
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832 gl_source_base='tests'
21833 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
21834
21835 gl_module_indicator_condition=$gltests_WITNESS
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846 LIBGNU_LIBDEPS="$gl_libdeps"
21847
21848 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21849
21850
21851
21852 # UNIX98 PTYs.
21853 for ac_func in grantpt
21854 do :
21855 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21856 if test "x$ac_cv_func_grantpt" = x""yes; then :
21857 cat >>confdefs.h <<_ACEOF
21858 #define HAVE_GRANTPT 1
21859 _ACEOF
21860
21861 fi
21862 done
21863
21864
21865 # PTY-related GNU extensions.
21866 for ac_func in getpt
21867 do :
21868 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21869 if test "x$ac_cv_func_getpt" = x""yes; then :
21870 cat >>confdefs.h <<_ACEOF
21871 #define HAVE_GETPT 1
21872 _ACEOF
21873
21874 fi
21875 done
21876
21877
21878 # Check this now, so that we will NOT find the above functions in ncurses.
21879 # That is because we have not set up to link ncurses in lib-src.
21880 # It's better to believe a function is not available
21881 # than to expect to find it in ncurses.
21882 # Also we need tputs and friends to be able to build at all.
21883 have_tputs_et_al=true
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21885 $as_echo_n "checking for library containing tputs... " >&6; }
21886 if test "${ac_cv_search_tputs+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 ac_func_search_save_LIBS=$LIBS
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h. */
21892
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21896 #ifdef __cplusplus
21897 extern "C"
21898 #endif
21899 char tputs ();
21900 int
21901 main ()
21902 {
21903 return tputs ();
21904 ;
21905 return 0;
21906 }
21907 _ACEOF
21908 for ac_lib in '' ncurses terminfo termcap; do
21909 if test -z "$ac_lib"; then
21910 ac_res="none required"
21911 else
21912 ac_res=-l$ac_lib
21913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21914 fi
21915 if ac_fn_c_try_link "$LINENO"; then :
21916 ac_cv_search_tputs=$ac_res
21917 fi
21918 rm -f core conftest.err conftest.$ac_objext \
21919 conftest$ac_exeext
21920 if test "${ac_cv_search_tputs+set}" = set; then :
21921 break
21922 fi
21923 done
21924 if test "${ac_cv_search_tputs+set}" = set; then :
21925
21926 else
21927 ac_cv_search_tputs=no
21928 fi
21929 rm conftest.$ac_ext
21930 LIBS=$ac_func_search_save_LIBS
21931 fi
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
21933 $as_echo "$ac_cv_search_tputs" >&6; }
21934 ac_res=$ac_cv_search_tputs
21935 if test "$ac_res" != no; then :
21936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21937
21938 else
21939 have_tputs_et_al=false
21940 fi
21941
21942 if test "$have_tputs_et_al" != true; then
21943 as_fn_error "I couldn't find termcap functions (tputs and friends).
21944 Maybe some development libraries/packages are missing? Try installing
21945 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
21946 fi
21947 # Must define this when any termcap library is found.
21948
21949 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
21950
21951 ## FIXME This was the cpp logic, but I am not sure it is right.
21952 ## The above test has not necessarily found libncurses.
21953 HAVE_LIBNCURSES=yes
21954
21955 ## Use terminfo instead of termcap?
21956 ## Note only system files NOT using terminfo are:
21957 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21958 ## darwin|gnu without ncurses.
21959 TERMINFO=no
21960 LIBS_TERMCAP=
21961 case "$opsys" in
21962 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21963 ## hpux10-20: Use the system provided termcap(3) library.
21964 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21965 ## is necessary. Otherwise Emacs dumps core when run -nw.
21966 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21967
21968 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21969 ## The ncurses library has been moved out of the System framework in
21970 ## Mac OS X 10.2. So if configure detects it, set the command-line
21971 ## option to use it.
21972 darwin|gnu*)
21973 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21974 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21975 TERMINFO=yes
21976 LIBS_TERMCAP="-lncurses"
21977 fi
21978 ;;
21979
21980 freebsd)
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21982 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21983 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #include <osreldate.h>
21989 int
21990 main ()
21991 {
21992 #if __FreeBSD_version < 400000
21993 fail;
21994 #endif
21995
21996 ;
21997 return 0;
21998 }
21999 _ACEOF
22000 if ac_fn_c_try_link "$LINENO"; then :
22001 emacs_cv_freebsd_terminfo=yes
22002 else
22003 emacs_cv_freebsd_terminfo=no
22004 fi
22005 rm -f core conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
22007 fi
22008
22009
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22011 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22012
22013 if test $emacs_cv_freebsd_terminfo = yes; then
22014 TERMINFO=yes
22015 LIBS_TERMCAP="-lncurses"
22016 else
22017 LIBS_TERMCAP="-ltermcap"
22018 fi
22019 ;;
22020
22021 netbsd)
22022 if test $ac_cv_search_tputs = -lterminfo; then
22023 TERMINFO=yes
22024 LIBS_TERMCAP="-lterminfo"
22025 else
22026 LIBS_TERMCAP="-ltermcap"
22027 fi
22028 ;;
22029
22030 esac
22031
22032 case "$opsys" in
22033 ## hpux: Make sure we get select from libc rather than from libcurses
22034 ## because libcurses on HPUX 10.10 has a broken version of select.
22035 ## We used to use -lc -lcurses, but this may be cleaner.
22036 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22037
22038 openbsd) LIBS_TERMCAP="-lncurses" ;;
22039
22040 ## Must use system termcap, if we use any termcap. It does special things.
22041 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22042 esac
22043
22044 TERMCAP_OBJ=tparam.o
22045 if test $TERMINFO = yes; then
22046
22047 $as_echo "#define TERMINFO 1" >>confdefs.h
22048
22049
22050 ## Default used to be -ltermcap. Add a case above if need something else.
22051 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22052
22053 TERMCAP_OBJ=terminfo.o
22054 fi
22055
22056
22057
22058
22059 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22060 resolv=no
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <netinet/in.h>
22064 #include <arpa/nameser.h>
22065 #include <resolv.h>
22066 int
22067 main ()
22068 {
22069 return res_init();
22070 ;
22071 return 0;
22072 }
22073 _ACEOF
22074 if ac_fn_c_try_link "$LINENO"; then :
22075 have_res_init=yes
22076 else
22077 have_res_init=no
22078 fi
22079 rm -f core conftest.err conftest.$ac_objext \
22080 conftest$ac_exeext conftest.$ac_ext
22081 if test "$have_res_init" = no; then
22082 OLIBS="$LIBS"
22083 LIBS="$LIBS -lresolv"
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22085 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #include <netinet/in.h>
22089 #include <arpa/nameser.h>
22090 #include <resolv.h>
22091 int
22092 main ()
22093 {
22094 return res_init();
22095 ;
22096 return 0;
22097 }
22098 _ACEOF
22099 if ac_fn_c_try_link "$LINENO"; then :
22100 have_res_init=yes
22101 else
22102 have_res_init=no
22103 fi
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22107 $as_echo "$have_res_init" >&6; }
22108 if test "$have_res_init" = yes ; then
22109 resolv=yes
22110 fi
22111 LIBS="$OLIBS"
22112 fi
22113
22114 if test "$have_res_init" = yes; then
22115
22116 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22117
22118 fi
22119
22120 # Do we need the Hesiod library to provide the support routines?
22121 LIBHESIOD=
22122 if test "$with_hesiod" != no ; then
22123 # Don't set $LIBS here -- see comments above. FIXME which comments?
22124 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22125 if test "x$ac_cv_func_res_send" = x""yes; then :
22126
22127 else
22128 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22129 if test "x$ac_cv_func___res_send" = x""yes; then :
22130
22131 else
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22133 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22134 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22136 else
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lresolv $LIBS"
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22141
22142 /* Override any GCC internal prototype to avoid an error.
22143 Use char because int might match the return type of a GCC
22144 builtin and then its argument prototype would still apply. */
22145 #ifdef __cplusplus
22146 extern "C"
22147 #endif
22148 char res_send ();
22149 int
22150 main ()
22151 {
22152 return res_send ();
22153 ;
22154 return 0;
22155 }
22156 _ACEOF
22157 if ac_fn_c_try_link "$LINENO"; then :
22158 ac_cv_lib_resolv_res_send=yes
22159 else
22160 ac_cv_lib_resolv_res_send=no
22161 fi
22162 rm -f core conftest.err conftest.$ac_objext \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22165 fi
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22167 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22168 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22169 resolv=yes
22170 else
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22172 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22173 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22174 $as_echo_n "(cached) " >&6
22175 else
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lresolv $LIBS"
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22180
22181 /* Override any GCC internal prototype to avoid an error.
22182 Use char because int might match the return type of a GCC
22183 builtin and then its argument prototype would still apply. */
22184 #ifdef __cplusplus
22185 extern "C"
22186 #endif
22187 char __res_send ();
22188 int
22189 main ()
22190 {
22191 return __res_send ();
22192 ;
22193 return 0;
22194 }
22195 _ACEOF
22196 if ac_fn_c_try_link "$LINENO"; then :
22197 ac_cv_lib_resolv___res_send=yes
22198 else
22199 ac_cv_lib_resolv___res_send=no
22200 fi
22201 rm -f core conftest.err conftest.$ac_objext \
22202 conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22204 fi
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22206 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22207 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22208 resolv=yes
22209 fi
22210
22211 fi
22212
22213 fi
22214
22215 fi
22216
22217 if test "$resolv" = yes ; then
22218 RESOLVLIB=-lresolv
22219 else
22220 RESOLVLIB=
22221 fi
22222 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22223 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22224
22225 else
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22227 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22228 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22229 $as_echo_n "(cached) " >&6
22230 else
22231 ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-lhesiod $RESOLVLIB $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22235
22236 /* Override any GCC internal prototype to avoid an error.
22237 Use char because int might match the return type of a GCC
22238 builtin and then its argument prototype would still apply. */
22239 #ifdef __cplusplus
22240 extern "C"
22241 #endif
22242 char hes_getmailhost ();
22243 int
22244 main ()
22245 {
22246 return hes_getmailhost ();
22247 ;
22248 return 0;
22249 }
22250 _ACEOF
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 ac_cv_lib_hesiod_hes_getmailhost=yes
22253 else
22254 ac_cv_lib_hesiod_hes_getmailhost=no
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22259 fi
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22261 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22262 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22263 hesiod=yes
22264 else
22265 :
22266 fi
22267
22268 fi
22269
22270
22271 if test x"$hesiod" = xyes; then
22272
22273 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22274
22275 LIBHESIOD=-lhesiod
22276 fi
22277 fi
22278
22279
22280 # Do we need libresolv (due to res_init or Hesiod)?
22281 if test "$resolv" = yes ; then
22282
22283 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22284
22285 LIBRESOLV=-lresolv
22286 else
22287 LIBRESOLV=
22288 fi
22289
22290
22291 # These tell us which Kerberos-related libraries to use.
22292 COM_ERRLIB=
22293 CRYPTOLIB=
22294 KRB5LIB=
22295 DESLIB=
22296 KRB4LIB=
22297
22298 if test "${with_kerberos}" != no; then
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22300 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22301 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
22303 else
22304 ac_check_lib_save_LIBS=$LIBS
22305 LIBS="-lcom_err $LIBS"
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308
22309 /* Override any GCC internal prototype to avoid an error.
22310 Use char because int might match the return type of a GCC
22311 builtin and then its argument prototype would still apply. */
22312 #ifdef __cplusplus
22313 extern "C"
22314 #endif
22315 char com_err ();
22316 int
22317 main ()
22318 {
22319 return com_err ();
22320 ;
22321 return 0;
22322 }
22323 _ACEOF
22324 if ac_fn_c_try_link "$LINENO"; then :
22325 ac_cv_lib_com_err_com_err=yes
22326 else
22327 ac_cv_lib_com_err_com_err=no
22328 fi
22329 rm -f core conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22331 LIBS=$ac_check_lib_save_LIBS
22332 fi
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22334 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22335 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22336 have_com_err=yes
22337 else
22338 have_com_err=no
22339 fi
22340
22341 if test $have_com_err = yes; then
22342 COM_ERRLIB=-lcom_err
22343 LIBS="$COM_ERRLIB $LIBS"
22344
22345 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22346
22347 fi
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22349 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22350 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22352 else
22353 ac_check_lib_save_LIBS=$LIBS
22354 LIBS="-lcrypto $LIBS"
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 char mit_des_cbc_encrypt ();
22365 int
22366 main ()
22367 {
22368 return mit_des_cbc_encrypt ();
22369 ;
22370 return 0;
22371 }
22372 _ACEOF
22373 if ac_fn_c_try_link "$LINENO"; then :
22374 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22375 else
22376 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22377 fi
22378 rm -f core conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380 LIBS=$ac_check_lib_save_LIBS
22381 fi
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22383 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22384 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22385 have_crypto=yes
22386 else
22387 have_crypto=no
22388 fi
22389
22390 if test $have_crypto = yes; then
22391 CRYPTOLIB=-lcrypto
22392 LIBS="$CRYPTOLIB $LIBS"
22393
22394 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22395
22396 fi
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22398 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22399 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22400 $as_echo_n "(cached) " >&6
22401 else
22402 ac_check_lib_save_LIBS=$LIBS
22403 LIBS="-lk5crypto $LIBS"
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22406
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22410 #ifdef __cplusplus
22411 extern "C"
22412 #endif
22413 char mit_des_cbc_encrypt ();
22414 int
22415 main ()
22416 {
22417 return mit_des_cbc_encrypt ();
22418 ;
22419 return 0;
22420 }
22421 _ACEOF
22422 if ac_fn_c_try_link "$LINENO"; then :
22423 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22424 else
22425 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22426 fi
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 LIBS=$ac_check_lib_save_LIBS
22430 fi
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22432 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22433 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22434 have_k5crypto=yes
22435 else
22436 have_k5crypto=no
22437 fi
22438
22439 if test $have_k5crypto = yes; then
22440 CRYPTOLIB=-lk5crypto
22441 LIBS="$CRYPTOLIB $LIBS"
22442
22443 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22444
22445 fi
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22447 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22448 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22450 else
22451 ac_check_lib_save_LIBS=$LIBS
22452 LIBS="-lkrb5 $LIBS"
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22455
22456 /* Override any GCC internal prototype to avoid an error.
22457 Use char because int might match the return type of a GCC
22458 builtin and then its argument prototype would still apply. */
22459 #ifdef __cplusplus
22460 extern "C"
22461 #endif
22462 char krb5_init_context ();
22463 int
22464 main ()
22465 {
22466 return krb5_init_context ();
22467 ;
22468 return 0;
22469 }
22470 _ACEOF
22471 if ac_fn_c_try_link "$LINENO"; then :
22472 ac_cv_lib_krb5_krb5_init_context=yes
22473 else
22474 ac_cv_lib_krb5_krb5_init_context=no
22475 fi
22476 rm -f core conftest.err conftest.$ac_objext \
22477 conftest$ac_exeext conftest.$ac_ext
22478 LIBS=$ac_check_lib_save_LIBS
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22481 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22482 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22483 have_krb5=yes
22484 else
22485 have_krb5=no
22486 fi
22487
22488 if test $have_krb5=yes; then
22489 KRB5LIB=-lkrb5
22490 LIBS="$KRB5LIB $LIBS"
22491
22492 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22493
22494 fi
22495 if test "${with_kerberos5}" = no; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22497 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22498 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22499 $as_echo_n "(cached) " >&6
22500 else
22501 ac_check_lib_save_LIBS=$LIBS
22502 LIBS="-ldes425 $LIBS"
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22505
22506 /* Override any GCC internal prototype to avoid an error.
22507 Use char because int might match the return type of a GCC
22508 builtin and then its argument prototype would still apply. */
22509 #ifdef __cplusplus
22510 extern "C"
22511 #endif
22512 char des_cbc_encrypt ();
22513 int
22514 main ()
22515 {
22516 return des_cbc_encrypt ();
22517 ;
22518 return 0;
22519 }
22520 _ACEOF
22521 if ac_fn_c_try_link "$LINENO"; then :
22522 ac_cv_lib_des425_des_cbc_encrypt=yes
22523 else
22524 ac_cv_lib_des425_des_cbc_encrypt=no
22525 fi
22526 rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22528 LIBS=$ac_check_lib_save_LIBS
22529 fi
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22531 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22532 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22533 have_des425=yes
22534 else
22535 have_des425=no
22536 fi
22537
22538 if test $have_des425 = yes; then
22539 DESLIB=-ldes425
22540 LIBS="$DESLIB $LIBS"
22541
22542 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22543
22544 else
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22546 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22547 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22549 else
22550 ac_check_lib_save_LIBS=$LIBS
22551 LIBS="-ldes $LIBS"
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22554
22555 /* Override any GCC internal prototype to avoid an error.
22556 Use char because int might match the return type of a GCC
22557 builtin and then its argument prototype would still apply. */
22558 #ifdef __cplusplus
22559 extern "C"
22560 #endif
22561 char des_cbc_encrypt ();
22562 int
22563 main ()
22564 {
22565 return des_cbc_encrypt ();
22566 ;
22567 return 0;
22568 }
22569 _ACEOF
22570 if ac_fn_c_try_link "$LINENO"; then :
22571 ac_cv_lib_des_des_cbc_encrypt=yes
22572 else
22573 ac_cv_lib_des_des_cbc_encrypt=no
22574 fi
22575 rm -f core conftest.err conftest.$ac_objext \
22576 conftest$ac_exeext conftest.$ac_ext
22577 LIBS=$ac_check_lib_save_LIBS
22578 fi
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22580 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22581 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22582 have_des=yes
22583 else
22584 have_des=no
22585 fi
22586
22587 if test $have_des = yes; then
22588 DESLIB=-ldes
22589 LIBS="$DESLIB $LIBS"
22590
22591 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22592
22593 fi
22594 fi
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22596 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22597 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22598 $as_echo_n "(cached) " >&6
22599 else
22600 ac_check_lib_save_LIBS=$LIBS
22601 LIBS="-lkrb4 $LIBS"
22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h. */
22604
22605 /* Override any GCC internal prototype to avoid an error.
22606 Use char because int might match the return type of a GCC
22607 builtin and then its argument prototype would still apply. */
22608 #ifdef __cplusplus
22609 extern "C"
22610 #endif
22611 char krb_get_cred ();
22612 int
22613 main ()
22614 {
22615 return krb_get_cred ();
22616 ;
22617 return 0;
22618 }
22619 _ACEOF
22620 if ac_fn_c_try_link "$LINENO"; then :
22621 ac_cv_lib_krb4_krb_get_cred=yes
22622 else
22623 ac_cv_lib_krb4_krb_get_cred=no
22624 fi
22625 rm -f core conftest.err conftest.$ac_objext \
22626 conftest$ac_exeext conftest.$ac_ext
22627 LIBS=$ac_check_lib_save_LIBS
22628 fi
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22630 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22631 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22632 have_krb4=yes
22633 else
22634 have_krb4=no
22635 fi
22636
22637 if test $have_krb4 = yes; then
22638 KRB4LIB=-lkrb4
22639 LIBS="$KRB4LIB $LIBS"
22640
22641 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22642
22643 else
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22645 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22646 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 ac_check_lib_save_LIBS=$LIBS
22650 LIBS="-lkrb $LIBS"
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22653
22654 /* Override any GCC internal prototype to avoid an error.
22655 Use char because int might match the return type of a GCC
22656 builtin and then its argument prototype would still apply. */
22657 #ifdef __cplusplus
22658 extern "C"
22659 #endif
22660 char krb_get_cred ();
22661 int
22662 main ()
22663 {
22664 return krb_get_cred ();
22665 ;
22666 return 0;
22667 }
22668 _ACEOF
22669 if ac_fn_c_try_link "$LINENO"; then :
22670 ac_cv_lib_krb_krb_get_cred=yes
22671 else
22672 ac_cv_lib_krb_krb_get_cred=no
22673 fi
22674 rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22677 fi
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22679 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22680 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22681 have_krb=yes
22682 else
22683 have_krb=no
22684 fi
22685
22686 if test $have_krb = yes; then
22687 KRB4LIB=-lkrb
22688 LIBS="$KRB4LIB $LIBS"
22689
22690 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22691
22692 fi
22693 fi
22694 fi
22695
22696 if test "${with_kerberos5}" != no; then
22697 for ac_header in krb5.h
22698 do :
22699 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22700 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_KRB5_H 1
22703 _ACEOF
22704 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22705 "
22706 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22707
22708 cat >>confdefs.h <<_ACEOF
22709 #define HAVE_KRB5_ERROR_TEXT 1
22710 _ACEOF
22711
22712
22713 fi
22714 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22715 "
22716 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22717
22718 cat >>confdefs.h <<_ACEOF
22719 #define HAVE_KRB5_ERROR_E_TEXT 1
22720 _ACEOF
22721
22722
22723 fi
22724
22725 fi
22726
22727 done
22728
22729 else
22730 for ac_header in des.h
22731 do :
22732 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22733 if test "x$ac_cv_header_des_h" = x""yes; then :
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_DES_H 1
22736 _ACEOF
22737
22738 else
22739 for ac_header in kerberosIV/des.h
22740 do :
22741 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22742 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_KERBEROSIV_DES_H 1
22745 _ACEOF
22746
22747 else
22748 for ac_header in kerberos/des.h
22749 do :
22750 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22751 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22752 cat >>confdefs.h <<_ACEOF
22753 #define HAVE_KERBEROS_DES_H 1
22754 _ACEOF
22755
22756 fi
22757
22758 done
22759
22760 fi
22761
22762 done
22763
22764 fi
22765
22766 done
22767
22768 for ac_header in krb.h
22769 do :
22770 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22771 if test "x$ac_cv_header_krb_h" = x""yes; then :
22772 cat >>confdefs.h <<_ACEOF
22773 #define HAVE_KRB_H 1
22774 _ACEOF
22775
22776 else
22777 for ac_header in kerberosIV/krb.h
22778 do :
22779 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22780 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22781 cat >>confdefs.h <<_ACEOF
22782 #define HAVE_KERBEROSIV_KRB_H 1
22783 _ACEOF
22784
22785 else
22786 for ac_header in kerberos/krb.h
22787 do :
22788 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22789 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22790 cat >>confdefs.h <<_ACEOF
22791 #define HAVE_KERBEROS_KRB_H 1
22792 _ACEOF
22793
22794 fi
22795
22796 done
22797
22798 fi
22799
22800 done
22801
22802 fi
22803
22804 done
22805
22806 fi
22807 for ac_header in com_err.h
22808 do :
22809 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22810 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_COM_ERR_H 1
22813 _ACEOF
22814
22815 fi
22816
22817 done
22818
22819 fi
22820
22821
22822
22823
22824
22825
22826
22827 # Solaris requires -lintl if you want strerror (which calls dgettext)
22828 # to return localized messages.
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
22830 $as_echo_n "checking for dgettext in -lintl... " >&6; }
22831 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
22832 $as_echo_n "(cached) " >&6
22833 else
22834 ac_check_lib_save_LIBS=$LIBS
22835 LIBS="-lintl $LIBS"
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22838
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22842 #ifdef __cplusplus
22843 extern "C"
22844 #endif
22845 char dgettext ();
22846 int
22847 main ()
22848 {
22849 return dgettext ();
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 ac_cv_lib_intl_dgettext=yes
22856 else
22857 ac_cv_lib_intl_dgettext=no
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22861 LIBS=$ac_check_lib_save_LIBS
22862 fi
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
22864 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
22865 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE_LIBINTL 1
22868 _ACEOF
22869
22870 LIBS="-lintl $LIBS"
22871
22872 fi
22873
22874
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22876 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22877 if test "${emacs_cv_localtime_cache+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22879 else
22880 if test x$ac_cv_func_tzset = xyes; then
22881 if test "$cross_compiling" = yes; then :
22882 # If we have tzset, assume the worst when cross-compiling.
22883 emacs_cv_localtime_cache=yes
22884 else
22885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886 /* end confdefs.h. */
22887 #include <time.h>
22888 char TZ_GMT0[] = "TZ=GMT0";
22889 char TZ_PST8[] = "TZ=PST8";
22890 main()
22891 {
22892 time_t now = time ((time_t *) 0);
22893 int hour_GMT0, hour_unset;
22894 if (putenv (TZ_GMT0) != 0)
22895 exit (1);
22896 hour_GMT0 = localtime (&now)->tm_hour;
22897 unsetenv("TZ");
22898 hour_unset = localtime (&now)->tm_hour;
22899 if (putenv (TZ_PST8) != 0)
22900 exit (1);
22901 if (localtime (&now)->tm_hour == hour_GMT0)
22902 exit (1);
22903 unsetenv("TZ");
22904 if (localtime (&now)->tm_hour != hour_unset)
22905 exit (1);
22906 exit (0);
22907 }
22908 _ACEOF
22909 if ac_fn_c_try_run "$LINENO"; then :
22910 emacs_cv_localtime_cache=no
22911 else
22912 emacs_cv_localtime_cache=yes
22913 fi
22914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22915 conftest.$ac_objext conftest.beam conftest.$ac_ext
22916 fi
22917
22918 else
22919 # If we lack tzset, report that localtime does not cache TZ,
22920 # since we can't invalidate the cache if we don't have tzset.
22921 emacs_cv_localtime_cache=no
22922 fi
22923 fi
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22925 $as_echo "$emacs_cv_localtime_cache" >&6; }
22926 if test $emacs_cv_localtime_cache = yes; then
22927
22928 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22929
22930 fi
22931
22932 if test "x$HAVE_TIMEVAL" = xyes; then
22933 for ac_func in gettimeofday
22934 do :
22935 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22936 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
22937 cat >>confdefs.h <<_ACEOF
22938 #define HAVE_GETTIMEOFDAY 1
22939 _ACEOF
22940
22941 fi
22942 done
22943
22944 if test $ac_cv_func_gettimeofday = yes; then
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
22946 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
22947 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
22948 $as_echo_n "(cached) " >&6
22949 else
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22952
22953 #ifdef TIME_WITH_SYS_TIME
22954 #include <sys/time.h>
22955 #include <time.h>
22956 #else
22957 #ifdef HAVE_SYS_TIME_H
22958 #include <sys/time.h>
22959 #else
22960 #include <time.h>
22961 #endif
22962 #endif
22963 int
22964 main ()
22965 {
22966 struct timeval time;
22967 gettimeofday (&time, 0);
22968 ;
22969 return 0;
22970 }
22971 _ACEOF
22972 if ac_fn_c_try_compile "$LINENO"; then :
22973 emacs_cv_gettimeofday_two_arguments=yes
22974 else
22975 emacs_cv_gettimeofday_two_arguments=no
22976 fi
22977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 fi
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
22980 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
22981 if test $emacs_cv_gettimeofday_two_arguments = no; then
22982
22983 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
22984
22985 fi
22986 fi
22987 fi
22988
22989 ok_so_far=yes
22990 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22991 if test "x$ac_cv_func_socket" = x""yes; then :
22992
22993 else
22994 ok_so_far=no
22995 fi
22996
22997 if test $ok_so_far = yes; then
22998 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22999 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23000
23001 else
23002 ok_so_far=no
23003 fi
23004
23005
23006 fi
23007 if test $ok_so_far = yes; then
23008 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23009 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23010
23011 else
23012 ok_so_far=no
23013 fi
23014
23015
23016 fi
23017 if test $ok_so_far = yes; then
23018
23019 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23020
23021 fi
23022
23023 if test -f /usr/lpp/X11/bin/smt.exp; then
23024
23025 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23026
23027 fi
23028
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23030 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23031 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23033 $as_echo "yes" >&6; }
23034
23035 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23036
23037 else
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23039 $as_echo "no" >&6; }
23040 fi
23041
23042 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23043 if test "x$ac_cv_type_pid_t" = x""yes; then :
23044
23045 else
23046
23047 cat >>confdefs.h <<_ACEOF
23048 #define pid_t int
23049 _ACEOF
23050
23051 fi
23052
23053 for ac_header in vfork.h
23054 do :
23055 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23056 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23057 cat >>confdefs.h <<_ACEOF
23058 #define HAVE_VFORK_H 1
23059 _ACEOF
23060
23061 fi
23062
23063 done
23064
23065 for ac_func in fork vfork
23066 do :
23067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23069 eval as_val=\$$as_ac_var
23070 if test "x$as_val" = x""yes; then :
23071 cat >>confdefs.h <<_ACEOF
23072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23073 _ACEOF
23074
23075 fi
23076 done
23077
23078 if test "x$ac_cv_func_fork" = xyes; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23080 $as_echo_n "checking for working fork... " >&6; }
23081 if test "${ac_cv_func_fork_works+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 if test "$cross_compiling" = yes; then :
23085 ac_cv_func_fork_works=cross
23086 else
23087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 int
23091 main ()
23092 {
23093
23094 /* By Ruediger Kuhlmann. */
23095 return fork () < 0;
23096
23097 ;
23098 return 0;
23099 }
23100 _ACEOF
23101 if ac_fn_c_try_run "$LINENO"; then :
23102 ac_cv_func_fork_works=yes
23103 else
23104 ac_cv_func_fork_works=no
23105 fi
23106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23107 conftest.$ac_objext conftest.beam conftest.$ac_ext
23108 fi
23109
23110 fi
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23112 $as_echo "$ac_cv_func_fork_works" >&6; }
23113
23114 else
23115 ac_cv_func_fork_works=$ac_cv_func_fork
23116 fi
23117 if test "x$ac_cv_func_fork_works" = xcross; then
23118 case $host in
23119 *-*-amigaos* | *-*-msdosdjgpp*)
23120 # Override, as these systems have only a dummy fork() stub
23121 ac_cv_func_fork_works=no
23122 ;;
23123 *)
23124 ac_cv_func_fork_works=yes
23125 ;;
23126 esac
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23128 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23129 fi
23130 ac_cv_func_vfork_works=$ac_cv_func_vfork
23131 if test "x$ac_cv_func_vfork" = xyes; then
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23133 $as_echo_n "checking for working vfork... " >&6; }
23134 if test "${ac_cv_func_vfork_works+set}" = set; then :
23135 $as_echo_n "(cached) " >&6
23136 else
23137 if test "$cross_compiling" = yes; then :
23138 ac_cv_func_vfork_works=cross
23139 else
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 /* Thanks to Paul Eggert for this test. */
23143 $ac_includes_default
23144 #include <sys/wait.h>
23145 #ifdef HAVE_VFORK_H
23146 # include <vfork.h>
23147 #endif
23148 /* On some sparc systems, changes by the child to local and incoming
23149 argument registers are propagated back to the parent. The compiler
23150 is told about this with #include <vfork.h>, but some compilers
23151 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23152 static variable whose address is put into a register that is
23153 clobbered by the vfork. */
23154 static void
23155 #ifdef __cplusplus
23156 sparc_address_test (int arg)
23157 # else
23158 sparc_address_test (arg) int arg;
23159 #endif
23160 {
23161 static pid_t child;
23162 if (!child) {
23163 child = vfork ();
23164 if (child < 0) {
23165 perror ("vfork");
23166 _exit(2);
23167 }
23168 if (!child) {
23169 arg = getpid();
23170 write(-1, "", 0);
23171 _exit (arg);
23172 }
23173 }
23174 }
23175
23176 int
23177 main ()
23178 {
23179 pid_t parent = getpid ();
23180 pid_t child;
23181
23182 sparc_address_test (0);
23183
23184 child = vfork ();
23185
23186 if (child == 0) {
23187 /* Here is another test for sparc vfork register problems. This
23188 test uses lots of local variables, at least as many local
23189 variables as main has allocated so far including compiler
23190 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23191 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23192 reuse the register of parent for one of the local variables,
23193 since it will think that parent can't possibly be used any more
23194 in this routine. Assigning to the local variable will thus
23195 munge parent in the parent process. */
23196 pid_t
23197 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23198 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23199 /* Convince the compiler that p..p7 are live; otherwise, it might
23200 use the same hardware register for all 8 local variables. */
23201 if (p != p1 || p != p2 || p != p3 || p != p4
23202 || p != p5 || p != p6 || p != p7)
23203 _exit(1);
23204
23205 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23206 from child file descriptors. If the child closes a descriptor
23207 before it execs or exits, this munges the parent's descriptor
23208 as well. Test for this by closing stdout in the child. */
23209 _exit(close(fileno(stdout)) != 0);
23210 } else {
23211 int status;
23212 struct stat st;
23213
23214 while (wait(&status) != child)
23215 ;
23216 return (
23217 /* Was there some problem with vforking? */
23218 child < 0
23219
23220 /* Did the child fail? (This shouldn't happen.) */
23221 || status
23222
23223 /* Did the vfork/compiler bug occur? */
23224 || parent != getpid()
23225
23226 /* Did the file descriptor bug occur? */
23227 || fstat(fileno(stdout), &st) != 0
23228 );
23229 }
23230 }
23231 _ACEOF
23232 if ac_fn_c_try_run "$LINENO"; then :
23233 ac_cv_func_vfork_works=yes
23234 else
23235 ac_cv_func_vfork_works=no
23236 fi
23237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23238 conftest.$ac_objext conftest.beam conftest.$ac_ext
23239 fi
23240
23241 fi
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23243 $as_echo "$ac_cv_func_vfork_works" >&6; }
23244
23245 fi;
23246 if test "x$ac_cv_func_fork_works" = xcross; then
23247 ac_cv_func_vfork_works=$ac_cv_func_vfork
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23249 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23250 fi
23251
23252 if test "x$ac_cv_func_vfork_works" = xyes; then
23253
23254 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23255
23256 else
23257
23258 $as_echo "#define vfork fork" >>confdefs.h
23259
23260 fi
23261 if test "x$ac_cv_func_fork_works" = xyes; then
23262
23263 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23264
23265 fi
23266
23267
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23269 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23270 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272 else
23273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274 /* end confdefs.h. */
23275 #include <langinfo.h>
23276 int
23277 main ()
23278 {
23279 char* cs = nl_langinfo(CODESET);
23280 ;
23281 return 0;
23282 }
23283 _ACEOF
23284 if ac_fn_c_try_link "$LINENO"; then :
23285 emacs_cv_langinfo_codeset=yes
23286 else
23287 emacs_cv_langinfo_codeset=no
23288 fi
23289 rm -f core conftest.err conftest.$ac_objext \
23290 conftest$ac_exeext conftest.$ac_ext
23291
23292 fi
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23294 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23295 if test $emacs_cv_langinfo_codeset = yes; then
23296
23297 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23298
23299 fi
23300
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23302 $as_echo_n "checking for mbstate_t... " >&6; }
23303 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 $ac_includes_default
23309 # include <wchar.h>
23310 int
23311 main ()
23312 {
23313 mbstate_t x; return sizeof x;
23314 ;
23315 return 0;
23316 }
23317 _ACEOF
23318 if ac_fn_c_try_compile "$LINENO"; then :
23319 ac_cv_type_mbstate_t=yes
23320 else
23321 ac_cv_type_mbstate_t=no
23322 fi
23323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23324 fi
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23326 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23327 if test $ac_cv_type_mbstate_t = yes; then
23328
23329 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23330
23331 else
23332
23333 $as_echo "#define mbstate_t int" >>confdefs.h
23334
23335 fi
23336
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23338 $as_echo_n "checking for C restricted array declarations... " >&6; }
23339 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23341 else
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23344 void fred (int x[__restrict]);
23345 int
23346 main ()
23347 {
23348
23349 ;
23350 return 0;
23351 }
23352 _ACEOF
23353 if ac_fn_c_try_compile "$LINENO"; then :
23354 emacs_cv_c_restrict_arr=yes
23355 else
23356 emacs_cv_c_restrict_arr=no
23357 fi
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23361 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23362 if test "$emacs_cv_c_restrict_arr" = yes; then
23363
23364 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23365
23366 fi
23367
23368
23369
23370 # Set up the CFLAGS for real compilation, so we can substitute it.
23371 CFLAGS="$REAL_CFLAGS"
23372 CPPFLAGS="$REAL_CPPFLAGS"
23373
23374 ## Hack to detect a buggy GCC version.
23375 if test "x$GCC" = xyes \
23376 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23377 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23378 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23379 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23380 fi
23381
23382 version=$PACKAGE_VERSION
23383
23384 ### Specify what sort of things we'll be editing into Makefile and config.h.
23385 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23386
23387
23388 ## Unused?
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23410 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23411 ## end of LIBX_BASE, but nothing ever set it.
23412
23413
23414
23415
23416 ## Used in lwlib/Makefile.in.
23417
23418 if test -n "${machfile}"; then
23419 M_FILE="\$(srcdir)/${machfile}"
23420 else
23421 M_FILE=
23422 fi
23423 S_FILE="\$(srcdir)/${opsysfile}"
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434 cat >>confdefs.h <<_ACEOF
23435 #define EMACS_CONFIGURATION "${canonical}"
23436 _ACEOF
23437
23438
23439 cat >>confdefs.h <<_ACEOF
23440 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23441 _ACEOF
23442
23443 if test -n "$machfile"; then
23444
23445 cat >>confdefs.h <<_ACEOF
23446 #define config_machfile "${machfile}"
23447 _ACEOF
23448
23449 fi
23450
23451 cat >>confdefs.h <<_ACEOF
23452 #define config_opsysfile "${opsysfile}"
23453 _ACEOF
23454
23455
23456 XMENU_OBJ=
23457 XOBJ=
23458 FONT_OBJ=
23459 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23460
23461 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23462
23463 XMENU_OBJ=xmenu.o
23464 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23465 FONT_OBJ=xfont.o
23466 if test "$HAVE_XFT" = "yes"; then
23467 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23468 elif test "$HAVE_FREETYPE" = "yes"; then
23469 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23470 fi
23471
23472 fi
23473
23474
23475
23476
23477 WIDGET_OBJ=
23478 MOTIF_LIBW=
23479 if test "${USE_X_TOOLKIT}" != "none" ; then
23480 WIDGET_OBJ=widget.o
23481
23482 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23483
23484 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23485
23486 $as_echo "#define USE_LUCID 1" >>confdefs.h
23487
23488 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23489
23490 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23491
23492 MOTIF_LIBW=-lXm
23493 case "$opsys" in
23494 gnu-linux)
23495 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23496 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23497 ;;
23498
23499 unixware)
23500 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23501 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23502 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23503 ;;
23504
23505 aix4-2)
23506 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23507 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23508 ;;
23509 esac
23510 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23511 fi
23512 fi
23513
23514
23515 TOOLKIT_LIBW=
23516 case "$USE_X_TOOLKIT" in
23517 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23518 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23519 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
23520 esac
23521
23522
23523 if test "$USE_X_TOOLKIT" = "none"; then
23524 LIBXT_OTHER="\$(LIBXSM)"
23525 OLDXMENU_TARGET="really-oldXMenu"
23526 else
23527 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
23528 OLDXMENU_TARGET="really-lwlib"
23529 fi
23530
23531
23532 ## The X Menu stuff is present in the X10 distribution, but missing
23533 ## from X11. If we have X10, just use the installed library;
23534 ## otherwise, use our own copy.
23535 if test "${HAVE_X11}" = "yes" ; then
23536
23537 $as_echo "#define HAVE_X11 1" >>confdefs.h
23538
23539
23540 if test "$USE_X_TOOLKIT" = "none"; then
23541 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
23542 else
23543 OLDXMENU="\${lwlibdir}/liblw.a"
23544 fi
23545 LIBXMENU="\$(OLDXMENU)"
23546 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
23547 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
23548 else
23549 ## For a syntactically valid Makefile; not actually used for anything.
23550 ## See comments in src/Makefile.in.
23551 OLDXMENU=nothing
23552 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
23553 if test "${HAVE_X_WINDOWS}" = "yes"; then
23554 LIBXMENU="-lXMenu"
23555 else
23556 LIBXMENU=
23557 fi
23558 LIBX_OTHER=
23559 OLDXMENU_DEPS=
23560 fi
23561
23562 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
23563 OLDXMENU_TARGET=
23564 OLDXMENU=nothing
23565 LIBXMENU=
23566 OLDXMENU_DEPS=
23567 fi
23568
23569
23570
23571
23572
23573
23574
23575 if test "${HAVE_MENUS}" = "yes" ; then
23576
23577 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
23578
23579 fi
23580
23581 if test "${GNU_MALLOC}" = "yes" ; then
23582
23583 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
23584
23585 fi
23586
23587 RALLOC_OBJ=
23588 if test "${REL_ALLOC}" = "yes" ; then
23589
23590 $as_echo "#define REL_ALLOC 1" >>confdefs.h
23591
23592
23593 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
23594 fi
23595
23596
23597 if test "$opsys" = "cygwin"; then
23598 CYGWIN_OBJ="sheap.o"
23599 ## Cygwin differs because of its unexec().
23600 PRE_ALLOC_OBJ=
23601 POST_ALLOC_OBJ=lastfile.o
23602 else
23603 CYGWIN_OBJ=
23604 PRE_ALLOC_OBJ=lastfile.o
23605 POST_ALLOC_OBJ=
23606 fi
23607
23608
23609
23610
23611
23612 case "$opsys" in
23613 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23614
23615 darwin)
23616 ## The -headerpad option tells ld (see man page) to leave room at the
23617 ## end of the header for adding load commands. Needed for dumping.
23618 ## 0x690 is the total size of 30 segment load commands (at 56
23619 ## each); under Cocoa 31 commands are required.
23620 if test "$HAVE_NS" = "yes"; then
23621 libs_nsgui="-framework AppKit"
23622 headerpad_extra=6C8
23623 else
23624 libs_nsgui=
23625 headerpad_extra=690
23626 fi
23627 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23628
23629 ## This is here because src/Makefile.in did some extra fiddling around
23630 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23631 ## #ifndef LD_SWITCH_SYSTEM
23632 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23633 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23634 ## not using gcc, darwin.
23635 ## Because this was done in src/Makefile.in, the resulting part of
23636 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23637 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23638 ## rather than LD_SWITCH_SYSTEM.
23639 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23640 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23641 ;;
23642
23643 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23644 ## find X at run-time.
23645 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23646 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23647 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23648 ## had different values in configure (in ac_link) and src/Makefile.in.
23649 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23650 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23651
23652 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23653 esac
23654
23655 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23656 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23657 fi
23658
23659
23660
23661
23662 LD_FIRSTFLAG=
23663 ORDINARY_LINK=
23664 case "$opsys" in
23665 ## gnu: GNU needs its own crt0.
23666 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23667
23668 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23669 ## library search parth, i.e. it won't search /usr/lib for libc and
23670 ## friends. Using -nostartfiles instead avoids this problem, and
23671 ## will also work on earlier NetBSD releases.
23672 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23673
23674 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23675 ## MkLinux/LinuxPPC needs this.
23676 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23677 gnu-*)
23678 case "$canonical" in
23679 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23680 esac
23681 ;;
23682 esac
23683
23684
23685 if test "x$ORDINARY_LINK" = "xyes"; then
23686
23687 LD_FIRSTFLAG=""
23688
23689 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23690
23691
23692 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23693 ## freebsd, gnu-* not on powerpc*|s390x*.
23694 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23695
23696 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23697 ## places that are difficult to figure out at make time. Fortunately,
23698 ## these same versions allow you to pass arbitrary flags on to the
23699 ## linker, so there is no reason not to use it as a linker.
23700 ##
23701 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23702 ## searching for libraries in its internal directories, so we have to
23703 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23704 LD_FIRSTFLAG="-nostdlib"
23705 fi
23706
23707 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23708 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23709
23710
23711
23712
23713 ## FIXME? The logic here is not precisely the same as that above.
23714 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23715 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23716 LIB_GCC=
23717 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23718
23719 case "$opsys" in
23720 freebsd|netbsd|openbsd) LIB_GCC= ;;
23721
23722 gnu-*)
23723 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23724 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23725 case $host_cpu in
23726 arm*)
23727 LIB_GCC="-lgcc_s"
23728 ;;
23729 *)
23730 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23731 ## immediately undefine it again and redefine it to empty.
23732 ## Was the C_SWITCH_X_SITE part really necessary?
23733 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23734 LIB_GCC=
23735 ;;
23736 esac
23737 ;;
23738
23739 ## Ask GCC where to find libgcc.a.
23740 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23741 esac
23742 fi
23743
23744
23745 ## If we're using X11/GNUstep, define some consequences.
23746 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23747
23748 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23749
23750
23751 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23752
23753 fi
23754
23755
23756
23757
23758 #### Report on what we decided to do.
23759 #### Report GTK as a toolkit, even if it doesn't use Xt.
23760 #### It makes printing result more understandable as using GTK sets
23761 #### toolkit_scroll_bars to yes by default.
23762 if test "${HAVE_GTK}" = "yes"; then
23763 USE_X_TOOLKIT=GTK
23764 fi
23765
23766 echo "
23767 Configured for \`${canonical}'.
23768
23769 Where should the build process find the source code? ${srcdir}
23770 What operating system file should Emacs use?
23771 \`${opsysfile}'
23772 What compiler should emacs be built with? ${CC} ${CFLAGS}
23773 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23774 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23775 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23776 What window system should Emacs use? ${window_system}
23777 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23778
23779 if test -n "${x_includes}"; then
23780 echo " Where do we find X Windows header files? ${x_includes}"
23781 else
23782 echo " Where do we find X Windows header files? Standard dirs"
23783 fi
23784 if test -n "${x_libraries}"; then
23785 echo " Where do we find X Windows libraries? ${x_libraries}"
23786 else
23787 echo " Where do we find X Windows libraries? Standard dirs"
23788 fi
23789
23790 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23791 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23792 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23793 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23794 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23795 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23796 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23797 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23798
23799 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23800 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23801 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23802 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23803 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23804 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23805
23806 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23807 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23808 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23809 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23810
23811 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23812 echo
23813
23814 if test -n "${EMACSDATA}"; then
23815 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23816 fi
23817 if test -n "${EMACSDOC}"; then
23818 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23819 fi
23820
23821 if test $USE_XASSERTS = yes; then
23822 echo " Compiling with asserts turned on."
23823 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23824 fi
23825
23826 echo
23827
23828 if test "$HAVE_NS" = "yes"; then
23829 echo
23830 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23831 The installed application will go to nextstep/Emacs.app and can be
23832 run or moved from there."
23833 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23834 echo "The application will be fully self-contained."
23835 else
23836 echo "The lisp resources for the application will be installed under ${prefix}.
23837 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23838 to run if these resources are not installed."
23839 fi
23840 echo
23841 fi
23842
23843 if test "${opsys}" = "cygwin"; then
23844 case `uname -r` in
23845 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23846 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23847 echo
23848 ;;
23849 esac
23850 fi
23851
23852 # Remove any trailing slashes in these variables.
23853 test "${prefix}" != NONE &&
23854 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23855 test "${exec_prefix}" != NONE &&
23856 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23857
23858 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"
23859
23860 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"
23861
23862
23863 opt_makefile=test/automated/Makefile
23864
23865 if test -f $srcdir/${opt_makefile}.in; then
23866 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23867 ac_config_files="$ac_config_files test/automated/Makefile"
23868
23869 fi
23870
23871
23872 opt_makefile=admin/unidata/Makefile
23873
23874 if test -f $srcdir/${opt_makefile}.in; then
23875 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23876 ac_config_files="$ac_config_files admin/unidata/Makefile"
23877
23878 fi
23879
23880
23881 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23882
23883
23884
23885 ac_config_commands="$ac_config_commands mkdirs"
23886
23887
23888 ac_config_commands="$ac_config_commands epaths"
23889
23890
23891 ac_config_commands="$ac_config_commands gdbinit"
23892
23893
23894 cat >confcache <<\_ACEOF
23895 # This file is a shell script that caches the results of configure
23896 # tests run on this system so they can be shared between configure
23897 # scripts and configure runs, see configure's option --config-cache.
23898 # It is not useful on other systems. If it contains results you don't
23899 # want to keep, you may remove or edit it.
23900 #
23901 # config.status only pays attention to the cache file if you give it
23902 # the --recheck option to rerun configure.
23903 #
23904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23906 # following values.
23907
23908 _ACEOF
23909
23910 # The following way of writing the cache mishandles newlines in values,
23911 # but we know of no workaround that is simple, portable, and efficient.
23912 # So, we kill variables containing newlines.
23913 # Ultrix sh set writes to stderr and can't be redirected directly,
23914 # and sets the high bit in the cache file unless we assign to the vars.
23915 (
23916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23917 eval ac_val=\$$ac_var
23918 case $ac_val in #(
23919 *${as_nl}*)
23920 case $ac_var in #(
23921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23923 esac
23924 case $ac_var in #(
23925 _ | IFS | as_nl) ;; #(
23926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23927 *) { eval $ac_var=; unset $ac_var;} ;;
23928 esac ;;
23929 esac
23930 done
23931
23932 (set) 2>&1 |
23933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23934 *${as_nl}ac_space=\ *)
23935 # `set' does not quote correctly, so add quotes: double-quote
23936 # substitution turns \\\\ into \\, and sed turns \\ into \.
23937 sed -n \
23938 "s/'/'\\\\''/g;
23939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23940 ;; #(
23941 *)
23942 # `set' quotes correctly as required by POSIX, so do not add quotes.
23943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23944 ;;
23945 esac |
23946 sort
23947 ) |
23948 sed '
23949 /^ac_cv_env_/b end
23950 t clear
23951 :clear
23952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23953 t end
23954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23955 :end' >>confcache
23956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23957 if test -w "$cache_file"; then
23958 test "x$cache_file" != "x/dev/null" &&
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23960 $as_echo "$as_me: updating cache $cache_file" >&6;}
23961 cat confcache >$cache_file
23962 else
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23964 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23965 fi
23966 fi
23967 rm -f confcache
23968
23969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23970 # Let make expand exec_prefix.
23971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23972
23973 DEFS=-DHAVE_CONFIG_H
23974
23975 ac_libobjs=
23976 ac_ltlibobjs=
23977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23978 # 1. Remove the extension, and $U if already installed.
23979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23982 # will be set to the directory where LIBOBJS objects are built.
23983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23985 done
23986 LIBOBJS=$ac_libobjs
23987
23988 LTLIBOBJS=$ac_ltlibobjs
23989
23990
23991 if test -n "$EXEEXT"; then
23992 am__EXEEXT_TRUE=
23993 am__EXEEXT_FALSE='#'
23994 else
23995 am__EXEEXT_TRUE='#'
23996 am__EXEEXT_FALSE=
23997 fi
23998
23999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24000 as_fn_error "conditional \"AMDEP\" was never defined.
24001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24002 fi
24003 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24004 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24006 fi
24007 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24008 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24010 fi
24011 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24012 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24014 fi
24015
24016 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24017 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24019 fi
24020 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24021 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24023 fi
24024 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24025 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24027 fi
24028 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24029 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24031 fi
24032 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24033 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24035 fi
24036 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24037 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24039 fi
24040 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24041 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24043 fi
24044 <<<<<<< TREE
24045 <<<<<<< TREE
24046 =======
24047 =======
24048 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24049 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24051 fi
24052 >>>>>>> MERGE-SOURCE
24053 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24054 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24056 fi
24057 >>>>>>> MERGE-SOURCE
24058 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24059 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24061 fi
24062 <<<<<<< TREE
24063 =======
24064 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24065 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24067 fi
24068 >>>>>>> MERGE-SOURCE
24069 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24070 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24072 fi
24073 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24074 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24076 fi
24077
24078 gl_libobjs=
24079 gl_ltlibobjs=
24080 if test -n "$gl_LIBOBJS"; then
24081 # Remove the extension.
24082 sed_drop_objext='s/\.o$//;s/\.obj$//'
24083 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24084 gl_libobjs="$gl_libobjs $i.$ac_objext"
24085 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24086 done
24087 fi
24088 gl_LIBOBJS=$gl_libobjs
24089
24090 gl_LTLIBOBJS=$gl_ltlibobjs
24091
24092
24093
24094 gltests_libobjs=
24095 gltests_ltlibobjs=
24096 if test -n "$gltests_LIBOBJS"; then
24097 # Remove the extension.
24098 sed_drop_objext='s/\.o$//;s/\.obj$//'
24099 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24100 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24101 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24102 done
24103 fi
24104 gltests_LIBOBJS=$gltests_libobjs
24105
24106 gltests_LTLIBOBJS=$gltests_ltlibobjs
24107
24108
24109
24110 : ${CONFIG_STATUS=./config.status}
24111 ac_write_fail=0
24112 ac_clean_files_save=$ac_clean_files
24113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24116 as_write_fail=0
24117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24118 #! $SHELL
24119 # Generated by $as_me.
24120 # Run this file to recreate the current configuration.
24121 # Compiler output produced by configure, useful for debugging
24122 # configure, is in config.log if it exists.
24123
24124 debug=false
24125 ac_cs_recheck=false
24126 ac_cs_silent=false
24127
24128 SHELL=\${CONFIG_SHELL-$SHELL}
24129 export SHELL
24130 _ASEOF
24131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24132 ## -------------------- ##
24133 ## M4sh Initialization. ##
24134 ## -------------------- ##
24135
24136 # Be more Bourne compatible
24137 DUALCASE=1; export DUALCASE # for MKS sh
24138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24139 emulate sh
24140 NULLCMD=:
24141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24142 # is contrary to our usage. Disable this feature.
24143 alias -g '${1+"$@"}'='"$@"'
24144 setopt NO_GLOB_SUBST
24145 else
24146 case `(set -o) 2>/dev/null` in #(
24147 *posix*) :
24148 set -o posix ;; #(
24149 *) :
24150 ;;
24151 esac
24152 fi
24153
24154
24155 as_nl='
24156 '
24157 export as_nl
24158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24162 # Prefer a ksh shell builtin over an external printf program on Solaris,
24163 # but without wasting forks for bash or zsh.
24164 if test -z "$BASH_VERSION$ZSH_VERSION" \
24165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24166 as_echo='print -r --'
24167 as_echo_n='print -rn --'
24168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24169 as_echo='printf %s\n'
24170 as_echo_n='printf %s'
24171 else
24172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24174 as_echo_n='/usr/ucb/echo -n'
24175 else
24176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24177 as_echo_n_body='eval
24178 arg=$1;
24179 case $arg in #(
24180 *"$as_nl"*)
24181 expr "X$arg" : "X\\(.*\\)$as_nl";
24182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24183 esac;
24184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24185 '
24186 export as_echo_n_body
24187 as_echo_n='sh -c $as_echo_n_body as_echo'
24188 fi
24189 export as_echo_body
24190 as_echo='sh -c $as_echo_body as_echo'
24191 fi
24192
24193 # The user is always right.
24194 if test "${PATH_SEPARATOR+set}" != set; then
24195 PATH_SEPARATOR=:
24196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24198 PATH_SEPARATOR=';'
24199 }
24200 fi
24201
24202
24203 # IFS
24204 # We need space, tab and new line, in precisely that order. Quoting is
24205 # there to prevent editors from complaining about space-tab.
24206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24207 # splitting by setting IFS to empty value.)
24208 IFS=" "" $as_nl"
24209
24210 # Find who we are. Look in the path if we contain no directory separator.
24211 case $0 in #((
24212 *[\\/]* ) as_myself=$0 ;;
24213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24214 for as_dir in $PATH
24215 do
24216 IFS=$as_save_IFS
24217 test -z "$as_dir" && as_dir=.
24218 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24219 done
24220 IFS=$as_save_IFS
24221
24222 ;;
24223 esac
24224 # We did not find ourselves, most probably we were run as `sh COMMAND'
24225 # in which case we are not to be found in the path.
24226 if test "x$as_myself" = x; then
24227 as_myself=$0
24228 fi
24229 if test ! -f "$as_myself"; then
24230 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24231 exit 1
24232 fi
24233
24234 # Unset variables that we do not need and which cause bugs (e.g. in
24235 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24236 # suppresses any "Segmentation fault" message there. '((' could
24237 # trigger a bug in pdksh 5.2.14.
24238 for as_var in BASH_ENV ENV MAIL MAILPATH
24239 do eval test x\${$as_var+set} = xset \
24240 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24241 done
24242 PS1='$ '
24243 PS2='> '
24244 PS4='+ '
24245
24246 # NLS nuisances.
24247 LC_ALL=C
24248 export LC_ALL
24249 LANGUAGE=C
24250 export LANGUAGE
24251
24252 # CDPATH.
24253 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24254
24255
24256 # as_fn_error ERROR [LINENO LOG_FD]
24257 # ---------------------------------
24258 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24259 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24260 # script with status $?, using 1 if that was 0.
24261 as_fn_error ()
24262 {
24263 as_status=$?; test $as_status -eq 0 && as_status=1
24264 if test "$3"; then
24265 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24266 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24267 fi
24268 $as_echo "$as_me: error: $1" >&2
24269 as_fn_exit $as_status
24270 } # as_fn_error
24271
24272
24273 # as_fn_set_status STATUS
24274 # -----------------------
24275 # Set $? to STATUS, without forking.
24276 as_fn_set_status ()
24277 {
24278 return $1
24279 } # as_fn_set_status
24280
24281 # as_fn_exit STATUS
24282 # -----------------
24283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24284 as_fn_exit ()
24285 {
24286 set +e
24287 as_fn_set_status $1
24288 exit $1
24289 } # as_fn_exit
24290
24291 # as_fn_unset VAR
24292 # ---------------
24293 # Portably unset VAR.
24294 as_fn_unset ()
24295 {
24296 { eval $1=; unset $1;}
24297 }
24298 as_unset=as_fn_unset
24299 # as_fn_append VAR VALUE
24300 # ----------------------
24301 # Append the text in VALUE to the end of the definition contained in VAR. Take
24302 # advantage of any shell optimizations that allow amortized linear growth over
24303 # repeated appends, instead of the typical quadratic growth present in naive
24304 # implementations.
24305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24306 eval 'as_fn_append ()
24307 {
24308 eval $1+=\$2
24309 }'
24310 else
24311 as_fn_append ()
24312 {
24313 eval $1=\$$1\$2
24314 }
24315 fi # as_fn_append
24316
24317 # as_fn_arith ARG...
24318 # ------------------
24319 # Perform arithmetic evaluation on the ARGs, and store the result in the
24320 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24321 # must be portable across $(()) and expr.
24322 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24323 eval 'as_fn_arith ()
24324 {
24325 as_val=$(( $* ))
24326 }'
24327 else
24328 as_fn_arith ()
24329 {
24330 as_val=`expr "$@" || test $? -eq 1`
24331 }
24332 fi # as_fn_arith
24333
24334
24335 if expr a : '\(a\)' >/dev/null 2>&1 &&
24336 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24337 as_expr=expr
24338 else
24339 as_expr=false
24340 fi
24341
24342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24343 as_basename=basename
24344 else
24345 as_basename=false
24346 fi
24347
24348 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24349 as_dirname=dirname
24350 else
24351 as_dirname=false
24352 fi
24353
24354 as_me=`$as_basename -- "$0" ||
24355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24356 X"$0" : 'X\(//\)$' \| \
24357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24358 $as_echo X/"$0" |
24359 sed '/^.*\/\([^/][^/]*\)\/*$/{
24360 s//\1/
24361 q
24362 }
24363 /^X\/\(\/\/\)$/{
24364 s//\1/
24365 q
24366 }
24367 /^X\/\(\/\).*/{
24368 s//\1/
24369 q
24370 }
24371 s/.*/./; q'`
24372
24373 # Avoid depending upon Character Ranges.
24374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24377 as_cr_digits='0123456789'
24378 as_cr_alnum=$as_cr_Letters$as_cr_digits
24379
24380 ECHO_C= ECHO_N= ECHO_T=
24381 case `echo -n x` in #(((((
24382 -n*)
24383 case `echo 'xy\c'` in
24384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24385 xy) ECHO_C='\c';;
24386 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24387 ECHO_T=' ';;
24388 esac;;
24389 *)
24390 ECHO_N='-n';;
24391 esac
24392
24393 rm -f conf$$ conf$$.exe conf$$.file
24394 if test -d conf$$.dir; then
24395 rm -f conf$$.dir/conf$$.file
24396 else
24397 rm -f conf$$.dir
24398 mkdir conf$$.dir 2>/dev/null
24399 fi
24400 if (echo >conf$$.file) 2>/dev/null; then
24401 if ln -s conf$$.file conf$$ 2>/dev/null; then
24402 as_ln_s='ln -s'
24403 # ... but there are two gotchas:
24404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24406 # In both cases, we have to default to `cp -p'.
24407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24408 as_ln_s='cp -p'
24409 elif ln conf$$.file conf$$ 2>/dev/null; then
24410 as_ln_s=ln
24411 else
24412 as_ln_s='cp -p'
24413 fi
24414 else
24415 as_ln_s='cp -p'
24416 fi
24417 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24418 rmdir conf$$.dir 2>/dev/null
24419
24420
24421 # as_fn_mkdir_p
24422 # -------------
24423 # Create "$as_dir" as a directory, including parents if necessary.
24424 as_fn_mkdir_p ()
24425 {
24426
24427 case $as_dir in #(
24428 -*) as_dir=./$as_dir;;
24429 esac
24430 test -d "$as_dir" || eval $as_mkdir_p || {
24431 as_dirs=
24432 while :; do
24433 case $as_dir in #(
24434 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24435 *) as_qdir=$as_dir;;
24436 esac
24437 as_dirs="'$as_qdir' $as_dirs"
24438 as_dir=`$as_dirname -- "$as_dir" ||
24439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24440 X"$as_dir" : 'X\(//\)[^/]' \| \
24441 X"$as_dir" : 'X\(//\)$' \| \
24442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24443 $as_echo X"$as_dir" |
24444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24445 s//\1/
24446 q
24447 }
24448 /^X\(\/\/\)[^/].*/{
24449 s//\1/
24450 q
24451 }
24452 /^X\(\/\/\)$/{
24453 s//\1/
24454 q
24455 }
24456 /^X\(\/\).*/{
24457 s//\1/
24458 q
24459 }
24460 s/.*/./; q'`
24461 test -d "$as_dir" && break
24462 done
24463 test -z "$as_dirs" || eval "mkdir $as_dirs"
24464 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24465
24466
24467 } # as_fn_mkdir_p
24468 if mkdir -p . 2>/dev/null; then
24469 as_mkdir_p='mkdir -p "$as_dir"'
24470 else
24471 test -d ./-p && rmdir ./-p
24472 as_mkdir_p=false
24473 fi
24474
24475 if test -x / >/dev/null 2>&1; then
24476 as_test_x='test -x'
24477 else
24478 if ls -dL / >/dev/null 2>&1; then
24479 as_ls_L_option=L
24480 else
24481 as_ls_L_option=
24482 fi
24483 as_test_x='
24484 eval sh -c '\''
24485 if test -d "$1"; then
24486 test -d "$1/.";
24487 else
24488 case $1 in #(
24489 -*)set "./$1";;
24490 esac;
24491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24492 ???[sx]*):;;*)false;;esac;fi
24493 '\'' sh
24494 '
24495 fi
24496 as_executable_p=$as_test_x
24497
24498 # Sed expression to map a string onto a valid CPP name.
24499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24500
24501 # Sed expression to map a string onto a valid variable name.
24502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24503
24504
24505 exec 6>&1
24506 ## ----------------------------------- ##
24507 ## Main body of $CONFIG_STATUS script. ##
24508 ## ----------------------------------- ##
24509 _ASEOF
24510 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24511
24512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24513 # Save the log message, to keep $0 and so on meaningful, and to
24514 # report actual input values of CONFIG_FILES etc. instead of their
24515 # values after options handling.
24516 ac_log="
24517 This file was extended by emacs $as_me 24.1.50, which was
24518 generated by GNU Autoconf 2.65. Invocation command line was
24519
24520 CONFIG_FILES = $CONFIG_FILES
24521 CONFIG_HEADERS = $CONFIG_HEADERS
24522 CONFIG_LINKS = $CONFIG_LINKS
24523 CONFIG_COMMANDS = $CONFIG_COMMANDS
24524 $ $0 $@
24525
24526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24527 "
24528
24529 _ACEOF
24530
24531 case $ac_config_files in *"
24532 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24533 esac
24534
24535 case $ac_config_headers in *"
24536 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24537 esac
24538
24539
24540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24541 # Files that config.status was made for.
24542 config_files="$ac_config_files"
24543 config_headers="$ac_config_headers"
24544 config_commands="$ac_config_commands"
24545
24546 _ACEOF
24547
24548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24549 ac_cs_usage="\
24550 \`$as_me' instantiates files and other configuration actions
24551 from templates according to the current configuration. Unless the files
24552 and actions are specified as TAGs, all are instantiated by default.
24553
24554 Usage: $0 [OPTION]... [TAG]...
24555
24556 -h, --help print this help, then exit
24557 -V, --version print version number and configuration settings, then exit
24558 --config print configuration, then exit
24559 -q, --quiet, --silent
24560 do not print progress messages
24561 -d, --debug don't remove temporary files
24562 --recheck update $as_me by reconfiguring in the same conditions
24563 --file=FILE[:TEMPLATE]
24564 instantiate the configuration file FILE
24565 --header=FILE[:TEMPLATE]
24566 instantiate the configuration header FILE
24567
24568 Configuration files:
24569 $config_files
24570
24571 Configuration headers:
24572 $config_headers
24573
24574 Configuration commands:
24575 $config_commands
24576
24577 Report bugs to the package provider."
24578
24579 _ACEOF
24580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24581 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24582 ac_cs_version="\\
24583 emacs config.status 24.1.50
24584 configured by $0, generated by GNU Autoconf 2.65,
24585 with options \\"\$ac_cs_config\\"
24586
24587 Copyright (C) 2009 Free Software Foundation, Inc.
24588 This config.status script is free software; the Free Software Foundation
24589 gives unlimited permission to copy, distribute and modify it."
24590
24591 ac_pwd='$ac_pwd'
24592 srcdir='$srcdir'
24593 INSTALL='$INSTALL'
24594 MKDIR_P='$MKDIR_P'
24595 AWK='$AWK'
24596 test -n "\$AWK" || AWK=awk
24597 _ACEOF
24598
24599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24600 # The default lists apply if the user does not specify any file.
24601 ac_need_defaults=:
24602 while test $# != 0
24603 do
24604 case $1 in
24605 --*=*)
24606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24608 ac_shift=:
24609 ;;
24610 *)
24611 ac_option=$1
24612 ac_optarg=$2
24613 ac_shift=shift
24614 ;;
24615 esac
24616
24617 case $ac_option in
24618 # Handling of the options.
24619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24620 ac_cs_recheck=: ;;
24621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24622 $as_echo "$ac_cs_version"; exit ;;
24623 --config | --confi | --conf | --con | --co | --c )
24624 $as_echo "$ac_cs_config"; exit ;;
24625 --debug | --debu | --deb | --de | --d | -d )
24626 debug=: ;;
24627 --file | --fil | --fi | --f )
24628 $ac_shift
24629 case $ac_optarg in
24630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24631 esac
24632 as_fn_append CONFIG_FILES " '$ac_optarg'"
24633 ac_need_defaults=false;;
24634 --header | --heade | --head | --hea )
24635 $ac_shift
24636 case $ac_optarg in
24637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24638 esac
24639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24640 ac_need_defaults=false;;
24641 --he | --h)
24642 # Conflict between --help and --header
24643 as_fn_error "ambiguous option: \`$1'
24644 Try \`$0 --help' for more information.";;
24645 --help | --hel | -h )
24646 $as_echo "$ac_cs_usage"; exit ;;
24647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24649 ac_cs_silent=: ;;
24650
24651 # This is an error.
24652 -*) as_fn_error "unrecognized option: \`$1'
24653 Try \`$0 --help' for more information." ;;
24654
24655 *) as_fn_append ac_config_targets " $1"
24656 ac_need_defaults=false ;;
24657
24658 esac
24659 shift
24660 done
24661
24662 ac_configure_extra_args=
24663
24664 if $ac_cs_silent; then
24665 exec 6>/dev/null
24666 ac_configure_extra_args="$ac_configure_extra_args --silent"
24667 fi
24668
24669 _ACEOF
24670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24671 if \$ac_cs_recheck; then
24672 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24673 shift
24674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24675 CONFIG_SHELL='$SHELL'
24676 export CONFIG_SHELL
24677 exec "\$@"
24678 fi
24679
24680 _ACEOF
24681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24682 exec 5>>config.log
24683 {
24684 echo
24685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24686 ## Running $as_me. ##
24687 _ASBOX
24688 $as_echo "$ac_log"
24689 } >&5
24690
24691 _ACEOF
24692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24693 #
24694 # INIT-COMMANDS
24695 #
24696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24697 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24698
24699 _ACEOF
24700
24701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24702
24703 # Handling of arguments.
24704 for ac_config_target in $ac_config_targets
24705 do
24706 case $ac_config_target in
24707 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24709 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24710 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24711 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24712 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24713 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24714 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24715 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24716 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24717 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24718 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24719 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24720 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24721 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24722 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24723 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24724 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24725 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24726
24727 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24728 esac
24729 done
24730
24731
24732 # If the user did not use the arguments to specify the items to instantiate,
24733 # then the envvar interface is used. Set only those that are not.
24734 # We use the long form for the default assignment because of an extremely
24735 # bizarre bug on SunOS 4.1.3.
24736 if $ac_need_defaults; then
24737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24740 fi
24741
24742 # Have a temporary directory for convenience. Make it in the build tree
24743 # simply because there is no reason against having it here, and in addition,
24744 # creating and moving files from /tmp can sometimes cause problems.
24745 # Hook for its removal unless debugging.
24746 # Note that there is a small window in which the directory will not be cleaned:
24747 # after its creation but before its name has been assigned to `$tmp'.
24748 $debug ||
24749 {
24750 tmp=
24751 trap 'exit_status=$?
24752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24753 ' 0
24754 trap 'as_fn_exit 1' 1 2 13 15
24755 }
24756 # Create a (secure) tmp directory for tmp files.
24757
24758 {
24759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24760 test -n "$tmp" && test -d "$tmp"
24761 } ||
24762 {
24763 tmp=./conf$$-$RANDOM
24764 (umask 077 && mkdir "$tmp")
24765 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24766
24767 # Set up the scripts for CONFIG_FILES section.
24768 # No need to generate them if there are no CONFIG_FILES.
24769 # This happens for instance with `./config.status config.h'.
24770 if test -n "$CONFIG_FILES"; then
24771
24772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24773 ac_cs_awk_getline=:
24774 ac_cs_awk_pipe_init=
24775 ac_cs_awk_read_file='
24776 while ((getline aline < (F[key])) > 0)
24777 print(aline)
24778 close(F[key])'
24779 ac_cs_awk_pipe_fini=
24780 else
24781 ac_cs_awk_getline=false
24782 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24783 ac_cs_awk_read_file='
24784 print "|#_!!_#|"
24785 print "cat " F[key] " &&"
24786 '$ac_cs_awk_pipe_init
24787 # The final `:' finishes the AND list.
24788 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24789 fi
24790 ac_cr=`echo X | tr X '\015'`
24791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24792 # But we know of no other shell where ac_cr would be empty at this
24793 # point, so we can use a bashism as a fallback.
24794 if test "x$ac_cr" = x; then
24795 eval ac_cr=\$\'\\r\'
24796 fi
24797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24799 ac_cs_awk_cr='\r'
24800 else
24801 ac_cs_awk_cr=$ac_cr
24802 fi
24803
24804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24805 _ACEOF
24806
24807 # Create commands to substitute file output variables.
24808 {
24809 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24810 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24811 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24812 echo "_ACAWK" &&
24813 echo "_ACEOF"
24814 } >conf$$files.sh &&
24815 . ./conf$$files.sh ||
24816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24817 rm -f conf$$files.sh
24818
24819 {
24820 echo "cat >conf$$subs.awk <<_ACEOF" &&
24821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24822 echo "_ACEOF"
24823 } >conf$$subs.sh ||
24824 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24826 ac_delim='%!_!# '
24827 for ac_last_try in false false false false false :; do
24828 . ./conf$$subs.sh ||
24829 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24830
24831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24832 if test $ac_delim_n = $ac_delim_num; then
24833 break
24834 elif $ac_last_try; then
24835 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24836 else
24837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24838 fi
24839 done
24840 rm -f conf$$subs.sh
24841
24842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24843 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24844 _ACEOF
24845 sed -n '
24846 h
24847 s/^/S["/; s/!.*/"]=/
24848 p
24849 g
24850 s/^[^!]*!//
24851 :repl
24852 t repl
24853 s/'"$ac_delim"'$//
24854 t delim
24855 :nl
24856 h
24857 s/\(.\{148\}\)..*/\1/
24858 t more1
24859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24860 p
24861 n
24862 b repl
24863 :more1
24864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24865 p
24866 g
24867 s/.\{148\}//
24868 t nl
24869 :delim
24870 h
24871 s/\(.\{148\}\)..*/\1/
24872 t more2
24873 s/["\\]/\\&/g; s/^/"/; s/$/"/
24874 p
24875 b
24876 :more2
24877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24878 p
24879 g
24880 s/.\{148\}//
24881 t delim
24882 ' <conf$$subs.awk | sed '
24883 /^[^""]/{
24884 N
24885 s/\n//
24886 }
24887 ' >>$CONFIG_STATUS || ac_write_fail=1
24888 rm -f conf$$subs.awk
24889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24890 _ACAWK
24891 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24892 for (key in S) S_is_set[key] = 1
24893 FS = "\a"
24894 \$ac_cs_awk_pipe_init
24895 }
24896 {
24897 line = $ 0
24898 nfields = split(line, field, "@")
24899 substed = 0
24900 len = length(field[1])
24901 for (i = 2; i < nfields; i++) {
24902 key = field[i]
24903 keylen = length(key)
24904 if (S_is_set[key]) {
24905 value = S[key]
24906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24907 len += length(value) + length(field[++i])
24908 substed = 1
24909 } else
24910 len += 1 + keylen
24911 }
24912 if (nfields == 3 && !substed) {
24913 key = field[2]
24914 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24915 \$ac_cs_awk_read_file
24916 next
24917 }
24918 }
24919 print line
24920 }
24921 \$ac_cs_awk_pipe_fini
24922 _ACAWK
24923 _ACEOF
24924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24927 else
24928 cat
24929 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24930 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24931 _ACEOF
24932
24933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24935 # trailing colons and then remove the whole line if VPATH becomes empty
24936 # (actually we leave an empty line to preserve line numbers).
24937 if test "x$srcdir" = x.; then
24938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24939 s/:*\$(srcdir):*/:/
24940 s/:*\${srcdir}:*/:/
24941 s/:*@srcdir@:*/:/
24942 s/^\([^=]*=[ ]*\):*/\1/
24943 s/:*$//
24944 s/^[^=]*=[ ]*$//
24945 }'
24946 fi
24947
24948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24949 fi # test -n "$CONFIG_FILES"
24950
24951 # Set up the scripts for CONFIG_HEADERS section.
24952 # No need to generate them if there are no CONFIG_HEADERS.
24953 # This happens for instance with `./config.status Makefile'.
24954 if test -n "$CONFIG_HEADERS"; then
24955 cat >"$tmp/defines.awk" <<\_ACAWK ||
24956 BEGIN {
24957 _ACEOF
24958
24959 # Transform confdefs.h into an awk script `defines.awk', embedded as
24960 # here-document in config.status, that substitutes the proper values into
24961 # config.h.in to produce config.h.
24962
24963 # Create a delimiter string that does not exist in confdefs.h, to ease
24964 # handling of long lines.
24965 ac_delim='%!_!# '
24966 for ac_last_try in false false :; do
24967 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24968 if test -z "$ac_t"; then
24969 break
24970 elif $ac_last_try; then
24971 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24972 else
24973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24974 fi
24975 done
24976
24977 # For the awk script, D is an array of macro values keyed by name,
24978 # likewise P contains macro parameters if any. Preserve backslash
24979 # newline sequences.
24980
24981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24982 sed -n '
24983 s/.\{148\}/&'"$ac_delim"'/g
24984 t rset
24985 :rset
24986 s/^[ ]*#[ ]*define[ ][ ]*/ /
24987 t def
24988 d
24989 :def
24990 s/\\$//
24991 t bsnl
24992 s/["\\]/\\&/g
24993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24994 D["\1"]=" \3"/p
24995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24996 d
24997 :bsnl
24998 s/["\\]/\\&/g
24999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25000 D["\1"]=" \3\\\\\\n"\\/p
25001 t cont
25002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25003 t cont
25004 d
25005 :cont
25006 n
25007 s/.\{148\}/&'"$ac_delim"'/g
25008 t clear
25009 :clear
25010 s/\\$//
25011 t bsnlc
25012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25013 d
25014 :bsnlc
25015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25016 b cont
25017 ' <confdefs.h | sed '
25018 s/'"$ac_delim"'/"\\\
25019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25020
25021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25022 for (key in D) D_is_set[key] = 1
25023 FS = "\a"
25024 }
25025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25026 line = \$ 0
25027 split(line, arg, " ")
25028 if (arg[1] == "#") {
25029 defundef = arg[2]
25030 mac1 = arg[3]
25031 } else {
25032 defundef = substr(arg[1], 2)
25033 mac1 = arg[2]
25034 }
25035 split(mac1, mac2, "(") #)
25036 macro = mac2[1]
25037 prefix = substr(line, 1, index(line, defundef) - 1)
25038 if (D_is_set[macro]) {
25039 # Preserve the white space surrounding the "#".
25040 print prefix "define", macro P[macro] D[macro]
25041 next
25042 } else {
25043 # Replace #undef with comments. This is necessary, for example,
25044 # in the case of _POSIX_SOURCE, which is predefined and required
25045 # on some systems where configure will not decide to define it.
25046 if (defundef == "undef") {
25047 print "/*", prefix defundef, macro, "*/"
25048 next
25049 }
25050 }
25051 }
25052 { print }
25053 _ACAWK
25054 _ACEOF
25055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25056 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25057 fi # test -n "$CONFIG_HEADERS"
25058
25059
25060 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25061 shift
25062 for ac_tag
25063 do
25064 case $ac_tag in
25065 :[FHLC]) ac_mode=$ac_tag; continue;;
25066 esac
25067 case $ac_mode$ac_tag in
25068 :[FHL]*:*);;
25069 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25070 :[FH]-) ac_tag=-:-;;
25071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25072 esac
25073 ac_save_IFS=$IFS
25074 IFS=:
25075 set x $ac_tag
25076 IFS=$ac_save_IFS
25077 shift
25078 ac_file=$1
25079 shift
25080
25081 case $ac_mode in
25082 :L) ac_source=$1;;
25083 :[FH])
25084 ac_file_inputs=
25085 for ac_f
25086 do
25087 case $ac_f in
25088 -) ac_f="$tmp/stdin";;
25089 *) # Look for the file first in the build tree, then in the source tree
25090 # (if the path is not absolute). The absolute path cannot be DOS-style,
25091 # because $ac_f cannot contain `:'.
25092 test -f "$ac_f" ||
25093 case $ac_f in
25094 [\\/$]*) false;;
25095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25096 esac ||
25097 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25098 esac
25099 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25100 as_fn_append ac_file_inputs " '$ac_f'"
25101 done
25102
25103 # Let's still pretend it is `configure' which instantiates (i.e., don't
25104 # use $as_me), people would be surprised to read:
25105 # /* config.h. Generated by config.status. */
25106 configure_input='Generated from '`
25107 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25108 `' by configure.'
25109 if test x"$ac_file" != x-; then
25110 configure_input="$ac_file. $configure_input"
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25112 $as_echo "$as_me: creating $ac_file" >&6;}
25113 fi
25114 # Neutralize special characters interpreted by sed in replacement strings.
25115 case $configure_input in #(
25116 *\&* | *\|* | *\\* )
25117 ac_sed_conf_input=`$as_echo "$configure_input" |
25118 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25119 *) ac_sed_conf_input=$configure_input;;
25120 esac
25121
25122 case $ac_tag in
25123 *:-:* | *:-) cat >"$tmp/stdin" \
25124 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25125 esac
25126 ;;
25127 esac
25128
25129 ac_dir=`$as_dirname -- "$ac_file" ||
25130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131 X"$ac_file" : 'X\(//\)[^/]' \| \
25132 X"$ac_file" : 'X\(//\)$' \| \
25133 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25134 $as_echo X"$ac_file" |
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25136 s//\1/
25137 q
25138 }
25139 /^X\(\/\/\)[^/].*/{
25140 s//\1/
25141 q
25142 }
25143 /^X\(\/\/\)$/{
25144 s//\1/
25145 q
25146 }
25147 /^X\(\/\).*/{
25148 s//\1/
25149 q
25150 }
25151 s/.*/./; q'`
25152 as_dir="$ac_dir"; as_fn_mkdir_p
25153 ac_builddir=.
25154
25155 case "$ac_dir" in
25156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25157 *)
25158 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25159 # A ".." for each directory in $ac_dir_suffix.
25160 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25161 case $ac_top_builddir_sub in
25162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25164 esac ;;
25165 esac
25166 ac_abs_top_builddir=$ac_pwd
25167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25168 # for backward compatibility:
25169 ac_top_builddir=$ac_top_build_prefix
25170
25171 case $srcdir in
25172 .) # We are building in place.
25173 ac_srcdir=.
25174 ac_top_srcdir=$ac_top_builddir_sub
25175 ac_abs_top_srcdir=$ac_pwd ;;
25176 [\\/]* | ?:[\\/]* ) # Absolute name.
25177 ac_srcdir=$srcdir$ac_dir_suffix;
25178 ac_top_srcdir=$srcdir
25179 ac_abs_top_srcdir=$srcdir ;;
25180 *) # Relative name.
25181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25182 ac_top_srcdir=$ac_top_build_prefix$srcdir
25183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25184 esac
25185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25186
25187
25188 case $ac_mode in
25189 :F)
25190 #
25191 # CONFIG_FILE
25192 #
25193
25194 case $INSTALL in
25195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25197 esac
25198 ac_MKDIR_P=$MKDIR_P
25199 case $MKDIR_P in
25200 [\\/$]* | ?:[\\/]* ) ;;
25201 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25202 esac
25203 _ACEOF
25204
25205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25206 # If the template does not know about datarootdir, expand it.
25207 # FIXME: This hack should be removed a few years after 2.60.
25208 ac_datarootdir_hack=; ac_datarootdir_seen=
25209 ac_sed_dataroot='
25210 /datarootdir/ {
25211 p
25212 q
25213 }
25214 /@datadir@/p
25215 /@docdir@/p
25216 /@infodir@/p
25217 /@localedir@/p
25218 /@mandir@/p'
25219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25220 *datarootdir*) ac_datarootdir_seen=yes;;
25221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25224 _ACEOF
25225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25226 ac_datarootdir_hack='
25227 s&@datadir@&$datadir&g
25228 s&@docdir@&$docdir&g
25229 s&@infodir@&$infodir&g
25230 s&@localedir@&$localedir&g
25231 s&@mandir@&$mandir&g
25232 s&\\\${datarootdir}&$datarootdir&g' ;;
25233 esac
25234 _ACEOF
25235
25236 # Neutralize VPATH when `$srcdir' = `.'.
25237 # Shell code in configure.ac might set extrasub.
25238 # FIXME: do we really want to maintain this feature?
25239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25240 ac_sed_extra="$ac_vpsub
25241 $extrasub
25242 _ACEOF
25243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25244 :t
25245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25246 s|@configure_input@|$ac_sed_conf_input|;t t
25247 s&@top_builddir@&$ac_top_builddir_sub&;t t
25248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25249 s&@srcdir@&$ac_srcdir&;t t
25250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25251 s&@top_srcdir@&$ac_top_srcdir&;t t
25252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25253 s&@builddir@&$ac_builddir&;t t
25254 s&@abs_builddir@&$ac_abs_builddir&;t t
25255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25256 s&@INSTALL@&$ac_INSTALL&;t t
25257 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25258 $ac_datarootdir_hack
25259 "
25260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25261 if $ac_cs_awk_getline; then
25262 $AWK -f "$tmp/subs.awk"
25263 else
25264 $AWK -f "$tmp/subs.awk" | $SHELL
25265 fi >$tmp/out \
25266 || as_fn_error "could not create $ac_file" "$LINENO" 5
25267
25268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25269 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25272 which seems to be undefined. Please make sure it is defined." >&5
25273 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25274 which seems to be undefined. Please make sure it is defined." >&2;}
25275
25276 rm -f "$tmp/stdin"
25277 case $ac_file in
25278 -) cat "$tmp/out" && rm -f "$tmp/out";;
25279 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25280 esac \
25281 || as_fn_error "could not create $ac_file" "$LINENO" 5
25282 ;;
25283 :H)
25284 #
25285 # CONFIG_HEADER
25286 #
25287 if test x"$ac_file" != x-; then
25288 {
25289 $as_echo "/* $configure_input */" \
25290 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25291 } >"$tmp/config.h" \
25292 || as_fn_error "could not create $ac_file" "$LINENO" 5
25293 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25295 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25296 else
25297 rm -f "$ac_file"
25298 mv "$tmp/config.h" "$ac_file" \
25299 || as_fn_error "could not create $ac_file" "$LINENO" 5
25300 fi
25301 else
25302 $as_echo "/* $configure_input */" \
25303 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25304 || as_fn_error "could not create -" "$LINENO" 5
25305 fi
25306 # Compute "$ac_file"'s index in $config_headers.
25307 _am_arg="$ac_file"
25308 _am_stamp_count=1
25309 for _am_header in $config_headers :; do
25310 case $_am_header in
25311 $_am_arg | $_am_arg:* )
25312 break ;;
25313 * )
25314 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25315 esac
25316 done
25317 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25318 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25319 X"$_am_arg" : 'X\(//\)[^/]' \| \
25320 X"$_am_arg" : 'X\(//\)$' \| \
25321 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25322 $as_echo X"$_am_arg" |
25323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25324 s//\1/
25325 q
25326 }
25327 /^X\(\/\/\)[^/].*/{
25328 s//\1/
25329 q
25330 }
25331 /^X\(\/\/\)$/{
25332 s//\1/
25333 q
25334 }
25335 /^X\(\/\).*/{
25336 s//\1/
25337 q
25338 }
25339 s/.*/./; q'`/stamp-h$_am_stamp_count
25340 ;;
25341
25342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25343 $as_echo "$as_me: executing $ac_file commands" >&6;}
25344 ;;
25345 esac
25346
25347
25348 case $ac_file$ac_mode in
25349 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25350 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25351 # are listed without --file. Let's play safe and only enable the eval
25352 # if we detect the quoting.
25353 case $CONFIG_FILES in
25354 *\'*) eval set x "$CONFIG_FILES" ;;
25355 *) set x $CONFIG_FILES ;;
25356 esac
25357 shift
25358 for mf
25359 do
25360 # Strip MF so we end up with the name of the file.
25361 mf=`echo "$mf" | sed -e 's/:.*$//'`
25362 # Check whether this is an Automake generated Makefile or not.
25363 # We used to match only the files named `Makefile.in', but
25364 # some people rename them; so instead we look at the file content.
25365 # Grep'ing the first line is not enough: some people post-process
25366 # each Makefile.in and add a new line on top of each file to say so.
25367 # Grep'ing the whole file is not good either: AIX grep has a line
25368 # limit of 2048, but all sed's we know have understand at least 4000.
25369 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25370 dirpart=`$as_dirname -- "$mf" ||
25371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25372 X"$mf" : 'X\(//\)[^/]' \| \
25373 X"$mf" : 'X\(//\)$' \| \
25374 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25375 $as_echo X"$mf" |
25376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25377 s//\1/
25378 q
25379 }
25380 /^X\(\/\/\)[^/].*/{
25381 s//\1/
25382 q
25383 }
25384 /^X\(\/\/\)$/{
25385 s//\1/
25386 q
25387 }
25388 /^X\(\/\).*/{
25389 s//\1/
25390 q
25391 }
25392 s/.*/./; q'`
25393 else
25394 continue
25395 fi
25396 # Extract the definition of DEPDIR, am__include, and am__quote
25397 # from the Makefile without running `make'.
25398 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25399 test -z "$DEPDIR" && continue
25400 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25401 test -z "am__include" && continue
25402 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25403 # When using ansi2knr, U may be empty or an underscore; expand it
25404 U=`sed -n 's/^U = //p' < "$mf"`
25405 # Find all dependency output files, they are included files with
25406 # $(DEPDIR) in their names. We invoke sed twice because it is the
25407 # simplest approach to changing $(DEPDIR) to its actual value in the
25408 # expansion.
25409 for file in `sed -n "
25410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25412 # Make sure the directory exists.
25413 test -f "$dirpart/$file" && continue
25414 fdir=`$as_dirname -- "$file" ||
25415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$file" : 'X\(//\)[^/]' \| \
25417 X"$file" : 'X\(//\)$' \| \
25418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25419 $as_echo X"$file" |
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25421 s//\1/
25422 q
25423 }
25424 /^X\(\/\/\)[^/].*/{
25425 s//\1/
25426 q
25427 }
25428 /^X\(\/\/\)$/{
25429 s//\1/
25430 q
25431 }
25432 /^X\(\/\).*/{
25433 s//\1/
25434 q
25435 }
25436 s/.*/./; q'`
25437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25438 # echo "creating $dirpart/$file"
25439 echo '# dummy' > "$dirpart/$file"
25440 done
25441 done
25442 }
25443 ;;
25444 "mkdirs":C)
25445 for dir in etc lisp ; do
25446 test -d ${dir} || mkdir ${dir}
25447 done
25448 ;;
25449 "epaths":C)
25450 echo creating src/epaths.h
25451 ${MAKE-make} epaths-force
25452 ;;
25453 "gdbinit":C)
25454 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25455 echo creating src/.gdbinit
25456 echo source $srcdir/src/.gdbinit > src/.gdbinit
25457 fi
25458 ;;
25459
25460 esac
25461 done # for ac_tag
25462
25463
25464 as_fn_exit 0
25465 _ACEOF
25466 ac_clean_files=$ac_clean_files_save
25467
25468 test $ac_write_fail = 0 ||
25469 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25470
25471
25472 # configure is writing to config.log, and then calls config.status.
25473 # config.status does its own redirection, appending to config.log.
25474 # Unfortunately, on DOS this fails, as config.log is still kept open
25475 # by configure, so config.status won't be able to write to it; its
25476 # output is simply discarded. So we exec the FD to /dev/null,
25477 # effectively closing config.log, so it can be properly (re)opened and
25478 # appended to by config.status. When coming back to configure, we
25479 # need to make the FD available again.
25480 if test "$no_create" != yes; then
25481 ac_cs_success=:
25482 ac_config_status_args=
25483 test "$silent" = yes &&
25484 ac_config_status_args="$ac_config_status_args --quiet"
25485 exec 5>/dev/null
25486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25487 exec 5>>config.log
25488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25489 # would make configure fail if this is the last instruction.
25490 $ac_cs_success || as_fn_exit $?
25491 fi
25492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25494 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25495 fi
25496
25497