434
|
1 #! /bin/sh
|
|
2 # Guess values for system-dependent variables and create Makefiles.
|
|
3 # Generated by GNU Autoconf 2.65 for LWTools 3.0.
|
|
4 #
|
|
5 # Report bugs to <lost@l-w.ca>.
|
|
6 #
|
|
7 #
|
|
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
|
10 # Inc.
|
|
11 #
|
|
12 #
|
|
13 # This configure script is free software; the Free Software Foundation
|
|
14 # gives unlimited permission to copy, distribute and modify it.
|
|
15 ## -------------------- ##
|
|
16 ## M4sh Initialization. ##
|
|
17 ## -------------------- ##
|
|
18
|
|
19 # Be more Bourne compatible
|
|
20 DUALCASE=1; export DUALCASE # for MKS sh
|
|
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
22 emulate sh
|
|
23 NULLCMD=:
|
|
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
25 # is contrary to our usage. Disable this feature.
|
|
26 alias -g '${1+"$@"}'='"$@"'
|
|
27 setopt NO_GLOB_SUBST
|
|
28 else
|
|
29 case `(set -o) 2>/dev/null` in #(
|
|
30 *posix*) :
|
|
31 set -o posix ;; #(
|
|
32 *) :
|
|
33 ;;
|
|
34 esac
|
|
35 fi
|
|
36
|
|
37
|
|
38 as_nl='
|
|
39 '
|
|
40 export as_nl
|
|
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
46 # but without wasting forks for bash or zsh.
|
|
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
49 as_echo='print -r --'
|
|
50 as_echo_n='print -rn --'
|
|
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
52 as_echo='printf %s\n'
|
|
53 as_echo_n='printf %s'
|
|
54 else
|
|
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
57 as_echo_n='/usr/ucb/echo -n'
|
|
58 else
|
|
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
60 as_echo_n_body='eval
|
|
61 arg=$1;
|
|
62 case $arg in #(
|
|
63 *"$as_nl"*)
|
|
64 expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
66 esac;
|
|
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
68 '
|
|
69 export as_echo_n_body
|
|
70 as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
71 fi
|
|
72 export as_echo_body
|
|
73 as_echo='sh -c $as_echo_body as_echo'
|
|
74 fi
|
|
75
|
|
76 # The user is always right.
|
|
77 if test "${PATH_SEPARATOR+set}" != set; then
|
|
78 PATH_SEPARATOR=:
|
|
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
81 PATH_SEPARATOR=';'
|
|
82 }
|
|
83 fi
|
|
84
|
|
85
|
|
86 # IFS
|
|
87 # We need space, tab and new line, in precisely that order. Quoting is
|
|
88 # there to prevent editors from complaining about space-tab.
|
|
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
90 # splitting by setting IFS to empty value.)
|
|
91 IFS=" "" $as_nl"
|
|
92
|
|
93 # Find who we are. Look in the path if we contain no directory separator.
|
|
94 case $0 in #((
|
|
95 *[\\/]* ) as_myself=$0 ;;
|
|
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
97 for as_dir in $PATH
|
|
98 do
|
|
99 IFS=$as_save_IFS
|
|
100 test -z "$as_dir" && as_dir=.
|
|
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
102 done
|
|
103 IFS=$as_save_IFS
|
|
104
|
|
105 ;;
|
|
106 esac
|
|
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
108 # in which case we are not to be found in the path.
|
|
109 if test "x$as_myself" = x; then
|
|
110 as_myself=$0
|
|
111 fi
|
|
112 if test ! -f "$as_myself"; then
|
|
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
114 exit 1
|
|
115 fi
|
|
116
|
|
117 # Unset variables that we do not need and which cause bugs (e.g. in
|
|
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
119 # suppresses any "Segmentation fault" message there. '((' could
|
|
120 # trigger a bug in pdksh 5.2.14.
|
|
121 for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
122 do eval test x\${$as_var+set} = xset \
|
|
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
124 done
|
|
125 PS1='$ '
|
|
126 PS2='> '
|
|
127 PS4='+ '
|
|
128
|
|
129 # NLS nuisances.
|
|
130 LC_ALL=C
|
|
131 export LC_ALL
|
|
132 LANGUAGE=C
|
|
133 export LANGUAGE
|
|
134
|
|
135 # CDPATH.
|
|
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
137
|
|
138 if test "x$CONFIG_SHELL" = x; then
|
|
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
|
140 emulate sh
|
|
141 NULLCMD=:
|
|
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
|
143 # is contrary to our usage. Disable this feature.
|
|
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
|
145 setopt NO_GLOB_SUBST
|
|
146 else
|
|
147 case \`(set -o) 2>/dev/null\` in #(
|
|
148 *posix*) :
|
|
149 set -o posix ;; #(
|
|
150 *) :
|
|
151 ;;
|
|
152 esac
|
|
153 fi
|
|
154 "
|
|
155 as_required="as_fn_return () { (exit \$1); }
|
|
156 as_fn_success () { as_fn_return 0; }
|
|
157 as_fn_failure () { as_fn_return 1; }
|
|
158 as_fn_ret_success () { return 0; }
|
|
159 as_fn_ret_failure () { return 1; }
|
|
160
|
|
161 exitcode=0
|
|
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
|
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
|
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
|
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
|
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
|
167
|
|
168 else
|
|
169 exitcode=1; echo positional parameters were not saved.
|
|
170 fi
|
|
171 test x\$exitcode = x0 || exit 1"
|
|
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
|
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
|
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
|
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
|
176 test \$(( 1 + 1 )) = 2 || exit 1"
|
|
177 if (eval "$as_required") 2>/dev/null; then :
|
|
178 as_have_required=yes
|
|
179 else
|
|
180 as_have_required=no
|
|
181 fi
|
|
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
|
183
|
|
184 else
|
|
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
186 as_found=false
|
|
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
188 do
|
|
189 IFS=$as_save_IFS
|
|
190 test -z "$as_dir" && as_dir=.
|
|
191 as_found=:
|
|
192 case $as_dir in #(
|
|
193 /*)
|
|
194 for as_base in sh bash ksh sh5; do
|
|
195 # Try only shells that exist, to save several forks.
|
|
196 as_shell=$as_dir/$as_base
|
|
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
199 CONFIG_SHELL=$as_shell as_have_required=yes
|
|
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
|
201 break 2
|
|
202 fi
|
|
203 fi
|
|
204 done;;
|
|
205 esac
|
|
206 as_found=false
|
|
207 done
|
|
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
|
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
|
210 CONFIG_SHELL=$SHELL as_have_required=yes
|
|
211 fi; }
|
|
212 IFS=$as_save_IFS
|
|
213
|
|
214
|
|
215 if test "x$CONFIG_SHELL" != x; then :
|
|
216 # We cannot yet assume a decent shell, so we have to provide a
|
|
217 # neutralization value for shells without unset; and this also
|
|
218 # works around shells that cannot unset nonexistent variables.
|
|
219 BASH_ENV=/dev/null
|
|
220 ENV=/dev/null
|
|
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
|
222 export CONFIG_SHELL
|
|
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
|
224 fi
|
|
225
|
|
226 if test x$as_have_required = xno; then :
|
|
227 $as_echo "$0: This script requires a shell more modern than all"
|
|
228 $as_echo "$0: the shells that I found on your system."
|
|
229 if test x${ZSH_VERSION+set} = xset ; then
|
|
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
|
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
|
232 else
|
|
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and lost@l-w.ca about
|
|
234 $0: your system, including any error possibly output before
|
|
235 $0: this message. Then install a modern shell, or manually
|
|
236 $0: run the script under such a shell if you do have one."
|
|
237 fi
|
|
238 exit 1
|
|
239 fi
|
|
240 fi
|
|
241 fi
|
|
242 SHELL=${CONFIG_SHELL-/bin/sh}
|
|
243 export SHELL
|
|
244 # Unset more variables known to interfere with behavior of common tools.
|
|
245 CLICOLOR_FORCE= GREP_OPTIONS=
|
|
246 unset CLICOLOR_FORCE GREP_OPTIONS
|
|
247
|
|
248 ## --------------------- ##
|
|
249 ## M4sh Shell Functions. ##
|
|
250 ## --------------------- ##
|
|
251 # as_fn_unset VAR
|
|
252 # ---------------
|
|
253 # Portably unset VAR.
|
|
254 as_fn_unset ()
|
|
255 {
|
|
256 { eval $1=; unset $1;}
|
|
257 }
|
|
258 as_unset=as_fn_unset
|
|
259
|
|
260 # as_fn_set_status STATUS
|
|
261 # -----------------------
|
|
262 # Set $? to STATUS, without forking.
|
|
263 as_fn_set_status ()
|
|
264 {
|
|
265 return $1
|
|
266 } # as_fn_set_status
|
|
267
|
|
268 # as_fn_exit STATUS
|
|
269 # -----------------
|
|
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
271 as_fn_exit ()
|
|
272 {
|
|
273 set +e
|
|
274 as_fn_set_status $1
|
|
275 exit $1
|
|
276 } # as_fn_exit
|
|
277
|
|
278 # as_fn_mkdir_p
|
|
279 # -------------
|
|
280 # Create "$as_dir" as a directory, including parents if necessary.
|
|
281 as_fn_mkdir_p ()
|
|
282 {
|
|
283
|
|
284 case $as_dir in #(
|
|
285 -*) as_dir=./$as_dir;;
|
|
286 esac
|
|
287 test -d "$as_dir" || eval $as_mkdir_p || {
|
|
288 as_dirs=
|
|
289 while :; do
|
|
290 case $as_dir in #(
|
|
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
292 *) as_qdir=$as_dir;;
|
|
293 esac
|
|
294 as_dirs="'$as_qdir' $as_dirs"
|
|
295 as_dir=`$as_dirname -- "$as_dir" ||
|
|
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
297 X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
298 X"$as_dir" : 'X\(//\)$' \| \
|
|
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
300 $as_echo X"$as_dir" |
|
|
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
302 s//\1/
|
|
303 q
|
|
304 }
|
|
305 /^X\(\/\/\)[^/].*/{
|
|
306 s//\1/
|
|
307 q
|
|
308 }
|
|
309 /^X\(\/\/\)$/{
|
|
310 s//\1/
|
|
311 q
|
|
312 }
|
|
313 /^X\(\/\).*/{
|
|
314 s//\1/
|
|
315 q
|
|
316 }
|
|
317 s/.*/./; q'`
|
|
318 test -d "$as_dir" && break
|
|
319 done
|
|
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
|
322
|
|
323
|
|
324 } # as_fn_mkdir_p
|
|
325 # as_fn_append VAR VALUE
|
|
326 # ----------------------
|
|
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
328 # advantage of any shell optimizations that allow amortized linear growth over
|
|
329 # repeated appends, instead of the typical quadratic growth present in naive
|
|
330 # implementations.
|
|
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
332 eval 'as_fn_append ()
|
|
333 {
|
|
334 eval $1+=\$2
|
|
335 }'
|
|
336 else
|
|
337 as_fn_append ()
|
|
338 {
|
|
339 eval $1=\$$1\$2
|
|
340 }
|
|
341 fi # as_fn_append
|
|
342
|
|
343 # as_fn_arith ARG...
|
|
344 # ------------------
|
|
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
347 # must be portable across $(()) and expr.
|
|
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
349 eval 'as_fn_arith ()
|
|
350 {
|
|
351 as_val=$(( $* ))
|
|
352 }'
|
|
353 else
|
|
354 as_fn_arith ()
|
|
355 {
|
|
356 as_val=`expr "$@" || test $? -eq 1`
|
|
357 }
|
|
358 fi # as_fn_arith
|
|
359
|
|
360
|
|
361 # as_fn_error ERROR [LINENO LOG_FD]
|
|
362 # ---------------------------------
|
|
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
365 # script with status $?, using 1 if that was 0.
|
|
366 as_fn_error ()
|
|
367 {
|
|
368 as_status=$?; test $as_status -eq 0 && as_status=1
|
|
369 if test "$3"; then
|
|
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
|
372 fi
|
|
373 $as_echo "$as_me: error: $1" >&2
|
|
374 as_fn_exit $as_status
|
|
375 } # as_fn_error
|
|
376
|
|
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
379 as_expr=expr
|
|
380 else
|
|
381 as_expr=false
|
|
382 fi
|
|
383
|
|
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
385 as_basename=basename
|
|
386 else
|
|
387 as_basename=false
|
|
388 fi
|
|
389
|
|
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
391 as_dirname=dirname
|
|
392 else
|
|
393 as_dirname=false
|
|
394 fi
|
|
395
|
|
396 as_me=`$as_basename -- "$0" ||
|
|
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
398 X"$0" : 'X\(//\)$' \| \
|
|
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
400 $as_echo X/"$0" |
|
|
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
402 s//\1/
|
|
403 q
|
|
404 }
|
|
405 /^X\/\(\/\/\)$/{
|
|
406 s//\1/
|
|
407 q
|
|
408 }
|
|
409 /^X\/\(\/\).*/{
|
|
410 s//\1/
|
|
411 q
|
|
412 }
|
|
413 s/.*/./; q'`
|
|
414
|
|
415 # Avoid depending upon Character Ranges.
|
|
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
419 as_cr_digits='0123456789'
|
|
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
421
|
|
422
|
|
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
|
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
|
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
|
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
|
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
|
428 sed -n '
|
|
429 p
|
|
430 /[$]LINENO/=
|
|
431 ' <$as_myself |
|
|
432 sed '
|
|
433 s/[$]LINENO.*/&-/
|
|
434 t lineno
|
|
435 b
|
|
436 :lineno
|
|
437 N
|
|
438 :loop
|
|
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
440 t loop
|
|
441 s/-\n.*//
|
|
442 ' >$as_me.lineno &&
|
|
443 chmod +x "$as_me.lineno" ||
|
|
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
|
445
|
|
446 # Don't try to exec as it changes $[0], causing all sort of problems
|
|
447 # (the dirname of $[0] is not the place where we might find the
|
|
448 # original and so on. Autoconf is especially sensitive to this).
|
|
449 . "./$as_me.lineno"
|
|
450 # Exit status is that of the last command.
|
|
451 exit
|
|
452 }
|
|
453
|
|
454 ECHO_C= ECHO_N= ECHO_T=
|
|
455 case `echo -n x` in #(((((
|
|
456 -n*)
|
|
457 case `echo 'xy\c'` in
|
|
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
459 xy) ECHO_C='\c';;
|
|
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
461 ECHO_T=' ';;
|
|
462 esac;;
|
|
463 *)
|
|
464 ECHO_N='-n';;
|
|
465 esac
|
|
466
|
|
467 rm -f conf$$ conf$$.exe conf$$.file
|
|
468 if test -d conf$$.dir; then
|
|
469 rm -f conf$$.dir/conf$$.file
|
|
470 else
|
|
471 rm -f conf$$.dir
|
|
472 mkdir conf$$.dir 2>/dev/null
|
|
473 fi
|
|
474 if (echo >conf$$.file) 2>/dev/null; then
|
|
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
476 as_ln_s='ln -s'
|
|
477 # ... but there are two gotchas:
|
|
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
480 # In both cases, we have to default to `cp -p'.
|
|
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
482 as_ln_s='cp -p'
|
|
483 elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
484 as_ln_s=ln
|
|
485 else
|
|
486 as_ln_s='cp -p'
|
|
487 fi
|
|
488 else
|
|
489 as_ln_s='cp -p'
|
|
490 fi
|
|
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
492 rmdir conf$$.dir 2>/dev/null
|
|
493
|
|
494 if mkdir -p . 2>/dev/null; then
|
|
495 as_mkdir_p='mkdir -p "$as_dir"'
|
|
496 else
|
|
497 test -d ./-p && rmdir ./-p
|
|
498 as_mkdir_p=false
|
|
499 fi
|
|
500
|
|
501 if test -x / >/dev/null 2>&1; then
|
|
502 as_test_x='test -x'
|
|
503 else
|
|
504 if ls -dL / >/dev/null 2>&1; then
|
|
505 as_ls_L_option=L
|
|
506 else
|
|
507 as_ls_L_option=
|
|
508 fi
|
|
509 as_test_x='
|
|
510 eval sh -c '\''
|
|
511 if test -d "$1"; then
|
|
512 test -d "$1/.";
|
|
513 else
|
|
514 case $1 in #(
|
|
515 -*)set "./$1";;
|
|
516 esac;
|
|
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
|
518 ???[sx]*):;;*)false;;esac;fi
|
|
519 '\'' sh
|
|
520 '
|
|
521 fi
|
|
522 as_executable_p=$as_test_x
|
|
523
|
|
524 # Sed expression to map a string onto a valid CPP name.
|
|
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
526
|
|
527 # Sed expression to map a string onto a valid variable name.
|
|
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
529
|
|
530
|
|
531 test -n "$DJDIR" || exec 7<&0 </dev/null
|
|
532 exec 6>&1
|
|
533
|
|
534 # Name of the host.
|
|
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
|
536 # so uname gets run too.
|
|
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
538
|
|
539 #
|
|
540 # Initializations.
|
|
541 #
|
|
542 ac_default_prefix=/usr/local
|
|
543 ac_clean_files=
|
|
544 ac_config_libobj_dir=.
|
|
545 LIBOBJS=
|
|
546 cross_compiling=no
|
|
547 subdirs=
|
|
548 MFLAGS=
|
|
549 MAKEFLAGS=
|
|
550
|
|
551 # Identity of this package.
|
|
552 PACKAGE_NAME='LWTools'
|
|
553 PACKAGE_TARNAME='lwtools'
|
|
554 PACKAGE_VERSION='3.0'
|
|
555 PACKAGE_STRING='LWTools 3.0'
|
|
556 PACKAGE_BUGREPORT='lost@l-w.ca'
|
|
557 PACKAGE_URL=''
|
|
558
|
|
559 # Factoring default headers for most tests.
|
|
560 ac_includes_default="\
|
|
561 #include <stdio.h>
|
|
562 #ifdef HAVE_SYS_TYPES_H
|
|
563 # include <sys/types.h>
|
|
564 #endif
|
|
565 #ifdef HAVE_SYS_STAT_H
|
|
566 # include <sys/stat.h>
|
|
567 #endif
|
|
568 #ifdef STDC_HEADERS
|
|
569 # include <stdlib.h>
|
|
570 # include <stddef.h>
|
|
571 #else
|
|
572 # ifdef HAVE_STDLIB_H
|
|
573 # include <stdlib.h>
|
|
574 # endif
|
|
575 #endif
|
|
576 #ifdef HAVE_STRING_H
|
|
577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
578 # include <memory.h>
|
|
579 # endif
|
|
580 # include <string.h>
|
|
581 #endif
|
|
582 #ifdef HAVE_STRINGS_H
|
|
583 # include <strings.h>
|
|
584 #endif
|
|
585 #ifdef HAVE_INTTYPES_H
|
|
586 # include <inttypes.h>
|
|
587 #endif
|
|
588 #ifdef HAVE_STDINT_H
|
|
589 # include <stdint.h>
|
|
590 #endif
|
|
591 #ifdef HAVE_UNISTD_H
|
|
592 # include <unistd.h>
|
|
593 #endif"
|
|
594
|
|
595 gl_func_list=
|
|
596 gl_header_list=
|
|
597 gl_getopt_required=POSIX
|
|
598 gl_getopt_required=POSIX
|
|
599 ac_subst_vars='gltests_LTLIBOBJS
|
|
600 gltests_LIBOBJS
|
|
601 gl_LTLIBOBJS
|
|
602 gl_LIBOBJS
|
|
603 am__EXEEXT_FALSE
|
|
604 am__EXEEXT_TRUE
|
|
605 LTLIBOBJS
|
|
606 LIBOBJS
|
|
607 LIBGNU_LTLIBDEPS
|
|
608 LIBGNU_LIBDEPS
|
|
609 HAVE_WINT_T
|
|
610 HAVE_WCHAR_H
|
|
611 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
|
|
612 NEXT_WCHAR_H
|
|
613 REPLACE_WCWIDTH
|
|
614 REPLACE_WCSNRTOMBS
|
|
615 REPLACE_WCSRTOMBS
|
|
616 REPLACE_WCRTOMB
|
|
617 REPLACE_MBSNRTOWCS
|
|
618 REPLACE_MBSRTOWCS
|
|
619 REPLACE_MBRLEN
|
|
620 REPLACE_MBRTOWC
|
|
621 REPLACE_MBSINIT
|
|
622 REPLACE_WCTOB
|
|
623 REPLACE_BTOWC
|
|
624 REPLACE_MBSTATE_T
|
|
625 HAVE_DECL_WCWIDTH
|
|
626 HAVE_DECL_WCTOB
|
|
627 HAVE_WCSNRTOMBS
|
|
628 HAVE_WCSRTOMBS
|
|
629 HAVE_WCRTOMB
|
|
630 HAVE_MBSNRTOWCS
|
|
631 HAVE_MBSRTOWCS
|
|
632 HAVE_MBRLEN
|
|
633 HAVE_MBRTOWC
|
|
634 HAVE_MBSINIT
|
|
635 HAVE_BTOWC
|
|
636 GNULIB_WCWIDTH
|
|
637 GNULIB_WCSNRTOMBS
|
|
638 GNULIB_WCSRTOMBS
|
|
639 GNULIB_WCRTOMB
|
|
640 GNULIB_MBSNRTOWCS
|
|
641 GNULIB_MBSRTOWCS
|
|
642 GNULIB_MBRLEN
|
|
643 GNULIB_MBRTOWC
|
|
644 GNULIB_MBSINIT
|
|
645 GNULIB_WCTOB
|
|
646 GNULIB_BTOWC
|
|
647 HAVE_UNISTD_H
|
|
648 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
|
|
649 NEXT_UNISTD_H
|
|
650 SYSEXITS_H
|
|
651 HAVE_SYSEXITS_H
|
|
652 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
|
|
653 NEXT_SYSEXITS_H
|
|
654 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
|
|
655 NEXT_STRINGS_H
|
|
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
|
|
657 NEXT_STRING_H
|
|
658 HAVE_DECL_STRNCASECMP
|
|
659 HAVE_STRCASECMP
|
|
660 HAVE_RANDOM_H
|
|
661 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
|
|
662 NEXT_STDLIB_H
|
|
663 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
|
|
664 NEXT_STDIO_H
|
|
665 REPLACE_VSPRINTF
|
|
666 REPLACE_VSNPRINTF
|
|
667 REPLACE_VPRINTF
|
|
668 REPLACE_VFPRINTF
|
|
669 REPLACE_VDPRINTF
|
|
670 REPLACE_VASPRINTF
|
|
671 REPLACE_STDIO_WRITE_FUNCS
|
|
672 REPLACE_SPRINTF
|
|
673 REPLACE_SNPRINTF
|
|
674 REPLACE_RENAMEAT
|
|
675 REPLACE_RENAME
|
|
676 REPLACE_REMOVE
|
|
677 REPLACE_PRINTF
|
|
678 REPLACE_POPEN
|
|
679 REPLACE_PERROR
|
|
680 REPLACE_OBSTACK_PRINTF
|
|
681 REPLACE_GETLINE
|
|
682 REPLACE_FTELLO
|
|
683 REPLACE_FTELL
|
|
684 REPLACE_FSEEKO
|
|
685 REPLACE_FSEEK
|
|
686 REPLACE_FREOPEN
|
|
687 REPLACE_FPURGE
|
|
688 REPLACE_FPRINTF
|
|
689 REPLACE_FOPEN
|
|
690 REPLACE_FFLUSH
|
|
691 REPLACE_FCLOSE
|
|
692 REPLACE_DPRINTF
|
|
693 HAVE_VDPRINTF
|
|
694 HAVE_VASPRINTF
|
|
695 HAVE_RENAMEAT
|
|
696 HAVE_DPRINTF
|
|
697 HAVE_DECL_VSNPRINTF
|
|
698 HAVE_DECL_SNPRINTF
|
|
699 HAVE_DECL_OBSTACK_PRINTF
|
|
700 HAVE_DECL_GETLINE
|
|
701 HAVE_DECL_GETDELIM
|
|
702 HAVE_DECL_FPURGE
|
|
703 GNULIB_VSPRINTF_POSIX
|
|
704 GNULIB_VSNPRINTF
|
|
705 GNULIB_VPRINTF_POSIX
|
|
706 GNULIB_VPRINTF
|
|
707 GNULIB_VFPRINTF_POSIX
|
|
708 GNULIB_VFPRINTF
|
|
709 GNULIB_VDPRINTF
|
|
710 GNULIB_VASPRINTF
|
|
711 GNULIB_STDIO_H_SIGPIPE
|
|
712 GNULIB_SPRINTF_POSIX
|
|
713 GNULIB_SNPRINTF
|
|
714 GNULIB_RENAMEAT
|
|
715 GNULIB_RENAME
|
|
716 GNULIB_REMOVE
|
|
717 GNULIB_PUTS
|
|
718 GNULIB_PUTCHAR
|
|
719 GNULIB_PUTC
|
|
720 GNULIB_PRINTF_POSIX
|
|
721 GNULIB_PRINTF
|
|
722 GNULIB_POPEN
|
|
723 GNULIB_PERROR
|
|
724 GNULIB_OBSTACK_PRINTF_POSIX
|
|
725 GNULIB_OBSTACK_PRINTF
|
|
726 GNULIB_GETLINE
|
|
727 GNULIB_GETDELIM
|
|
728 GNULIB_FWRITE
|
|
729 GNULIB_FTELLO
|
|
730 GNULIB_FTELL
|
|
731 GNULIB_FSEEKO
|
|
732 GNULIB_FSEEK
|
|
733 GNULIB_FREOPEN
|
|
734 GNULIB_FPUTS
|
|
735 GNULIB_FPUTC
|
|
736 GNULIB_FPURGE
|
|
737 GNULIB_FPRINTF_POSIX
|
|
738 GNULIB_FPRINTF
|
|
739 GNULIB_FOPEN
|
|
740 GNULIB_FFLUSH
|
|
741 GNULIB_FCLOSE
|
|
742 GNULIB_DPRINTF
|
|
743 STDINT_H
|
|
744 WINT_T_SUFFIX
|
|
745 WCHAR_T_SUFFIX
|
|
746 SIG_ATOMIC_T_SUFFIX
|
|
747 SIZE_T_SUFFIX
|
|
748 PTRDIFF_T_SUFFIX
|
|
749 HAVE_SIGNED_WINT_T
|
|
750 HAVE_SIGNED_WCHAR_T
|
|
751 HAVE_SIGNED_SIG_ATOMIC_T
|
|
752 BITSIZEOF_WINT_T
|
|
753 BITSIZEOF_WCHAR_T
|
|
754 BITSIZEOF_SIG_ATOMIC_T
|
|
755 BITSIZEOF_SIZE_T
|
|
756 BITSIZEOF_PTRDIFF_T
|
|
757 HAVE_SYS_BITYPES_H
|
|
758 HAVE_SYS_INTTYPES_H
|
|
759 HAVE_STDINT_H
|
|
760 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
|
|
761 NEXT_STDINT_H
|
|
762 HAVE_SYS_TYPES_H
|
|
763 HAVE_INTTYPES_H
|
|
764 HAVE_UNSIGNED_LONG_LONG_INT
|
|
765 HAVE_LONG_LONG_INT
|
|
766 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
|
|
767 NEXT_STDDEF_H
|
|
768 STDDEF_H
|
|
769 HAVE_WCHAR_T
|
|
770 REPLACE_NULL
|
|
771 HAVE__BOOL
|
|
772 STDBOOL_H
|
|
773 APPLE_UNIVERSAL_BUILD
|
|
774 UNDEFINE_STRTOK_R
|
|
775 REPLACE_STRTOK_R
|
|
776 REPLACE_STRSIGNAL
|
|
777 REPLACE_STRNDUP
|
|
778 REPLACE_STRERROR
|
|
779 REPLACE_STRCASESTR
|
|
780 REPLACE_STRSTR
|
|
781 REPLACE_STRDUP
|
|
782 REPLACE_MEMMEM
|
|
783 REPLACE_MEMCHR
|
|
784 HAVE_STRVERSCMP
|
|
785 HAVE_DECL_STRSIGNAL
|
|
786 HAVE_DECL_STRERROR
|
|
787 HAVE_DECL_STRTOK_R
|
|
788 HAVE_STRCASESTR
|
|
789 HAVE_STRSEP
|
|
790 HAVE_STRPBRK
|
|
791 HAVE_DECL_STRNLEN
|
|
792 HAVE_DECL_STRNDUP
|
|
793 HAVE_DECL_STRDUP
|
|
794 HAVE_STRCHRNUL
|
|
795 HAVE_STPNCPY
|
|
796 HAVE_STPCPY
|
|
797 HAVE_RAWMEMCHR
|
|
798 HAVE_DECL_MEMRCHR
|
|
799 HAVE_MEMPCPY
|
|
800 HAVE_DECL_MEMMEM
|
|
801 HAVE_MBSLEN
|
|
802 GNULIB_STRVERSCMP
|
|
803 GNULIB_STRSIGNAL
|
|
804 GNULIB_STRERROR
|
|
805 GNULIB_MBSTOK_R
|
|
806 GNULIB_MBSSEP
|
|
807 GNULIB_MBSSPN
|
|
808 GNULIB_MBSPBRK
|
|
809 GNULIB_MBSCSPN
|
|
810 GNULIB_MBSCASESTR
|
|
811 GNULIB_MBSPCASECMP
|
|
812 GNULIB_MBSNCASECMP
|
|
813 GNULIB_MBSCASECMP
|
|
814 GNULIB_MBSSTR
|
|
815 GNULIB_MBSRCHR
|
|
816 GNULIB_MBSCHR
|
|
817 GNULIB_MBSNLEN
|
|
818 GNULIB_MBSLEN
|
|
819 GNULIB_STRTOK_R
|
|
820 GNULIB_STRCASESTR
|
|
821 GNULIB_STRSTR
|
|
822 GNULIB_STRSEP
|
|
823 GNULIB_STRPBRK
|
|
824 GNULIB_STRNLEN
|
|
825 GNULIB_STRNDUP
|
|
826 GNULIB_STRDUP
|
|
827 GNULIB_STRCHRNUL
|
|
828 GNULIB_STPNCPY
|
|
829 GNULIB_STPCPY
|
|
830 GNULIB_RAWMEMCHR
|
|
831 GNULIB_MEMRCHR
|
|
832 GNULIB_MEMPCPY
|
|
833 GNULIB_MEMMEM
|
|
834 GNULIB_MEMCHR
|
|
835 REPLACE_UNSETENV
|
|
836 REPLACE_STRTOD
|
|
837 REPLACE_SETENV
|
|
838 REPLACE_REALPATH
|
|
839 REPLACE_PUTENV
|
|
840 REPLACE_MKSTEMP
|
|
841 REPLACE_CANONICALIZE_FILE_NAME
|
|
842 HAVE_UNSETENV
|
|
843 HAVE_SYS_LOADAVG_H
|
|
844 HAVE_STRUCT_RANDOM_DATA
|
|
845 HAVE_STRTOULL
|
|
846 HAVE_STRTOLL
|
|
847 HAVE_STRTOD
|
|
848 HAVE_SETENV
|
|
849 HAVE_RPMATCH
|
|
850 HAVE_REALPATH
|
|
851 HAVE_REALLOC_POSIX
|
|
852 HAVE_RANDOM_R
|
|
853 HAVE_MKSTEMPS
|
|
854 HAVE_MKOSTEMPS
|
|
855 HAVE_MKOSTEMP
|
|
856 HAVE_MKDTEMP
|
|
857 HAVE_GETSUBOPT
|
|
858 HAVE_DECL_GETLOADAVG
|
|
859 HAVE_CANONICALIZE_FILE_NAME
|
|
860 HAVE_CALLOC_POSIX
|
|
861 HAVE_ATOLL
|
|
862 GNULIB_UNSETENV
|
|
863 GNULIB_STRTOULL
|
|
864 GNULIB_STRTOLL
|
|
865 GNULIB_STRTOD
|
|
866 GNULIB_SETENV
|
|
867 GNULIB_RPMATCH
|
|
868 GNULIB_REALPATH
|
|
869 GNULIB_REALLOC_POSIX
|
|
870 GNULIB_RANDOM_R
|
|
871 GNULIB_PUTENV
|
|
872 GNULIB_MKSTEMPS
|
|
873 GNULIB_MKSTEMP
|
|
874 GNULIB_MKOSTEMPS
|
|
875 GNULIB_MKOSTEMP
|
|
876 GNULIB_MKDTEMP
|
|
877 GNULIB_MALLOC_POSIX
|
|
878 GNULIB_GETSUBOPT
|
|
879 GNULIB_GETLOADAVG
|
|
880 GNULIB_CANONICALIZE_FILE_NAME
|
|
881 GNULIB_CALLOC_POSIX
|
|
882 GNULIB_ATOLL
|
|
883 HAVE_MALLOC_POSIX
|
|
884 LTLIBINTL
|
|
885 LIBINTL
|
|
886 HAVE_GETOPT_H
|
|
887 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
|
|
888 NEXT_GETOPT_H
|
|
889 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
|
|
890 UNISTD_H_HAVE_WINSOCK2_H
|
|
891 REPLACE_WRITE
|
|
892 REPLACE_USLEEP
|
|
893 REPLACE_UNLINKAT
|
|
894 REPLACE_UNLINK
|
|
895 REPLACE_SYMLINK
|
|
896 REPLACE_SLEEP
|
|
897 REPLACE_RMDIR
|
|
898 REPLACE_READLINK
|
|
899 REPLACE_PREAD
|
|
900 REPLACE_LSEEK
|
|
901 REPLACE_LINKAT
|
|
902 REPLACE_LINK
|
|
903 REPLACE_LCHOWN
|
|
904 REPLACE_GETPAGESIZE
|
|
905 REPLACE_GETGROUPS
|
|
906 REPLACE_GETCWD
|
|
907 REPLACE_FCHOWNAT
|
|
908 REPLACE_FCHDIR
|
|
909 REPLACE_DUP2
|
|
910 REPLACE_DUP
|
|
911 REPLACE_CLOSE
|
|
912 REPLACE_CHOWN
|
|
913 HAVE_USLEEP
|
|
914 HAVE_UNLINKAT
|
|
915 HAVE_SYS_PARAM_H
|
|
916 HAVE_OS_H
|
|
917 HAVE_DECL_GETLOGIN_R
|
|
918 HAVE_DECL_ENVIRON
|
|
919 HAVE_SYMLINKAT
|
|
920 HAVE_SYMLINK
|
|
921 HAVE_SLEEP
|
|
922 HAVE_READLINKAT
|
|
923 HAVE_READLINK
|
|
924 HAVE_PREAD
|
|
925 HAVE_PIPE2
|
|
926 HAVE_LINKAT
|
|
927 HAVE_LINK
|
|
928 HAVE_LCHOWN
|
|
929 HAVE_GETUSERSHELL
|
|
930 HAVE_GETPAGESIZE
|
|
931 HAVE_GETHOSTNAME
|
|
932 HAVE_GETGROUPS
|
|
933 HAVE_GETDTABLESIZE
|
|
934 HAVE_GETDOMAINNAME
|
|
935 HAVE_FTRUNCATE
|
|
936 HAVE_FSYNC
|
|
937 HAVE_FCHOWNAT
|
|
938 HAVE_FACCESSAT
|
|
939 HAVE_EUIDACCESS
|
|
940 HAVE_DUP3
|
|
941 HAVE_DUP2
|
|
942 HAVE_CHOWN
|
|
943 GNULIB_WRITE
|
|
944 GNULIB_USLEEP
|
|
945 GNULIB_UNLINKAT
|
|
946 GNULIB_UNLINK
|
|
947 GNULIB_UNISTD_H_SIGPIPE
|
|
948 GNULIB_UNISTD_H_GETOPT
|
|
949 GNULIB_SYMLINKAT
|
|
950 GNULIB_SYMLINK
|
|
951 GNULIB_SLEEP
|
|
952 GNULIB_RMDIR
|
|
953 GNULIB_READLINKAT
|
|
954 GNULIB_READLINK
|
|
955 GNULIB_PREAD
|
|
956 GNULIB_PIPE2
|
|
957 GNULIB_LSEEK
|
|
958 GNULIB_LINKAT
|
|
959 GNULIB_LINK
|
|
960 GNULIB_LCHOWN
|
|
961 GNULIB_GETUSERSHELL
|
|
962 GNULIB_GETPAGESIZE
|
|
963 GNULIB_GETLOGIN_R
|
|
964 GNULIB_GETHOSTNAME
|
|
965 GNULIB_GETGROUPS
|
|
966 GNULIB_GETDTABLESIZE
|
|
967 GNULIB_GETDOMAINNAME
|
|
968 GNULIB_GETCWD
|
|
969 GNULIB_FTRUNCATE
|
|
970 GNULIB_FSYNC
|
|
971 GNULIB_FCHOWNAT
|
|
972 GNULIB_FCHDIR
|
|
973 GNULIB_FACCESSAT
|
|
974 GNULIB_EUIDACCESS
|
|
975 GNULIB_ENVIRON
|
|
976 GNULIB_DUP3
|
|
977 GNULIB_DUP2
|
|
978 GNULIB_CLOSE
|
|
979 GNULIB_CHOWN
|
|
980 FLOAT_H
|
|
981 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
|
|
982 NEXT_FLOAT_H
|
|
983 EOVERFLOW_VALUE
|
|
984 EOVERFLOW_HIDDEN
|
|
985 ENOLINK_VALUE
|
|
986 ENOLINK_HIDDEN
|
|
987 EMULTIHOP_VALUE
|
|
988 EMULTIHOP_HIDDEN
|
|
989 ERRNO_H
|
|
990 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
|
|
991 NEXT_ERRNO_H
|
|
992 PRAGMA_SYSTEM_HEADER
|
|
993 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
|
|
994 INCLUDE_NEXT
|
|
995 GETOPT_H
|
|
996 ALLOCA_H
|
|
997 ALLOCA
|
|
998 GL_COND_LIBTOOL_FALSE
|
|
999 GL_COND_LIBTOOL_TRUE
|
|
1000 EGREP
|
|
1001 GREP
|
|
1002 CPP
|
|
1003 host_os
|
|
1004 host_vendor
|
|
1005 host_cpu
|
|
1006 host
|
|
1007 build_os
|
|
1008 build_vendor
|
|
1009 build_cpu
|
|
1010 build
|
|
1011 RANLIB
|
|
1012 am__fastdepCC_FALSE
|
|
1013 am__fastdepCC_TRUE
|
|
1014 CCDEPMODE
|
|
1015 AMDEPBACKSLASH
|
|
1016 AMDEP_FALSE
|
|
1017 AMDEP_TRUE
|
|
1018 am__quote
|
|
1019 am__include
|
|
1020 DEPDIR
|
|
1021 OBJEXT
|
|
1022 EXEEXT
|
|
1023 ac_ct_CC
|
|
1024 CPPFLAGS
|
|
1025 LDFLAGS
|
|
1026 CFLAGS
|
|
1027 CC
|
|
1028 am__untar
|
|
1029 am__tar
|
|
1030 AMTAR
|
|
1031 am__leading_dot
|
|
1032 SET_MAKE
|
|
1033 AWK
|
|
1034 mkdir_p
|
|
1035 MKDIR_P
|
|
1036 INSTALL_STRIP_PROGRAM
|
|
1037 STRIP
|
|
1038 install_sh
|
|
1039 MAKEINFO
|
|
1040 AUTOHEADER
|
|
1041 AUTOMAKE
|
|
1042 AUTOCONF
|
|
1043 ACLOCAL
|
|
1044 VERSION
|
|
1045 PACKAGE
|
|
1046 CYGPATH_W
|
|
1047 am__isrc
|
|
1048 INSTALL_DATA
|
|
1049 INSTALL_SCRIPT
|
|
1050 INSTALL_PROGRAM
|
|
1051 target_alias
|
|
1052 host_alias
|
|
1053 build_alias
|
|
1054 LIBS
|
|
1055 ECHO_T
|
|
1056 ECHO_N
|
|
1057 ECHO_C
|
|
1058 DEFS
|
|
1059 mandir
|
|
1060 localedir
|
|
1061 libdir
|
|
1062 psdir
|
|
1063 pdfdir
|
|
1064 dvidir
|
|
1065 htmldir
|
|
1066 infodir
|
|
1067 docdir
|
|
1068 oldincludedir
|
|
1069 includedir
|
|
1070 localstatedir
|
|
1071 sharedstatedir
|
|
1072 sysconfdir
|
|
1073 datadir
|
|
1074 datarootdir
|
|
1075 libexecdir
|
|
1076 sbindir
|
|
1077 bindir
|
|
1078 program_transform_name
|
|
1079 prefix
|
|
1080 exec_prefix
|
|
1081 PACKAGE_URL
|
|
1082 PACKAGE_BUGREPORT
|
|
1083 PACKAGE_STRING
|
|
1084 PACKAGE_VERSION
|
|
1085 PACKAGE_TARNAME
|
|
1086 PACKAGE_NAME
|
|
1087 PATH_SEPARATOR
|
|
1088 SHELL'
|
|
1089 ac_subst_files=''
|
|
1090 ac_user_opts='
|
|
1091 enable_option_checking
|
|
1092 enable_dependency_tracking
|
|
1093 '
|
|
1094 ac_precious_vars='build_alias
|
|
1095 host_alias
|
|
1096 target_alias
|
|
1097 CC
|
|
1098 CFLAGS
|
|
1099 LDFLAGS
|
|
1100 LIBS
|
|
1101 CPPFLAGS
|
|
1102 CPP'
|
|
1103
|
|
1104
|
|
1105 # Initialize some variables set by options.
|
|
1106 ac_init_help=
|
|
1107 ac_init_version=false
|
|
1108 ac_unrecognized_opts=
|
|
1109 ac_unrecognized_sep=
|
|
1110 # The variables have the same names as the options, with
|
|
1111 # dashes changed to underlines.
|
|
1112 cache_file=/dev/null
|
|
1113 exec_prefix=NONE
|
|
1114 no_create=
|
|
1115 no_recursion=
|
|
1116 prefix=NONE
|
|
1117 program_prefix=NONE
|
|
1118 program_suffix=NONE
|
|
1119 program_transform_name=s,x,x,
|
|
1120 silent=
|
|
1121 site=
|
|
1122 srcdir=
|
|
1123 verbose=
|
|
1124 x_includes=NONE
|
|
1125 x_libraries=NONE
|
|
1126
|
|
1127 # Installation directory options.
|
|
1128 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
1129 # and all the variables that are supposed to be based on exec_prefix
|
|
1130 # by default will actually change.
|
|
1131 # Use braces instead of parens because sh, perl, etc. also accept them.
|
|
1132 # (The list follows the same order as the GNU Coding Standards.)
|
|
1133 bindir='${exec_prefix}/bin'
|
|
1134 sbindir='${exec_prefix}/sbin'
|
|
1135 libexecdir='${exec_prefix}/libexec'
|
|
1136 datarootdir='${prefix}/share'
|
|
1137 datadir='${datarootdir}'
|
|
1138 sysconfdir='${prefix}/etc'
|
|
1139 sharedstatedir='${prefix}/com'
|
|
1140 localstatedir='${prefix}/var'
|
|
1141 includedir='${prefix}/include'
|
|
1142 oldincludedir='/usr/include'
|
|
1143 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
|
1144 infodir='${datarootdir}/info'
|
|
1145 htmldir='${docdir}'
|
|
1146 dvidir='${docdir}'
|
|
1147 pdfdir='${docdir}'
|
|
1148 psdir='${docdir}'
|
|
1149 libdir='${exec_prefix}/lib'
|
|
1150 localedir='${datarootdir}/locale'
|
|
1151 mandir='${datarootdir}/man'
|
|
1152
|
|
1153 ac_prev=
|
|
1154 ac_dashdash=
|
|
1155 for ac_option
|
|
1156 do
|
|
1157 # If the previous option needs an argument, assign it.
|
|
1158 if test -n "$ac_prev"; then
|
|
1159 eval $ac_prev=\$ac_option
|
|
1160 ac_prev=
|
|
1161 continue
|
|
1162 fi
|
|
1163
|
|
1164 case $ac_option in
|
|
1165 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
1166 *) ac_optarg=yes ;;
|
|
1167 esac
|
|
1168
|
|
1169 # Accept the important Cygnus configure options, so we can diagnose typos.
|
|
1170
|
|
1171 case $ac_dashdash$ac_option in
|
|
1172 --)
|
|
1173 ac_dashdash=yes ;;
|
|
1174
|
|
1175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
1176 ac_prev=bindir ;;
|
|
1177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
1178 bindir=$ac_optarg ;;
|
|
1179
|
|
1180 -build | --build | --buil | --bui | --bu)
|
|
1181 ac_prev=build_alias ;;
|
|
1182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
1183 build_alias=$ac_optarg ;;
|
|
1184
|
|
1185 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
1186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
1187 ac_prev=cache_file ;;
|
|
1188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
1189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
1190 cache_file=$ac_optarg ;;
|
|
1191
|
|
1192 --config-cache | -C)
|
|
1193 cache_file=config.cache ;;
|
|
1194
|
|
1195 -datadir | --datadir | --datadi | --datad)
|
|
1196 ac_prev=datadir ;;
|
|
1197 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
1198 datadir=$ac_optarg ;;
|
|
1199
|
|
1200 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
1201 | --dataroo | --dataro | --datar)
|
|
1202 ac_prev=datarootdir ;;
|
|
1203 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
1204 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
1205 datarootdir=$ac_optarg ;;
|
|
1206
|
|
1207 -disable-* | --disable-*)
|
|
1208 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
1209 # Reject names that are not valid shell variable names.
|
|
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1211 as_fn_error "invalid feature name: $ac_useropt"
|
|
1212 ac_useropt_orig=$ac_useropt
|
|
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1214 case $ac_user_opts in
|
|
1215 *"
|
|
1216 "enable_$ac_useropt"
|
|
1217 "*) ;;
|
|
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
|
1219 ac_unrecognized_sep=', ';;
|
|
1220 esac
|
|
1221 eval enable_$ac_useropt=no ;;
|
|
1222
|
|
1223 -docdir | --docdir | --docdi | --doc | --do)
|
|
1224 ac_prev=docdir ;;
|
|
1225 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
1226 docdir=$ac_optarg ;;
|
|
1227
|
|
1228 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
1229 ac_prev=dvidir ;;
|
|
1230 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
1231 dvidir=$ac_optarg ;;
|
|
1232
|
|
1233 -enable-* | --enable-*)
|
|
1234 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
1235 # Reject names that are not valid shell variable names.
|
|
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1237 as_fn_error "invalid feature name: $ac_useropt"
|
|
1238 ac_useropt_orig=$ac_useropt
|
|
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1240 case $ac_user_opts in
|
|
1241 *"
|
|
1242 "enable_$ac_useropt"
|
|
1243 "*) ;;
|
|
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
|
1245 ac_unrecognized_sep=', ';;
|
|
1246 esac
|
|
1247 eval enable_$ac_useropt=\$ac_optarg ;;
|
|
1248
|
|
1249 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
1250 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
1251 | --exec | --exe | --ex)
|
|
1252 ac_prev=exec_prefix ;;
|
|
1253 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
1254 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
1255 | --exec=* | --exe=* | --ex=*)
|
|
1256 exec_prefix=$ac_optarg ;;
|
|
1257
|
|
1258 -gas | --gas | --ga | --g)
|
|
1259 # Obsolete; use --with-gas.
|
|
1260 with_gas=yes ;;
|
|
1261
|
|
1262 -help | --help | --hel | --he | -h)
|
|
1263 ac_init_help=long ;;
|
|
1264 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
1265 ac_init_help=recursive ;;
|
|
1266 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
1267 ac_init_help=short ;;
|
|
1268
|
|
1269 -host | --host | --hos | --ho)
|
|
1270 ac_prev=host_alias ;;
|
|
1271 -host=* | --host=* | --hos=* | --ho=*)
|
|
1272 host_alias=$ac_optarg ;;
|
|
1273
|
|
1274 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
1275 ac_prev=htmldir ;;
|
|
1276 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
1277 | --ht=*)
|
|
1278 htmldir=$ac_optarg ;;
|
|
1279
|
|
1280 -includedir | --includedir | --includedi | --included | --include \
|
|
1281 | --includ | --inclu | --incl | --inc)
|
|
1282 ac_prev=includedir ;;
|
|
1283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
1284 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
1285 includedir=$ac_optarg ;;
|
|
1286
|
|
1287 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
1288 ac_prev=infodir ;;
|
|
1289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
1290 infodir=$ac_optarg ;;
|
|
1291
|
|
1292 -libdir | --libdir | --libdi | --libd)
|
|
1293 ac_prev=libdir ;;
|
|
1294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
1295 libdir=$ac_optarg ;;
|
|
1296
|
|
1297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
1298 | --libexe | --libex | --libe)
|
|
1299 ac_prev=libexecdir ;;
|
|
1300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
1301 | --libexe=* | --libex=* | --libe=*)
|
|
1302 libexecdir=$ac_optarg ;;
|
|
1303
|
|
1304 -localedir | --localedir | --localedi | --localed | --locale)
|
|
1305 ac_prev=localedir ;;
|
|
1306 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
1307 localedir=$ac_optarg ;;
|
|
1308
|
|
1309 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
1310 | --localstate | --localstat | --localsta | --localst | --locals)
|
|
1311 ac_prev=localstatedir ;;
|
|
1312 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
1313 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
1314 localstatedir=$ac_optarg ;;
|
|
1315
|
|
1316 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
1317 ac_prev=mandir ;;
|
|
1318 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
1319 mandir=$ac_optarg ;;
|
|
1320
|
|
1321 -nfp | --nfp | --nf)
|
|
1322 # Obsolete; use --without-fp.
|
|
1323 with_fp=no ;;
|
|
1324
|
|
1325 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
1326 | --no-cr | --no-c | -n)
|
|
1327 no_create=yes ;;
|
|
1328
|
|
1329 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
1330 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
1331 no_recursion=yes ;;
|
|
1332
|
|
1333 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
1334 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
1335 | --oldin | --oldi | --old | --ol | --o)
|
|
1336 ac_prev=oldincludedir ;;
|
|
1337 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
1338 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
1339 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
1340 oldincludedir=$ac_optarg ;;
|
|
1341
|
|
1342 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
1343 ac_prev=prefix ;;
|
|
1344 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
1345 prefix=$ac_optarg ;;
|
|
1346
|
|
1347 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
1348 | --program-pre | --program-pr | --program-p)
|
|
1349 ac_prev=program_prefix ;;
|
|
1350 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
1351 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
1352 program_prefix=$ac_optarg ;;
|
|
1353
|
|
1354 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
1355 | --program-suf | --program-su | --program-s)
|
|
1356 ac_prev=program_suffix ;;
|
|
1357 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
1358 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
1359 program_suffix=$ac_optarg ;;
|
|
1360
|
|
1361 -program-transform-name | --program-transform-name \
|
|
1362 | --program-transform-nam | --program-transform-na \
|
|
1363 | --program-transform-n | --program-transform- \
|
|
1364 | --program-transform | --program-transfor \
|
|
1365 | --program-transfo | --program-transf \
|
|
1366 | --program-trans | --program-tran \
|
|
1367 | --progr-tra | --program-tr | --program-t)
|
|
1368 ac_prev=program_transform_name ;;
|
|
1369 -program-transform-name=* | --program-transform-name=* \
|
|
1370 | --program-transform-nam=* | --program-transform-na=* \
|
|
1371 | --program-transform-n=* | --program-transform-=* \
|
|
1372 | --program-transform=* | --program-transfor=* \
|
|
1373 | --program-transfo=* | --program-transf=* \
|
|
1374 | --program-trans=* | --program-tran=* \
|
|
1375 | --progr-tra=* | --program-tr=* | --program-t=*)
|
|
1376 program_transform_name=$ac_optarg ;;
|
|
1377
|
|
1378 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
1379 ac_prev=pdfdir ;;
|
|
1380 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
1381 pdfdir=$ac_optarg ;;
|
|
1382
|
|
1383 -psdir | --psdir | --psdi | --psd | --ps)
|
|
1384 ac_prev=psdir ;;
|
|
1385 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
1386 psdir=$ac_optarg ;;
|
|
1387
|
|
1388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
1389 | -silent | --silent | --silen | --sile | --sil)
|
|
1390 silent=yes ;;
|
|
1391
|
|
1392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
1393 ac_prev=sbindir ;;
|
|
1394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
1395 | --sbi=* | --sb=*)
|
|
1396 sbindir=$ac_optarg ;;
|
|
1397
|
|
1398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
1399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
1400 | --sharedst | --shareds | --shared | --share | --shar \
|
|
1401 | --sha | --sh)
|
|
1402 ac_prev=sharedstatedir ;;
|
|
1403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
1404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
1405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
1406 | --sha=* | --sh=*)
|
|
1407 sharedstatedir=$ac_optarg ;;
|
|
1408
|
|
1409 -site | --site | --sit)
|
|
1410 ac_prev=site ;;
|
|
1411 -site=* | --site=* | --sit=*)
|
|
1412 site=$ac_optarg ;;
|
|
1413
|
|
1414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
1415 ac_prev=srcdir ;;
|
|
1416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
1417 srcdir=$ac_optarg ;;
|
|
1418
|
|
1419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
1420 | --syscon | --sysco | --sysc | --sys | --sy)
|
|
1421 ac_prev=sysconfdir ;;
|
|
1422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
1423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
1424 sysconfdir=$ac_optarg ;;
|
|
1425
|
|
1426 -target | --target | --targe | --targ | --tar | --ta | --t)
|
|
1427 ac_prev=target_alias ;;
|
|
1428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
1429 target_alias=$ac_optarg ;;
|
|
1430
|
|
1431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
1432 verbose=yes ;;
|
|
1433
|
|
1434 -version | --version | --versio | --versi | --vers | -V)
|
|
1435 ac_init_version=: ;;
|
|
1436
|
|
1437 -with-* | --with-*)
|
|
1438 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
1439 # Reject names that are not valid shell variable names.
|
|
1440 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1441 as_fn_error "invalid package name: $ac_useropt"
|
|
1442 ac_useropt_orig=$ac_useropt
|
|
1443 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1444 case $ac_user_opts in
|
|
1445 *"
|
|
1446 "with_$ac_useropt"
|
|
1447 "*) ;;
|
|
1448 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
|
1449 ac_unrecognized_sep=', ';;
|
|
1450 esac
|
|
1451 eval with_$ac_useropt=\$ac_optarg ;;
|
|
1452
|
|
1453 -without-* | --without-*)
|
|
1454 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
1455 # Reject names that are not valid shell variable names.
|
|
1456 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
|
1457 as_fn_error "invalid package name: $ac_useropt"
|
|
1458 ac_useropt_orig=$ac_useropt
|
|
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
|
1460 case $ac_user_opts in
|
|
1461 *"
|
|
1462 "with_$ac_useropt"
|
|
1463 "*) ;;
|
|
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
|
1465 ac_unrecognized_sep=', ';;
|
|
1466 esac
|
|
1467 eval with_$ac_useropt=no ;;
|
|
1468
|
|
1469 --x)
|
|
1470 # Obsolete; use --with-x.
|
|
1471 with_x=yes ;;
|
|
1472
|
|
1473 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
1474 | --x-incl | --x-inc | --x-in | --x-i)
|
|
1475 ac_prev=x_includes ;;
|
|
1476 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
1477 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
1478 x_includes=$ac_optarg ;;
|
|
1479
|
|
1480 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
1481 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
1482 ac_prev=x_libraries ;;
|
|
1483 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
1484 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
1485 x_libraries=$ac_optarg ;;
|
|
1486
|
|
1487 -*) as_fn_error "unrecognized option: \`$ac_option'
|
|
1488 Try \`$0 --help' for more information."
|
|
1489 ;;
|
|
1490
|
|
1491 *=*)
|
|
1492 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
1493 # Reject names that are not valid shell variable names.
|
|
1494 case $ac_envvar in #(
|
|
1495 '' | [0-9]* | *[!_$as_cr_alnum]* )
|
|
1496 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
|
1497 esac
|
|
1498 eval $ac_envvar=\$ac_optarg
|
|
1499 export $ac_envvar ;;
|
|
1500
|
|
1501 *)
|
|
1502 # FIXME: should be removed in autoconf 3.0.
|
|
1503 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
1504 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
1505 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
1506 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
|
1507 ;;
|
|
1508
|
|
1509 esac
|
|
1510 done
|
|
1511
|
|
1512 if test -n "$ac_prev"; then
|
|
1513 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
1514 as_fn_error "missing argument to $ac_option"
|
|
1515 fi
|
|
1516
|
|
1517 if test -n "$ac_unrecognized_opts"; then
|
|
1518 case $enable_option_checking in
|
|
1519 no) ;;
|
|
1520 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
|
1521 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
|
1522 esac
|
|
1523 fi
|
|
1524
|
|
1525 # Check all directory arguments for consistency.
|
|
1526 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
1527 datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
1528 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
1529 libdir localedir mandir
|
|
1530 do
|
|
1531 eval ac_val=\$$ac_var
|
|
1532 # Remove trailing slashes.
|
|
1533 case $ac_val in
|
|
1534 */ )
|
|
1535 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
|
1536 eval $ac_var=\$ac_val;;
|
|
1537 esac
|
|
1538 # Be sure to have absolute directory names.
|
|
1539 case $ac_val in
|
|
1540 [\\/$]* | ?:[\\/]* ) continue;;
|
|
1541 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
1542 esac
|
|
1543 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
|
1544 done
|
|
1545
|
|
1546 # There might be people who depend on the old broken behavior: `$host'
|
|
1547 # used to hold the argument of --host etc.
|
|
1548 # FIXME: To remove some day.
|
|
1549 build=$build_alias
|
|
1550 host=$host_alias
|
|
1551 target=$target_alias
|
|
1552
|
|
1553 # FIXME: To remove some day.
|
|
1554 if test "x$host_alias" != x; then
|
|
1555 if test "x$build_alias" = x; then
|
|
1556 cross_compiling=maybe
|
|
1557 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
|
1558 If a cross compiler is detected then cross compile mode will be used." >&2
|
|
1559 elif test "x$build_alias" != "x$host_alias"; then
|
|
1560 cross_compiling=yes
|
|
1561 fi
|
|
1562 fi
|
|
1563
|
|
1564 ac_tool_prefix=
|
|
1565 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
1566
|
|
1567 test "$silent" = yes && exec 6>/dev/null
|
|
1568
|
|
1569
|
|
1570 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
1571 ac_ls_di=`ls -di .` &&
|
|
1572 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
1573 as_fn_error "working directory cannot be determined"
|
|
1574 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
1575 as_fn_error "pwd does not report name of working directory"
|
|
1576
|
|
1577
|
|
1578 # Find the source files, if location was not specified.
|
|
1579 if test -z "$srcdir"; then
|
|
1580 ac_srcdir_defaulted=yes
|
|
1581 # Try the directory containing this script, then the parent directory.
|
|
1582 ac_confdir=`$as_dirname -- "$as_myself" ||
|
|
1583 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
1584 X"$as_myself" : 'X\(//\)[^/]' \| \
|
|
1585 X"$as_myself" : 'X\(//\)$' \| \
|
|
1586 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
|
1587 $as_echo X"$as_myself" |
|
|
1588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
1589 s//\1/
|
|
1590 q
|
|
1591 }
|
|
1592 /^X\(\/\/\)[^/].*/{
|
|
1593 s//\1/
|
|
1594 q
|
|
1595 }
|
|
1596 /^X\(\/\/\)$/{
|
|
1597 s//\1/
|
|
1598 q
|
|
1599 }
|
|
1600 /^X\(\/\).*/{
|
|
1601 s//\1/
|
|
1602 q
|
|
1603 }
|
|
1604 s/.*/./; q'`
|
|
1605 srcdir=$ac_confdir
|
|
1606 if test ! -r "$srcdir/$ac_unique_file"; then
|
|
1607 srcdir=..
|
|
1608 fi
|
|
1609 else
|
|
1610 ac_srcdir_defaulted=no
|
|
1611 fi
|
|
1612 if test ! -r "$srcdir/$ac_unique_file"; then
|
|
1613 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
1614 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
|
1615 fi
|
|
1616 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
1617 ac_abs_confdir=`(
|
|
1618 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
|
1619 pwd)`
|
|
1620 # When building in place, set srcdir=.
|
|
1621 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
1622 srcdir=.
|
|
1623 fi
|
|
1624 # Remove unnecessary trailing slashes from srcdir.
|
|
1625 # Double slashes in file names in object file debugging info
|
|
1626 # mess up M-x gdb in Emacs.
|
|
1627 case $srcdir in
|
|
1628 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
1629 esac
|
|
1630 for ac_var in $ac_precious_vars; do
|
|
1631 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
1632 eval ac_env_${ac_var}_value=\$${ac_var}
|
|
1633 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
1634 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
1635 done
|
|
1636
|
|
1637 #
|
|
1638 # Report the --help message.
|
|
1639 #
|
|
1640 if test "$ac_init_help" = "long"; then
|
|
1641 # Omit some internal or obsolete options to make the list less imposing.
|
|
1642 # This message is too long to be a string in the A/UX 3.1 sh.
|
|
1643 cat <<_ACEOF
|
|
1644 \`configure' configures LWTools 3.0 to adapt to many kinds of systems.
|
|
1645
|
|
1646 Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
1647
|
|
1648 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
1649 VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
1650
|
|
1651 Defaults for the options are specified in brackets.
|
|
1652
|
|
1653 Configuration:
|
|
1654 -h, --help display this help and exit
|
|
1655 --help=short display options specific to this package
|
|
1656 --help=recursive display the short help of all the included packages
|
|
1657 -V, --version display version information and exit
|
|
1658 -q, --quiet, --silent do not print \`checking...' messages
|
|
1659 --cache-file=FILE cache test results in FILE [disabled]
|
|
1660 -C, --config-cache alias for \`--cache-file=config.cache'
|
|
1661 -n, --no-create do not create output files
|
|
1662 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
1663
|
|
1664 Installation directories:
|
|
1665 --prefix=PREFIX install architecture-independent files in PREFIX
|
|
1666 [$ac_default_prefix]
|
|
1667 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
1668 [PREFIX]
|
|
1669
|
|
1670 By default, \`make install' will install all the files in
|
|
1671 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
1672 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
1673 for instance \`--prefix=\$HOME'.
|
|
1674
|
|
1675 For better control, use the options below.
|
|
1676
|
|
1677 Fine tuning of the installation directories:
|
|
1678 --bindir=DIR user executables [EPREFIX/bin]
|
|
1679 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
1680 --libexecdir=DIR program executables [EPREFIX/libexec]
|
|
1681 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
1682 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
1683 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
1684 --libdir=DIR object code libraries [EPREFIX/lib]
|
|
1685 --includedir=DIR C header files [PREFIX/include]
|
|
1686 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
1687 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
1688 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
1689 --infodir=DIR info documentation [DATAROOTDIR/info]
|
|
1690 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
1691 --mandir=DIR man documentation [DATAROOTDIR/man]
|
|
1692 --docdir=DIR documentation root [DATAROOTDIR/doc/lwtools]
|
|
1693 --htmldir=DIR html documentation [DOCDIR]
|
|
1694 --dvidir=DIR dvi documentation [DOCDIR]
|
|
1695 --pdfdir=DIR pdf documentation [DOCDIR]
|
|
1696 --psdir=DIR ps documentation [DOCDIR]
|
|
1697 _ACEOF
|
|
1698
|
|
1699 cat <<\_ACEOF
|
|
1700
|
|
1701 Program names:
|
|
1702 --program-prefix=PREFIX prepend PREFIX to installed program names
|
|
1703 --program-suffix=SUFFIX append SUFFIX to installed program names
|
|
1704 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
|
1705
|
|
1706 System types:
|
|
1707 --build=BUILD configure for building on BUILD [guessed]
|
|
1708 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
|
1709 _ACEOF
|
|
1710 fi
|
|
1711
|
|
1712 if test -n "$ac_init_help"; then
|
|
1713 case $ac_init_help in
|
|
1714 short | recursive ) echo "Configuration of LWTools 3.0:";;
|
|
1715 esac
|
|
1716 cat <<\_ACEOF
|
|
1717
|
|
1718 Optional Features:
|
|
1719 --disable-option-checking ignore unrecognized --enable/--with options
|
|
1720 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
1721 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
1722 --disable-dependency-tracking speeds up one-time build
|
|
1723 --enable-dependency-tracking do not reject slow dependency extractors
|
|
1724
|
|
1725 Some influential environment variables:
|
|
1726 CC C compiler command
|
|
1727 CFLAGS C compiler flags
|
|
1728 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
1729 nonstandard directory <lib dir>
|
|
1730 LIBS libraries to pass to the linker, e.g. -l<library>
|
|
1731 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
1732 you have headers in a nonstandard directory <include dir>
|
|
1733 CPP C preprocessor
|
|
1734
|
|
1735 Use these variables to override the choices made by `configure' or to help
|
|
1736 it to find libraries and programs with nonstandard names/locations.
|
|
1737
|
|
1738 Report bugs to <lost@l-w.ca>.
|
|
1739 _ACEOF
|
|
1740 ac_status=$?
|
|
1741 fi
|
|
1742
|
|
1743 if test "$ac_init_help" = "recursive"; then
|
|
1744 # If there are subdirs, report their specific --help.
|
|
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
1746 test -d "$ac_dir" ||
|
|
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
|
1748 continue
|
|
1749 ac_builddir=.
|
|
1750
|
|
1751 case "$ac_dir" in
|
|
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1753 *)
|
|
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
1755 # A ".." for each directory in $ac_dir_suffix.
|
|
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
1757 case $ac_top_builddir_sub in
|
|
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
1760 esac ;;
|
|
1761 esac
|
|
1762 ac_abs_top_builddir=$ac_pwd
|
|
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
1764 # for backward compatibility:
|
|
1765 ac_top_builddir=$ac_top_build_prefix
|
|
1766
|
|
1767 case $srcdir in
|
|
1768 .) # We are building in place.
|
|
1769 ac_srcdir=.
|
|
1770 ac_top_srcdir=$ac_top_builddir_sub
|
|
1771 ac_abs_top_srcdir=$ac_pwd ;;
|
|
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
|
|
1773 ac_srcdir=$srcdir$ac_dir_suffix;
|
|
1774 ac_top_srcdir=$srcdir
|
|
1775 ac_abs_top_srcdir=$srcdir ;;
|
|
1776 *) # Relative name.
|
|
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
1780 esac
|
|
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
1782
|
|
1783 cd "$ac_dir" || { ac_status=$?; continue; }
|
|
1784 # Check for guested configure.
|
|
1785 if test -f "$ac_srcdir/configure.gnu"; then
|
|
1786 echo &&
|
|
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
1788 elif test -f "$ac_srcdir/configure"; then
|
|
1789 echo &&
|
|
1790 $SHELL "$ac_srcdir/configure" --help=recursive
|
|
1791 else
|
|
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
1793 fi || ac_status=$?
|
|
1794 cd "$ac_pwd" || { ac_status=$?; break; }
|
|
1795 done
|
|
1796 fi
|
|
1797
|
|
1798 test -n "$ac_init_help" && exit $ac_status
|
|
1799 if $ac_init_version; then
|
|
1800 cat <<\_ACEOF
|
|
1801 LWTools configure 3.0
|
|
1802 generated by GNU Autoconf 2.65
|
|
1803
|
|
1804 Copyright (C) 2009 Free Software Foundation, Inc.
|
|
1805 This configure script is free software; the Free Software Foundation
|
|
1806 gives unlimited permission to copy, distribute and modify it.
|
|
1807 _ACEOF
|
|
1808 exit
|
|
1809 fi
|
|
1810
|
|
1811 ## ------------------------ ##
|
|
1812 ## Autoconf initialization. ##
|
|
1813 ## ------------------------ ##
|
|
1814
|
|
1815 # ac_fn_c_try_compile LINENO
|
|
1816 # --------------------------
|
|
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
|
1818 ac_fn_c_try_compile ()
|
|
1819 {
|
|
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1821 rm -f conftest.$ac_objext
|
|
1822 if { { ac_try="$ac_compile"
|
|
1823 case "(($ac_try" in
|
|
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1825 *) ac_try_echo=$ac_try;;
|
|
1826 esac
|
|
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1828 $as_echo "$ac_try_echo"; } >&5
|
|
1829 (eval "$ac_compile") 2>conftest.err
|
|
1830 ac_status=$?
|
|
1831 if test -s conftest.err; then
|
|
1832 grep -v '^ *+' conftest.err >conftest.er1
|
|
1833 cat conftest.er1 >&5
|
|
1834 mv -f conftest.er1 conftest.err
|
|
1835 fi
|
|
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1837 test $ac_status = 0; } && {
|
|
1838 test -z "$ac_c_werror_flag" ||
|
|
1839 test ! -s conftest.err
|
|
1840 } && test -s conftest.$ac_objext; then :
|
|
1841 ac_retval=0
|
|
1842 else
|
|
1843 $as_echo "$as_me: failed program was:" >&5
|
|
1844 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1845
|
|
1846 ac_retval=1
|
|
1847 fi
|
|
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
1849 as_fn_set_status $ac_retval
|
|
1850
|
|
1851 } # ac_fn_c_try_compile
|
|
1852
|
|
1853 # ac_fn_c_try_cpp LINENO
|
|
1854 # ----------------------
|
|
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
|
1856 ac_fn_c_try_cpp ()
|
|
1857 {
|
|
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
|
|
1860 case "(($ac_try" in
|
|
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1862 *) ac_try_echo=$ac_try;;
|
|
1863 esac
|
|
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1865 $as_echo "$ac_try_echo"; } >&5
|
|
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
|
1867 ac_status=$?
|
|
1868 if test -s conftest.err; then
|
|
1869 grep -v '^ *+' conftest.err >conftest.er1
|
|
1870 cat conftest.er1 >&5
|
|
1871 mv -f conftest.er1 conftest.err
|
|
1872 fi
|
|
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
1874 test $ac_status = 0; } >/dev/null && {
|
|
1875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
1876 test ! -s conftest.err
|
|
1877 }; then :
|
|
1878 ac_retval=0
|
|
1879 else
|
|
1880 $as_echo "$as_me: failed program was:" >&5
|
|
1881 sed 's/^/| /' conftest.$ac_ext >&5
|
|
1882
|
|
1883 ac_retval=1
|
|
1884 fi
|
|
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
1886 as_fn_set_status $ac_retval
|
|
1887
|
|
1888 } # ac_fn_c_try_cpp
|
|
1889
|
|
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
1891 # -------------------------------------------------------
|
|
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
1893 # the include files in INCLUDES and setting the cache variable VAR
|
|
1894 # accordingly.
|
|
1895 ac_fn_c_check_header_mongrel ()
|
|
1896 {
|
|
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1900 $as_echo_n "checking for $2... " >&6; }
|
|
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
1902 $as_echo_n "(cached) " >&6
|
|
1903 fi
|
|
1904 eval ac_res=\$$3
|
|
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1906 $as_echo "$ac_res" >&6; }
|
|
1907 else
|
|
1908 # Is the header compilable?
|
|
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
|
1910 $as_echo_n "checking $2 usability... " >&6; }
|
|
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1912 /* end confdefs.h. */
|
|
1913 $4
|
|
1914 #include <$2>
|
|
1915 _ACEOF
|
|
1916 if ac_fn_c_try_compile "$LINENO"; then :
|
|
1917 ac_header_compiler=yes
|
|
1918 else
|
|
1919 ac_header_compiler=no
|
|
1920 fi
|
|
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
|
1923 $as_echo "$ac_header_compiler" >&6; }
|
|
1924
|
|
1925 # Is the header present?
|
|
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
|
1927 $as_echo_n "checking $2 presence... " >&6; }
|
|
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
1929 /* end confdefs.h. */
|
|
1930 #include <$2>
|
|
1931 _ACEOF
|
|
1932 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
1933 ac_header_preproc=yes
|
|
1934 else
|
|
1935 ac_header_preproc=no
|
|
1936 fi
|
|
1937 rm -f conftest.err conftest.$ac_ext
|
|
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
|
1939 $as_echo "$ac_header_preproc" >&6; }
|
|
1940
|
|
1941 # So? What about this header?
|
|
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
|
1943 yes:no: )
|
|
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
1948 ;;
|
|
1949 no:yes:* )
|
|
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
|
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
|
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
|
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
|
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
|
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
|
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
|
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
|
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
|
1960 ( cat <<\_ASBOX
|
|
1961 ## -------------------------- ##
|
|
1962 ## Report this to lost@l-w.ca ##
|
|
1963 ## -------------------------- ##
|
|
1964 _ASBOX
|
|
1965 ) | sed "s/^/$as_me: WARNING: /" >&2
|
|
1966 ;;
|
|
1967 esac
|
|
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
1969 $as_echo_n "checking for $2... " >&6; }
|
|
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
1971 $as_echo_n "(cached) " >&6
|
|
1972 else
|
|
1973 eval "$3=\$ac_header_compiler"
|
|
1974 fi
|
|
1975 eval ac_res=\$$3
|
|
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
1977 $as_echo "$ac_res" >&6; }
|
|
1978 fi
|
|
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
1980
|
|
1981 } # ac_fn_c_check_header_mongrel
|
|
1982
|
|
1983 # ac_fn_c_try_run LINENO
|
|
1984 # ----------------------
|
|
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
1986 # that executables *can* be run.
|
|
1987 ac_fn_c_try_run ()
|
|
1988 {
|
|
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
1990 if { { ac_try="$ac_link"
|
|
1991 case "(($ac_try" in
|
|
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
1993 *) ac_try_echo=$ac_try;;
|
|
1994 esac
|
|
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
1996 $as_echo "$ac_try_echo"; } >&5
|
|
1997 (eval "$ac_link") 2>&5
|
|
1998 ac_status=$?
|
|
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
2001 { { case "(($ac_try" in
|
|
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2003 *) ac_try_echo=$ac_try;;
|
|
2004 esac
|
|
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2006 $as_echo "$ac_try_echo"; } >&5
|
|
2007 (eval "$ac_try") 2>&5
|
|
2008 ac_status=$?
|
|
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2010 test $ac_status = 0; }; }; then :
|
|
2011 ac_retval=0
|
|
2012 else
|
|
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
2014 $as_echo "$as_me: failed program was:" >&5
|
|
2015 sed 's/^/| /' conftest.$ac_ext >&5
|
|
2016
|
|
2017 ac_retval=$ac_status
|
|
2018 fi
|
|
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2021 as_fn_set_status $ac_retval
|
|
2022
|
|
2023 } # ac_fn_c_try_run
|
|
2024
|
|
2025 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
|
2026 # -------------------------------------------------------
|
|
2027 # Tests whether HEADER exists and can be compiled using the include files in
|
|
2028 # INCLUDES, setting the cache variable VAR accordingly.
|
|
2029 ac_fn_c_check_header_compile ()
|
|
2030 {
|
|
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
2033 $as_echo_n "checking for $2... " >&6; }
|
|
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
2035 $as_echo_n "(cached) " >&6
|
|
2036 else
|
|
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2038 /* end confdefs.h. */
|
|
2039 $4
|
|
2040 #include <$2>
|
|
2041 _ACEOF
|
|
2042 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2043 eval "$3=yes"
|
|
2044 else
|
|
2045 eval "$3=no"
|
|
2046 fi
|
|
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2048 fi
|
|
2049 eval ac_res=\$$3
|
|
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
2051 $as_echo "$ac_res" >&6; }
|
|
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2053
|
|
2054 } # ac_fn_c_check_header_compile
|
|
2055
|
|
2056 # ac_fn_c_try_link LINENO
|
|
2057 # -----------------------
|
|
2058 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
2059 ac_fn_c_try_link ()
|
|
2060 {
|
|
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2062 rm -f conftest.$ac_objext conftest$ac_exeext
|
|
2063 if { { ac_try="$ac_link"
|
|
2064 case "(($ac_try" in
|
|
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
2066 *) ac_try_echo=$ac_try;;
|
|
2067 esac
|
|
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
2069 $as_echo "$ac_try_echo"; } >&5
|
|
2070 (eval "$ac_link") 2>conftest.err
|
|
2071 ac_status=$?
|
|
2072 if test -s conftest.err; then
|
|
2073 grep -v '^ *+' conftest.err >conftest.er1
|
|
2074 cat conftest.er1 >&5
|
|
2075 mv -f conftest.er1 conftest.err
|
|
2076 fi
|
|
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
2078 test $ac_status = 0; } && {
|
|
2079 test -z "$ac_c_werror_flag" ||
|
|
2080 test ! -s conftest.err
|
|
2081 } && test -s conftest$ac_exeext && {
|
|
2082 test "$cross_compiling" = yes ||
|
|
2083 $as_test_x conftest$ac_exeext
|
|
2084 }; then :
|
|
2085 ac_retval=0
|
|
2086 else
|
|
2087 $as_echo "$as_me: failed program was:" >&5
|
|
2088 sed 's/^/| /' conftest.$ac_ext >&5
|
|
2089
|
|
2090 ac_retval=1
|
|
2091 fi
|
|
2092 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
|
2093 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
|
2094 # interfere with the next link command; also delete a directory that is
|
|
2095 # left behind by Apple's compiler. We do this before executing the actions.
|
|
2096 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2098 as_fn_set_status $ac_retval
|
|
2099
|
|
2100 } # ac_fn_c_try_link
|
|
2101
|
|
2102 # ac_fn_c_check_func LINENO FUNC VAR
|
|
2103 # ----------------------------------
|
|
2104 # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
|
2105 ac_fn_c_check_func ()
|
|
2106 {
|
|
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
2109 $as_echo_n "checking for $2... " >&6; }
|
|
2110 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
2111 $as_echo_n "(cached) " >&6
|
|
2112 else
|
|
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2114 /* end confdefs.h. */
|
|
2115 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
|
2116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
2117 #define $2 innocuous_$2
|
|
2118
|
|
2119 /* System header to define __stub macros and hopefully few prototypes,
|
|
2120 which can conflict with char $2 (); below.
|
|
2121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
2122 <limits.h> exists even on freestanding compilers. */
|
|
2123
|
|
2124 #ifdef __STDC__
|
|
2125 # include <limits.h>
|
|
2126 #else
|
|
2127 # include <assert.h>
|
|
2128 #endif
|
|
2129
|
|
2130 #undef $2
|
|
2131
|
|
2132 /* Override any GCC internal prototype to avoid an error.
|
|
2133 Use char because int might match the return type of a GCC
|
|
2134 builtin and then its argument prototype would still apply. */
|
|
2135 #ifdef __cplusplus
|
|
2136 extern "C"
|
|
2137 #endif
|
|
2138 char $2 ();
|
|
2139 /* The GNU C library defines this for functions which it implements
|
|
2140 to always fail with ENOSYS. Some functions are actually named
|
|
2141 something starting with __ and the normal name is an alias. */
|
|
2142 #if defined __stub_$2 || defined __stub___$2
|
|
2143 choke me
|
|
2144 #endif
|
|
2145
|
|
2146 int
|
|
2147 main ()
|
|
2148 {
|
|
2149 return $2 ();
|
|
2150 ;
|
|
2151 return 0;
|
|
2152 }
|
|
2153 _ACEOF
|
|
2154 if ac_fn_c_try_link "$LINENO"; then :
|
|
2155 eval "$3=yes"
|
|
2156 else
|
|
2157 eval "$3=no"
|
|
2158 fi
|
|
2159 rm -f core conftest.err conftest.$ac_objext \
|
|
2160 conftest$ac_exeext conftest.$ac_ext
|
|
2161 fi
|
|
2162 eval ac_res=\$$3
|
|
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
2164 $as_echo "$ac_res" >&6; }
|
|
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2166
|
|
2167 } # ac_fn_c_check_func
|
|
2168
|
|
2169 # ac_fn_c_check_decl LINENO SYMBOL VAR
|
|
2170 # ------------------------------------
|
|
2171 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
|
|
2172 ac_fn_c_check_decl ()
|
|
2173 {
|
|
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
|
|
2176 $as_echo_n "checking whether $2 is declared... " >&6; }
|
|
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
2178 $as_echo_n "(cached) " >&6
|
|
2179 else
|
|
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2181 /* end confdefs.h. */
|
|
2182 $4
|
|
2183 int
|
|
2184 main ()
|
|
2185 {
|
|
2186 #ifndef $2
|
|
2187 (void) $2;
|
|
2188 #endif
|
|
2189
|
|
2190 ;
|
|
2191 return 0;
|
|
2192 }
|
|
2193 _ACEOF
|
|
2194 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2195 eval "$3=yes"
|
|
2196 else
|
|
2197 eval "$3=no"
|
|
2198 fi
|
|
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2200 fi
|
|
2201 eval ac_res=\$$3
|
|
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
2203 $as_echo "$ac_res" >&6; }
|
|
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2205
|
|
2206 } # ac_fn_c_check_decl
|
|
2207
|
|
2208 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
|
2209 # --------------------------------------------
|
|
2210 # Tries to find the compile-time value of EXPR in a program that includes
|
|
2211 # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
|
2212 # computed
|
|
2213 ac_fn_c_compute_int ()
|
|
2214 {
|
|
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2216 if test "$cross_compiling" = yes; then
|
|
2217 # Depending upon the size, compute the lo and hi bounds.
|
|
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2219 /* end confdefs.h. */
|
|
2220 $4
|
|
2221 int
|
|
2222 main ()
|
|
2223 {
|
|
2224 static int test_array [1 - 2 * !(($2) >= 0)];
|
|
2225 test_array [0] = 0
|
|
2226
|
|
2227 ;
|
|
2228 return 0;
|
|
2229 }
|
|
2230 _ACEOF
|
|
2231 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2232 ac_lo=0 ac_mid=0
|
|
2233 while :; do
|
|
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2235 /* end confdefs.h. */
|
|
2236 $4
|
|
2237 int
|
|
2238 main ()
|
|
2239 {
|
|
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
2241 test_array [0] = 0
|
|
2242
|
|
2243 ;
|
|
2244 return 0;
|
|
2245 }
|
|
2246 _ACEOF
|
|
2247 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2248 ac_hi=$ac_mid; break
|
|
2249 else
|
|
2250 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
|
2251 if test $ac_lo -le $ac_mid; then
|
|
2252 ac_lo= ac_hi=
|
|
2253 break
|
|
2254 fi
|
|
2255 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
|
2256 fi
|
|
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2258 done
|
|
2259 else
|
|
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2261 /* end confdefs.h. */
|
|
2262 $4
|
|
2263 int
|
|
2264 main ()
|
|
2265 {
|
|
2266 static int test_array [1 - 2 * !(($2) < 0)];
|
|
2267 test_array [0] = 0
|
|
2268
|
|
2269 ;
|
|
2270 return 0;
|
|
2271 }
|
|
2272 _ACEOF
|
|
2273 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2274 ac_hi=-1 ac_mid=-1
|
|
2275 while :; do
|
|
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2277 /* end confdefs.h. */
|
|
2278 $4
|
|
2279 int
|
|
2280 main ()
|
|
2281 {
|
|
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
|
2283 test_array [0] = 0
|
|
2284
|
|
2285 ;
|
|
2286 return 0;
|
|
2287 }
|
|
2288 _ACEOF
|
|
2289 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2290 ac_lo=$ac_mid; break
|
|
2291 else
|
|
2292 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
|
2293 if test $ac_mid -le $ac_hi; then
|
|
2294 ac_lo= ac_hi=
|
|
2295 break
|
|
2296 fi
|
|
2297 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
|
2298 fi
|
|
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2300 done
|
|
2301 else
|
|
2302 ac_lo= ac_hi=
|
|
2303 fi
|
|
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2305 fi
|
|
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2307 # Binary search between lo and hi bounds.
|
|
2308 while test "x$ac_lo" != "x$ac_hi"; do
|
|
2309 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
|
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2311 /* end confdefs.h. */
|
|
2312 $4
|
|
2313 int
|
|
2314 main ()
|
|
2315 {
|
|
2316 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
|
2317 test_array [0] = 0
|
|
2318
|
|
2319 ;
|
|
2320 return 0;
|
|
2321 }
|
|
2322 _ACEOF
|
|
2323 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2324 ac_hi=$ac_mid
|
|
2325 else
|
|
2326 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
|
2327 fi
|
|
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2329 done
|
|
2330 case $ac_lo in #((
|
|
2331 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
|
2332 '') ac_retval=1 ;;
|
|
2333 esac
|
|
2334 else
|
|
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2336 /* end confdefs.h. */
|
|
2337 $4
|
|
2338 static long int longval () { return $2; }
|
|
2339 static unsigned long int ulongval () { return $2; }
|
|
2340 #include <stdio.h>
|
|
2341 #include <stdlib.h>
|
|
2342 int
|
|
2343 main ()
|
|
2344 {
|
|
2345
|
|
2346 FILE *f = fopen ("conftest.val", "w");
|
|
2347 if (! f)
|
|
2348 return 1;
|
|
2349 if (($2) < 0)
|
|
2350 {
|
|
2351 long int i = longval ();
|
|
2352 if (i != ($2))
|
|
2353 return 1;
|
|
2354 fprintf (f, "%ld", i);
|
|
2355 }
|
|
2356 else
|
|
2357 {
|
|
2358 unsigned long int i = ulongval ();
|
|
2359 if (i != ($2))
|
|
2360 return 1;
|
|
2361 fprintf (f, "%lu", i);
|
|
2362 }
|
|
2363 /* Do not output a trailing newline, as this causes \r\n confusion
|
|
2364 on some platforms. */
|
|
2365 return ferror (f) || fclose (f) != 0;
|
|
2366
|
|
2367 ;
|
|
2368 return 0;
|
|
2369 }
|
|
2370 _ACEOF
|
|
2371 if ac_fn_c_try_run "$LINENO"; then :
|
|
2372 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
|
2373 else
|
|
2374 ac_retval=1
|
|
2375 fi
|
|
2376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
2377 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
2378 rm -f conftest.val
|
|
2379
|
|
2380 fi
|
|
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2382 as_fn_set_status $ac_retval
|
|
2383
|
|
2384 } # ac_fn_c_compute_int
|
|
2385
|
|
2386 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
|
2387 # -------------------------------------------
|
|
2388 # Tests whether TYPE exists after having included INCLUDES, setting cache
|
|
2389 # variable VAR accordingly.
|
|
2390 ac_fn_c_check_type ()
|
|
2391 {
|
|
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
|
2394 $as_echo_n "checking for $2... " >&6; }
|
|
2395 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
2396 $as_echo_n "(cached) " >&6
|
|
2397 else
|
|
2398 eval "$3=no"
|
|
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2400 /* end confdefs.h. */
|
|
2401 $4
|
|
2402 int
|
|
2403 main ()
|
|
2404 {
|
|
2405 if (sizeof ($2))
|
|
2406 return 0;
|
|
2407 ;
|
|
2408 return 0;
|
|
2409 }
|
|
2410 _ACEOF
|
|
2411 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
2413 /* end confdefs.h. */
|
|
2414 $4
|
|
2415 int
|
|
2416 main ()
|
|
2417 {
|
|
2418 if (sizeof (($2)))
|
|
2419 return 0;
|
|
2420 ;
|
|
2421 return 0;
|
|
2422 }
|
|
2423 _ACEOF
|
|
2424 if ac_fn_c_try_compile "$LINENO"; then :
|
|
2425
|
|
2426 else
|
|
2427 eval "$3=yes"
|
|
2428 fi
|
|
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2430 fi
|
|
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
2432 fi
|
|
2433 eval ac_res=\$$3
|
|
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
2435 $as_echo "$ac_res" >&6; }
|
|
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
|
2437
|
|
2438 } # ac_fn_c_check_type
|
|
2439 cat >config.log <<_ACEOF
|
|
2440 This file contains any messages produced by compilers while
|
|
2441 running configure, to aid debugging if configure makes a mistake.
|
|
2442
|
|
2443 It was created by LWTools $as_me 3.0, which was
|
|
2444 generated by GNU Autoconf 2.65. Invocation command line was
|
|
2445
|
|
2446 $ $0 $@
|
|
2447
|
|
2448 _ACEOF
|
|
2449 exec 5>>config.log
|
|
2450 {
|
|
2451 cat <<_ASUNAME
|
|
2452 ## --------- ##
|
|
2453 ## Platform. ##
|
|
2454 ## --------- ##
|
|
2455
|
|
2456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
2457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
2458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
2459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
2460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
2461
|
|
2462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
2463 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
2464
|
|
2465 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
2466 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
2467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
2468 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
2469 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
2470 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
2471 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
2472
|
|
2473 _ASUNAME
|
|
2474
|
|
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2476 for as_dir in $PATH
|
|
2477 do
|
|
2478 IFS=$as_save_IFS
|
|
2479 test -z "$as_dir" && as_dir=.
|
|
2480 $as_echo "PATH: $as_dir"
|
|
2481 done
|
|
2482 IFS=$as_save_IFS
|
|
2483
|
|
2484 } >&5
|
|
2485
|
|
2486 cat >&5 <<_ACEOF
|
|
2487
|
|
2488
|
|
2489 ## ----------- ##
|
|
2490 ## Core tests. ##
|
|
2491 ## ----------- ##
|
|
2492
|
|
2493 _ACEOF
|
|
2494
|
|
2495
|
|
2496 # Keep a trace of the command line.
|
|
2497 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
2498 # Strip out --silent because we don't want to record it for future runs.
|
|
2499 # Also quote any args containing shell meta-characters.
|
|
2500 # Make two passes to allow for proper duplicate-argument suppression.
|
|
2501 ac_configure_args=
|
|
2502 ac_configure_args0=
|
|
2503 ac_configure_args1=
|
|
2504 ac_must_keep_next=false
|
|
2505 for ac_pass in 1 2
|
|
2506 do
|
|
2507 for ac_arg
|
|
2508 do
|
|
2509 case $ac_arg in
|
|
2510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
2511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
2512 | -silent | --silent | --silen | --sile | --sil)
|
|
2513 continue ;;
|
|
2514 *\'*)
|
|
2515 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
2516 esac
|
|
2517 case $ac_pass in
|
|
2518 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
|
2519 2)
|
|
2520 as_fn_append ac_configure_args1 " '$ac_arg'"
|
|
2521 if test $ac_must_keep_next = true; then
|
|
2522 ac_must_keep_next=false # Got value, back to normal.
|
|
2523 else
|
|
2524 case $ac_arg in
|
|
2525 *=* | --config-cache | -C | -disable-* | --disable-* \
|
|
2526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
2527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
2528 | -with-* | --with-* | -without-* | --without-* | --x)
|
|
2529 case "$ac_configure_args0 " in
|
|
2530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
2531 esac
|
|
2532 ;;
|
|
2533 -* ) ac_must_keep_next=true ;;
|
|
2534 esac
|
|
2535 fi
|
|
2536 as_fn_append ac_configure_args " '$ac_arg'"
|
|
2537 ;;
|
|
2538 esac
|
|
2539 done
|
|
2540 done
|
|
2541 { ac_configure_args0=; unset ac_configure_args0;}
|
|
2542 { ac_configure_args1=; unset ac_configure_args1;}
|
|
2543
|
|
2544 # When interrupted or exit'd, cleanup temporary files, and complete
|
|
2545 # config.log. We remove comments because anyway the quotes in there
|
|
2546 # would cause problems or look ugly.
|
|
2547 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
2548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
2549 trap 'exit_status=$?
|
|
2550 # Save into config.log some information that might help in debugging.
|
|
2551 {
|
|
2552 echo
|
|
2553
|
|
2554 cat <<\_ASBOX
|
|
2555 ## ---------------- ##
|
|
2556 ## Cache variables. ##
|
|
2557 ## ---------------- ##
|
|
2558 _ASBOX
|
|
2559 echo
|
|
2560 # The following way of writing the cache mishandles newlines in values,
|
|
2561 (
|
|
2562 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
2563 eval ac_val=\$$ac_var
|
|
2564 case $ac_val in #(
|
|
2565 *${as_nl}*)
|
|
2566 case $ac_var in #(
|
|
2567 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
2568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
2569 esac
|
|
2570 case $ac_var in #(
|
|
2571 _ | IFS | as_nl) ;; #(
|
|
2572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
2573 *) { eval $ac_var=; unset $ac_var;} ;;
|
|
2574 esac ;;
|
|
2575 esac
|
|
2576 done
|
|
2577 (set) 2>&1 |
|
|
2578 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
2579 *${as_nl}ac_space=\ *)
|
|
2580 sed -n \
|
|
2581 "s/'\''/'\''\\\\'\'''\''/g;
|
|
2582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
2583 ;; #(
|
|
2584 *)
|
|
2585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
2586 ;;
|
|
2587 esac |
|
|
2588 sort
|
|
2589 )
|
|
2590 echo
|
|
2591
|
|
2592 cat <<\_ASBOX
|
|
2593 ## ----------------- ##
|
|
2594 ## Output variables. ##
|
|
2595 ## ----------------- ##
|
|
2596 _ASBOX
|
|
2597 echo
|
|
2598 for ac_var in $ac_subst_vars
|
|
2599 do
|
|
2600 eval ac_val=\$$ac_var
|
|
2601 case $ac_val in
|
|
2602 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2603 esac
|
|
2604 $as_echo "$ac_var='\''$ac_val'\''"
|
|
2605 done | sort
|
|
2606 echo
|
|
2607
|
|
2608 if test -n "$ac_subst_files"; then
|
|
2609 cat <<\_ASBOX
|
|
2610 ## ------------------- ##
|
|
2611 ## File substitutions. ##
|
|
2612 ## ------------------- ##
|
|
2613 _ASBOX
|
|
2614 echo
|
|
2615 for ac_var in $ac_subst_files
|
|
2616 do
|
|
2617 eval ac_val=\$$ac_var
|
|
2618 case $ac_val in
|
|
2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
2620 esac
|
|
2621 $as_echo "$ac_var='\''$ac_val'\''"
|
|
2622 done | sort
|
|
2623 echo
|
|
2624 fi
|
|
2625
|
|
2626 if test -s confdefs.h; then
|
|
2627 cat <<\_ASBOX
|
|
2628 ## ----------- ##
|
|
2629 ## confdefs.h. ##
|
|
2630 ## ----------- ##
|
|
2631 _ASBOX
|
|
2632 echo
|
|
2633 cat confdefs.h
|
|
2634 echo
|
|
2635 fi
|
|
2636 test "$ac_signal" != 0 &&
|
|
2637 $as_echo "$as_me: caught signal $ac_signal"
|
|
2638 $as_echo "$as_me: exit $exit_status"
|
|
2639 } >&5
|
|
2640 rm -f core *.core core.conftest.* &&
|
|
2641 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
2642 exit $exit_status
|
|
2643 ' 0
|
|
2644 for ac_signal in 1 2 13 15; do
|
|
2645 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
|
2646 done
|
|
2647 ac_signal=0
|
|
2648
|
|
2649 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
2650 rm -f -r conftest* confdefs.h
|
|
2651
|
|
2652 $as_echo "/* confdefs.h */" > confdefs.h
|
|
2653
|
|
2654 # Predefined preprocessor variables.
|
|
2655
|
|
2656 cat >>confdefs.h <<_ACEOF
|
|
2657 #define PACKAGE_NAME "$PACKAGE_NAME"
|
|
2658 _ACEOF
|
|
2659
|
|
2660 cat >>confdefs.h <<_ACEOF
|
|
2661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
2662 _ACEOF
|
|
2663
|
|
2664 cat >>confdefs.h <<_ACEOF
|
|
2665 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
2666 _ACEOF
|
|
2667
|
|
2668 cat >>confdefs.h <<_ACEOF
|
|
2669 #define PACKAGE_STRING "$PACKAGE_STRING"
|
|
2670 _ACEOF
|
|
2671
|
|
2672 cat >>confdefs.h <<_ACEOF
|
|
2673 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
2674 _ACEOF
|
|
2675
|
|
2676 cat >>confdefs.h <<_ACEOF
|
|
2677 #define PACKAGE_URL "$PACKAGE_URL"
|
|
2678 _ACEOF
|
|
2679
|
|
2680
|
|
2681 # Let the site file select an alternate cache file if it wants to.
|
|
2682 # Prefer an explicitly selected file to automatically selected ones.
|
|
2683 ac_site_file1=NONE
|
|
2684 ac_site_file2=NONE
|
|
2685 if test -n "$CONFIG_SITE"; then
|
|
2686 ac_site_file1=$CONFIG_SITE
|
|
2687 elif test "x$prefix" != xNONE; then
|
|
2688 ac_site_file1=$prefix/share/config.site
|
|
2689 ac_site_file2=$prefix/etc/config.site
|
|
2690 else
|
|
2691 ac_site_file1=$ac_default_prefix/share/config.site
|
|
2692 ac_site_file2=$ac_default_prefix/etc/config.site
|
|
2693 fi
|
|
2694 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
|
2695 do
|
|
2696 test "x$ac_site_file" = xNONE && continue
|
|
2697 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
|
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
|
2699 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
2700 sed 's/^/| /' "$ac_site_file" >&5
|
|
2701 . "$ac_site_file"
|
|
2702 fi
|
|
2703 done
|
|
2704
|
|
2705 if test -r "$cache_file"; then
|
|
2706 # Some versions of bash will fail to source /dev/null (special files
|
|
2707 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
|
2708 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
|
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
|
2710 $as_echo "$as_me: loading cache $cache_file" >&6;}
|
|
2711 case $cache_file in
|
|
2712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
2713 *) . "./$cache_file";;
|
|
2714 esac
|
|
2715 fi
|
|
2716 else
|
|
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
|
2718 $as_echo "$as_me: creating cache $cache_file" >&6;}
|
|
2719 >$cache_file
|
|
2720 fi
|
|
2721
|
|
2722 gl_func_list="$gl_func_list flockfile"
|
|
2723 gl_func_list="$gl_func_list funlockfile"
|
|
2724 gl_header_list="$gl_header_list features.h"
|
|
2725 gl_header_list="$gl_header_list linewrap.h"
|
|
2726 gl_header_list="$gl_header_list errno.h"
|
|
2727 gl_header_list="$gl_header_list float.h"
|
|
2728 gl_getopt_required=GNU
|
|
2729 gl_header_list="$gl_header_list getopt.h"
|
|
2730 gl_header_list="$gl_header_list sys/mman.h"
|
|
2731 gl_func_list="$gl_func_list mprotect"
|
|
2732 gl_func_list="$gl_func_list sleep"
|
|
2733 gl_header_list="$gl_header_list stddef.h"
|
|
2734 gl_header_list="$gl_header_list stdint.h"
|
|
2735 gl_header_list="$gl_header_list wchar.h"
|
|
2736 gl_header_list="$gl_header_list stdio.h"
|
|
2737 gl_header_list="$gl_header_list stdlib.h"
|
|
2738 gl_header_list="$gl_header_list sys/socket.h"
|
|
2739 gl_header_list="$gl_header_list string.h"
|
|
2740 gl_header_list="$gl_header_list strings.h"
|
|
2741 gl_func_list="$gl_func_list strndup"
|
|
2742 gl_header_list="$gl_header_list sysexits.h"
|
|
2743 gl_header_list="$gl_header_list unistd.h"
|
|
2744 gl_func_list="$gl_func_list vasnprintf"
|
|
2745 # Check that the precious variables saved in the cache have kept the same
|
|
2746 # value.
|
|
2747 ac_cache_corrupted=false
|
|
2748 for ac_var in $ac_precious_vars; do
|
|
2749 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
2750 eval ac_new_set=\$ac_env_${ac_var}_set
|
|
2751 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
2752 eval ac_new_val=\$ac_env_${ac_var}_value
|
|
2753 case $ac_old_set,$ac_new_set in
|
|
2754 set,)
|
|
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
2756 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
2757 ac_cache_corrupted=: ;;
|
|
2758 ,set)
|
|
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
|
2760 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
2761 ac_cache_corrupted=: ;;
|
|
2762 ,);;
|
|
2763 *)
|
|
2764 if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
2765 # differences in whitespace do not lead to failure.
|
|
2766 ac_old_val_w=`echo x $ac_old_val`
|
|
2767 ac_new_val_w=`echo x $ac_new_val`
|
|
2768 if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
|
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
|
2770 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
2771 ac_cache_corrupted=:
|
|
2772 else
|
|
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
|
2774 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
|
2775 eval $ac_var=\$ac_old_val
|
|
2776 fi
|
|
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
|
2778 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
|
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
|
2780 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
|
2781 fi;;
|
|
2782 esac
|
|
2783 # Pass precious variables to config.status.
|
|
2784 if test "$ac_new_set" = set; then
|
|
2785 case $ac_new_val in
|
|
2786 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
2787 *) ac_arg=$ac_var=$ac_new_val ;;
|
|
2788 esac
|
|
2789 case " $ac_configure_args " in
|
|
2790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
2791 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
|
2792 esac
|
|
2793 fi
|
|
2794 done
|
|
2795 if $ac_cache_corrupted; then
|
|
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
|
2799 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
2800 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
|
2801 fi
|
|
2802 ## -------------------- ##
|
|
2803 ## Main body of script. ##
|
|
2804 ## -------------------- ##
|
|
2805
|
|
2806 ac_ext=c
|
|
2807 ac_cpp='$CPP $CPPFLAGS'
|
|
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
2811
|
|
2812
|
|
2813 am__api_version='1.11'
|
|
2814
|
|
2815 ac_aux_dir=
|
|
2816 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
2817 for ac_t in install-sh install.sh shtool; do
|
|
2818 if test -f "$ac_dir/$ac_t"; then
|
|
2819 ac_aux_dir=$ac_dir
|
|
2820 ac_install_sh="$ac_aux_dir/$ac_t -c"
|
|
2821 break 2
|
|
2822 fi
|
|
2823 done
|
|
2824 done
|
|
2825 if test -z "$ac_aux_dir"; then
|
|
2826 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
|
2827 fi
|
|
2828
|
|
2829 # These three variables are undocumented and unsupported,
|
|
2830 # and are intended to be withdrawn in a future Autoconf release.
|
|
2831 # They can cause serious problems if a builder's source tree is in a directory
|
|
2832 # whose full name contains unusual characters.
|
|
2833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
2834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
2835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
2836
|
|
2837
|
|
2838 # Find a good install program. We prefer a C program (faster),
|
|
2839 # so one script is as good as another. But avoid the broken or
|
|
2840 # incompatible versions:
|
|
2841 # SysV /etc/install, /usr/sbin/install
|
|
2842 # SunOS /usr/etc/install
|
|
2843 # IRIX /sbin/install
|
|
2844 # AIX /bin/install
|
|
2845 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
|
2846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
2847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
2848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
2849 # OS/2's system install, which has a completely different semantic
|
|
2850 # ./install, which can be erroneously created by make from ./install.sh.
|
|
2851 # Reject install programs that cannot install multiple files.
|
|
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
|
2853 $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
|
2854 if test -z "$INSTALL"; then
|
|
2855 if test "${ac_cv_path_install+set}" = set; then :
|
|
2856 $as_echo_n "(cached) " >&6
|
|
2857 else
|
|
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
2859 for as_dir in $PATH
|
|
2860 do
|
|
2861 IFS=$as_save_IFS
|
|
2862 test -z "$as_dir" && as_dir=.
|
|
2863 # Account for people who put trailing slashes in PATH elements.
|
|
2864 case $as_dir/ in #((
|
|
2865 ./ | .// | /[cC]/* | \
|
|
2866 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
|
2867 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
|
2868 /usr/ucb/* ) ;;
|
|
2869 *)
|
|
2870 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
2871 # Don't use installbsd from OSF since it installs stuff as root
|
|
2872 # by default.
|
|
2873 for ac_prog in ginstall scoinst install; do
|
|
2874 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
2875 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
|
2876 if test $ac_prog = install &&
|
|
2877 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
2878 # AIX install. It has an incompatible calling convention.
|
|
2879 :
|
|
2880 elif test $ac_prog = install &&
|
|
2881 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
2882 # program-specific install script used by HP pwplus--don't use.
|
|
2883 :
|
|
2884 else
|
|
2885 rm -rf conftest.one conftest.two conftest.dir
|
|
2886 echo one > conftest.one
|
|
2887 echo two > conftest.two
|
|
2888 mkdir conftest.dir
|
|
2889 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
|
2890 test -s conftest.one && test -s conftest.two &&
|
|
2891 test -s conftest.dir/conftest.one &&
|
|
2892 test -s conftest.dir/conftest.two
|
|
2893 then
|
|
2894 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
2895 break 3
|
|
2896 fi
|
|
2897 fi
|
|
2898 fi
|
|
2899 done
|
|
2900 done
|
|
2901 ;;
|
|
2902 esac
|
|
2903
|
|
2904 done
|
|
2905 IFS=$as_save_IFS
|
|
2906
|
|
2907 rm -rf conftest.one conftest.two conftest.dir
|
|
2908
|
|
2909 fi
|
|
2910 if test "${ac_cv_path_install+set}" = set; then
|
|
2911 INSTALL=$ac_cv_path_install
|
|
2912 else
|
|
2913 # As a last resort, use the slow shell script. Don't cache a
|
|
2914 # value for INSTALL within a source directory, because that will
|
|
2915 # break other packages using the cache if that directory is
|
|
2916 # removed, or if the value is a relative name.
|
|
2917 INSTALL=$ac_install_sh
|
|
2918 fi
|
|
2919 fi
|
|
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
|
2921 $as_echo "$INSTALL" >&6; }
|
|
2922
|
|
2923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
2924 # It thinks the first close brace ends the variable substitution.
|
|
2925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
2926
|
|
2927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
2928
|
|
2929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
2930
|
|
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
|
2932 $as_echo_n "checking whether build environment is sane... " >&6; }
|
|
2933 # Just in case
|
|
2934 sleep 1
|
|
2935 echo timestamp > conftest.file
|
|
2936 # Reject unsafe characters in $srcdir or the absolute working directory
|
|
2937 # name. Accept space and tab only in the latter.
|
|
2938 am_lf='
|
|
2939 '
|
|
2940 case `pwd` in
|
|
2941 *[\\\"\#\$\&\'\`$am_lf]*)
|
|
2942 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
|
|
2943 esac
|
|
2944 case $srcdir in
|
|
2945 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
|
2946 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
|
|
2947 esac
|
|
2948
|
|
2949 # Do `set' in a subshell so we don't clobber the current shell's
|
|
2950 # arguments. Must try -L first in case configure is actually a
|
|
2951 # symlink; some systems play weird games with the mod time of symlinks
|
|
2952 # (eg FreeBSD returns the mod time of the symlink's containing
|
|
2953 # directory).
|
|
2954 if (
|
|
2955 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
2956 if test "$*" = "X"; then
|
|
2957 # -L didn't work.
|
|
2958 set X `ls -t "$srcdir/configure" conftest.file`
|
|
2959 fi
|
|
2960 rm -f conftest.file
|
|
2961 if test "$*" != "X $srcdir/configure conftest.file" \
|
|
2962 && test "$*" != "X conftest.file $srcdir/configure"; then
|
|
2963
|
|
2964 # If neither matched, then we have a broken ls. This can happen
|
|
2965 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
2966 # broken ls alias from the environment. This has actually
|
|
2967 # happened. Such a system could not be considered "sane".
|
|
2968 as_fn_error "ls -t appears to fail. Make sure there is not a broken
|
|
2969 alias in your environment" "$LINENO" 5
|
|
2970 fi
|
|
2971
|
|
2972 test "$2" = conftest.file
|
|
2973 )
|
|
2974 then
|
|
2975 # Ok.
|
|
2976 :
|
|
2977 else
|
|
2978 as_fn_error "newly created file is older than distributed files!
|
|
2979 Check your system clock" "$LINENO" 5
|
|
2980 fi
|
|
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
2982 $as_echo "yes" >&6; }
|
|
2983 test "$program_prefix" != NONE &&
|
|
2984 program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
|
2985 # Use a double $ so make ignores it.
|
|
2986 test "$program_suffix" != NONE &&
|
|
2987 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
|
2988 # Double any \ or $.
|
|
2989 # By default was `s,x,x', remove it if useless.
|
|
2990 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
|
2991 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
|
2992
|
|
2993 # expand $ac_aux_dir to an absolute path
|
|
2994 am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
2995
|
|
2996 if test x"${MISSING+set}" != xset; then
|
|
2997 case $am_aux_dir in
|
|
2998 *\ * | *\ *)
|
|
2999 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
3000 *)
|
|
3001 MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
3002 esac
|
|
3003 fi
|
|
3004 # Use eval to expand $SHELL
|
|
3005 if eval "$MISSING --run true"; then
|
|
3006 am_missing_run="$MISSING --run "
|
|
3007 else
|
|
3008 am_missing_run=
|
|
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
|
|
3010 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
|
3011 fi
|
|
3012
|
|
3013 if test x"${install_sh}" != xset; then
|
|
3014 case $am_aux_dir in
|
|
3015 *\ * | *\ *)
|
|
3016 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
3017 *)
|
|
3018 install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
3019 esac
|
|
3020 fi
|
|
3021
|
|
3022 # Installed binaries are usually stripped using `strip' when the user
|
|
3023 # run `make install-strip'. However `strip' might not be the right
|
|
3024 # tool to use in cross-compilation environments, therefore Automake
|
|
3025 # will honor the `STRIP' environment variable to overrule this program.
|
|
3026 if test "$cross_compiling" != no; then
|
|
3027 if test -n "$ac_tool_prefix"; then
|
|
3028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
3029 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3031 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3032 if test "${ac_cv_prog_STRIP+set}" = set; then :
|
|
3033 $as_echo_n "(cached) " >&6
|
|
3034 else
|
|
3035 if test -n "$STRIP"; then
|
|
3036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
3037 else
|
|
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3039 for as_dir in $PATH
|
|
3040 do
|
|
3041 IFS=$as_save_IFS
|
|
3042 test -z "$as_dir" && as_dir=.
|
|
3043 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3047 break 2
|
|
3048 fi
|
|
3049 done
|
|
3050 done
|
|
3051 IFS=$as_save_IFS
|
|
3052
|
|
3053 fi
|
|
3054 fi
|
|
3055 STRIP=$ac_cv_prog_STRIP
|
|
3056 if test -n "$STRIP"; then
|
|
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
|
3058 $as_echo "$STRIP" >&6; }
|
|
3059 else
|
|
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3061 $as_echo "no" >&6; }
|
|
3062 fi
|
|
3063
|
|
3064
|
|
3065 fi
|
|
3066 if test -z "$ac_cv_prog_STRIP"; then
|
|
3067 ac_ct_STRIP=$STRIP
|
|
3068 # Extract the first word of "strip", so it can be a program name with args.
|
|
3069 set dummy strip; ac_word=$2
|
|
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3071 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
|
|
3073 $as_echo_n "(cached) " >&6
|
|
3074 else
|
|
3075 if test -n "$ac_ct_STRIP"; then
|
|
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
3077 else
|
|
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3079 for as_dir in $PATH
|
|
3080 do
|
|
3081 IFS=$as_save_IFS
|
|
3082 test -z "$as_dir" && as_dir=.
|
|
3083 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3085 ac_cv_prog_ac_ct_STRIP="strip"
|
|
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3087 break 2
|
|
3088 fi
|
|
3089 done
|
|
3090 done
|
|
3091 IFS=$as_save_IFS
|
|
3092
|
|
3093 fi
|
|
3094 fi
|
|
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
3096 if test -n "$ac_ct_STRIP"; then
|
|
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
|
3098 $as_echo "$ac_ct_STRIP" >&6; }
|
|
3099 else
|
|
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3101 $as_echo "no" >&6; }
|
|
3102 fi
|
|
3103
|
|
3104 if test "x$ac_ct_STRIP" = x; then
|
|
3105 STRIP=":"
|
|
3106 else
|
|
3107 case $cross_compiling:$ac_tool_warned in
|
|
3108 yes:)
|
|
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3111 ac_tool_warned=yes ;;
|
|
3112 esac
|
|
3113 STRIP=$ac_ct_STRIP
|
|
3114 fi
|
|
3115 else
|
|
3116 STRIP="$ac_cv_prog_STRIP"
|
|
3117 fi
|
|
3118
|
|
3119 fi
|
|
3120 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
3121
|
|
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
|
3123 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
|
3124 if test -z "$MKDIR_P"; then
|
|
3125 if test "${ac_cv_path_mkdir+set}" = set; then :
|
|
3126 $as_echo_n "(cached) " >&6
|
|
3127 else
|
|
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3129 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
|
3130 do
|
|
3131 IFS=$as_save_IFS
|
|
3132 test -z "$as_dir" && as_dir=.
|
|
3133 for ac_prog in mkdir gmkdir; do
|
|
3134 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3135 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
|
3136 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
|
3137 'mkdir (GNU coreutils) '* | \
|
|
3138 'mkdir (coreutils) '* | \
|
|
3139 'mkdir (fileutils) '4.1*)
|
|
3140 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
|
3141 break 3;;
|
|
3142 esac
|
|
3143 done
|
|
3144 done
|
|
3145 done
|
|
3146 IFS=$as_save_IFS
|
|
3147
|
|
3148 fi
|
|
3149
|
|
3150 test -d ./--version && rmdir ./--version
|
|
3151 if test "${ac_cv_path_mkdir+set}" = set; then
|
|
3152 MKDIR_P="$ac_cv_path_mkdir -p"
|
|
3153 else
|
|
3154 # As a last resort, use the slow shell script. Don't cache a
|
|
3155 # value for MKDIR_P within a source directory, because that will
|
|
3156 # break other packages using the cache if that directory is
|
|
3157 # removed, or if the value is a relative name.
|
|
3158 MKDIR_P="$ac_install_sh -d"
|
|
3159 fi
|
|
3160 fi
|
|
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
|
3162 $as_echo "$MKDIR_P" >&6; }
|
|
3163
|
|
3164 mkdir_p="$MKDIR_P"
|
|
3165 case $mkdir_p in
|
|
3166 [\\/$]* | ?:[\\/]*) ;;
|
|
3167 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
3168 esac
|
|
3169
|
|
3170 for ac_prog in gawk mawk nawk awk
|
|
3171 do
|
|
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3173 set dummy $ac_prog; ac_word=$2
|
|
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3175 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3176 if test "${ac_cv_prog_AWK+set}" = set; then :
|
|
3177 $as_echo_n "(cached) " >&6
|
|
3178 else
|
|
3179 if test -n "$AWK"; then
|
|
3180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
3181 else
|
|
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3183 for as_dir in $PATH
|
|
3184 do
|
|
3185 IFS=$as_save_IFS
|
|
3186 test -z "$as_dir" && as_dir=.
|
|
3187 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3189 ac_cv_prog_AWK="$ac_prog"
|
|
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3191 break 2
|
|
3192 fi
|
|
3193 done
|
|
3194 done
|
|
3195 IFS=$as_save_IFS
|
|
3196
|
|
3197 fi
|
|
3198 fi
|
|
3199 AWK=$ac_cv_prog_AWK
|
|
3200 if test -n "$AWK"; then
|
|
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
|
3202 $as_echo "$AWK" >&6; }
|
|
3203 else
|
|
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3205 $as_echo "no" >&6; }
|
|
3206 fi
|
|
3207
|
|
3208
|
|
3209 test -n "$AWK" && break
|
|
3210 done
|
|
3211
|
|
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
3213 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
|
3214 set x ${MAKE-make}
|
|
3215 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
3216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
3217 $as_echo_n "(cached) " >&6
|
|
3218 else
|
|
3219 cat >conftest.make <<\_ACEOF
|
|
3220 SHELL = /bin/sh
|
|
3221 all:
|
|
3222 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
3223 _ACEOF
|
|
3224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
3225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
3226 *@@@%%%=?*=@@@%%%*)
|
|
3227 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
3228 *)
|
|
3229 eval ac_cv_prog_make_${ac_make}_set=no;;
|
|
3230 esac
|
|
3231 rm -f conftest.make
|
|
3232 fi
|
|
3233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
|
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
3235 $as_echo "yes" >&6; }
|
|
3236 SET_MAKE=
|
|
3237 else
|
|
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3239 $as_echo "no" >&6; }
|
|
3240 SET_MAKE="MAKE=${MAKE-make}"
|
|
3241 fi
|
|
3242
|
|
3243 rm -rf .tst 2>/dev/null
|
|
3244 mkdir .tst 2>/dev/null
|
|
3245 if test -d .tst; then
|
|
3246 am__leading_dot=.
|
|
3247 else
|
|
3248 am__leading_dot=_
|
|
3249 fi
|
|
3250 rmdir .tst 2>/dev/null
|
|
3251
|
|
3252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
3253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
3254 # is not polluted with repeated "-I."
|
|
3255 am__isrc=' -I$(srcdir)'
|
|
3256 # test to see if srcdir already configured
|
|
3257 if test -f $srcdir/config.status; then
|
|
3258 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
|
3259 fi
|
|
3260 fi
|
|
3261
|
|
3262 # test whether we have cygpath
|
|
3263 if test -z "$CYGPATH_W"; then
|
|
3264 if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
3265 CYGPATH_W='cygpath -w'
|
|
3266 else
|
|
3267 CYGPATH_W=echo
|
|
3268 fi
|
|
3269 fi
|
|
3270
|
|
3271
|
|
3272 # Define the identity of the package.
|
|
3273 PACKAGE='lwtools'
|
|
3274 VERSION='3.0'
|
|
3275
|
|
3276
|
|
3277 cat >>confdefs.h <<_ACEOF
|
|
3278 #define PACKAGE "$PACKAGE"
|
|
3279 _ACEOF
|
|
3280
|
|
3281
|
|
3282 cat >>confdefs.h <<_ACEOF
|
|
3283 #define VERSION "$VERSION"
|
|
3284 _ACEOF
|
|
3285
|
|
3286 # Some tools Automake needs.
|
|
3287
|
|
3288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
|
3289
|
|
3290
|
|
3291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
|
3292
|
|
3293
|
|
3294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
|
3295
|
|
3296
|
|
3297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
|
3298
|
|
3299
|
|
3300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
|
3301
|
|
3302 # We need awk for the "check" target. The system "awk" is bad on
|
|
3303 # some platforms.
|
|
3304 # Always define AMTAR for backward compatibility.
|
|
3305
|
|
3306 AMTAR=${AMTAR-"${am_missing_run}tar"}
|
|
3307
|
|
3308 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
|
3309
|
|
3310
|
|
3311
|
|
3312
|
|
3313
|
|
3314 ac_ext=c
|
|
3315 ac_cpp='$CPP $CPPFLAGS'
|
|
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
3319 if test -n "$ac_tool_prefix"; then
|
|
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3323 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3324 if test "${ac_cv_prog_CC+set}" = set; then :
|
|
3325 $as_echo_n "(cached) " >&6
|
|
3326 else
|
|
3327 if test -n "$CC"; then
|
|
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3329 else
|
|
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3331 for as_dir in $PATH
|
|
3332 do
|
|
3333 IFS=$as_save_IFS
|
|
3334 test -z "$as_dir" && as_dir=.
|
|
3335 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3339 break 2
|
|
3340 fi
|
|
3341 done
|
|
3342 done
|
|
3343 IFS=$as_save_IFS
|
|
3344
|
|
3345 fi
|
|
3346 fi
|
|
3347 CC=$ac_cv_prog_CC
|
|
3348 if test -n "$CC"; then
|
|
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3350 $as_echo "$CC" >&6; }
|
|
3351 else
|
|
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3353 $as_echo "no" >&6; }
|
|
3354 fi
|
|
3355
|
|
3356
|
|
3357 fi
|
|
3358 if test -z "$ac_cv_prog_CC"; then
|
|
3359 ac_ct_CC=$CC
|
|
3360 # Extract the first word of "gcc", so it can be a program name with args.
|
|
3361 set dummy gcc; ac_word=$2
|
|
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3363 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
|
3365 $as_echo_n "(cached) " >&6
|
|
3366 else
|
|
3367 if test -n "$ac_ct_CC"; then
|
|
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
3369 else
|
|
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3371 for as_dir in $PATH
|
|
3372 do
|
|
3373 IFS=$as_save_IFS
|
|
3374 test -z "$as_dir" && as_dir=.
|
|
3375 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3377 ac_cv_prog_ac_ct_CC="gcc"
|
|
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3379 break 2
|
|
3380 fi
|
|
3381 done
|
|
3382 done
|
|
3383 IFS=$as_save_IFS
|
|
3384
|
|
3385 fi
|
|
3386 fi
|
|
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
3388 if test -n "$ac_ct_CC"; then
|
|
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3390 $as_echo "$ac_ct_CC" >&6; }
|
|
3391 else
|
|
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3393 $as_echo "no" >&6; }
|
|
3394 fi
|
|
3395
|
|
3396 if test "x$ac_ct_CC" = x; then
|
|
3397 CC=""
|
|
3398 else
|
|
3399 case $cross_compiling:$ac_tool_warned in
|
|
3400 yes:)
|
|
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3403 ac_tool_warned=yes ;;
|
|
3404 esac
|
|
3405 CC=$ac_ct_CC
|
|
3406 fi
|
|
3407 else
|
|
3408 CC="$ac_cv_prog_CC"
|
|
3409 fi
|
|
3410
|
|
3411 if test -z "$CC"; then
|
|
3412 if test -n "$ac_tool_prefix"; then
|
|
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
|
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3416 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3417 if test "${ac_cv_prog_CC+set}" = set; then :
|
|
3418 $as_echo_n "(cached) " >&6
|
|
3419 else
|
|
3420 if test -n "$CC"; then
|
|
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3422 else
|
|
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3424 for as_dir in $PATH
|
|
3425 do
|
|
3426 IFS=$as_save_IFS
|
|
3427 test -z "$as_dir" && as_dir=.
|
|
3428 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3432 break 2
|
|
3433 fi
|
|
3434 done
|
|
3435 done
|
|
3436 IFS=$as_save_IFS
|
|
3437
|
|
3438 fi
|
|
3439 fi
|
|
3440 CC=$ac_cv_prog_CC
|
|
3441 if test -n "$CC"; then
|
|
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3443 $as_echo "$CC" >&6; }
|
|
3444 else
|
|
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3446 $as_echo "no" >&6; }
|
|
3447 fi
|
|
3448
|
|
3449
|
|
3450 fi
|
|
3451 fi
|
|
3452 if test -z "$CC"; then
|
|
3453 # Extract the first word of "cc", so it can be a program name with args.
|
|
3454 set dummy cc; ac_word=$2
|
|
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3456 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3457 if test "${ac_cv_prog_CC+set}" = set; then :
|
|
3458 $as_echo_n "(cached) " >&6
|
|
3459 else
|
|
3460 if test -n "$CC"; then
|
|
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3462 else
|
|
3463 ac_prog_rejected=no
|
|
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3465 for as_dir in $PATH
|
|
3466 do
|
|
3467 IFS=$as_save_IFS
|
|
3468 test -z "$as_dir" && as_dir=.
|
|
3469 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
3472 ac_prog_rejected=yes
|
|
3473 continue
|
|
3474 fi
|
|
3475 ac_cv_prog_CC="cc"
|
|
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3477 break 2
|
|
3478 fi
|
|
3479 done
|
|
3480 done
|
|
3481 IFS=$as_save_IFS
|
|
3482
|
|
3483 if test $ac_prog_rejected = yes; then
|
|
3484 # We found a bogon in the path, so make sure we never use it.
|
|
3485 set dummy $ac_cv_prog_CC
|
|
3486 shift
|
|
3487 if test $# != 0; then
|
|
3488 # We chose a different compiler from the bogus one.
|
|
3489 # However, it has the same basename, so the bogon will be chosen
|
|
3490 # first if we set CC to just the basename; use the full file name.
|
|
3491 shift
|
|
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
3493 fi
|
|
3494 fi
|
|
3495 fi
|
|
3496 fi
|
|
3497 CC=$ac_cv_prog_CC
|
|
3498 if test -n "$CC"; then
|
|
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3500 $as_echo "$CC" >&6; }
|
|
3501 else
|
|
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3503 $as_echo "no" >&6; }
|
|
3504 fi
|
|
3505
|
|
3506
|
|
3507 fi
|
|
3508 if test -z "$CC"; then
|
|
3509 if test -n "$ac_tool_prefix"; then
|
|
3510 for ac_prog in cl.exe
|
|
3511 do
|
|
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3515 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3516 if test "${ac_cv_prog_CC+set}" = set; then :
|
|
3517 $as_echo_n "(cached) " >&6
|
|
3518 else
|
|
3519 if test -n "$CC"; then
|
|
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
3521 else
|
|
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3523 for as_dir in $PATH
|
|
3524 do
|
|
3525 IFS=$as_save_IFS
|
|
3526 test -z "$as_dir" && as_dir=.
|
|
3527 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3531 break 2
|
|
3532 fi
|
|
3533 done
|
|
3534 done
|
|
3535 IFS=$as_save_IFS
|
|
3536
|
|
3537 fi
|
|
3538 fi
|
|
3539 CC=$ac_cv_prog_CC
|
|
3540 if test -n "$CC"; then
|
|
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
|
3542 $as_echo "$CC" >&6; }
|
|
3543 else
|
|
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3545 $as_echo "no" >&6; }
|
|
3546 fi
|
|
3547
|
|
3548
|
|
3549 test -n "$CC" && break
|
|
3550 done
|
|
3551 fi
|
|
3552 if test -z "$CC"; then
|
|
3553 ac_ct_CC=$CC
|
|
3554 for ac_prog in cl.exe
|
|
3555 do
|
|
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3557 set dummy $ac_prog; ac_word=$2
|
|
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
3559 $as_echo_n "checking for $ac_word... " >&6; }
|
|
3560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
|
3561 $as_echo_n "(cached) " >&6
|
|
3562 else
|
|
3563 if test -n "$ac_ct_CC"; then
|
|
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
3565 else
|
|
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
3567 for as_dir in $PATH
|
|
3568 do
|
|
3569 IFS=$as_save_IFS
|
|
3570 test -z "$as_dir" && as_dir=.
|
|
3571 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
3575 break 2
|
|
3576 fi
|
|
3577 done
|
|
3578 done
|
|
3579 IFS=$as_save_IFS
|
|
3580
|
|
3581 fi
|
|
3582 fi
|
|
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
3584 if test -n "$ac_ct_CC"; then
|
|
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
|
3586 $as_echo "$ac_ct_CC" >&6; }
|
|
3587 else
|
|
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3589 $as_echo "no" >&6; }
|
|
3590 fi
|
|
3591
|
|
3592
|
|
3593 test -n "$ac_ct_CC" && break
|
|
3594 done
|
|
3595
|
|
3596 if test "x$ac_ct_CC" = x; then
|
|
3597 CC=""
|
|
3598 else
|
|
3599 case $cross_compiling:$ac_tool_warned in
|
|
3600 yes:)
|
|
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
3603 ac_tool_warned=yes ;;
|
|
3604 esac
|
|
3605 CC=$ac_ct_CC
|
|
3606 fi
|
|
3607 fi
|
|
3608
|
|
3609 fi
|
|
3610
|
|
3611
|
|
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3614 as_fn_error "no acceptable C compiler found in \$PATH
|
|
3615 See \`config.log' for more details." "$LINENO" 5; }
|
|
3616
|
|
3617 # Provide some information about the compiler.
|
|
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
|
3619 set X $ac_compile
|
|
3620 ac_compiler=$2
|
|
3621 for ac_option in --version -v -V -qversion; do
|
|
3622 { { ac_try="$ac_compiler $ac_option >&5"
|
|
3623 case "(($ac_try" in
|
|
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3625 *) ac_try_echo=$ac_try;;
|
|
3626 esac
|
|
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3628 $as_echo "$ac_try_echo"; } >&5
|
|
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
3630 ac_status=$?
|
|
3631 if test -s conftest.err; then
|
|
3632 sed '10a\
|
|
3633 ... rest of stderr output deleted ...
|
|
3634 10q' conftest.err >conftest.er1
|
|
3635 cat conftest.er1 >&5
|
|
3636 fi
|
|
3637 rm -f conftest.er1 conftest.err
|
|
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3639 test $ac_status = 0; }
|
|
3640 done
|
|
3641
|
|
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3643 /* end confdefs.h. */
|
|
3644
|
|
3645 int
|
|
3646 main ()
|
|
3647 {
|
|
3648
|
|
3649 ;
|
|
3650 return 0;
|
|
3651 }
|
|
3652 _ACEOF
|
|
3653 ac_clean_files_save=$ac_clean_files
|
|
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
|
3655 # Try to create an executable without -o first, disregard a.out.
|
|
3656 # It will help us diagnose broken compilers, and finding out an intuition
|
|
3657 # of exeext.
|
|
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
|
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
|
|
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
3661
|
|
3662 # The possible output files:
|
|
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
|
3664
|
|
3665 ac_rmfiles=
|
|
3666 for ac_file in $ac_files
|
|
3667 do
|
|
3668 case $ac_file in
|
|
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
3671 esac
|
|
3672 done
|
|
3673 rm -f $ac_rmfiles
|
|
3674
|
|
3675 if { { ac_try="$ac_link_default"
|
|
3676 case "(($ac_try" in
|
|
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3678 *) ac_try_echo=$ac_try;;
|
|
3679 esac
|
|
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3681 $as_echo "$ac_try_echo"; } >&5
|
|
3682 (eval "$ac_link_default") 2>&5
|
|
3683 ac_status=$?
|
|
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3685 test $ac_status = 0; }; then :
|
|
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
3689 # so that the user can short-circuit this test for compilers unknown to
|
|
3690 # Autoconf.
|
|
3691 for ac_file in $ac_files ''
|
|
3692 do
|
|
3693 test -f "$ac_file" || continue
|
|
3694 case $ac_file in
|
|
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
|
3696 ;;
|
|
3697 [ab].out )
|
|
3698 # We found the default executable, but exeext='' is most
|
|
3699 # certainly right.
|
|
3700 break;;
|
|
3701 *.* )
|
|
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
3703 then :; else
|
|
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
3705 fi
|
|
3706 # We set ac_cv_exeext here because the later test for it is not
|
|
3707 # safe: cross compilers may not add the suffix if given an `-o'
|
|
3708 # argument, so we may need to know it at that point already.
|
|
3709 # Even if this section looks crufty: it has the advantage of
|
|
3710 # actually working.
|
|
3711 break;;
|
|
3712 * )
|
|
3713 break;;
|
|
3714 esac
|
|
3715 done
|
|
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
3717
|
|
3718 else
|
|
3719 ac_file=''
|
|
3720 fi
|
|
3721 if test -z "$ac_file"; then :
|
|
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
3723 $as_echo "no" >&6; }
|
|
3724 $as_echo "$as_me: failed program was:" >&5
|
|
3725 sed 's/^/| /' conftest.$ac_ext >&5
|
|
3726
|
|
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3729 { as_fn_set_status 77
|
|
3730 as_fn_error "C compiler cannot create executables
|
|
3731 See \`config.log' for more details." "$LINENO" 5; }; }
|
|
3732 else
|
|
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
3734 $as_echo "yes" >&6; }
|
|
3735 fi
|
|
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
|
3737 $as_echo_n "checking for C compiler default output file name... " >&6; }
|
|
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
|
3739 $as_echo "$ac_file" >&6; }
|
|
3740 ac_exeext=$ac_cv_exeext
|
|
3741
|
|
3742 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
|
3743 ac_clean_files=$ac_clean_files_save
|
|
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
|
3745 $as_echo_n "checking for suffix of executables... " >&6; }
|
|
3746 if { { ac_try="$ac_link"
|
|
3747 case "(($ac_try" in
|
|
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3749 *) ac_try_echo=$ac_try;;
|
|
3750 esac
|
|
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3752 $as_echo "$ac_try_echo"; } >&5
|
|
3753 (eval "$ac_link") 2>&5
|
|
3754 ac_status=$?
|
|
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3756 test $ac_status = 0; }; then :
|
|
3757 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
3758 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
3759 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
3760 # `rm'.
|
|
3761 for ac_file in conftest.exe conftest conftest.*; do
|
|
3762 test -f "$ac_file" || continue
|
|
3763 case $ac_file in
|
|
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
|
3765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
3766 break;;
|
|
3767 * ) break;;
|
|
3768 esac
|
|
3769 done
|
|
3770 else
|
|
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3773 as_fn_error "cannot compute suffix of executables: cannot compile and link
|
|
3774 See \`config.log' for more details." "$LINENO" 5; }
|
|
3775 fi
|
|
3776 rm -f conftest conftest$ac_cv_exeext
|
|
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
|
3778 $as_echo "$ac_cv_exeext" >&6; }
|
|
3779
|
|
3780 rm -f conftest.$ac_ext
|
|
3781 EXEEXT=$ac_cv_exeext
|
|
3782 ac_exeext=$EXEEXT
|
|
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3784 /* end confdefs.h. */
|
|
3785 #include <stdio.h>
|
|
3786 int
|
|
3787 main ()
|
|
3788 {
|
|
3789 FILE *f = fopen ("conftest.out", "w");
|
|
3790 return ferror (f) || fclose (f) != 0;
|
|
3791
|
|
3792 ;
|
|
3793 return 0;
|
|
3794 }
|
|
3795 _ACEOF
|
|
3796 ac_clean_files="$ac_clean_files conftest.out"
|
|
3797 # Check that the compiler produces executables we can run. If not, either
|
|
3798 # the compiler is broken, or we cross compile.
|
|
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
|
3800 $as_echo_n "checking whether we are cross compiling... " >&6; }
|
|
3801 if test "$cross_compiling" != yes; then
|
|
3802 { { ac_try="$ac_link"
|
|
3803 case "(($ac_try" in
|
|
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3805 *) ac_try_echo=$ac_try;;
|
|
3806 esac
|
|
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3808 $as_echo "$ac_try_echo"; } >&5
|
|
3809 (eval "$ac_link") 2>&5
|
|
3810 ac_status=$?
|
|
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3812 test $ac_status = 0; }
|
|
3813 if { ac_try='./conftest$ac_cv_exeext'
|
|
3814 { { case "(($ac_try" in
|
|
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3816 *) ac_try_echo=$ac_try;;
|
|
3817 esac
|
|
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3819 $as_echo "$ac_try_echo"; } >&5
|
|
3820 (eval "$ac_try") 2>&5
|
|
3821 ac_status=$?
|
|
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3823 test $ac_status = 0; }; }; then
|
|
3824 cross_compiling=no
|
|
3825 else
|
|
3826 if test "$cross_compiling" = maybe; then
|
|
3827 cross_compiling=yes
|
|
3828 else
|
|
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3831 as_fn_error "cannot run C compiled programs.
|
|
3832 If you meant to cross compile, use \`--host'.
|
|
3833 See \`config.log' for more details." "$LINENO" 5; }
|
|
3834 fi
|
|
3835 fi
|
|
3836 fi
|
|
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
|
3838 $as_echo "$cross_compiling" >&6; }
|
|
3839
|
|
3840 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
|
3841 ac_clean_files=$ac_clean_files_save
|
|
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
|
3843 $as_echo_n "checking for suffix of object files... " >&6; }
|
|
3844 if test "${ac_cv_objext+set}" = set; then :
|
|
3845 $as_echo_n "(cached) " >&6
|
|
3846 else
|
|
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3848 /* end confdefs.h. */
|
|
3849
|
|
3850 int
|
|
3851 main ()
|
|
3852 {
|
|
3853
|
|
3854 ;
|
|
3855 return 0;
|
|
3856 }
|
|
3857 _ACEOF
|
|
3858 rm -f conftest.o conftest.obj
|
|
3859 if { { ac_try="$ac_compile"
|
|
3860 case "(($ac_try" in
|
|
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
3862 *) ac_try_echo=$ac_try;;
|
|
3863 esac
|
|
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
3865 $as_echo "$ac_try_echo"; } >&5
|
|
3866 (eval "$ac_compile") 2>&5
|
|
3867 ac_status=$?
|
|
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
3869 test $ac_status = 0; }; then :
|
|
3870 for ac_file in conftest.o conftest.obj conftest.*; do
|
|
3871 test -f "$ac_file" || continue;
|
|
3872 case $ac_file in
|
|
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
|
3874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
3875 break;;
|
|
3876 esac
|
|
3877 done
|
|
3878 else
|
|
3879 $as_echo "$as_me: failed program was:" >&5
|
|
3880 sed 's/^/| /' conftest.$ac_ext >&5
|
|
3881
|
|
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
3884 as_fn_error "cannot compute suffix of object files: cannot compile
|
|
3885 See \`config.log' for more details." "$LINENO" 5; }
|
|
3886 fi
|
|
3887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
3888 fi
|
|
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
|
3890 $as_echo "$ac_cv_objext" >&6; }
|
|
3891 OBJEXT=$ac_cv_objext
|
|
3892 ac_objext=$OBJEXT
|
|
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
|
3894 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
|
3895 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
|
3896 $as_echo_n "(cached) " >&6
|
|
3897 else
|
|
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3899 /* end confdefs.h. */
|
|
3900
|
|
3901 int
|
|
3902 main ()
|
|
3903 {
|
|
3904 #ifndef __GNUC__
|
|
3905 choke me
|
|
3906 #endif
|
|
3907
|
|
3908 ;
|
|
3909 return 0;
|
|
3910 }
|
|
3911 _ACEOF
|
|
3912 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3913 ac_compiler_gnu=yes
|
|
3914 else
|
|
3915 ac_compiler_gnu=no
|
|
3916 fi
|
|
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
3919
|
|
3920 fi
|
|
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
|
3922 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
|
3923 if test $ac_compiler_gnu = yes; then
|
|
3924 GCC=yes
|
|
3925 else
|
|
3926 GCC=
|
|
3927 fi
|
|
3928 ac_test_CFLAGS=${CFLAGS+set}
|
|
3929 ac_save_CFLAGS=$CFLAGS
|
|
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
|
3931 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
|
3932 if test "${ac_cv_prog_cc_g+set}" = set; then :
|
|
3933 $as_echo_n "(cached) " >&6
|
|
3934 else
|
|
3935 ac_save_c_werror_flag=$ac_c_werror_flag
|
|
3936 ac_c_werror_flag=yes
|
|
3937 ac_cv_prog_cc_g=no
|
|
3938 CFLAGS="-g"
|
|
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3940 /* end confdefs.h. */
|
|
3941
|
|
3942 int
|
|
3943 main ()
|
|
3944 {
|
|
3945
|
|
3946 ;
|
|
3947 return 0;
|
|
3948 }
|
|
3949 _ACEOF
|
|
3950 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3951 ac_cv_prog_cc_g=yes
|
|
3952 else
|
|
3953 CFLAGS=""
|
|
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3955 /* end confdefs.h. */
|
|
3956
|
|
3957 int
|
|
3958 main ()
|
|
3959 {
|
|
3960
|
|
3961 ;
|
|
3962 return 0;
|
|
3963 }
|
|
3964 _ACEOF
|
|
3965 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3966
|
|
3967 else
|
|
3968 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
3969 CFLAGS="-g"
|
|
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
3971 /* end confdefs.h. */
|
|
3972
|
|
3973 int
|
|
3974 main ()
|
|
3975 {
|
|
3976
|
|
3977 ;
|
|
3978 return 0;
|
|
3979 }
|
|
3980 _ACEOF
|
|
3981 if ac_fn_c_try_compile "$LINENO"; then :
|
|
3982 ac_cv_prog_cc_g=yes
|
|
3983 fi
|
|
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3985 fi
|
|
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3987 fi
|
|
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
3989 ac_c_werror_flag=$ac_save_c_werror_flag
|
|
3990 fi
|
|
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
|
3992 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
|
3993 if test "$ac_test_CFLAGS" = set; then
|
|
3994 CFLAGS=$ac_save_CFLAGS
|
|
3995 elif test $ac_cv_prog_cc_g = yes; then
|
|
3996 if test "$GCC" = yes; then
|
|
3997 CFLAGS="-g -O2"
|
|
3998 else
|
|
3999 CFLAGS="-g"
|
|
4000 fi
|
|
4001 else
|
|
4002 if test "$GCC" = yes; then
|
|
4003 CFLAGS="-O2"
|
|
4004 else
|
|
4005 CFLAGS=
|
|
4006 fi
|
|
4007 fi
|
|
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
|
4009 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
|
4010 if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
|
4011 $as_echo_n "(cached) " >&6
|
|
4012 else
|
|
4013 ac_cv_prog_cc_c89=no
|
|
4014 ac_save_CC=$CC
|
|
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4016 /* end confdefs.h. */
|
|
4017 #include <stdarg.h>
|
|
4018 #include <stdio.h>
|
|
4019 #include <sys/types.h>
|
|
4020 #include <sys/stat.h>
|
|
4021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
4022 struct buf { int x; };
|
|
4023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
4024 static char *e (p, i)
|
|
4025 char **p;
|
|
4026 int i;
|
|
4027 {
|
|
4028 return p[i];
|
|
4029 }
|
|
4030 static char *f (char * (*g) (char **, int), char **p, ...)
|
|
4031 {
|
|
4032 char *s;
|
|
4033 va_list v;
|
|
4034 va_start (v,p);
|
|
4035 s = g (p, va_arg (v,int));
|
|
4036 va_end (v);
|
|
4037 return s;
|
|
4038 }
|
|
4039
|
|
4040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
4041 function prototypes and stuff, but not '\xHH' hex character constants.
|
|
4042 These don't provoke an error unfortunately, instead are silently treated
|
|
4043 as 'x'. The following induces an error, until -std is added to get
|
|
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
4045 array size at least. It's necessary to write '\x00'==0 to get something
|
|
4046 that's true only with -std. */
|
|
4047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
4048
|
|
4049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
4050 inside strings and character constants. */
|
|
4051 #define FOO(x) 'x'
|
|
4052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
4053
|
|
4054 int test (int i, double x);
|
|
4055 struct s1 {int (*f) (int a);};
|
|
4056 struct s2 {int (*f) (double a);};
|
|
4057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
4058 int argc;
|
|
4059 char **argv;
|
|
4060 int
|
|
4061 main ()
|
|
4062 {
|
|
4063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
4064 ;
|
|
4065 return 0;
|
|
4066 }
|
|
4067 _ACEOF
|
|
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
4070 do
|
|
4071 CC="$ac_save_CC $ac_arg"
|
|
4072 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4073 ac_cv_prog_cc_c89=$ac_arg
|
|
4074 fi
|
|
4075 rm -f core conftest.err conftest.$ac_objext
|
|
4076 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
4077 done
|
|
4078 rm -f conftest.$ac_ext
|
|
4079 CC=$ac_save_CC
|
|
4080
|
|
4081 fi
|
|
4082 # AC_CACHE_VAL
|
|
4083 case "x$ac_cv_prog_cc_c89" in
|
|
4084 x)
|
|
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
|
4086 $as_echo "none needed" >&6; } ;;
|
|
4087 xno)
|
|
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
|
4089 $as_echo "unsupported" >&6; } ;;
|
|
4090 *)
|
|
4091 CC="$CC $ac_cv_prog_cc_c89"
|
|
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
|
4093 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
|
4094 esac
|
|
4095 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
4096
|
|
4097 fi
|
|
4098
|
|
4099 ac_ext=c
|
|
4100 ac_cpp='$CPP $CPPFLAGS'
|
|
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
4104 DEPDIR="${am__leading_dot}deps"
|
|
4105
|
|
4106 ac_config_commands="$ac_config_commands depfiles"
|
|
4107
|
|
4108
|
|
4109 am_make=${MAKE-make}
|
|
4110 cat > confinc << 'END'
|
|
4111 am__doit:
|
|
4112 @echo this is the am__doit target
|
|
4113 .PHONY: am__doit
|
|
4114 END
|
|
4115 # If we don't find an include directive, just comment out the code.
|
|
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
|
4117 $as_echo_n "checking for style of include used by $am_make... " >&6; }
|
|
4118 am__include="#"
|
|
4119 am__quote=
|
|
4120 _am_result=none
|
|
4121 # First try GNU make style include.
|
|
4122 echo "include confinc" > confmf
|
|
4123 # Ignore all kinds of additional output from `make'.
|
|
4124 case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
4125 *the\ am__doit\ target*)
|
|
4126 am__include=include
|
|
4127 am__quote=
|
|
4128 _am_result=GNU
|
|
4129 ;;
|
|
4130 esac
|
|
4131 # Now try BSD make style include.
|
|
4132 if test "$am__include" = "#"; then
|
|
4133 echo '.include "confinc"' > confmf
|
|
4134 case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
4135 *the\ am__doit\ target*)
|
|
4136 am__include=.include
|
|
4137 am__quote="\""
|
|
4138 _am_result=BSD
|
|
4139 ;;
|
|
4140 esac
|
|
4141 fi
|
|
4142
|
|
4143
|
|
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
|
4145 $as_echo "$_am_result" >&6; }
|
|
4146 rm -f confinc confmf
|
|
4147
|
|
4148 # Check whether --enable-dependency-tracking was given.
|
|
4149 if test "${enable_dependency_tracking+set}" = set; then :
|
|
4150 enableval=$enable_dependency_tracking;
|
|
4151 fi
|
|
4152
|
|
4153 if test "x$enable_dependency_tracking" != xno; then
|
|
4154 am_depcomp="$ac_aux_dir/depcomp"
|
|
4155 AMDEPBACKSLASH='\'
|
|
4156 fi
|
|
4157 if test "x$enable_dependency_tracking" != xno; then
|
|
4158 AMDEP_TRUE=
|
|
4159 AMDEP_FALSE='#'
|
|
4160 else
|
|
4161 AMDEP_TRUE='#'
|
|
4162 AMDEP_FALSE=
|
|
4163 fi
|
|
4164
|
|
4165
|
|
4166
|
|
4167 depcc="$CC" am_compiler_list=
|
|
4168
|
|
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
|
4170 $as_echo_n "checking dependency style of $depcc... " >&6; }
|
|
4171 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
|
|
4172 $as_echo_n "(cached) " >&6
|
|
4173 else
|
|
4174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
4175 # We make a subdir and do the tests there. Otherwise we can end up
|
|
4176 # making bogus files that we don't know about and never remove. For
|
|
4177 # instance it was reported that on HP-UX the gcc test will end up
|
|
4178 # making a dummy file named `D' -- because `-MD' means `put the output
|
|
4179 # in D'.
|
|
4180 mkdir conftest.dir
|
|
4181 # Copy depcomp to subdir because otherwise we won't find it if we're
|
|
4182 # using a relative directory.
|
|
4183 cp "$am_depcomp" conftest.dir
|
|
4184 cd conftest.dir
|
|
4185 # We will build objects and dependencies in a subdirectory because
|
|
4186 # it helps to detect inapplicable dependency modes. For instance
|
|
4187 # both Tru64's cc and ICC support -MD to output dependencies as a
|
|
4188 # side effect of compilation, but ICC will put the dependencies in
|
|
4189 # the current directory while Tru64 will put them in the object
|
|
4190 # directory.
|
|
4191 mkdir sub
|
|
4192
|
|
4193 am_cv_CC_dependencies_compiler_type=none
|
|
4194 if test "$am_compiler_list" = ""; then
|
|
4195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
|
4196 fi
|
|
4197 am__universal=false
|
|
4198 case " $depcc " in #(
|
|
4199 *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
4200 esac
|
|
4201
|
|
4202 for depmode in $am_compiler_list; do
|
|
4203 # Setup a source with many dependencies, because some compilers
|
|
4204 # like to wrap large dependency lists on column 80 (with \), and
|
|
4205 # we should not choose a depcomp mode which is confused by this.
|
|
4206 #
|
|
4207 # We need to recreate these files for each test, as the compiler may
|
|
4208 # overwrite some of them when testing with obscure command lines.
|
|
4209 # This happens at least with the AIX C compiler.
|
|
4210 : > sub/conftest.c
|
|
4211 for i in 1 2 3 4 5 6; do
|
|
4212 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
4213 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|
4214 # Solaris 8's {/usr,}/bin/sh.
|
|
4215 touch sub/conftst$i.h
|
|
4216 done
|
|
4217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
4218
|
|
4219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
4220 # mode. It turns out that the SunPro C++ compiler does not properly
|
|
4221 # handle `-M -o', and we need to detect this. Also, some Intel
|
|
4222 # versions had trouble with output in subdirs
|
|
4223 am__obj=sub/conftest.${OBJEXT-o}
|
|
4224 am__minus_obj="-o $am__obj"
|
|
4225 case $depmode in
|
|
4226 gcc)
|
|
4227 # This depmode causes a compiler race in universal mode.
|
|
4228 test "$am__universal" = false || continue
|
|
4229 ;;
|
|
4230 nosideeffect)
|
|
4231 # after this tag, mechanisms are not by side-effect, so they'll
|
|
4232 # only be used when explicitly requested
|
|
4233 if test "x$enable_dependency_tracking" = xyes; then
|
|
4234 continue
|
|
4235 else
|
|
4236 break
|
|
4237 fi
|
|
4238 ;;
|
|
4239 msvisualcpp | msvcmsys)
|
|
4240 # This compiler won't grok `-c -o', but also, the minuso test has
|
|
4241 # not run yet. These depmodes are late enough in the game, and
|
|
4242 # so weak that their functioning should not be impacted.
|
|
4243 am__obj=conftest.${OBJEXT-o}
|
|
4244 am__minus_obj=
|
|
4245 ;;
|
|
4246 none) break ;;
|
|
4247 esac
|
|
4248 if depmode=$depmode \
|
|
4249 source=sub/conftest.c object=$am__obj \
|
|
4250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
4251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
4252 >/dev/null 2>conftest.err &&
|
|
4253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
4254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
4255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
4256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
4257 # icc doesn't choke on unknown options, it will just issue warnings
|
|
4258 # or remarks (even with -Werror). So we grep stderr for any message
|
|
4259 # that says an option was ignored or not supported.
|
|
4260 # When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
4261 # icc: Command line warning: ignoring option '-M'; no argument required
|
|
4262 # The diagnosis changed in icc 8.0:
|
|
4263 # icc: Command line remark: option '-MP' not supported
|
|
4264 if (grep 'ignoring option' conftest.err ||
|
|
4265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
4266 am_cv_CC_dependencies_compiler_type=$depmode
|
|
4267 break
|
|
4268 fi
|
|
4269 fi
|
|
4270 done
|
|
4271
|
|
4272 cd ..
|
|
4273 rm -rf conftest.dir
|
|
4274 else
|
|
4275 am_cv_CC_dependencies_compiler_type=none
|
|
4276 fi
|
|
4277
|
|
4278 fi
|
|
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
|
4280 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
|
4281 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
|
4282
|
|
4283 if
|
|
4284 test "x$enable_dependency_tracking" != xno \
|
|
4285 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
|
4286 am__fastdepCC_TRUE=
|
|
4287 am__fastdepCC_FALSE='#'
|
|
4288 else
|
|
4289 am__fastdepCC_TRUE='#'
|
|
4290 am__fastdepCC_FALSE=
|
|
4291 fi
|
|
4292
|
|
4293
|
|
4294 if test -n "$ac_tool_prefix"; then
|
|
4295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
4296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4298 $as_echo_n "checking for $ac_word... " >&6; }
|
|
4299 if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
|
4300 $as_echo_n "(cached) " >&6
|
|
4301 else
|
|
4302 if test -n "$RANLIB"; then
|
|
4303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
4304 else
|
|
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4306 for as_dir in $PATH
|
|
4307 do
|
|
4308 IFS=$as_save_IFS
|
|
4309 test -z "$as_dir" && as_dir=.
|
|
4310 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
4312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4314 break 2
|
|
4315 fi
|
|
4316 done
|
|
4317 done
|
|
4318 IFS=$as_save_IFS
|
|
4319
|
|
4320 fi
|
|
4321 fi
|
|
4322 RANLIB=$ac_cv_prog_RANLIB
|
|
4323 if test -n "$RANLIB"; then
|
|
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
|
4325 $as_echo "$RANLIB" >&6; }
|
|
4326 else
|
|
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4328 $as_echo "no" >&6; }
|
|
4329 fi
|
|
4330
|
|
4331
|
|
4332 fi
|
|
4333 if test -z "$ac_cv_prog_RANLIB"; then
|
|
4334 ac_ct_RANLIB=$RANLIB
|
|
4335 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
4336 set dummy ranlib; ac_word=$2
|
|
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
4338 $as_echo_n "checking for $ac_word... " >&6; }
|
|
4339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
|
4340 $as_echo_n "(cached) " >&6
|
|
4341 else
|
|
4342 if test -n "$ac_ct_RANLIB"; then
|
|
4343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
|
4344 else
|
|
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4346 for as_dir in $PATH
|
|
4347 do
|
|
4348 IFS=$as_save_IFS
|
|
4349 test -z "$as_dir" && as_dir=.
|
|
4350 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
4352 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
|
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
4354 break 2
|
|
4355 fi
|
|
4356 done
|
|
4357 done
|
|
4358 IFS=$as_save_IFS
|
|
4359
|
|
4360 fi
|
|
4361 fi
|
|
4362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
|
4363 if test -n "$ac_ct_RANLIB"; then
|
|
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
|
4365 $as_echo "$ac_ct_RANLIB" >&6; }
|
|
4366 else
|
|
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
4368 $as_echo "no" >&6; }
|
|
4369 fi
|
|
4370
|
|
4371 if test "x$ac_ct_RANLIB" = x; then
|
|
4372 RANLIB=":"
|
|
4373 else
|
|
4374 case $cross_compiling:$ac_tool_warned in
|
|
4375 yes:)
|
|
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
4377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
4378 ac_tool_warned=yes ;;
|
|
4379 esac
|
|
4380 RANLIB=$ac_ct_RANLIB
|
|
4381 fi
|
|
4382 else
|
|
4383 RANLIB="$ac_cv_prog_RANLIB"
|
|
4384 fi
|
|
4385
|
|
4386 # Make sure we can run config.sub.
|
|
4387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
|
4388 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
|
4389
|
|
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
|
4391 $as_echo_n "checking build system type... " >&6; }
|
|
4392 if test "${ac_cv_build+set}" = set; then :
|
|
4393 $as_echo_n "(cached) " >&6
|
|
4394 else
|
|
4395 ac_build_alias=$build_alias
|
|
4396 test "x$ac_build_alias" = x &&
|
|
4397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
4398 test "x$ac_build_alias" = x &&
|
|
4399 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
|
4400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
|
4401 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
|
4402
|
|
4403 fi
|
|
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
|
4405 $as_echo "$ac_cv_build" >&6; }
|
|
4406 case $ac_cv_build in
|
|
4407 *-*-*) ;;
|
|
4408 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
|
4409 esac
|
|
4410 build=$ac_cv_build
|
|
4411 ac_save_IFS=$IFS; IFS='-'
|
|
4412 set x $ac_cv_build
|
|
4413 shift
|
|
4414 build_cpu=$1
|
|
4415 build_vendor=$2
|
|
4416 shift; shift
|
|
4417 # Remember, the first character of IFS is used to create $*,
|
|
4418 # except with old shells:
|
|
4419 build_os=$*
|
|
4420 IFS=$ac_save_IFS
|
|
4421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
|
4422
|
|
4423
|
|
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
|
4425 $as_echo_n "checking host system type... " >&6; }
|
|
4426 if test "${ac_cv_host+set}" = set; then :
|
|
4427 $as_echo_n "(cached) " >&6
|
|
4428 else
|
|
4429 if test "x$host_alias" = x; then
|
|
4430 ac_cv_host=$ac_cv_build
|
|
4431 else
|
|
4432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
|
4433 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
|
4434 fi
|
|
4435
|
|
4436 fi
|
|
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
|
4438 $as_echo "$ac_cv_host" >&6; }
|
|
4439 case $ac_cv_host in
|
|
4440 *-*-*) ;;
|
|
4441 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
|
4442 esac
|
|
4443 host=$ac_cv_host
|
|
4444 ac_save_IFS=$IFS; IFS='-'
|
|
4445 set x $ac_cv_host
|
|
4446 shift
|
|
4447 host_cpu=$1
|
|
4448 host_vendor=$2
|
|
4449 shift; shift
|
|
4450 # Remember, the first character of IFS is used to create $*,
|
|
4451 # except with old shells:
|
|
4452 host_os=$*
|
|
4453 IFS=$ac_save_IFS
|
|
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
4455
|
|
4456
|
|
4457
|
|
4458 ac_ext=c
|
|
4459 ac_cpp='$CPP $CPPFLAGS'
|
|
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
|
4464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
|
4465 # On Suns, sometimes $CPP names a directory.
|
|
4466 if test -n "$CPP" && test -d "$CPP"; then
|
|
4467 CPP=
|
|
4468 fi
|
|
4469 if test -z "$CPP"; then
|
|
4470 if test "${ac_cv_prog_CPP+set}" = set; then :
|
|
4471 $as_echo_n "(cached) " >&6
|
|
4472 else
|
|
4473 # Double quotes because CPP needs to be expanded
|
|
4474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
4475 do
|
|
4476 ac_preproc_ok=false
|
|
4477 for ac_c_preproc_warn_flag in '' yes
|
|
4478 do
|
|
4479 # Use a header file that comes with gcc, so configuring glibc
|
|
4480 # with a fresh cross-compiler works.
|
|
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
4482 # <limits.h> exists even on freestanding compilers.
|
|
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
4484 # not just through cpp. "Syntax error" is here to catch this case.
|
|
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4486 /* end confdefs.h. */
|
|
4487 #ifdef __STDC__
|
|
4488 # include <limits.h>
|
|
4489 #else
|
|
4490 # include <assert.h>
|
|
4491 #endif
|
|
4492 Syntax error
|
|
4493 _ACEOF
|
|
4494 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
4495
|
|
4496 else
|
|
4497 # Broken: fails on valid input.
|
|
4498 continue
|
|
4499 fi
|
|
4500 rm -f conftest.err conftest.$ac_ext
|
|
4501
|
|
4502 # OK, works on sane cases. Now check whether nonexistent headers
|
|
4503 # can be detected and how.
|
|
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4505 /* end confdefs.h. */
|
|
4506 #include <ac_nonexistent.h>
|
|
4507 _ACEOF
|
|
4508 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
4509 # Broken: success on invalid input.
|
|
4510 continue
|
|
4511 else
|
|
4512 # Passes both tests.
|
|
4513 ac_preproc_ok=:
|
|
4514 break
|
|
4515 fi
|
|
4516 rm -f conftest.err conftest.$ac_ext
|
|
4517
|
|
4518 done
|
|
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
4520 rm -f conftest.err conftest.$ac_ext
|
|
4521 if $ac_preproc_ok; then :
|
|
4522 break
|
|
4523 fi
|
|
4524
|
|
4525 done
|
|
4526 ac_cv_prog_CPP=$CPP
|
|
4527
|
|
4528 fi
|
|
4529 CPP=$ac_cv_prog_CPP
|
|
4530 else
|
|
4531 ac_cv_prog_CPP=$CPP
|
|
4532 fi
|
|
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
|
4534 $as_echo "$CPP" >&6; }
|
|
4535 ac_preproc_ok=false
|
|
4536 for ac_c_preproc_warn_flag in '' yes
|
|
4537 do
|
|
4538 # Use a header file that comes with gcc, so configuring glibc
|
|
4539 # with a fresh cross-compiler works.
|
|
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
4541 # <limits.h> exists even on freestanding compilers.
|
|
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
4543 # not just through cpp. "Syntax error" is here to catch this case.
|
|
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4545 /* end confdefs.h. */
|
|
4546 #ifdef __STDC__
|
|
4547 # include <limits.h>
|
|
4548 #else
|
|
4549 # include <assert.h>
|
|
4550 #endif
|
|
4551 Syntax error
|
|
4552 _ACEOF
|
|
4553 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
4554
|
|
4555 else
|
|
4556 # Broken: fails on valid input.
|
|
4557 continue
|
|
4558 fi
|
|
4559 rm -f conftest.err conftest.$ac_ext
|
|
4560
|
|
4561 # OK, works on sane cases. Now check whether nonexistent headers
|
|
4562 # can be detected and how.
|
|
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4564 /* end confdefs.h. */
|
|
4565 #include <ac_nonexistent.h>
|
|
4566 _ACEOF
|
|
4567 if ac_fn_c_try_cpp "$LINENO"; then :
|
|
4568 # Broken: success on invalid input.
|
|
4569 continue
|
|
4570 else
|
|
4571 # Passes both tests.
|
|
4572 ac_preproc_ok=:
|
|
4573 break
|
|
4574 fi
|
|
4575 rm -f conftest.err conftest.$ac_ext
|
|
4576
|
|
4577 done
|
|
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
4579 rm -f conftest.err conftest.$ac_ext
|
|
4580 if $ac_preproc_ok; then :
|
|
4581
|
|
4582 else
|
|
4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
4584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
4585 as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
|
4586 See \`config.log' for more details." "$LINENO" 5; }
|
|
4587 fi
|
|
4588
|
|
4589 ac_ext=c
|
|
4590 ac_cpp='$CPP $CPPFLAGS'
|
|
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
4594
|
|
4595
|
|
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
|
4597 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
|
4598 if test "${ac_cv_path_GREP+set}" = set; then :
|
|
4599 $as_echo_n "(cached) " >&6
|
|
4600 else
|
|
4601 if test -z "$GREP"; then
|
|
4602 ac_path_GREP_found=false
|
|
4603 # Loop through the user's path and test for each of PROGNAME-LIST
|
|
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
4606 do
|
|
4607 IFS=$as_save_IFS
|
|
4608 test -z "$as_dir" && as_dir=.
|
|
4609 for ac_prog in grep ggrep; do
|
|
4610 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
4613 # Check for GNU ac_path_GREP and select it if it is found.
|
|
4614 # Check for GNU $ac_path_GREP
|
|
4615 case `"$ac_path_GREP" --version 2>&1` in
|
|
4616 *GNU*)
|
|
4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
4618 *)
|
|
4619 ac_count=0
|
|
4620 $as_echo_n 0123456789 >"conftest.in"
|
|
4621 while :
|
|
4622 do
|
|
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
4624 mv "conftest.tmp" "conftest.in"
|
|
4625 cp "conftest.in" "conftest.nl"
|
|
4626 $as_echo 'GREP' >> "conftest.nl"
|
|
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
4631 # Best one so far, save it but keep looking for a better one
|
|
4632 ac_cv_path_GREP="$ac_path_GREP"
|
|
4633 ac_path_GREP_max=$ac_count
|
|
4634 fi
|
|
4635 # 10*(2^10) chars as input seems more than enough
|
|
4636 test $ac_count -gt 10 && break
|
|
4637 done
|
|
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
4639 esac
|
|
4640
|
|
4641 $ac_path_GREP_found && break 3
|
|
4642 done
|
|
4643 done
|
|
4644 done
|
|
4645 IFS=$as_save_IFS
|
|
4646 if test -z "$ac_cv_path_GREP"; then
|
|
4647 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
4648 fi
|
|
4649 else
|
|
4650 ac_cv_path_GREP=$GREP
|
|
4651 fi
|
|
4652
|
|
4653 fi
|
|
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
|
4655 $as_echo "$ac_cv_path_GREP" >&6; }
|
|
4656 GREP="$ac_cv_path_GREP"
|
|
4657
|
|
4658
|
|
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
|
4660 $as_echo_n "checking for egrep... " >&6; }
|
|
4661 if test "${ac_cv_path_EGREP+set}" = set; then :
|
|
4662 $as_echo_n "(cached) " >&6
|
|
4663 else
|
|
4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
4665 then ac_cv_path_EGREP="$GREP -E"
|
|
4666 else
|
|
4667 if test -z "$EGREP"; then
|
|
4668 ac_path_EGREP_found=false
|
|
4669 # Loop through the user's path and test for each of PROGNAME-LIST
|
|
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
4672 do
|
|
4673 IFS=$as_save_IFS
|
|
4674 test -z "$as_dir" && as_dir=.
|
|
4675 for ac_prog in egrep; do
|
|
4676 for ac_exec_ext in '' $ac_executable_extensions; do
|
|
4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
4678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
4679 # Check for GNU ac_path_EGREP and select it if it is found.
|
|
4680 # Check for GNU $ac_path_EGREP
|
|
4681 case `"$ac_path_EGREP" --version 2>&1` in
|
|
4682 *GNU*)
|
|
4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
4684 *)
|
|
4685 ac_count=0
|
|
4686 $as_echo_n 0123456789 >"conftest.in"
|
|
4687 while :
|
|
4688 do
|
|
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
4690 mv "conftest.tmp" "conftest.in"
|
|
4691 cp "conftest.in" "conftest.nl"
|
|
4692 $as_echo 'EGREP' >> "conftest.nl"
|
|
4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
|
4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
4697 # Best one so far, save it but keep looking for a better one
|
|
4698 ac_cv_path_EGREP="$ac_path_EGREP"
|
|
4699 ac_path_EGREP_max=$ac_count
|
|
4700 fi
|
|
4701 # 10*(2^10) chars as input seems more than enough
|
|
4702 test $ac_count -gt 10 && break
|
|
4703 done
|
|
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
4705 esac
|
|
4706
|
|
4707 $ac_path_EGREP_found && break 3
|
|
4708 done
|
|
4709 done
|
|
4710 done
|
|
4711 IFS=$as_save_IFS
|
|
4712 if test -z "$ac_cv_path_EGREP"; then
|
|
4713 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
4714 fi
|
|
4715 else
|
|
4716 ac_cv_path_EGREP=$EGREP
|
|
4717 fi
|
|
4718
|
|
4719 fi
|
|
4720 fi
|
|
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
|
4722 $as_echo "$ac_cv_path_EGREP" >&6; }
|
|
4723 EGREP="$ac_cv_path_EGREP"
|
|
4724
|
|
4725
|
|
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
|
4727 $as_echo_n "checking for ANSI C header files... " >&6; }
|
|
4728 if test "${ac_cv_header_stdc+set}" = set; then :
|
|
4729 $as_echo_n "(cached) " >&6
|
|
4730 else
|
|
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4732 /* end confdefs.h. */
|
|
4733 #include <stdlib.h>
|
|
4734 #include <stdarg.h>
|
|
4735 #include <string.h>
|
|
4736 #include <float.h>
|
|
4737
|
|
4738 int
|
|
4739 main ()
|
|
4740 {
|
|
4741
|
|
4742 ;
|
|
4743 return 0;
|
|
4744 }
|
|
4745 _ACEOF
|
|
4746 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4747 ac_cv_header_stdc=yes
|
|
4748 else
|
|
4749 ac_cv_header_stdc=no
|
|
4750 fi
|
|
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4752
|
|
4753 if test $ac_cv_header_stdc = yes; then
|
|
4754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4756 /* end confdefs.h. */
|
|
4757 #include <string.h>
|
|
4758
|
|
4759 _ACEOF
|
|
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4761 $EGREP "memchr" >/dev/null 2>&1; then :
|
|
4762
|
|
4763 else
|
|
4764 ac_cv_header_stdc=no
|
|
4765 fi
|
|
4766 rm -f conftest*
|
|
4767
|
|
4768 fi
|
|
4769
|
|
4770 if test $ac_cv_header_stdc = yes; then
|
|
4771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4773 /* end confdefs.h. */
|
|
4774 #include <stdlib.h>
|
|
4775
|
|
4776 _ACEOF
|
|
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4778 $EGREP "free" >/dev/null 2>&1; then :
|
|
4779
|
|
4780 else
|
|
4781 ac_cv_header_stdc=no
|
|
4782 fi
|
|
4783 rm -f conftest*
|
|
4784
|
|
4785 fi
|
|
4786
|
|
4787 if test $ac_cv_header_stdc = yes; then
|
|
4788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
4789 if test "$cross_compiling" = yes; then :
|
|
4790 :
|
|
4791 else
|
|
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4793 /* end confdefs.h. */
|
|
4794 #include <ctype.h>
|
|
4795 #include <stdlib.h>
|
|
4796 #if ((' ' & 0x0FF) == 0x020)
|
|
4797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
4798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
4799 #else
|
|
4800 # define ISLOWER(c) \
|
|
4801 (('a' <= (c) && (c) <= 'i') \
|
|
4802 || ('j' <= (c) && (c) <= 'r') \
|
|
4803 || ('s' <= (c) && (c) <= 'z'))
|
|
4804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
4805 #endif
|
|
4806
|
|
4807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
4808 int
|
|
4809 main ()
|
|
4810 {
|
|
4811 int i;
|
|
4812 for (i = 0; i < 256; i++)
|
|
4813 if (XOR (islower (i), ISLOWER (i))
|
|
4814 || toupper (i) != TOUPPER (i))
|
|
4815 return 2;
|
|
4816 return 0;
|
|
4817 }
|
|
4818 _ACEOF
|
|
4819 if ac_fn_c_try_run "$LINENO"; then :
|
|
4820
|
|
4821 else
|
|
4822 ac_cv_header_stdc=no
|
|
4823 fi
|
|
4824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
4825 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
4826 fi
|
|
4827
|
|
4828 fi
|
|
4829 fi
|
|
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
|
4831 $as_echo "$ac_cv_header_stdc" >&6; }
|
|
4832 if test $ac_cv_header_stdc = yes; then
|
|
4833
|
|
4834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
|
4835
|
|
4836 fi
|
|
4837
|
|
4838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
4839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
4840 inttypes.h stdint.h unistd.h
|
|
4841 do :
|
|
4842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
4843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
|
4844 "
|
|
4845 eval as_val=\$$as_ac_Header
|
|
4846 if test "x$as_val" = x""yes; then :
|
|
4847 cat >>confdefs.h <<_ACEOF
|
|
4848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
4849 _ACEOF
|
|
4850
|
|
4851 fi
|
|
4852
|
|
4853 done
|
|
4854
|
|
4855
|
|
4856
|
|
4857
|
|
4858
|
|
4859 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
|
4860 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
|
4861 MINIX=yes
|
|
4862 else
|
|
4863 MINIX=
|
|
4864 fi
|
|
4865
|
|
4866
|
|
4867 if test "$MINIX" = yes; then
|
|
4868
|
|
4869 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
|
4870
|
|
4871
|
|
4872 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
|
4873
|
|
4874
|
|
4875 $as_echo "#define _MINIX 1" >>confdefs.h
|
|
4876
|
|
4877 fi
|
|
4878
|
|
4879 case "$host_os" in
|
|
4880 hpux*)
|
|
4881
|
|
4882 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
|
|
4883
|
|
4884 ;;
|
|
4885 esac
|
|
4886
|
|
4887
|
|
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
|
4889 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
|
4890 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
|
4891 $as_echo_n "(cached) " >&6
|
|
4892 else
|
|
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4894 /* end confdefs.h. */
|
|
4895
|
|
4896 # define __EXTENSIONS__ 1
|
|
4897 $ac_includes_default
|
|
4898 int
|
|
4899 main ()
|
|
4900 {
|
|
4901
|
|
4902 ;
|
|
4903 return 0;
|
|
4904 }
|
|
4905 _ACEOF
|
|
4906 if ac_fn_c_try_compile "$LINENO"; then :
|
|
4907 ac_cv_safe_to_define___extensions__=yes
|
|
4908 else
|
|
4909 ac_cv_safe_to_define___extensions__=no
|
|
4910 fi
|
|
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
4912 fi
|
|
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
|
4914 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
|
|
4916 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
|
4917
|
|
4918 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
|
4919
|
|
4920 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
|
4921
|
|
4922 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
|
4923
|
|
4924 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
|
4925
|
|
4926
|
|
4927
|
|
4928
|
|
4929
|
|
4930
|
|
4931
|
|
4932
|
|
4933
|
|
4934
|
|
4935
|
|
4936
|
|
4937 # for gnulib
|
|
4938
|
|
4939
|
|
4940
|
|
4941
|
|
4942
|
|
4943 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
4944 # for constant arguments. Useless!
|
|
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
|
4946 $as_echo_n "checking for working alloca.h... " >&6; }
|
|
4947 if test "${ac_cv_working_alloca_h+set}" = set; then :
|
|
4948 $as_echo_n "(cached) " >&6
|
|
4949 else
|
|
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4951 /* end confdefs.h. */
|
|
4952 #include <alloca.h>
|
|
4953 int
|
|
4954 main ()
|
|
4955 {
|
|
4956 char *p = (char *) alloca (2 * sizeof (int));
|
|
4957 if (p) return 0;
|
|
4958 ;
|
|
4959 return 0;
|
|
4960 }
|
|
4961 _ACEOF
|
|
4962 if ac_fn_c_try_link "$LINENO"; then :
|
|
4963 ac_cv_working_alloca_h=yes
|
|
4964 else
|
|
4965 ac_cv_working_alloca_h=no
|
|
4966 fi
|
|
4967 rm -f core conftest.err conftest.$ac_objext \
|
|
4968 conftest$ac_exeext conftest.$ac_ext
|
|
4969 fi
|
|
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
|
4971 $as_echo "$ac_cv_working_alloca_h" >&6; }
|
|
4972 if test $ac_cv_working_alloca_h = yes; then
|
|
4973
|
|
4974 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
|
4975
|
|
4976 fi
|
|
4977
|
|
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
|
4979 $as_echo_n "checking for alloca... " >&6; }
|
|
4980 if test "${ac_cv_func_alloca_works+set}" = set; then :
|
|
4981 $as_echo_n "(cached) " >&6
|
|
4982 else
|
|
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
4984 /* end confdefs.h. */
|
|
4985 #ifdef __GNUC__
|
|
4986 # define alloca __builtin_alloca
|
|
4987 #else
|
|
4988 # ifdef _MSC_VER
|
|
4989 # include <malloc.h>
|
|
4990 # define alloca _alloca
|
|
4991 # else
|
|
4992 # ifdef HAVE_ALLOCA_H
|
|
4993 # include <alloca.h>
|
|
4994 # else
|
|
4995 # ifdef _AIX
|
|
4996 #pragma alloca
|
|
4997 # else
|
|
4998 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
4999 char *alloca ();
|
|
5000 # endif
|
|
5001 # endif
|
|
5002 # endif
|
|
5003 # endif
|
|
5004 #endif
|
|
5005
|
|
5006 int
|
|
5007 main ()
|
|
5008 {
|
|
5009 char *p = (char *) alloca (1);
|
|
5010 if (p) return 0;
|
|
5011 ;
|
|
5012 return 0;
|
|
5013 }
|
|
5014 _ACEOF
|
|
5015 if ac_fn_c_try_link "$LINENO"; then :
|
|
5016 ac_cv_func_alloca_works=yes
|
|
5017 else
|
|
5018 ac_cv_func_alloca_works=no
|
|
5019 fi
|
|
5020 rm -f core conftest.err conftest.$ac_objext \
|
|
5021 conftest$ac_exeext conftest.$ac_ext
|
|
5022 fi
|
|
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
|
5024 $as_echo "$ac_cv_func_alloca_works" >&6; }
|
|
5025
|
|
5026 if test $ac_cv_func_alloca_works = yes; then
|
|
5027
|
|
5028 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
|
5029
|
|
5030 else
|
|
5031 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
5032 # that cause trouble. Some versions do not even contain alloca or
|
|
5033 # contain a buggy version. If you still want to use their alloca,
|
|
5034 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
5035
|
|
5036
|
|
5037
|
|
5038
|
|
5039
|
|
5040 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
|
5041
|
|
5042 $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
|
5043
|
|
5044
|
|
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
|
5046 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
|
5047 if test "${ac_cv_os_cray+set}" = set; then :
|
|
5048 $as_echo_n "(cached) " >&6
|
|
5049 else
|
|
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5051 /* end confdefs.h. */
|
|
5052 #if defined CRAY && ! defined CRAY2
|
|
5053 webecray
|
|
5054 #else
|
|
5055 wenotbecray
|
|
5056 #endif
|
|
5057
|
|
5058 _ACEOF
|
|
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5060 $EGREP "webecray" >/dev/null 2>&1; then :
|
|
5061 ac_cv_os_cray=yes
|
|
5062 else
|
|
5063 ac_cv_os_cray=no
|
|
5064 fi
|
|
5065 rm -f conftest*
|
|
5066
|
|
5067 fi
|
|
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
|
5069 $as_echo "$ac_cv_os_cray" >&6; }
|
|
5070 if test $ac_cv_os_cray = yes; then
|
|
5071 for ac_func in _getb67 GETB67 getb67; do
|
|
5072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
5073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
5074 eval as_val=\$$as_ac_var
|
|
5075 if test "x$as_val" = x""yes; then :
|
|
5076
|
|
5077 cat >>confdefs.h <<_ACEOF
|
|
5078 #define CRAY_STACKSEG_END $ac_func
|
|
5079 _ACEOF
|
|
5080
|
|
5081 break
|
|
5082 fi
|
|
5083
|
|
5084 done
|
|
5085 fi
|
|
5086
|
|
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
|
5088 $as_echo_n "checking stack direction for C alloca... " >&6; }
|
|
5089 if test "${ac_cv_c_stack_direction+set}" = set; then :
|
|
5090 $as_echo_n "(cached) " >&6
|
|
5091 else
|
|
5092 if test "$cross_compiling" = yes; then :
|
|
5093 ac_cv_c_stack_direction=0
|
|
5094 else
|
|
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5096 /* end confdefs.h. */
|
|
5097 $ac_includes_default
|
|
5098 int
|
|
5099 find_stack_direction ()
|
|
5100 {
|
|
5101 static char *addr = 0;
|
|
5102 auto char dummy;
|
|
5103 if (addr == 0)
|
|
5104 {
|
|
5105 addr = &dummy;
|
|
5106 return find_stack_direction ();
|
|
5107 }
|
|
5108 else
|
|
5109 return (&dummy > addr) ? 1 : -1;
|
|
5110 }
|
|
5111
|
|
5112 int
|
|
5113 main ()
|
|
5114 {
|
|
5115 return find_stack_direction () < 0;
|
|
5116 }
|
|
5117 _ACEOF
|
|
5118 if ac_fn_c_try_run "$LINENO"; then :
|
|
5119 ac_cv_c_stack_direction=1
|
|
5120 else
|
|
5121 ac_cv_c_stack_direction=-1
|
|
5122 fi
|
|
5123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
5124 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
5125 fi
|
|
5126
|
|
5127 fi
|
|
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
|
5129 $as_echo "$ac_cv_c_stack_direction" >&6; }
|
|
5130 cat >>confdefs.h <<_ACEOF
|
|
5131 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
5132 _ACEOF
|
|
5133
|
|
5134
|
|
5135 fi
|
|
5136
|
|
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
|
5138 $as_echo_n "checking for inline... " >&6; }
|
|
5139 if test "${ac_cv_c_inline+set}" = set; then :
|
|
5140 $as_echo_n "(cached) " >&6
|
|
5141 else
|
|
5142 ac_cv_c_inline=no
|
|
5143 for ac_kw in inline __inline__ __inline; do
|
|
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5145 /* end confdefs.h. */
|
|
5146 #ifndef __cplusplus
|
|
5147 typedef int foo_t;
|
|
5148 static $ac_kw foo_t static_foo () {return 0; }
|
|
5149 $ac_kw foo_t foo () {return 0; }
|
|
5150 #endif
|
|
5151
|
|
5152 _ACEOF
|
|
5153 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5154 ac_cv_c_inline=$ac_kw
|
|
5155 fi
|
|
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5157 test "$ac_cv_c_inline" != no && break
|
|
5158 done
|
|
5159
|
|
5160 fi
|
|
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
|
5162 $as_echo "$ac_cv_c_inline" >&6; }
|
|
5163
|
|
5164 case $ac_cv_c_inline in
|
|
5165 inline | yes) ;;
|
|
5166 *)
|
|
5167 case $ac_cv_c_inline in
|
|
5168 no) ac_val=;;
|
|
5169 *) ac_val=$ac_cv_c_inline;;
|
|
5170 esac
|
|
5171 cat >>confdefs.h <<_ACEOF
|
|
5172 #ifndef __cplusplus
|
|
5173 #define inline $ac_val
|
|
5174 #endif
|
|
5175 _ACEOF
|
|
5176 ;;
|
|
5177 esac
|
|
5178
|
|
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
|
5180 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
|
|
5181 if test "${ac_cv_c_restrict+set}" = set; then :
|
|
5182 $as_echo_n "(cached) " >&6
|
|
5183 else
|
|
5184 ac_cv_c_restrict=no
|
|
5185 # The order here caters to the fact that C++ does not require restrict.
|
|
5186 for ac_kw in __restrict __restrict__ _Restrict restrict; do
|
|
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5188 /* end confdefs.h. */
|
|
5189 typedef int * int_ptr;
|
|
5190 int foo (int_ptr $ac_kw ip) {
|
|
5191 return ip[0];
|
|
5192 }
|
|
5193 int
|
|
5194 main ()
|
|
5195 {
|
|
5196 int s[1];
|
|
5197 int * $ac_kw t = s;
|
|
5198 t[0] = 0;
|
|
5199 return foo(t)
|
|
5200 ;
|
|
5201 return 0;
|
|
5202 }
|
|
5203 _ACEOF
|
|
5204 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5205 ac_cv_c_restrict=$ac_kw
|
|
5206 fi
|
|
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5208 test "$ac_cv_c_restrict" != no && break
|
|
5209 done
|
|
5210
|
|
5211 fi
|
|
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
|
5213 $as_echo "$ac_cv_c_restrict" >&6; }
|
|
5214
|
|
5215 case $ac_cv_c_restrict in
|
|
5216 restrict) ;;
|
|
5217 no) $as_echo "#define restrict /**/" >>confdefs.h
|
|
5218 ;;
|
|
5219 *) cat >>confdefs.h <<_ACEOF
|
|
5220 #define restrict $ac_cv_c_restrict
|
|
5221 _ACEOF
|
|
5222 ;;
|
|
5223 esac
|
|
5224
|
|
5225
|
|
5226 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
|
|
5227 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
|
|
5228 ac_have_decl=1
|
|
5229 else
|
|
5230 ac_have_decl=0
|
|
5231 fi
|
|
5232
|
|
5233 cat >>confdefs.h <<_ACEOF
|
|
5234 #define HAVE_DECL_GETENV $ac_have_decl
|
|
5235 _ACEOF
|
|
5236
|
|
5237
|
|
5238
|
|
5239 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
|
|
5240 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
|
|
5241 ac_have_decl=1
|
|
5242 else
|
|
5243 ac_have_decl=0
|
|
5244 fi
|
|
5245
|
|
5246 cat >>confdefs.h <<_ACEOF
|
|
5247 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
|
|
5248 _ACEOF
|
|
5249
|
|
5250
|
|
5251
|
|
5252 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
|
|
5253 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
|
|
5254 ac_have_decl=1
|
|
5255 else
|
|
5256 ac_have_decl=0
|
|
5257 fi
|
|
5258
|
|
5259 cat >>confdefs.h <<_ACEOF
|
|
5260 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
|
|
5261 _ACEOF
|
|
5262
|
|
5263
|
|
5264
|
|
5265 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
|
|
5266 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
|
|
5267 ac_have_decl=1
|
|
5268 else
|
|
5269 ac_have_decl=0
|
|
5270 fi
|
|
5271
|
|
5272 cat >>confdefs.h <<_ACEOF
|
|
5273 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
|
|
5274 _ACEOF
|
|
5275
|
|
5276
|
|
5277
|
|
5278 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
|
|
5279 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
|
|
5280 ac_have_decl=1
|
|
5281 else
|
|
5282 ac_have_decl=0
|
|
5283 fi
|
|
5284
|
|
5285 cat >>confdefs.h <<_ACEOF
|
|
5286 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
|
|
5287 _ACEOF
|
|
5288
|
|
5289
|
|
5290
|
|
5291 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
|
|
5292 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
|
|
5293 ac_have_decl=1
|
|
5294 else
|
|
5295 ac_have_decl=0
|
|
5296 fi
|
|
5297
|
|
5298 cat >>confdefs.h <<_ACEOF
|
|
5299 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
|
|
5300 _ACEOF
|
|
5301
|
|
5302
|
|
5303
|
|
5304 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
|
|
5305 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
|
|
5306 ac_have_decl=1
|
|
5307 else
|
|
5308 ac_have_decl=0
|
|
5309 fi
|
|
5310
|
|
5311 cat >>confdefs.h <<_ACEOF
|
|
5312 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
|
|
5313 _ACEOF
|
|
5314
|
|
5315
|
|
5316
|
|
5317 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
|
|
5318 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
|
|
5319 ac_have_decl=1
|
|
5320 else
|
|
5321 ac_have_decl=0
|
|
5322 fi
|
|
5323
|
|
5324 cat >>confdefs.h <<_ACEOF
|
|
5325 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
|
|
5326 _ACEOF
|
|
5327
|
|
5328
|
|
5329
|
|
5330 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
|
|
5331 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
|
|
5332 ac_have_decl=1
|
|
5333 else
|
|
5334 ac_have_decl=0
|
|
5335 fi
|
|
5336
|
|
5337 cat >>confdefs.h <<_ACEOF
|
|
5338 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
|
|
5339 _ACEOF
|
|
5340
|
|
5341
|
|
5342
|
|
5343 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
|
|
5344 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
|
|
5345 ac_have_decl=1
|
|
5346 else
|
|
5347 ac_have_decl=0
|
|
5348 fi
|
|
5349
|
|
5350 cat >>confdefs.h <<_ACEOF
|
|
5351 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
|
|
5352 _ACEOF
|
|
5353
|
|
5354
|
|
5355
|
|
5356 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
|
|
5357 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
|
|
5358 ac_have_decl=1
|
|
5359 else
|
|
5360 ac_have_decl=0
|
|
5361 fi
|
|
5362
|
|
5363 cat >>confdefs.h <<_ACEOF
|
|
5364 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
|
|
5365 _ACEOF
|
|
5366
|
|
5367
|
|
5368
|
|
5369 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
|
|
5370 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
|
|
5371 ac_have_decl=1
|
|
5372 else
|
|
5373 ac_have_decl=0
|
|
5374 fi
|
|
5375
|
|
5376 cat >>confdefs.h <<_ACEOF
|
|
5377 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
|
|
5378 _ACEOF
|
|
5379
|
|
5380
|
|
5381
|
|
5382 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
|
|
5383 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
|
|
5384 ac_have_decl=1
|
|
5385 else
|
|
5386 ac_have_decl=0
|
|
5387 fi
|
|
5388
|
|
5389 cat >>confdefs.h <<_ACEOF
|
|
5390 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
|
|
5391 _ACEOF
|
|
5392
|
|
5393
|
|
5394
|
|
5395 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
|
|
5396 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
|
|
5397 ac_have_decl=1
|
|
5398 else
|
|
5399 ac_have_decl=0
|
|
5400 fi
|
|
5401
|
|
5402 cat >>confdefs.h <<_ACEOF
|
|
5403 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
|
|
5404 _ACEOF
|
|
5405
|
|
5406
|
|
5407
|
|
5408
|
|
5409
|
|
5410
|
|
5411 for ac_func in $gl_func_list
|
|
5412 do :
|
|
5413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
5414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
5415 eval as_val=\$$as_ac_var
|
|
5416 if test "x$as_val" = x""yes; then :
|
|
5417 cat >>confdefs.h <<_ACEOF
|
|
5418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
5419 _ACEOF
|
|
5420
|
|
5421 fi
|
|
5422 done
|
|
5423
|
|
5424
|
|
5425
|
|
5426
|
|
5427
|
|
5428
|
|
5429
|
|
5430
|
|
5431
|
|
5432
|
|
5433
|
|
5434
|
|
5435
|
|
5436
|
|
5437 for ac_header in $gl_header_list
|
|
5438 do :
|
|
5439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
5440 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
5441 eval as_val=\$$as_ac_Header
|
|
5442 if test "x$as_val" = x""yes; then :
|
|
5443 cat >>confdefs.h <<_ACEOF
|
|
5444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
5445 _ACEOF
|
|
5446
|
|
5447 fi
|
|
5448
|
|
5449 done
|
|
5450
|
|
5451
|
|
5452
|
|
5453
|
|
5454
|
|
5455
|
|
5456
|
|
5457
|
|
5458
|
|
5459
|
|
5460
|
|
5461 XGETTEXT_EXTRA_OPTIONS=
|
|
5462
|
|
5463
|
|
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
|
|
5465 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
|
|
5466 if test "${ac_cv_win_or_dos+set}" = set; then :
|
|
5467 $as_echo_n "(cached) " >&6
|
|
5468 else
|
|
5469
|
|
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5471 /* end confdefs.h. */
|
|
5472
|
|
5473 int
|
|
5474 main ()
|
|
5475 {
|
|
5476
|
|
5477 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
|
|
5478 neither MSDOS nor Windows
|
|
5479 #endif
|
|
5480 ;
|
|
5481 return 0;
|
|
5482 }
|
|
5483 _ACEOF
|
|
5484 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5485 ac_cv_win_or_dos=yes
|
|
5486 else
|
|
5487 ac_cv_win_or_dos=no
|
|
5488 fi
|
|
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5490
|
|
5491 fi
|
|
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
|
|
5493 $as_echo "$ac_cv_win_or_dos" >&6; }
|
|
5494
|
|
5495 if test x"$ac_cv_win_or_dos" = xyes; then
|
|
5496 ac_fs_accepts_drive_letter_prefix=1
|
|
5497 ac_fs_backslash_is_file_name_separator=1
|
|
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
|
|
5499 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
|
|
5500 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
|
|
5501 $as_echo_n "(cached) " >&6
|
|
5502 else
|
|
5503
|
|
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5505 /* end confdefs.h. */
|
|
5506
|
|
5507 int
|
|
5508 main ()
|
|
5509 {
|
|
5510
|
|
5511 #if defined __CYGWIN__
|
|
5512 drive letters are always absolute
|
|
5513 #endif
|
|
5514 ;
|
|
5515 return 0;
|
|
5516 }
|
|
5517 _ACEOF
|
|
5518 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5519 ac_cv_drive_letter_can_be_relative=yes
|
|
5520 else
|
|
5521 ac_cv_drive_letter_can_be_relative=no
|
|
5522 fi
|
|
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5524
|
|
5525 fi
|
|
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
|
|
5527 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
|
|
5528 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
|
|
5529 ac_fs_drive_letter_can_be_relative=1
|
|
5530 else
|
|
5531 ac_fs_drive_letter_can_be_relative=0
|
|
5532 fi
|
|
5533 else
|
|
5534 ac_fs_accepts_drive_letter_prefix=0
|
|
5535 ac_fs_backslash_is_file_name_separator=0
|
|
5536 ac_fs_drive_letter_can_be_relative=0
|
|
5537 fi
|
|
5538
|
|
5539
|
|
5540 cat >>confdefs.h <<_ACEOF
|
|
5541 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
|
|
5542 _ACEOF
|
|
5543
|
|
5544
|
|
5545
|
|
5546
|
|
5547
|
|
5548 cat >>confdefs.h <<_ACEOF
|
|
5549 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
|
|
5550 _ACEOF
|
|
5551
|
|
5552
|
|
5553
|
|
5554 cat >>confdefs.h <<_ACEOF
|
|
5555 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
|
|
5556 _ACEOF
|
|
5557
|
|
5558
|
|
5559
|
|
5560
|
|
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
|
|
5562 $as_echo_n "checking whether // is distinct from /... " >&6; }
|
|
5563 if test "${gl_cv_double_slash_root+set}" = set; then :
|
|
5564 $as_echo_n "(cached) " >&6
|
|
5565 else
|
|
5566 if test x"$cross_compiling" = xyes ; then
|
|
5567 # When cross-compiling, there is no way to tell whether // is special
|
|
5568 # short of a list of hosts. However, the only known hosts to date
|
|
5569 # that have a distinct // are Apollo DomainOS (too old to port to),
|
|
5570 # Cygwin, and z/OS. If anyone knows of another system for which // has
|
|
5571 # special semantics and is distinct from /, please report it to
|
|
5572 # <bug-gnulib@gnu.org>.
|
|
5573 case $host in
|
|
5574 *-cygwin | i370-ibm-openedition)
|
|
5575 gl_cv_double_slash_root=yes ;;
|
|
5576 *)
|
|
5577 # Be optimistic and assume that / and // are the same when we
|
|
5578 # don't know.
|
|
5579 gl_cv_double_slash_root='unknown, assuming no' ;;
|
|
5580 esac
|
|
5581 else
|
|
5582 set x `ls -di / // 2>/dev/null`
|
|
5583 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
|
|
5584 gl_cv_double_slash_root=no
|
|
5585 else
|
|
5586 gl_cv_double_slash_root=yes
|
|
5587 fi
|
|
5588 fi
|
|
5589 fi
|
|
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
|
|
5591 $as_echo "$gl_cv_double_slash_root" >&6; }
|
|
5592 if test "$gl_cv_double_slash_root" = yes; then
|
|
5593
|
|
5594 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
|
|
5595
|
|
5596 fi
|
|
5597
|
|
5598
|
|
5599
|
|
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
|
|
5601 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
|
|
5602 if test "${gl_cv_have_include_next+set}" = set; then :
|
|
5603 $as_echo_n "(cached) " >&6
|
|
5604 else
|
|
5605 rm -rf conftestd1a conftestd1b conftestd2
|
|
5606 mkdir conftestd1a conftestd1b conftestd2
|
|
5607 cat <<EOF > conftestd1a/conftest.h
|
|
5608 #define DEFINED_IN_CONFTESTD1
|
|
5609 #include_next <conftest.h>
|
|
5610 #ifdef DEFINED_IN_CONFTESTD2
|
|
5611 int foo;
|
|
5612 #else
|
|
5613 #error "include_next doesn't work"
|
|
5614 #endif
|
|
5615 EOF
|
|
5616 cat <<EOF > conftestd1b/conftest.h
|
|
5617 #define DEFINED_IN_CONFTESTD1
|
|
5618 #include <stdio.h>
|
|
5619 #include_next <conftest.h>
|
|
5620 #ifdef DEFINED_IN_CONFTESTD2
|
|
5621 int foo;
|
|
5622 #else
|
|
5623 #error "include_next doesn't work"
|
|
5624 #endif
|
|
5625 EOF
|
|
5626 cat <<EOF > conftestd2/conftest.h
|
|
5627 #ifndef DEFINED_IN_CONFTESTD1
|
|
5628 #error "include_next test doesn't work"
|
|
5629 #endif
|
|
5630 #define DEFINED_IN_CONFTESTD2
|
|
5631 EOF
|
|
5632 gl_save_CPPFLAGS="$CPPFLAGS"
|
|
5633 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
|
|
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5635 /* end confdefs.h. */
|
|
5636 #include <conftest.h>
|
|
5637 _ACEOF
|
|
5638 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5639 gl_cv_have_include_next=yes
|
|
5640 else
|
|
5641 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
|
|
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5643 /* end confdefs.h. */
|
|
5644 #include <conftest.h>
|
|
5645 _ACEOF
|
|
5646 if ac_fn_c_try_compile "$LINENO"; then :
|
|
5647 gl_cv_have_include_next=buggy
|
|
5648 else
|
|
5649 gl_cv_have_include_next=no
|
|
5650 fi
|
|
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5652
|
|
5653 fi
|
|
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
5655 CPPFLAGS="$gl_save_CPPFLAGS"
|
|
5656 rm -rf conftestd1a conftestd1b conftestd2
|
|
5657
|
|
5658 fi
|
|
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
|
|
5660 $as_echo "$gl_cv_have_include_next" >&6; }
|
|
5661 PRAGMA_SYSTEM_HEADER=
|
|
5662 if test $gl_cv_have_include_next = yes; then
|
|
5663 INCLUDE_NEXT=include_next
|
|
5664 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
|
|
5665 if test -n "$GCC"; then
|
|
5666 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
|
|
5667 fi
|
|
5668 else
|
|
5669 if test $gl_cv_have_include_next = buggy; then
|
|
5670 INCLUDE_NEXT=include
|
|
5671 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
|
|
5672 else
|
|
5673 INCLUDE_NEXT=include
|
|
5674 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
|
|
5675 fi
|
|
5676 fi
|
|
5677
|
|
5678
|
|
5679
|
|
5680
|
|
5681
|
|
5682
|
|
5683
|
|
5684
|
|
5685
|
|
5686
|
|
5687
|
|
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
|
|
5689 $as_echo_n "checking for complete errno.h... " >&6; }
|
|
5690 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
|
|
5691 $as_echo_n "(cached) " >&6
|
|
5692 else
|
|
5693
|
|
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5695 /* end confdefs.h. */
|
|
5696
|
|
5697 #include <errno.h>
|
|
5698 #if !defined ENOMSG
|
|
5699 booboo
|
|
5700 #endif
|
|
5701 #if !defined EIDRM
|
|
5702 booboo
|
|
5703 #endif
|
|
5704 #if !defined ENOLINK
|
|
5705 booboo
|
|
5706 #endif
|
|
5707 #if !defined EPROTO
|
|
5708 booboo
|
|
5709 #endif
|
|
5710 #if !defined EMULTIHOP
|
|
5711 booboo
|
|
5712 #endif
|
|
5713 #if !defined EBADMSG
|
|
5714 booboo
|
|
5715 #endif
|
|
5716 #if !defined EOVERFLOW
|
|
5717 booboo
|
|
5718 #endif
|
|
5719 #if !defined ENOTSUP
|
|
5720 booboo
|
|
5721 #endif
|
|
5722 #if !defined ESTALE
|
|
5723 booboo
|
|
5724 #endif
|
|
5725 #if !defined ECANCELED
|
|
5726 booboo
|
|
5727 #endif
|
|
5728
|
|
5729 _ACEOF
|
|
5730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5731 $EGREP "booboo" >/dev/null 2>&1; then :
|
|
5732 gl_cv_header_errno_h_complete=no
|
|
5733 else
|
|
5734 gl_cv_header_errno_h_complete=yes
|
|
5735 fi
|
|
5736 rm -f conftest*
|
|
5737
|
|
5738
|
|
5739 fi
|
|
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
|
|
5741 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
|
|
5742 if test $gl_cv_header_errno_h_complete = yes; then
|
|
5743 ERRNO_H=''
|
|
5744 else
|
|
5745
|
|
5746
|
|
5747
|
|
5748
|
|
5749 :
|
|
5750
|
|
5751
|
|
5752
|
|
5753
|
|
5754
|
|
5755
|
|
5756
|
|
5757 if test $gl_cv_have_include_next = yes; then
|
|
5758 gl_cv_next_errno_h='<'errno.h'>'
|
|
5759 else
|
|
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
|
|
5761 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
|
|
5762 if test "${gl_cv_next_errno_h+set}" = set; then :
|
|
5763 $as_echo_n "(cached) " >&6
|
|
5764 else
|
|
5765
|
|
5766 if test $ac_cv_header_errno_h = yes; then
|
|
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5768 /* end confdefs.h. */
|
|
5769 #include <errno.h>
|
|
5770
|
|
5771 _ACEOF
|
|
5772 case "$host_os" in
|
|
5773 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
5774 *) gl_absname_cpp="$ac_cpp" ;;
|
|
5775 esac
|
|
5776 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
5777 sed -n '\#/errno.h#{
|
|
5778 s#.*"\(.*/errno.h\)".*#\1#
|
|
5779 s#^/[^/]#//&#
|
|
5780 p
|
|
5781 q
|
|
5782 }'`'"'
|
|
5783 else
|
|
5784 gl_cv_next_errno_h='<'errno.h'>'
|
|
5785 fi
|
|
5786
|
|
5787 fi
|
|
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
|
|
5789 $as_echo "$gl_cv_next_errno_h" >&6; }
|
|
5790 fi
|
|
5791 NEXT_ERRNO_H=$gl_cv_next_errno_h
|
|
5792
|
|
5793 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
5794 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
5795 gl_next_as_first_directive='<'errno.h'>'
|
|
5796 else
|
|
5797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
5798 gl_next_as_first_directive=$gl_cv_next_errno_h
|
|
5799 fi
|
|
5800 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
|
|
5801
|
|
5802
|
|
5803
|
|
5804 ERRNO_H='errno.h'
|
|
5805 fi
|
|
5806
|
|
5807
|
|
5808 if test -n "$ERRNO_H"; then
|
|
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
|
|
5810 $as_echo_n "checking for EMULTIHOP value... " >&6; }
|
|
5811 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
|
|
5812 $as_echo_n "(cached) " >&6
|
|
5813 else
|
|
5814
|
|
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5816 /* end confdefs.h. */
|
|
5817
|
|
5818 #include <errno.h>
|
|
5819 #ifdef EMULTIHOP
|
|
5820 yes
|
|
5821 #endif
|
|
5822
|
|
5823 _ACEOF
|
|
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5825 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5826 gl_cv_header_errno_h_EMULTIHOP=yes
|
|
5827 else
|
|
5828 gl_cv_header_errno_h_EMULTIHOP=no
|
|
5829 fi
|
|
5830 rm -f conftest*
|
|
5831
|
|
5832 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
|
|
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5834 /* end confdefs.h. */
|
|
5835
|
|
5836 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5837 #include <errno.h>
|
|
5838 #ifdef EMULTIHOP
|
|
5839 yes
|
|
5840 #endif
|
|
5841
|
|
5842 _ACEOF
|
|
5843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5844 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5845 gl_cv_header_errno_h_EMULTIHOP=hidden
|
|
5846 fi
|
|
5847 rm -f conftest*
|
|
5848
|
|
5849 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
|
|
5850 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
|
|
5851 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5852 #include <errno.h>
|
|
5853 /* The following two lines are a workaround against an autoconf-2.52 bug. */
|
|
5854 #include <stdio.h>
|
|
5855 #include <stdlib.h>
|
|
5856 "; then :
|
|
5857
|
|
5858 fi
|
|
5859
|
|
5860 fi
|
|
5861 fi
|
|
5862
|
|
5863 fi
|
|
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
|
|
5865 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
|
|
5866 case $gl_cv_header_errno_h_EMULTIHOP in
|
|
5867 yes | no)
|
|
5868 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
|
|
5869 ;;
|
|
5870 *)
|
|
5871 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
|
|
5872 ;;
|
|
5873 esac
|
|
5874
|
|
5875
|
|
5876 fi
|
|
5877
|
|
5878
|
|
5879 if test -n "$ERRNO_H"; then
|
|
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
|
|
5881 $as_echo_n "checking for ENOLINK value... " >&6; }
|
|
5882 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
|
|
5883 $as_echo_n "(cached) " >&6
|
|
5884 else
|
|
5885
|
|
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5887 /* end confdefs.h. */
|
|
5888
|
|
5889 #include <errno.h>
|
|
5890 #ifdef ENOLINK
|
|
5891 yes
|
|
5892 #endif
|
|
5893
|
|
5894 _ACEOF
|
|
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5896 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5897 gl_cv_header_errno_h_ENOLINK=yes
|
|
5898 else
|
|
5899 gl_cv_header_errno_h_ENOLINK=no
|
|
5900 fi
|
|
5901 rm -f conftest*
|
|
5902
|
|
5903 if test $gl_cv_header_errno_h_ENOLINK = no; then
|
|
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5905 /* end confdefs.h. */
|
|
5906
|
|
5907 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5908 #include <errno.h>
|
|
5909 #ifdef ENOLINK
|
|
5910 yes
|
|
5911 #endif
|
|
5912
|
|
5913 _ACEOF
|
|
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5915 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5916 gl_cv_header_errno_h_ENOLINK=hidden
|
|
5917 fi
|
|
5918 rm -f conftest*
|
|
5919
|
|
5920 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
|
|
5921 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
|
|
5922 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5923 #include <errno.h>
|
|
5924 /* The following two lines are a workaround against an autoconf-2.52 bug. */
|
|
5925 #include <stdio.h>
|
|
5926 #include <stdlib.h>
|
|
5927 "; then :
|
|
5928
|
|
5929 fi
|
|
5930
|
|
5931 fi
|
|
5932 fi
|
|
5933
|
|
5934 fi
|
|
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
|
|
5936 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
|
|
5937 case $gl_cv_header_errno_h_ENOLINK in
|
|
5938 yes | no)
|
|
5939 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
|
|
5940 ;;
|
|
5941 *)
|
|
5942 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
|
|
5943 ;;
|
|
5944 esac
|
|
5945
|
|
5946
|
|
5947 fi
|
|
5948
|
|
5949
|
|
5950 if test -n "$ERRNO_H"; then
|
|
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
|
|
5952 $as_echo_n "checking for EOVERFLOW value... " >&6; }
|
|
5953 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
|
|
5954 $as_echo_n "(cached) " >&6
|
|
5955 else
|
|
5956
|
|
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5958 /* end confdefs.h. */
|
|
5959
|
|
5960 #include <errno.h>
|
|
5961 #ifdef EOVERFLOW
|
|
5962 yes
|
|
5963 #endif
|
|
5964
|
|
5965 _ACEOF
|
|
5966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5967 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5968 gl_cv_header_errno_h_EOVERFLOW=yes
|
|
5969 else
|
|
5970 gl_cv_header_errno_h_EOVERFLOW=no
|
|
5971 fi
|
|
5972 rm -f conftest*
|
|
5973
|
|
5974 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
|
|
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
5976 /* end confdefs.h. */
|
|
5977
|
|
5978 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5979 #include <errno.h>
|
|
5980 #ifdef EOVERFLOW
|
|
5981 yes
|
|
5982 #endif
|
|
5983
|
|
5984 _ACEOF
|
|
5985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5986 $EGREP "yes" >/dev/null 2>&1; then :
|
|
5987 gl_cv_header_errno_h_EOVERFLOW=hidden
|
|
5988 fi
|
|
5989 rm -f conftest*
|
|
5990
|
|
5991 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
|
|
5992 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
|
|
5993 #define _XOPEN_SOURCE_EXTENDED 1
|
|
5994 #include <errno.h>
|
|
5995 /* The following two lines are a workaround against an autoconf-2.52 bug. */
|
|
5996 #include <stdio.h>
|
|
5997 #include <stdlib.h>
|
|
5998 "; then :
|
|
5999
|
|
6000 fi
|
|
6001
|
|
6002 fi
|
|
6003 fi
|
|
6004
|
|
6005 fi
|
|
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
|
|
6007 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
|
|
6008 case $gl_cv_header_errno_h_EOVERFLOW in
|
|
6009 yes | no)
|
|
6010 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
|
|
6011 ;;
|
|
6012 *)
|
|
6013 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
|
|
6014 ;;
|
|
6015 esac
|
|
6016
|
|
6017
|
|
6018 fi
|
|
6019
|
|
6020
|
|
6021
|
|
6022
|
|
6023
|
|
6024
|
|
6025
|
|
6026
|
|
6027 GNULIB_CHOWN=0;
|
|
6028 GNULIB_CLOSE=0;
|
|
6029 GNULIB_DUP2=0;
|
|
6030 GNULIB_DUP3=0;
|
|
6031 GNULIB_ENVIRON=0;
|
|
6032 GNULIB_EUIDACCESS=0;
|
|
6033 GNULIB_FACCESSAT=0;
|
|
6034 GNULIB_FCHDIR=0;
|
|
6035 GNULIB_FCHOWNAT=0;
|
|
6036 GNULIB_FSYNC=0;
|
|
6037 GNULIB_FTRUNCATE=0;
|
|
6038 GNULIB_GETCWD=0;
|
|
6039 GNULIB_GETDOMAINNAME=0;
|
|
6040 GNULIB_GETDTABLESIZE=0;
|
|
6041 GNULIB_GETGROUPS=0;
|
|
6042 GNULIB_GETHOSTNAME=0;
|
|
6043 GNULIB_GETLOGIN_R=0;
|
|
6044 GNULIB_GETPAGESIZE=0;
|
|
6045 GNULIB_GETUSERSHELL=0;
|
|
6046 GNULIB_LCHOWN=0;
|
|
6047 GNULIB_LINK=0;
|
|
6048 GNULIB_LINKAT=0;
|
|
6049 GNULIB_LSEEK=0;
|
|
6050 GNULIB_PIPE2=0;
|
|
6051 GNULIB_PREAD=0;
|
|
6052 GNULIB_READLINK=0;
|
|
6053 GNULIB_READLINKAT=0;
|
|
6054 GNULIB_RMDIR=0;
|
|
6055 GNULIB_SLEEP=0;
|
|
6056 GNULIB_SYMLINK=0;
|
|
6057 GNULIB_SYMLINKAT=0;
|
|
6058 GNULIB_UNISTD_H_GETOPT=0;
|
|
6059 GNULIB_UNISTD_H_SIGPIPE=0;
|
|
6060 GNULIB_UNLINK=0;
|
|
6061 GNULIB_UNLINKAT=0;
|
|
6062 GNULIB_USLEEP=0;
|
|
6063 GNULIB_WRITE=0;
|
|
6064 HAVE_CHOWN=1;
|
|
6065 HAVE_DUP2=1;
|
|
6066 HAVE_DUP3=1;
|
|
6067 HAVE_EUIDACCESS=1;
|
|
6068 HAVE_FACCESSAT=1;
|
|
6069 HAVE_FCHOWNAT=1;
|
|
6070 HAVE_FSYNC=1;
|
|
6071 HAVE_FTRUNCATE=1;
|
|
6072 HAVE_GETDOMAINNAME=1;
|
|
6073 HAVE_GETDTABLESIZE=1;
|
|
6074 HAVE_GETGROUPS=1;
|
|
6075 HAVE_GETHOSTNAME=1;
|
|
6076 HAVE_GETPAGESIZE=1;
|
|
6077 HAVE_GETUSERSHELL=1;
|
|
6078 HAVE_LCHOWN=1;
|
|
6079 HAVE_LINK=1;
|
|
6080 HAVE_LINKAT=1;
|
|
6081 HAVE_PIPE2=1;
|
|
6082 HAVE_PREAD=1;
|
|
6083 HAVE_READLINK=1;
|
|
6084 HAVE_READLINKAT=1;
|
|
6085 HAVE_SLEEP=1;
|
|
6086 HAVE_SYMLINK=1;
|
|
6087 HAVE_SYMLINKAT=1;
|
|
6088 HAVE_DECL_ENVIRON=1;
|
|
6089 HAVE_DECL_GETLOGIN_R=1;
|
|
6090 HAVE_OS_H=0;
|
|
6091 HAVE_SYS_PARAM_H=0;
|
|
6092 HAVE_UNLINKAT=1;
|
|
6093 HAVE_USLEEP=1;
|
|
6094 REPLACE_CHOWN=0;
|
|
6095 REPLACE_CLOSE=0;
|
|
6096 REPLACE_DUP=0;
|
|
6097 REPLACE_DUP2=0;
|
|
6098 REPLACE_FCHDIR=0;
|
|
6099 REPLACE_FCHOWNAT=0;
|
|
6100 REPLACE_GETCWD=0;
|
|
6101 REPLACE_GETGROUPS=0;
|
|
6102 REPLACE_GETPAGESIZE=0;
|
|
6103 REPLACE_LCHOWN=0;
|
|
6104 REPLACE_LINK=0;
|
|
6105 REPLACE_LINKAT=0;
|
|
6106 REPLACE_LSEEK=0;
|
|
6107 REPLACE_PREAD=0;
|
|
6108 REPLACE_READLINK=0;
|
|
6109 REPLACE_RMDIR=0;
|
|
6110 REPLACE_SLEEP=0;
|
|
6111 REPLACE_SYMLINK=0;
|
|
6112 REPLACE_UNLINK=0;
|
|
6113 REPLACE_UNLINKAT=0;
|
|
6114 REPLACE_USLEEP=0;
|
|
6115 REPLACE_WRITE=0;
|
|
6116 UNISTD_H_HAVE_WINSOCK2_H=0;
|
|
6117 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
|
|
6118
|
|
6119
|
|
6120
|
|
6121
|
|
6122
|
|
6123
|
|
6124
|
|
6125
|
|
6126
|
|
6127
|
|
6128
|
|
6129
|
|
6130
|
|
6131
|
|
6132
|
|
6133 :
|
|
6134
|
|
6135
|
|
6136
|
|
6137
|
|
6138
|
|
6139
|
|
6140
|
|
6141 if test $gl_cv_have_include_next = yes; then
|
|
6142 gl_cv_next_getopt_h='<'getopt.h'>'
|
|
6143 else
|
|
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
|
|
6145 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
|
|
6146 if test "${gl_cv_next_getopt_h+set}" = set; then :
|
|
6147 $as_echo_n "(cached) " >&6
|
|
6148 else
|
|
6149
|
|
6150 if test $ac_cv_header_getopt_h = yes; then
|
|
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6152 /* end confdefs.h. */
|
|
6153 #include <getopt.h>
|
|
6154
|
|
6155 _ACEOF
|
|
6156 case "$host_os" in
|
|
6157 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
6158 *) gl_absname_cpp="$ac_cpp" ;;
|
|
6159 esac
|
|
6160 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
6161 sed -n '\#/getopt.h#{
|
|
6162 s#.*"\(.*/getopt.h\)".*#\1#
|
|
6163 s#^/[^/]#//&#
|
|
6164 p
|
|
6165 q
|
|
6166 }'`'"'
|
|
6167 else
|
|
6168 gl_cv_next_getopt_h='<'getopt.h'>'
|
|
6169 fi
|
|
6170
|
|
6171 fi
|
|
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
|
|
6173 $as_echo "$gl_cv_next_getopt_h" >&6; }
|
|
6174 fi
|
|
6175 NEXT_GETOPT_H=$gl_cv_next_getopt_h
|
|
6176
|
|
6177 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
6178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
6179 gl_next_as_first_directive='<'getopt.h'>'
|
|
6180 else
|
|
6181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
6182 gl_next_as_first_directive=$gl_cv_next_getopt_h
|
|
6183 fi
|
|
6184 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
|
|
6185
|
|
6186
|
|
6187
|
|
6188
|
|
6189 :
|
|
6190
|
|
6191
|
|
6192
|
|
6193
|
|
6194
|
|
6195 if test $ac_cv_header_getopt_h = yes; then
|
|
6196 HAVE_GETOPT_H=1
|
|
6197 else
|
|
6198 HAVE_GETOPT_H=0
|
|
6199 fi
|
|
6200
|
|
6201
|
|
6202 gl_replace_getopt=
|
|
6203
|
|
6204 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
|
|
6205 for ac_header in getopt.h
|
|
6206 do :
|
|
6207 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
|
|
6208 if test "x$ac_cv_header_getopt_h" = x""yes; then :
|
|
6209 cat >>confdefs.h <<_ACEOF
|
|
6210 #define HAVE_GETOPT_H 1
|
|
6211 _ACEOF
|
|
6212
|
|
6213 else
|
|
6214 gl_replace_getopt=yes
|
|
6215 fi
|
|
6216
|
|
6217 done
|
|
6218
|
|
6219 fi
|
|
6220
|
|
6221 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
|
|
6222 for ac_func in getopt_long_only
|
|
6223 do :
|
|
6224 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
|
|
6225 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
|
|
6226 cat >>confdefs.h <<_ACEOF
|
|
6227 #define HAVE_GETOPT_LONG_ONLY 1
|
|
6228 _ACEOF
|
|
6229
|
|
6230 else
|
|
6231 gl_replace_getopt=yes
|
|
6232 fi
|
|
6233 done
|
|
6234
|
|
6235 fi
|
|
6236
|
|
6237 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
|
|
6238 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
|
|
6239 "
|
|
6240 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
|
|
6241 ac_have_decl=1
|
|
6242 else
|
|
6243 ac_have_decl=0
|
|
6244 fi
|
|
6245
|
|
6246 cat >>confdefs.h <<_ACEOF
|
|
6247 #define HAVE_DECL_OPTRESET $ac_have_decl
|
|
6248 _ACEOF
|
|
6249
|
|
6250 fi
|
|
6251
|
|
6252 if test -z "$gl_replace_getopt"; then
|
|
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
|
|
6254 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
|
|
6255 if test "${gl_cv_func_getopt_posix+set}" = set; then :
|
|
6256 $as_echo_n "(cached) " >&6
|
|
6257 else
|
|
6258
|
|
6259 if test "$cross_compiling" = yes; then :
|
|
6260 case "$host_os" in
|
|
6261 mingw*) gl_cv_func_getopt_posix="guessing no";;
|
|
6262 *) gl_cv_func_getopt_posix="guessing yes";;
|
|
6263 esac
|
|
6264
|
|
6265 else
|
|
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6267 /* end confdefs.h. */
|
|
6268
|
|
6269 #include <unistd.h>
|
|
6270 #include <stdlib.h>
|
|
6271 #include <string.h>
|
|
6272
|
|
6273 #if !HAVE_DECL_OPTRESET
|
|
6274 # define OPTIND_MIN 0
|
|
6275 #else
|
|
6276 # define OPTIND_MIN 1
|
|
6277 #endif
|
|
6278
|
|
6279 int
|
|
6280 main ()
|
|
6281 {
|
|
6282 {
|
|
6283 int argc = 0;
|
|
6284 char *argv[10];
|
|
6285 int c;
|
|
6286
|
|
6287 argv[argc++] = "program";
|
|
6288 argv[argc++] = "-a";
|
|
6289 argv[argc++] = "foo";
|
|
6290 argv[argc++] = "bar";
|
|
6291 argv[argc] = NULL;
|
|
6292 optind = OPTIND_MIN;
|
|
6293 opterr = 0;
|
|
6294
|
|
6295 c = getopt (argc, argv, "ab");
|
|
6296 if (!(c == 'a'))
|
|
6297 return 1;
|
|
6298 c = getopt (argc, argv, "ab");
|
|
6299 if (!(c == -1))
|
|
6300 return 2;
|
|
6301 if (!(optind == 2))
|
|
6302 return 3;
|
|
6303 }
|
|
6304 /* Some internal state exists at this point. */
|
|
6305 {
|
|
6306 int argc = 0;
|
|
6307 char *argv[10];
|
|
6308 int c;
|
|
6309
|
|
6310 argv[argc++] = "program";
|
|
6311 argv[argc++] = "donald";
|
|
6312 argv[argc++] = "-p";
|
|
6313 argv[argc++] = "billy";
|
|
6314 argv[argc++] = "duck";
|
|
6315 argv[argc++] = "-a";
|
|
6316 argv[argc++] = "bar";
|
|
6317 argv[argc] = NULL;
|
|
6318 optind = OPTIND_MIN;
|
|
6319 opterr = 0;
|
|
6320
|
|
6321 c = getopt (argc, argv, "+abp:q:");
|
|
6322 if (!(c == -1))
|
|
6323 return 4;
|
|
6324 if (!(strcmp (argv[0], "program") == 0))
|
|
6325 return 5;
|
|
6326 if (!(strcmp (argv[1], "donald") == 0))
|
|
6327 return 6;
|
|
6328 if (!(strcmp (argv[2], "-p") == 0))
|
|
6329 return 7;
|
|
6330 if (!(strcmp (argv[3], "billy") == 0))
|
|
6331 return 8;
|
|
6332 if (!(strcmp (argv[4], "duck") == 0))
|
|
6333 return 9;
|
|
6334 if (!(strcmp (argv[5], "-a") == 0))
|
|
6335 return 10;
|
|
6336 if (!(strcmp (argv[6], "bar") == 0))
|
|
6337 return 11;
|
|
6338 if (!(optind == 1))
|
|
6339 return 12;
|
|
6340 }
|
|
6341
|
|
6342 return 0;
|
|
6343 }
|
|
6344
|
|
6345 _ACEOF
|
|
6346 if ac_fn_c_try_run "$LINENO"; then :
|
|
6347 gl_cv_func_getopt_posix=yes
|
|
6348 else
|
|
6349 gl_cv_func_getopt_posix=no
|
|
6350 fi
|
|
6351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
6352 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6353 fi
|
|
6354
|
|
6355
|
|
6356 fi
|
|
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
|
|
6358 $as_echo "$gl_cv_func_getopt_posix" >&6; }
|
|
6359 case "$gl_cv_func_getopt_posix" in
|
|
6360 *no) gl_replace_getopt=yes ;;
|
|
6361 esac
|
|
6362 fi
|
|
6363
|
|
6364 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
|
|
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
|
|
6366 $as_echo_n "checking for working GNU getopt function... " >&6; }
|
|
6367 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
|
|
6368 $as_echo_n "(cached) " >&6
|
|
6369 else
|
|
6370 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
|
|
6371 # optstring is necessary for programs like m4 that have POSIX-mandated
|
|
6372 # semantics for supporting options interspersed with files.
|
|
6373 # Also, since getopt_long is a GNU extension, we require optind=0.
|
|
6374 gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
|
|
6375 POSIXLY_CORRECT=1
|
|
6376 export POSIXLY_CORRECT
|
|
6377 if test "$cross_compiling" = yes; then :
|
|
6378 case $host_os:$ac_cv_have_decl_optreset in
|
|
6379 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
|
|
6380 *:yes) gl_cv_func_getopt_gnu=no;;
|
|
6381 *) gl_cv_func_getopt_gnu=yes;;
|
|
6382 esac
|
|
6383
|
|
6384 else
|
|
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6386 /* end confdefs.h. */
|
|
6387 #include <getopt.h>
|
|
6388 #include <stddef.h>
|
|
6389 #include <string.h>
|
|
6390
|
|
6391 int
|
|
6392 main ()
|
|
6393 {
|
|
6394
|
|
6395 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
|
|
6396 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
|
|
6397 OSF/1 5.1, Solaris 10. */
|
|
6398 {
|
|
6399 char *myargv[3];
|
|
6400 myargv[0] = "conftest";
|
|
6401 myargv[1] = "-+";
|
|
6402 myargv[2] = 0;
|
|
6403 opterr = 0;
|
|
6404 if (getopt (2, myargv, "+a") != '?')
|
|
6405 return 1;
|
|
6406 }
|
|
6407 /* This code succeeds on glibc 2.8, mingw,
|
|
6408 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
|
|
6409 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
|
|
6410 {
|
|
6411 char *argv[] = { "program", "-p", "foo", "bar", NULL };
|
|
6412
|
|
6413 optind = 1;
|
|
6414 if (getopt (4, argv, "p::") != 'p')
|
|
6415 return 2;
|
|
6416 if (optarg != NULL)
|
|
6417 return 3;
|
|
6418 if (getopt (4, argv, "p::") != -1)
|
|
6419 return 4;
|
|
6420 if (optind != 2)
|
|
6421 return 5;
|
|
6422 }
|
|
6423 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
|
|
6424 {
|
|
6425 char *argv[] = { "program", "foo", "-p", NULL };
|
|
6426 optind = 0;
|
|
6427 if (getopt (3, argv, "-p") != 1)
|
|
6428 return 6;
|
|
6429 if (getopt (3, argv, "-p") != 'p')
|
|
6430 return 7;
|
|
6431 }
|
|
6432 return 0;
|
|
6433
|
|
6434 ;
|
|
6435 return 0;
|
|
6436 }
|
|
6437 _ACEOF
|
|
6438 if ac_fn_c_try_run "$LINENO"; then :
|
|
6439 gl_cv_func_getopt_gnu=yes
|
|
6440 else
|
|
6441 gl_cv_func_getopt_gnu=no
|
|
6442 fi
|
|
6443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
6444 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6445 fi
|
|
6446
|
|
6447 if test "$gl_had_POSIXLY_CORRECT" != yes; then
|
|
6448 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
|
|
6449 fi
|
|
6450
|
|
6451 fi
|
|
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
|
|
6453 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
|
|
6454 if test "$gl_cv_func_getopt_gnu" = "no"; then
|
|
6455 gl_replace_getopt=yes
|
|
6456 fi
|
|
6457 fi
|
|
6458
|
|
6459
|
|
6460
|
|
6461
|
|
6462
|
|
6463
|
|
6464 if test -n "$gl_replace_getopt"; then :
|
|
6465
|
|
6466
|
|
6467
|
|
6468 GETOPT_H=getopt.h
|
|
6469
|
|
6470 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
|
|
6471
|
|
6472
|
|
6473
|
|
6474 GNULIB_UNISTD_H_GETOPT=1
|
|
6475
|
|
6476
|
|
6477
|
|
6478
|
|
6479
|
|
6480
|
|
6481
|
|
6482
|
|
6483 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
|
|
6484
|
|
6485
|
|
6486
|
|
6487
|
|
6488
|
|
6489
|
|
6490
|
|
6491
|
|
6492
|
|
6493 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
|
|
6494
|
|
6495
|
|
6496
|
|
6497 :
|
|
6498
|
|
6499
|
|
6500
|
|
6501
|
|
6502
|
|
6503
|
|
6504
|
|
6505
|
|
6506 fi
|
|
6507
|
|
6508
|
|
6509
|
|
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
|
|
6511 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
|
|
6512 if test "${gl_cv_func_malloc_posix+set}" = set; then :
|
|
6513 $as_echo_n "(cached) " >&6
|
|
6514 else
|
|
6515
|
|
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6517 /* end confdefs.h. */
|
|
6518
|
|
6519 int
|
|
6520 main ()
|
|
6521 {
|
|
6522 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
|
|
6523 choke me
|
|
6524 #endif
|
|
6525
|
|
6526 ;
|
|
6527 return 0;
|
|
6528 }
|
|
6529 _ACEOF
|
|
6530 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6531 gl_cv_func_malloc_posix=yes
|
|
6532 else
|
|
6533 gl_cv_func_malloc_posix=no
|
|
6534 fi
|
|
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6536
|
|
6537 fi
|
|
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
|
|
6539 $as_echo "$gl_cv_func_malloc_posix" >&6; }
|
|
6540
|
|
6541
|
|
6542 GNULIB_ATOLL=0;
|
|
6543 GNULIB_CALLOC_POSIX=0;
|
|
6544 GNULIB_CANONICALIZE_FILE_NAME=0;
|
|
6545 GNULIB_GETLOADAVG=0;
|
|
6546 GNULIB_GETSUBOPT=0;
|
|
6547 GNULIB_MALLOC_POSIX=0;
|
|
6548 GNULIB_MKDTEMP=0;
|
|
6549 GNULIB_MKOSTEMP=0;
|
|
6550 GNULIB_MKOSTEMPS=0;
|
|
6551 GNULIB_MKSTEMP=0;
|
|
6552 GNULIB_MKSTEMPS=0;
|
|
6553 GNULIB_PUTENV=0;
|
|
6554 GNULIB_RANDOM_R=0;
|
|
6555 GNULIB_REALLOC_POSIX=0;
|
|
6556 GNULIB_REALPATH=0;
|
|
6557 GNULIB_RPMATCH=0;
|
|
6558 GNULIB_SETENV=0;
|
|
6559 GNULIB_STRTOD=0;
|
|
6560 GNULIB_STRTOLL=0;
|
|
6561 GNULIB_STRTOULL=0;
|
|
6562 GNULIB_UNSETENV=0;
|
|
6563 HAVE_ATOLL=1;
|
|
6564 HAVE_CALLOC_POSIX=1;
|
|
6565 HAVE_CANONICALIZE_FILE_NAME=1;
|
|
6566 HAVE_DECL_GETLOADAVG=1;
|
|
6567 HAVE_GETSUBOPT=1;
|
|
6568 HAVE_MALLOC_POSIX=1;
|
|
6569 HAVE_MKDTEMP=1;
|
|
6570 HAVE_MKOSTEMP=1;
|
|
6571 HAVE_MKOSTEMPS=1;
|
|
6572 HAVE_MKSTEMPS=1;
|
|
6573 HAVE_RANDOM_R=1;
|
|
6574 HAVE_REALLOC_POSIX=1;
|
|
6575 HAVE_REALPATH=1;
|
|
6576 HAVE_RPMATCH=1;
|
|
6577 HAVE_SETENV=1;
|
|
6578 HAVE_STRTOD=1;
|
|
6579 HAVE_STRTOLL=1;
|
|
6580 HAVE_STRTOULL=1;
|
|
6581 HAVE_STRUCT_RANDOM_DATA=1;
|
|
6582 HAVE_SYS_LOADAVG_H=0;
|
|
6583 HAVE_UNSETENV=1;
|
|
6584 REPLACE_CANONICALIZE_FILE_NAME=0;
|
|
6585 REPLACE_MKSTEMP=0;
|
|
6586 REPLACE_PUTENV=0;
|
|
6587 REPLACE_REALPATH=0;
|
|
6588 REPLACE_SETENV=0;
|
|
6589 REPLACE_STRTOD=0;
|
|
6590 REPLACE_UNSETENV=0;
|
|
6591
|
|
6592
|
|
6593
|
|
6594
|
|
6595
|
|
6596
|
|
6597
|
|
6598
|
|
6599
|
|
6600
|
|
6601
|
|
6602
|
|
6603 GNULIB_MEMCHR=0;
|
|
6604 GNULIB_MEMMEM=0;
|
|
6605 GNULIB_MEMPCPY=0;
|
|
6606 GNULIB_MEMRCHR=0;
|
|
6607 GNULIB_RAWMEMCHR=0;
|
|
6608 GNULIB_STPCPY=0;
|
|
6609 GNULIB_STPNCPY=0;
|
|
6610 GNULIB_STRCHRNUL=0;
|
|
6611 GNULIB_STRDUP=0;
|
|
6612 GNULIB_STRNDUP=0;
|
|
6613 GNULIB_STRNLEN=0;
|
|
6614 GNULIB_STRPBRK=0;
|
|
6615 GNULIB_STRSEP=0;
|
|
6616 GNULIB_STRSTR=0;
|
|
6617 GNULIB_STRCASESTR=0;
|
|
6618 GNULIB_STRTOK_R=0;
|
|
6619 GNULIB_MBSLEN=0;
|
|
6620 GNULIB_MBSNLEN=0;
|
|
6621 GNULIB_MBSCHR=0;
|
|
6622 GNULIB_MBSRCHR=0;
|
|
6623 GNULIB_MBSSTR=0;
|
|
6624 GNULIB_MBSCASECMP=0;
|
|
6625 GNULIB_MBSNCASECMP=0;
|
|
6626 GNULIB_MBSPCASECMP=0;
|
|
6627 GNULIB_MBSCASESTR=0;
|
|
6628 GNULIB_MBSCSPN=0;
|
|
6629 GNULIB_MBSPBRK=0;
|
|
6630 GNULIB_MBSSPN=0;
|
|
6631 GNULIB_MBSSEP=0;
|
|
6632 GNULIB_MBSTOK_R=0;
|
|
6633 GNULIB_STRERROR=0;
|
|
6634 GNULIB_STRSIGNAL=0;
|
|
6635 GNULIB_STRVERSCMP=0;
|
|
6636 HAVE_MBSLEN=0;
|
|
6637 HAVE_DECL_MEMMEM=1;
|
|
6638 HAVE_MEMPCPY=1;
|
|
6639 HAVE_DECL_MEMRCHR=1;
|
|
6640 HAVE_RAWMEMCHR=1;
|
|
6641 HAVE_STPCPY=1;
|
|
6642 HAVE_STPNCPY=1;
|
|
6643 HAVE_STRCHRNUL=1;
|
|
6644 HAVE_DECL_STRDUP=1;
|
|
6645 HAVE_DECL_STRNDUP=1;
|
|
6646 HAVE_DECL_STRNLEN=1;
|
|
6647 HAVE_STRPBRK=1;
|
|
6648 HAVE_STRSEP=1;
|
|
6649 HAVE_STRCASESTR=1;
|
|
6650 HAVE_DECL_STRTOK_R=1;
|
|
6651 HAVE_DECL_STRERROR=1;
|
|
6652 HAVE_DECL_STRSIGNAL=1;
|
|
6653 HAVE_STRVERSCMP=1;
|
|
6654 REPLACE_MEMCHR=0;
|
|
6655 REPLACE_MEMMEM=0;
|
|
6656 REPLACE_STRDUP=0;
|
|
6657 REPLACE_STRSTR=0;
|
|
6658 REPLACE_STRCASESTR=0;
|
|
6659 REPLACE_STRERROR=0;
|
|
6660 REPLACE_STRNDUP=0;
|
|
6661 REPLACE_STRSIGNAL=0;
|
|
6662 REPLACE_STRTOK_R=0;
|
|
6663 UNDEFINE_STRTOK_R=0;
|
|
6664
|
|
6665
|
|
6666
|
|
6667
|
|
6668
|
|
6669
|
|
6670
|
|
6671
|
|
6672 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
|
|
6673 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
|
|
6674 # irrelevant for anonymous mappings.
|
|
6675 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
|
|
6676 if test "x$ac_cv_func_mmap" = x""yes; then :
|
|
6677 gl_have_mmap=yes
|
|
6678 else
|
|
6679 gl_have_mmap=no
|
|
6680 fi
|
|
6681
|
|
6682
|
|
6683 # Try to allow MAP_ANONYMOUS.
|
|
6684 gl_have_mmap_anonymous=no
|
|
6685 if test $gl_have_mmap = yes; then
|
|
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
|
|
6687 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
|
|
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6689 /* end confdefs.h. */
|
|
6690
|
|
6691 #include <sys/mman.h>
|
|
6692 #ifdef MAP_ANONYMOUS
|
|
6693 I cant identify this map.
|
|
6694 #endif
|
|
6695
|
|
6696 _ACEOF
|
|
6697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6698 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
|
|
6699 gl_have_mmap_anonymous=yes
|
|
6700 fi
|
|
6701 rm -f conftest*
|
|
6702
|
|
6703 if test $gl_have_mmap_anonymous != yes; then
|
|
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6705 /* end confdefs.h. */
|
|
6706
|
|
6707 #include <sys/mman.h>
|
|
6708 #ifdef MAP_ANON
|
|
6709 I cant identify this map.
|
|
6710 #endif
|
|
6711
|
|
6712 _ACEOF
|
|
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6714 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
|
|
6715
|
|
6716 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
|
|
6717
|
|
6718 gl_have_mmap_anonymous=yes
|
|
6719 fi
|
|
6720 rm -f conftest*
|
|
6721
|
|
6722 fi
|
|
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
|
|
6724 $as_echo "$gl_have_mmap_anonymous" >&6; }
|
|
6725 if test $gl_have_mmap_anonymous = yes; then
|
|
6726
|
|
6727 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
|
|
6728
|
|
6729 fi
|
|
6730 fi
|
|
6731
|
|
6732
|
|
6733 :
|
|
6734
|
|
6735
|
|
6736
|
|
6737
|
|
6738
|
|
6739
|
|
6740 :
|
|
6741
|
|
6742
|
|
6743
|
|
6744
|
|
6745
|
|
6746
|
|
6747
|
|
6748
|
|
6749
|
|
6750
|
|
6751
|
|
6752
|
|
6753
|
|
6754
|
|
6755
|
|
6756 for ac_func in memchr
|
|
6757 do :
|
|
6758 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
|
|
6759 if test "x$ac_cv_func_memchr" = x""yes; then :
|
|
6760 cat >>confdefs.h <<_ACEOF
|
|
6761 #define HAVE_MEMCHR 1
|
|
6762 _ACEOF
|
|
6763
|
|
6764 else
|
|
6765
|
|
6766 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
6767
|
|
6768 fi
|
|
6769 done
|
|
6770
|
|
6771
|
|
6772 if test $ac_cv_func_memchr = no; then
|
|
6773
|
|
6774 for ac_header in bp-sym.h
|
|
6775 do :
|
|
6776 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
|
|
6777 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
|
|
6778 cat >>confdefs.h <<_ACEOF
|
|
6779 #define HAVE_BP_SYM_H 1
|
|
6780 _ACEOF
|
|
6781
|
|
6782 fi
|
|
6783
|
|
6784 done
|
|
6785
|
|
6786
|
|
6787 REPLACE_MEMCHR=1
|
|
6788 fi
|
|
6789
|
|
6790 if test $ac_cv_func_memchr = yes; then
|
|
6791 # Detect platform-specific bugs in some versions of glibc:
|
|
6792 # memchr should not dereference anything with length 0
|
|
6793 # http://bugzilla.redhat.com/499689
|
|
6794 # memchr should not dereference overestimated length after a match
|
|
6795 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
|
|
6796 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
|
|
6797 # Assume that memchr works on platforms that lack mprotect.
|
|
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
|
|
6799 $as_echo_n "checking whether memchr works... " >&6; }
|
|
6800 if test "${gl_cv_func_memchr_works+set}" = set; then :
|
|
6801 $as_echo_n "(cached) " >&6
|
|
6802 else
|
|
6803 if test "$cross_compiling" = yes; then :
|
|
6804 gl_cv_func_memchr_works="guessing no"
|
|
6805 else
|
|
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6807 /* end confdefs.h. */
|
|
6808
|
|
6809 #include <string.h>
|
|
6810 #if HAVE_SYS_MMAN_H
|
|
6811 # include <fcntl.h>
|
|
6812 # include <unistd.h>
|
|
6813 # include <sys/types.h>
|
|
6814 # include <sys/mman.h>
|
|
6815 # ifndef MAP_FILE
|
|
6816 # define MAP_FILE 0
|
|
6817 # endif
|
|
6818 #endif
|
|
6819
|
|
6820 int
|
|
6821 main ()
|
|
6822 {
|
|
6823
|
|
6824 char *fence = NULL;
|
|
6825 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
|
|
6826 # if HAVE_MAP_ANONYMOUS
|
|
6827 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
|
|
6828 const int fd = -1;
|
|
6829 # else /* !HAVE_MAP_ANONYMOUS */
|
|
6830 const int flags = MAP_FILE | MAP_PRIVATE;
|
|
6831 int fd = open ("/dev/zero", O_RDONLY, 0666);
|
|
6832 if (fd >= 0)
|
|
6833 # endif
|
|
6834 {
|
|
6835 int pagesize = getpagesize ();
|
|
6836 char *two_pages =
|
|
6837 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
|
|
6838 flags, fd, 0);
|
|
6839 if (two_pages != (char *)(-1)
|
|
6840 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
|
|
6841 fence = two_pages + pagesize;
|
|
6842 }
|
|
6843 #endif
|
|
6844 if (fence)
|
|
6845 {
|
|
6846 if (memchr (fence, 0, 0))
|
|
6847 return 1;
|
|
6848 strcpy (fence - 9, "12345678");
|
|
6849 if (memchr (fence - 9, 0, 79) != fence - 1)
|
|
6850 return 2;
|
|
6851 }
|
|
6852 return 0;
|
|
6853
|
|
6854 ;
|
|
6855 return 0;
|
|
6856 }
|
|
6857 _ACEOF
|
|
6858 if ac_fn_c_try_run "$LINENO"; then :
|
|
6859 gl_cv_func_memchr_works=yes
|
|
6860 else
|
|
6861 gl_cv_func_memchr_works=no
|
|
6862 fi
|
|
6863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
6864 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
6865 fi
|
|
6866
|
|
6867 fi
|
|
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
|
|
6869 $as_echo "$gl_cv_func_memchr_works" >&6; }
|
|
6870 if test "$gl_cv_func_memchr_works" != yes; then
|
|
6871
|
|
6872 for ac_header in bp-sym.h
|
|
6873 do :
|
|
6874 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
|
|
6875 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
|
|
6876 cat >>confdefs.h <<_ACEOF
|
|
6877 #define HAVE_BP_SYM_H 1
|
|
6878 _ACEOF
|
|
6879
|
|
6880 fi
|
|
6881
|
|
6882 done
|
|
6883
|
|
6884
|
|
6885 REPLACE_MEMCHR=1
|
|
6886
|
|
6887
|
|
6888
|
|
6889
|
|
6890
|
|
6891
|
|
6892
|
|
6893
|
|
6894 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
|
|
6895
|
|
6896 fi
|
|
6897 fi
|
|
6898
|
|
6899
|
|
6900 gl_cv_c_multiarch=no
|
|
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6902 /* end confdefs.h. */
|
|
6903 #ifndef __APPLE_CC__
|
|
6904 not a universal capable compiler
|
|
6905 #endif
|
|
6906 typedef int dummy;
|
|
6907
|
|
6908 _ACEOF
|
|
6909 if ac_fn_c_try_compile "$LINENO"; then :
|
|
6910
|
|
6911 arch=
|
|
6912 prev=
|
|
6913 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
|
|
6914 if test -n "$prev"; then
|
|
6915 case $word in
|
|
6916 i?86 | x86_64 | ppc | ppc64)
|
|
6917 if test -z "$arch" || test "$arch" = "$word"; then
|
|
6918 arch="$word"
|
|
6919 else
|
|
6920 gl_cv_c_multiarch=yes
|
|
6921 fi
|
|
6922 ;;
|
|
6923 esac
|
|
6924 prev=
|
|
6925 else
|
|
6926 if test "x$word" = "x-arch"; then
|
|
6927 prev=arch
|
|
6928 fi
|
|
6929 fi
|
|
6930 done
|
|
6931
|
|
6932 fi
|
|
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6934 if test $gl_cv_c_multiarch = yes; then
|
|
6935
|
|
6936 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
|
6937
|
|
6938 APPLE_UNIVERSAL_BUILD=1
|
|
6939 else
|
|
6940 APPLE_UNIVERSAL_BUILD=0
|
|
6941 fi
|
|
6942
|
|
6943
|
|
6944
|
|
6945
|
|
6946
|
|
6947
|
|
6948
|
|
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
|
|
6950 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
|
|
6951 if test "${ac_cv_header_stdbool_h+set}" = set; then :
|
|
6952 $as_echo_n "(cached) " >&6
|
|
6953 else
|
|
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
6955 /* end confdefs.h. */
|
|
6956
|
|
6957 #include <stdbool.h>
|
|
6958 #ifndef bool
|
|
6959 "error: bool is not defined"
|
|
6960 #endif
|
|
6961 #ifndef false
|
|
6962 "error: false is not defined"
|
|
6963 #endif
|
|
6964 #if false
|
|
6965 "error: false is not 0"
|
|
6966 #endif
|
|
6967 #ifndef true
|
|
6968 "error: true is not defined"
|
|
6969 #endif
|
|
6970 #if true != 1
|
|
6971 "error: true is not 1"
|
|
6972 #endif
|
|
6973 #ifndef __bool_true_false_are_defined
|
|
6974 "error: __bool_true_false_are_defined is not defined"
|
|
6975 #endif
|
|
6976
|
|
6977 struct s { _Bool s: 1; _Bool t; } s;
|
|
6978
|
|
6979 char a[true == 1 ? 1 : -1];
|
|
6980 char b[false == 0 ? 1 : -1];
|
|
6981 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
|
6982 char d[(bool) 0.5 == true ? 1 : -1];
|
|
6983 bool e = &s;
|
|
6984 char f[(_Bool) 0.0 == false ? 1 : -1];
|
|
6985 char g[true];
|
|
6986 char h[sizeof (_Bool)];
|
|
6987 char i[sizeof s.t];
|
|
6988 enum { j = false, k = true, l = false * true, m = true * 256 };
|
|
6989 _Bool n[m];
|
|
6990 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
|
|
6991 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
|
|
6992 #if defined __xlc__ || defined __GNUC__
|
|
6993 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
|
|
6994 reported by James Lemley on 2005-10-05; see
|
|
6995 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
|
|
6996 This test is not quite right, since xlc is allowed to
|
|
6997 reject this program, as the initializer for xlcbug is
|
|
6998 not one of the forms that C requires support for.
|
|
6999 However, doing the test right would require a run-time
|
|
7000 test, and that would make cross-compilation harder.
|
|
7001 Let us hope that IBM fixes the xlc bug, and also adds
|
|
7002 support for this kind of constant expression. In the
|
|
7003 meantime, this test will reject xlc, which is OK, since
|
|
7004 our stdbool.h substitute should suffice. We also test
|
|
7005 this with GCC, where it should work, to detect more
|
|
7006 quickly whether someone messes up the test in the
|
|
7007 future. */
|
|
7008 char digs[] = "0123456789";
|
|
7009 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
|
|
7010 #endif
|
|
7011 /* Catch a bug in an HP-UX C compiler. See
|
|
7012 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
|
|
7013 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
|
|
7014 */
|
|
7015 _Bool q = true;
|
|
7016 _Bool *pq = &q;
|
|
7017
|
|
7018 int
|
|
7019 main ()
|
|
7020 {
|
|
7021
|
|
7022 *pq |= q;
|
|
7023 *pq |= ! q;
|
|
7024 /* Refer to every declared value, to avoid compiler optimizations. */
|
|
7025 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
|
|
7026 + !m + !n + !o + !p + !q + !pq);
|
|
7027
|
|
7028 ;
|
|
7029 return 0;
|
|
7030 }
|
|
7031 _ACEOF
|
|
7032 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7033 ac_cv_header_stdbool_h=yes
|
|
7034 else
|
|
7035 ac_cv_header_stdbool_h=no
|
|
7036 fi
|
|
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7038 fi
|
|
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
|
|
7040 $as_echo "$ac_cv_header_stdbool_h" >&6; }
|
|
7041 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
|
|
7042 if test "x$ac_cv_type__Bool" = x""yes; then :
|
|
7043
|
|
7044 cat >>confdefs.h <<_ACEOF
|
|
7045 #define HAVE__BOOL 1
|
|
7046 _ACEOF
|
|
7047
|
|
7048
|
|
7049 fi
|
|
7050
|
|
7051 if test $ac_cv_header_stdbool_h = yes; then
|
|
7052
|
|
7053 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
|
|
7054
|
|
7055 fi
|
|
7056
|
|
7057 REPLACE_NULL=0;
|
|
7058 HAVE_WCHAR_T=1;
|
|
7059 STDDEF_H='';
|
|
7060
|
|
7061
|
|
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
|
|
7063 $as_echo_n "checking for wchar_t... " >&6; }
|
|
7064 if test "${gt_cv_c_wchar_t+set}" = set; then :
|
|
7065 $as_echo_n "(cached) " >&6
|
|
7066 else
|
|
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7068 /* end confdefs.h. */
|
|
7069 #include <stddef.h>
|
|
7070 wchar_t foo = (wchar_t)'\0';
|
|
7071 int
|
|
7072 main ()
|
|
7073 {
|
|
7074
|
|
7075 ;
|
|
7076 return 0;
|
|
7077 }
|
|
7078 _ACEOF
|
|
7079 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7080 gt_cv_c_wchar_t=yes
|
|
7081 else
|
|
7082 gt_cv_c_wchar_t=no
|
|
7083 fi
|
|
7084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7085 fi
|
|
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
|
|
7087 $as_echo "$gt_cv_c_wchar_t" >&6; }
|
|
7088 if test $gt_cv_c_wchar_t = yes; then
|
|
7089
|
|
7090 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
|
|
7091
|
|
7092 fi
|
|
7093
|
|
7094
|
|
7095
|
|
7096
|
|
7097
|
|
7098
|
|
7099
|
|
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
|
|
7101 $as_echo_n "checking for long long int... " >&6; }
|
|
7102 if test "${ac_cv_type_long_long_int+set}" = set; then :
|
|
7103 $as_echo_n "(cached) " >&6
|
|
7104 else
|
|
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7106 /* end confdefs.h. */
|
|
7107
|
|
7108 /* For now, do not test the preprocessor; as of 2007 there are too many
|
|
7109 implementations with broken preprocessors. Perhaps this can
|
|
7110 be revisited in 2012. In the meantime, code should not expect
|
|
7111 #if to work with literals wider than 32 bits. */
|
|
7112 /* Test literals. */
|
|
7113 long long int ll = 9223372036854775807ll;
|
|
7114 long long int nll = -9223372036854775807LL;
|
|
7115 unsigned long long int ull = 18446744073709551615ULL;
|
|
7116 /* Test constant expressions. */
|
|
7117 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
7118 ? 1 : -1)];
|
|
7119 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
7120 ? 1 : -1)];
|
|
7121 int i = 63;
|
|
7122 int
|
|
7123 main ()
|
|
7124 {
|
|
7125 /* Test availability of runtime routines for shift and division. */
|
|
7126 long long int llmax = 9223372036854775807ll;
|
|
7127 unsigned long long int ullmax = 18446744073709551615ull;
|
|
7128 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
7129 | (llmax / ll) | (llmax % ll)
|
|
7130 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
7131 | (ullmax / ull) | (ullmax % ull));
|
|
7132 ;
|
|
7133 return 0;
|
|
7134 }
|
|
7135
|
|
7136 _ACEOF
|
|
7137 if ac_fn_c_try_link "$LINENO"; then :
|
|
7138 if test "$cross_compiling" = yes; then :
|
|
7139 ac_cv_type_long_long_int=yes
|
|
7140 else
|
|
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7142 /* end confdefs.h. */
|
|
7143 #include <limits.h>
|
|
7144 #ifndef LLONG_MAX
|
|
7145 # define HALF \
|
|
7146 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
|
|
7147 # define LLONG_MAX (HALF - 1 + HALF)
|
|
7148 #endif
|
|
7149 int
|
|
7150 main ()
|
|
7151 {
|
|
7152 long long int n = 1;
|
|
7153 int i;
|
|
7154 for (i = 0; ; i++)
|
|
7155 {
|
|
7156 long long int m = n << i;
|
|
7157 if (m >> i != n)
|
|
7158 return 1;
|
|
7159 if (LLONG_MAX / 2 < m)
|
|
7160 break;
|
|
7161 }
|
|
7162 return 0;
|
|
7163 ;
|
|
7164 return 0;
|
|
7165 }
|
|
7166 _ACEOF
|
|
7167 if ac_fn_c_try_run "$LINENO"; then :
|
|
7168 ac_cv_type_long_long_int=yes
|
|
7169 else
|
|
7170 ac_cv_type_long_long_int=no
|
|
7171 fi
|
|
7172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
7173 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
7174 fi
|
|
7175
|
|
7176 else
|
|
7177 ac_cv_type_long_long_int=no
|
|
7178 fi
|
|
7179 rm -f core conftest.err conftest.$ac_objext \
|
|
7180 conftest$ac_exeext conftest.$ac_ext
|
|
7181 fi
|
|
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
|
|
7183 $as_echo "$ac_cv_type_long_long_int" >&6; }
|
|
7184 if test $ac_cv_type_long_long_int = yes; then
|
|
7185
|
|
7186 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
|
|
7187
|
|
7188 fi
|
|
7189
|
|
7190
|
|
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
|
|
7192 $as_echo_n "checking for unsigned long long int... " >&6; }
|
|
7193 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
|
|
7194 $as_echo_n "(cached) " >&6
|
|
7195 else
|
|
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7197 /* end confdefs.h. */
|
|
7198
|
|
7199 /* For now, do not test the preprocessor; as of 2007 there are too many
|
|
7200 implementations with broken preprocessors. Perhaps this can
|
|
7201 be revisited in 2012. In the meantime, code should not expect
|
|
7202 #if to work with literals wider than 32 bits. */
|
|
7203 /* Test literals. */
|
|
7204 long long int ll = 9223372036854775807ll;
|
|
7205 long long int nll = -9223372036854775807LL;
|
|
7206 unsigned long long int ull = 18446744073709551615ULL;
|
|
7207 /* Test constant expressions. */
|
|
7208 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
7209 ? 1 : -1)];
|
|
7210 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
7211 ? 1 : -1)];
|
|
7212 int i = 63;
|
|
7213 int
|
|
7214 main ()
|
|
7215 {
|
|
7216 /* Test availability of runtime routines for shift and division. */
|
|
7217 long long int llmax = 9223372036854775807ll;
|
|
7218 unsigned long long int ullmax = 18446744073709551615ull;
|
|
7219 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
7220 | (llmax / ll) | (llmax % ll)
|
|
7221 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
7222 | (ullmax / ull) | (ullmax % ull));
|
|
7223 ;
|
|
7224 return 0;
|
|
7225 }
|
|
7226
|
|
7227 _ACEOF
|
|
7228 if ac_fn_c_try_link "$LINENO"; then :
|
|
7229 ac_cv_type_unsigned_long_long_int=yes
|
|
7230 else
|
|
7231 ac_cv_type_unsigned_long_long_int=no
|
|
7232 fi
|
|
7233 rm -f core conftest.err conftest.$ac_objext \
|
|
7234 conftest$ac_exeext conftest.$ac_ext
|
|
7235 fi
|
|
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
|
|
7237 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
|
|
7238 if test $ac_cv_type_unsigned_long_long_int = yes; then
|
|
7239
|
|
7240 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
|
|
7241
|
|
7242 fi
|
|
7243
|
|
7244
|
|
7245
|
|
7246
|
|
7247
|
|
7248
|
|
7249
|
|
7250
|
|
7251
|
|
7252
|
|
7253
|
|
7254
|
|
7255 GNULIB_DPRINTF=0;
|
|
7256 GNULIB_FCLOSE=0;
|
|
7257 GNULIB_FFLUSH=0;
|
|
7258 GNULIB_FOPEN=0;
|
|
7259 GNULIB_FPRINTF=0;
|
|
7260 GNULIB_FPRINTF_POSIX=0;
|
|
7261 GNULIB_FPURGE=0;
|
|
7262 GNULIB_FPUTC=0;
|
|
7263 GNULIB_FPUTS=0;
|
|
7264 GNULIB_FREOPEN=0;
|
|
7265 GNULIB_FSEEK=0;
|
|
7266 GNULIB_FSEEKO=0;
|
|
7267 GNULIB_FTELL=0;
|
|
7268 GNULIB_FTELLO=0;
|
|
7269 GNULIB_FWRITE=0;
|
|
7270 GNULIB_GETDELIM=0;
|
|
7271 GNULIB_GETLINE=0;
|
|
7272 GNULIB_OBSTACK_PRINTF=0;
|
|
7273 GNULIB_OBSTACK_PRINTF_POSIX=0;
|
|
7274 GNULIB_PERROR=0;
|
|
7275 GNULIB_POPEN=0;
|
|
7276 GNULIB_PRINTF=0;
|
|
7277 GNULIB_PRINTF_POSIX=0;
|
|
7278 GNULIB_PUTC=0;
|
|
7279 GNULIB_PUTCHAR=0;
|
|
7280 GNULIB_PUTS=0;
|
|
7281 GNULIB_REMOVE=0;
|
|
7282 GNULIB_RENAME=0;
|
|
7283 GNULIB_RENAMEAT=0;
|
|
7284 GNULIB_SNPRINTF=0;
|
|
7285 GNULIB_SPRINTF_POSIX=0;
|
|
7286 GNULIB_STDIO_H_SIGPIPE=0;
|
|
7287 GNULIB_VASPRINTF=0;
|
|
7288 GNULIB_VDPRINTF=0;
|
|
7289 GNULIB_VFPRINTF=0;
|
|
7290 GNULIB_VFPRINTF_POSIX=0;
|
|
7291 GNULIB_VPRINTF=0;
|
|
7292 GNULIB_VPRINTF_POSIX=0;
|
|
7293 GNULIB_VSNPRINTF=0;
|
|
7294 GNULIB_VSPRINTF_POSIX=0;
|
|
7295 HAVE_DECL_FPURGE=1;
|
|
7296 HAVE_DECL_GETDELIM=1;
|
|
7297 HAVE_DECL_GETLINE=1;
|
|
7298 HAVE_DECL_OBSTACK_PRINTF=1;
|
|
7299 HAVE_DECL_SNPRINTF=1;
|
|
7300 HAVE_DECL_VSNPRINTF=1;
|
|
7301 HAVE_DPRINTF=1;
|
|
7302 HAVE_RENAMEAT=1;
|
|
7303 HAVE_VASPRINTF=1;
|
|
7304 HAVE_VDPRINTF=1;
|
|
7305 REPLACE_DPRINTF=0;
|
|
7306 REPLACE_FCLOSE=0;
|
|
7307 REPLACE_FFLUSH=0;
|
|
7308 REPLACE_FOPEN=0;
|
|
7309 REPLACE_FPRINTF=0;
|
|
7310 REPLACE_FPURGE=0;
|
|
7311 REPLACE_FREOPEN=0;
|
|
7312 REPLACE_FSEEK=0;
|
|
7313 REPLACE_FSEEKO=0;
|
|
7314 REPLACE_FTELL=0;
|
|
7315 REPLACE_FTELLO=0;
|
|
7316 REPLACE_GETLINE=0;
|
|
7317 REPLACE_OBSTACK_PRINTF=0;
|
|
7318 REPLACE_PERROR=0;
|
|
7319 REPLACE_POPEN=0;
|
|
7320 REPLACE_PRINTF=0;
|
|
7321 REPLACE_REMOVE=0;
|
|
7322 REPLACE_RENAME=0;
|
|
7323 REPLACE_RENAMEAT=0;
|
|
7324 REPLACE_SNPRINTF=0;
|
|
7325 REPLACE_SPRINTF=0;
|
|
7326 REPLACE_STDIO_WRITE_FUNCS=0;
|
|
7327 REPLACE_VASPRINTF=0;
|
|
7328 REPLACE_VDPRINTF=0;
|
|
7329 REPLACE_VFPRINTF=0;
|
|
7330 REPLACE_VPRINTF=0;
|
|
7331 REPLACE_VSNPRINTF=0;
|
|
7332 REPLACE_VSPRINTF=0;
|
|
7333
|
|
7334
|
|
7335
|
|
7336
|
|
7337
|
|
7338
|
|
7339
|
|
7340
|
|
7341
|
|
7342
|
|
7343
|
|
7344
|
|
7345 HAVE_STRCASECMP=1;
|
|
7346 HAVE_DECL_STRNCASECMP=1;
|
|
7347
|
|
7348
|
|
7349
|
|
7350
|
|
7351
|
|
7352
|
|
7353
|
|
7354
|
|
7355
|
|
7356 if test -z "$ERRNO_H"; then
|
|
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
|
|
7358 $as_echo_n "checking for working strerror function... " >&6; }
|
|
7359 if test "${gl_cv_func_working_strerror+set}" = set; then :
|
|
7360 $as_echo_n "(cached) " >&6
|
|
7361 else
|
|
7362 if test "$cross_compiling" = yes; then :
|
|
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7364 /* end confdefs.h. */
|
|
7365 #include <string.h>
|
|
7366
|
|
7367 int
|
|
7368 main ()
|
|
7369 {
|
|
7370 return !*strerror (-2);
|
|
7371 ;
|
|
7372 return 0;
|
|
7373 }
|
|
7374 _ACEOF
|
|
7375 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7376 gl_cv_func_working_strerror=yes
|
|
7377 else
|
|
7378 gl_cv_func_working_strerror=no
|
|
7379 fi
|
|
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7381
|
|
7382 else
|
|
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7384 /* end confdefs.h. */
|
|
7385 #include <string.h>
|
|
7386
|
|
7387 int
|
|
7388 main ()
|
|
7389 {
|
|
7390 return !*strerror (-2);
|
|
7391 ;
|
|
7392 return 0;
|
|
7393 }
|
|
7394 _ACEOF
|
|
7395 if ac_fn_c_try_run "$LINENO"; then :
|
|
7396 gl_cv_func_working_strerror=yes
|
|
7397 else
|
|
7398 gl_cv_func_working_strerror=no
|
|
7399 fi
|
|
7400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
7401 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
7402 fi
|
|
7403
|
|
7404
|
|
7405 fi
|
|
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
|
|
7407 $as_echo "$gl_cv_func_working_strerror" >&6; }
|
|
7408 if test $gl_cv_func_working_strerror = no; then
|
|
7409 REPLACE_STRERROR=1
|
|
7410 fi
|
|
7411 else
|
|
7412 REPLACE_STRERROR=1
|
|
7413 fi
|
|
7414 if test $REPLACE_STRERROR = 1; then
|
|
7415
|
|
7416 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
|
|
7417 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
|
|
7418 ac_have_decl=1
|
|
7419 else
|
|
7420 ac_have_decl=0
|
|
7421 fi
|
|
7422
|
|
7423 cat >>confdefs.h <<_ACEOF
|
|
7424 #define HAVE_DECL_STRERROR $ac_have_decl
|
|
7425 _ACEOF
|
|
7426
|
|
7427
|
|
7428 :
|
|
7429
|
|
7430
|
|
7431
|
|
7432
|
|
7433
|
|
7434 if test $ac_cv_header_sys_socket_h != yes; then
|
|
7435 for ac_header in winsock2.h
|
|
7436 do :
|
|
7437 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
|
|
7438 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
|
|
7439 cat >>confdefs.h <<_ACEOF
|
|
7440 #define HAVE_WINSOCK2_H 1
|
|
7441 _ACEOF
|
|
7442
|
|
7443 fi
|
|
7444
|
|
7445 done
|
|
7446
|
|
7447 fi
|
|
7448
|
|
7449 fi
|
|
7450
|
|
7451
|
|
7452
|
|
7453
|
|
7454
|
|
7455
|
|
7456
|
|
7457
|
|
7458
|
|
7459
|
|
7460
|
|
7461
|
|
7462
|
|
7463 :
|
|
7464
|
|
7465
|
|
7466
|
|
7467
|
|
7468
|
|
7469
|
|
7470
|
|
7471 if test $gl_cv_have_include_next = yes; then
|
|
7472 gl_cv_next_string_h='<'string.h'>'
|
|
7473 else
|
|
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
|
|
7475 $as_echo_n "checking absolute name of <string.h>... " >&6; }
|
|
7476 if test "${gl_cv_next_string_h+set}" = set; then :
|
|
7477 $as_echo_n "(cached) " >&6
|
|
7478 else
|
|
7479
|
|
7480 if test $ac_cv_header_string_h = yes; then
|
|
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7482 /* end confdefs.h. */
|
|
7483 #include <string.h>
|
|
7484
|
|
7485 _ACEOF
|
|
7486 case "$host_os" in
|
|
7487 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
7488 *) gl_absname_cpp="$ac_cpp" ;;
|
|
7489 esac
|
|
7490 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
7491 sed -n '\#/string.h#{
|
|
7492 s#.*"\(.*/string.h\)".*#\1#
|
|
7493 s#^/[^/]#//&#
|
|
7494 p
|
|
7495 q
|
|
7496 }'`'"'
|
|
7497 else
|
|
7498 gl_cv_next_string_h='<'string.h'>'
|
|
7499 fi
|
|
7500
|
|
7501 fi
|
|
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
|
|
7503 $as_echo "$gl_cv_next_string_h" >&6; }
|
|
7504 fi
|
|
7505 NEXT_STRING_H=$gl_cv_next_string_h
|
|
7506
|
|
7507 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
7508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
7509 gl_next_as_first_directive='<'string.h'>'
|
|
7510 else
|
|
7511 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
7512 gl_next_as_first_directive=$gl_cv_next_string_h
|
|
7513 fi
|
|
7514 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
|
|
7515
|
|
7516
|
|
7517
|
|
7518
|
|
7519
|
|
7520
|
|
7521
|
|
7522
|
|
7523
|
|
7524
|
|
7525
|
|
7526
|
|
7527
|
|
7528
|
|
7529
|
|
7530 :
|
|
7531
|
|
7532
|
|
7533
|
|
7534
|
|
7535
|
|
7536
|
|
7537
|
|
7538 if test $gl_cv_have_include_next = yes; then
|
|
7539 gl_cv_next_strings_h='<'strings.h'>'
|
|
7540 else
|
|
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
|
|
7542 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
|
|
7543 if test "${gl_cv_next_strings_h+set}" = set; then :
|
|
7544 $as_echo_n "(cached) " >&6
|
|
7545 else
|
|
7546
|
|
7547 if test $ac_cv_header_strings_h = yes; then
|
|
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7549 /* end confdefs.h. */
|
|
7550 #include <strings.h>
|
|
7551
|
|
7552 _ACEOF
|
|
7553 case "$host_os" in
|
|
7554 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
7555 *) gl_absname_cpp="$ac_cpp" ;;
|
|
7556 esac
|
|
7557 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
7558 sed -n '\#/strings.h#{
|
|
7559 s#.*"\(.*/strings.h\)".*#\1#
|
|
7560 s#^/[^/]#//&#
|
|
7561 p
|
|
7562 q
|
|
7563 }'`'"'
|
|
7564 else
|
|
7565 gl_cv_next_strings_h='<'strings.h'>'
|
|
7566 fi
|
|
7567
|
|
7568 fi
|
|
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
|
|
7570 $as_echo "$gl_cv_next_strings_h" >&6; }
|
|
7571 fi
|
|
7572 NEXT_STRINGS_H=$gl_cv_next_strings_h
|
|
7573
|
|
7574 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
7575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
7576 gl_next_as_first_directive='<'strings.h'>'
|
|
7577 else
|
|
7578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
7579 gl_next_as_first_directive=$gl_cv_next_strings_h
|
|
7580 fi
|
|
7581 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
|
|
7582
|
|
7583
|
|
7584
|
|
7585
|
|
7586
|
|
7587 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
|
|
7588 if test "x$ac_cv_have_decl_strndup" = x""yes; then :
|
|
7589 ac_have_decl=1
|
|
7590 else
|
|
7591 ac_have_decl=0
|
|
7592 fi
|
|
7593
|
|
7594 cat >>confdefs.h <<_ACEOF
|
|
7595 #define HAVE_DECL_STRNDUP $ac_have_decl
|
|
7596 _ACEOF
|
|
7597
|
|
7598
|
|
7599
|
|
7600
|
|
7601
|
|
7602
|
|
7603
|
|
7604
|
|
7605 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
|
|
7606 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
|
|
7607 ac_have_decl=1
|
|
7608 else
|
|
7609 ac_have_decl=0
|
|
7610 fi
|
|
7611
|
|
7612 cat >>confdefs.h <<_ACEOF
|
|
7613 #define HAVE_DECL_STRNLEN $ac_have_decl
|
|
7614 _ACEOF
|
|
7615
|
|
7616
|
|
7617
|
|
7618
|
|
7619
|
|
7620
|
|
7621
|
|
7622
|
|
7623
|
|
7624
|
|
7625
|
|
7626
|
|
7627
|
|
7628
|
|
7629
|
|
7630
|
|
7631
|
|
7632
|
|
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
|
|
7634 $as_echo_n "checking for wint_t... " >&6; }
|
|
7635 if test "${gt_cv_c_wint_t+set}" = set; then :
|
|
7636 $as_echo_n "(cached) " >&6
|
|
7637 else
|
|
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7639 /* end confdefs.h. */
|
|
7640
|
|
7641 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
|
|
7642 <wchar.h>.
|
|
7643 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
|
|
7644 before <wchar.h>. */
|
|
7645 #include <stddef.h>
|
|
7646 #include <stdio.h>
|
|
7647 #include <time.h>
|
|
7648 #include <wchar.h>
|
|
7649 wint_t foo = (wchar_t)'\0';
|
|
7650 int
|
|
7651 main ()
|
|
7652 {
|
|
7653
|
|
7654 ;
|
|
7655 return 0;
|
|
7656 }
|
|
7657 _ACEOF
|
|
7658 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7659 gt_cv_c_wint_t=yes
|
|
7660 else
|
|
7661 gt_cv_c_wint_t=no
|
|
7662 fi
|
|
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7664 fi
|
|
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
|
|
7666 $as_echo "$gt_cv_c_wint_t" >&6; }
|
|
7667 if test $gt_cv_c_wint_t = yes; then
|
|
7668
|
|
7669 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
|
|
7670
|
|
7671 fi
|
|
7672
|
|
7673 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
|
7674 if test "x$ac_cv_type_size_t" = x""yes; then :
|
|
7675
|
|
7676 else
|
|
7677
|
|
7678 cat >>confdefs.h <<_ACEOF
|
|
7679 #define size_t unsigned int
|
|
7680 _ACEOF
|
|
7681
|
|
7682 fi
|
|
7683
|
|
7684
|
|
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
|
|
7686 $as_echo_n "checking for inttypes.h... " >&6; }
|
|
7687 if test "${gl_cv_header_inttypes_h+set}" = set; then :
|
|
7688 $as_echo_n "(cached) " >&6
|
|
7689 else
|
|
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7691 /* end confdefs.h. */
|
|
7692 #include <sys/types.h>
|
|
7693 #include <inttypes.h>
|
|
7694 int
|
|
7695 main ()
|
|
7696 {
|
|
7697 uintmax_t i = (uintmax_t) -1; return !i;
|
|
7698 ;
|
|
7699 return 0;
|
|
7700 }
|
|
7701 _ACEOF
|
|
7702 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7703 gl_cv_header_inttypes_h=yes
|
|
7704 else
|
|
7705 gl_cv_header_inttypes_h=no
|
|
7706 fi
|
|
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7708 fi
|
|
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
|
|
7710 $as_echo "$gl_cv_header_inttypes_h" >&6; }
|
|
7711 if test $gl_cv_header_inttypes_h = yes; then
|
|
7712
|
|
7713 cat >>confdefs.h <<_ACEOF
|
|
7714 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
|
|
7715 _ACEOF
|
|
7716
|
|
7717 fi
|
|
7718
|
|
7719
|
|
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
|
|
7721 $as_echo_n "checking for stdint.h... " >&6; }
|
|
7722 if test "${gl_cv_header_stdint_h+set}" = set; then :
|
|
7723 $as_echo_n "(cached) " >&6
|
|
7724 else
|
|
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7726 /* end confdefs.h. */
|
|
7727 #include <sys/types.h>
|
|
7728 #include <stdint.h>
|
|
7729 int
|
|
7730 main ()
|
|
7731 {
|
|
7732 uintmax_t i = (uintmax_t) -1; return !i;
|
|
7733 ;
|
|
7734 return 0;
|
|
7735 }
|
|
7736 _ACEOF
|
|
7737 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7738 gl_cv_header_stdint_h=yes
|
|
7739 else
|
|
7740 gl_cv_header_stdint_h=no
|
|
7741 fi
|
|
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7743 fi
|
|
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
|
|
7745 $as_echo "$gl_cv_header_stdint_h" >&6; }
|
|
7746 if test $gl_cv_header_stdint_h = yes; then
|
|
7747
|
|
7748 cat >>confdefs.h <<_ACEOF
|
|
7749 #define HAVE_STDINT_H_WITH_UINTMAX 1
|
|
7750 _ACEOF
|
|
7751
|
|
7752 fi
|
|
7753
|
|
7754
|
|
7755
|
|
7756
|
|
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
|
|
7758 $as_echo_n "checking for intmax_t... " >&6; }
|
|
7759 if test "${gt_cv_c_intmax_t+set}" = set; then :
|
|
7760 $as_echo_n "(cached) " >&6
|
|
7761 else
|
|
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7763 /* end confdefs.h. */
|
|
7764
|
|
7765 #include <stddef.h>
|
|
7766 #include <stdlib.h>
|
|
7767 #if HAVE_STDINT_H_WITH_UINTMAX
|
|
7768 #include <stdint.h>
|
|
7769 #endif
|
|
7770 #if HAVE_INTTYPES_H_WITH_UINTMAX
|
|
7771 #include <inttypes.h>
|
|
7772 #endif
|
|
7773
|
|
7774 int
|
|
7775 main ()
|
|
7776 {
|
|
7777 intmax_t x = -1; return !x;
|
|
7778 ;
|
|
7779 return 0;
|
|
7780 }
|
|
7781 _ACEOF
|
|
7782 if ac_fn_c_try_compile "$LINENO"; then :
|
|
7783 gt_cv_c_intmax_t=yes
|
|
7784 else
|
|
7785 gt_cv_c_intmax_t=no
|
|
7786 fi
|
|
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7788 fi
|
|
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
|
|
7790 $as_echo "$gt_cv_c_intmax_t" >&6; }
|
|
7791 if test $gt_cv_c_intmax_t = yes; then
|
|
7792
|
|
7793 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
|
|
7794
|
|
7795 else
|
|
7796
|
|
7797 test $ac_cv_type_long_long_int = yes \
|
|
7798 && ac_type='long long' \
|
|
7799 || ac_type='long'
|
|
7800
|
|
7801 cat >>confdefs.h <<_ACEOF
|
|
7802 #define intmax_t $ac_type
|
|
7803 _ACEOF
|
|
7804
|
|
7805 fi
|
|
7806
|
|
7807
|
|
7808
|
|
7809
|
|
7810
|
|
7811
|
|
7812 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
|
|
7813 do :
|
|
7814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
7815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
7816 eval as_val=\$$as_ac_var
|
|
7817 if test "x$as_val" = x""yes; then :
|
|
7818 cat >>confdefs.h <<_ACEOF
|
|
7819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
7820 _ACEOF
|
|
7821
|
|
7822 fi
|
|
7823 done
|
|
7824
|
|
7825 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
|
|
7826 "
|
|
7827 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
|
|
7828 ac_have_decl=1
|
|
7829 else
|
|
7830 ac_have_decl=0
|
|
7831 fi
|
|
7832
|
|
7833 cat >>confdefs.h <<_ACEOF
|
|
7834 #define HAVE_DECL__SNPRINTF $ac_have_decl
|
|
7835 _ACEOF
|
|
7836
|
|
7837
|
|
7838
|
|
7839 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
|
|
7840 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
|
|
7841 ac_have_decl=1
|
|
7842 else
|
|
7843 ac_have_decl=0
|
|
7844 fi
|
|
7845
|
|
7846 cat >>confdefs.h <<_ACEOF
|
|
7847 #define HAVE_DECL_VSNPRINTF $ac_have_decl
|
|
7848 _ACEOF
|
|
7849
|
|
7850
|
|
7851
|
|
7852 GNULIB_BTOWC=0;
|
|
7853 GNULIB_WCTOB=0;
|
|
7854 GNULIB_MBSINIT=0;
|
|
7855 GNULIB_MBRTOWC=0;
|
|
7856 GNULIB_MBRLEN=0;
|
|
7857 GNULIB_MBSRTOWCS=0;
|
|
7858 GNULIB_MBSNRTOWCS=0;
|
|
7859 GNULIB_WCRTOMB=0;
|
|
7860 GNULIB_WCSRTOMBS=0;
|
|
7861 GNULIB_WCSNRTOMBS=0;
|
|
7862 GNULIB_WCWIDTH=0;
|
|
7863 HAVE_BTOWC=1;
|
|
7864 HAVE_MBSINIT=1;
|
|
7865 HAVE_MBRTOWC=1;
|
|
7866 HAVE_MBRLEN=1;
|
|
7867 HAVE_MBSRTOWCS=1;
|
|
7868 HAVE_MBSNRTOWCS=1;
|
|
7869 HAVE_WCRTOMB=1;
|
|
7870 HAVE_WCSRTOMBS=1;
|
|
7871 HAVE_WCSNRTOMBS=1;
|
|
7872 HAVE_DECL_WCTOB=1;
|
|
7873 HAVE_DECL_WCWIDTH=1;
|
|
7874 REPLACE_MBSTATE_T=0;
|
|
7875 REPLACE_BTOWC=0;
|
|
7876 REPLACE_WCTOB=0;
|
|
7877 REPLACE_MBSINIT=0;
|
|
7878 REPLACE_MBRTOWC=0;
|
|
7879 REPLACE_MBRLEN=0;
|
|
7880 REPLACE_MBSRTOWCS=0;
|
|
7881 REPLACE_MBSNRTOWCS=0;
|
|
7882 REPLACE_WCRTOMB=0;
|
|
7883 REPLACE_WCSRTOMBS=0;
|
|
7884 REPLACE_WCSNRTOMBS=0;
|
|
7885 REPLACE_WCWIDTH=0;
|
|
7886
|
|
7887
|
|
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
|
|
7889 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
|
|
7890 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
|
|
7891 $as_echo_n "(cached) " >&6
|
|
7892 else
|
|
7893 gl_cv_header_wchar_h_correct_inline=yes
|
|
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7895 /* end confdefs.h. */
|
|
7896
|
|
7897 #define wcstod renamed_wcstod
|
|
7898 #include <wchar.h>
|
|
7899 extern int zero (void);
|
|
7900 int main () { return zero(); }
|
|
7901
|
|
7902 _ACEOF
|
|
7903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
7904 (eval $ac_compile) 2>&5
|
|
7905 ac_status=$?
|
|
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
7907 test $ac_status = 0; }; then
|
|
7908 mv conftest.$ac_objext conftest1.$ac_objext
|
|
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7910 /* end confdefs.h. */
|
|
7911
|
|
7912 #define wcstod renamed_wcstod
|
|
7913 #include <wchar.h>
|
|
7914 int zero (void) { return 0; }
|
|
7915
|
|
7916 _ACEOF
|
|
7917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
7918 (eval $ac_compile) 2>&5
|
|
7919 ac_status=$?
|
|
7920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
7921 test $ac_status = 0; }; then
|
|
7922 mv conftest.$ac_objext conftest2.$ac_objext
|
|
7923 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
|
|
7924 :
|
|
7925 else
|
|
7926 gl_cv_header_wchar_h_correct_inline=no
|
|
7927 fi
|
|
7928 fi
|
|
7929 fi
|
|
7930 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
|
|
7931
|
|
7932 fi
|
|
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
|
|
7934 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
|
|
7935 if test $gl_cv_header_wchar_h_correct_inline = no; then
|
|
7936 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
|
|
7937 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
|
|
7938 C99 mode. You have four options:
|
|
7939 - Add the flag -fgnu89-inline to CC and reconfigure, or
|
|
7940 - Fix your include files, using parts of
|
|
7941 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
|
|
7942 - Use a gcc version older than 4.3, or
|
|
7943 - Don't use the flags -std=c99 or -std=gnu99.
|
|
7944 Configuration aborted." "$LINENO" 5
|
|
7945 fi
|
|
7946
|
|
7947
|
|
7948 if false; then
|
|
7949 GL_COND_LIBTOOL_TRUE=
|
|
7950 GL_COND_LIBTOOL_FALSE='#'
|
|
7951 else
|
|
7952 GL_COND_LIBTOOL_TRUE='#'
|
|
7953 GL_COND_LIBTOOL_FALSE=
|
|
7954 fi
|
|
7955
|
|
7956 gl_cond_libtool=false
|
|
7957 gl_libdeps=
|
|
7958 gl_ltlibdeps=
|
|
7959
|
|
7960
|
|
7961
|
|
7962
|
|
7963
|
|
7964
|
|
7965
|
|
7966
|
|
7967
|
|
7968 gl_source_base='lib'
|
|
7969
|
|
7970
|
|
7971
|
|
7972
|
|
7973
|
|
7974 if test $ac_cv_func_alloca_works = no; then
|
|
7975 :
|
|
7976 fi
|
|
7977
|
|
7978 # Define an additional variable used in the Makefile substitution.
|
|
7979 if test $ac_cv_working_alloca_h = yes; then
|
|
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
|
|
7981 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
|
|
7982 if test "${gl_cv_rpl_alloca+set}" = set; then :
|
|
7983 $as_echo_n "(cached) " >&6
|
|
7984 else
|
|
7985
|
|
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
7987 /* end confdefs.h. */
|
|
7988
|
|
7989 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
|
|
7990 Need own alloca
|
|
7991 #endif
|
|
7992
|
|
7993 _ACEOF
|
|
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7995 $EGREP "Need own alloca" >/dev/null 2>&1; then :
|
|
7996 gl_cv_rpl_alloca=yes
|
|
7997 else
|
|
7998 gl_cv_rpl_alloca=no
|
|
7999 fi
|
|
8000 rm -f conftest*
|
|
8001
|
|
8002
|
|
8003 fi
|
|
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
|
|
8005 $as_echo "$gl_cv_rpl_alloca" >&6; }
|
|
8006 if test $gl_cv_rpl_alloca = yes; then
|
|
8007
|
|
8008 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
|
8009
|
|
8010 ALLOCA_H=alloca.h
|
|
8011 else
|
|
8012 ALLOCA_H=
|
|
8013 fi
|
|
8014 else
|
|
8015 ALLOCA_H=alloca.h
|
|
8016 fi
|
|
8017
|
|
8018
|
|
8019
|
|
8020
|
|
8021
|
|
8022
|
|
8023
|
|
8024
|
|
8025 GETOPT_H=getopt.h
|
|
8026
|
|
8027 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
|
|
8028
|
|
8029
|
|
8030
|
|
8031 GNULIB_UNISTD_H_GETOPT=1
|
|
8032
|
|
8033
|
|
8034
|
|
8035
|
|
8036
|
|
8037
|
|
8038
|
|
8039
|
|
8040 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
|
|
8041
|
|
8042
|
|
8043
|
|
8044
|
|
8045
|
|
8046
|
|
8047
|
|
8048
|
|
8049
|
|
8050 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
|
|
8051
|
|
8052
|
|
8053
|
|
8054 :
|
|
8055
|
|
8056
|
|
8057
|
|
8058
|
|
8059
|
|
8060
|
|
8061
|
|
8062
|
|
8063 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
|
|
8064 "
|
|
8065 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
|
|
8066
|
|
8067 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
|
|
8068
|
|
8069 else
|
|
8070
|
|
8071 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
|
|
8072
|
|
8073 fi
|
|
8074
|
|
8075 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
|
|
8076 "
|
|
8077 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
|
|
8078
|
|
8079 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
|
|
8080
|
|
8081 else
|
|
8082
|
|
8083 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
|
|
8084
|
|
8085 fi
|
|
8086
|
|
8087
|
|
8088 # Check if program_invocation_name and program_invocation_short_name
|
|
8089 # are defined elsewhere. It is improbable that only one of them will
|
|
8090 # be defined and other not, I prefer to stay on the safe side and to
|
|
8091 # test each one separately.
|
|
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
|
|
8093 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
|
|
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8095 /* end confdefs.h. */
|
|
8096 #include <argp.h>
|
|
8097 int
|
|
8098 main ()
|
|
8099 {
|
|
8100 program_invocation_name = "test";
|
|
8101 ;
|
|
8102 return 0;
|
|
8103 }
|
|
8104 _ACEOF
|
|
8105 if ac_fn_c_try_link "$LINENO"; then :
|
|
8106
|
|
8107 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
|
|
8108
|
|
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
8110 $as_echo "yes" >&6; }
|
|
8111 else
|
|
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
8113 $as_echo "no" >&6; }
|
|
8114 fi
|
|
8115 rm -f core conftest.err conftest.$ac_objext \
|
|
8116 conftest$ac_exeext conftest.$ac_ext
|
|
8117
|
|
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
|
|
8119 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
|
|
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8121 /* end confdefs.h. */
|
|
8122 #include <argp.h>
|
|
8123 int
|
|
8124 main ()
|
|
8125 {
|
|
8126 program_invocation_short_name = "test";
|
|
8127 ;
|
|
8128 return 0;
|
|
8129 }
|
|
8130 _ACEOF
|
|
8131 if ac_fn_c_try_link "$LINENO"; then :
|
|
8132
|
|
8133 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
|
|
8134
|
|
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
8136 $as_echo "yes" >&6; }
|
|
8137 else
|
|
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
8139 $as_echo "no" >&6; }
|
|
8140 fi
|
|
8141 rm -f core conftest.err conftest.$ac_objext \
|
|
8142 conftest$ac_exeext conftest.$ac_ext
|
|
8143
|
|
8144
|
|
8145 :
|
|
8146
|
|
8147
|
|
8148
|
|
8149
|
|
8150
|
|
8151
|
|
8152 :
|
|
8153
|
|
8154
|
|
8155
|
|
8156
|
|
8157
|
|
8158
|
|
8159 :
|
|
8160
|
|
8161
|
|
8162
|
|
8163
|
|
8164
|
|
8165
|
|
8166 :
|
|
8167
|
|
8168
|
|
8169
|
|
8170
|
|
8171
|
|
8172
|
|
8173 :
|
|
8174
|
|
8175
|
|
8176
|
|
8177
|
|
8178
|
|
8179
|
|
8180 :
|
|
8181
|
|
8182
|
|
8183
|
|
8184
|
|
8185
|
|
8186
|
|
8187 :
|
|
8188
|
|
8189
|
|
8190
|
|
8191
|
|
8192
|
|
8193
|
|
8194 :
|
|
8195
|
|
8196
|
|
8197
|
|
8198
|
|
8199
|
|
8200
|
|
8201 :
|
|
8202
|
|
8203
|
|
8204
|
|
8205
|
|
8206
|
|
8207
|
|
8208 :
|
|
8209
|
|
8210
|
|
8211
|
|
8212
|
|
8213
|
|
8214
|
|
8215 :
|
|
8216
|
|
8217
|
|
8218
|
|
8219
|
|
8220
|
|
8221
|
|
8222 :
|
|
8223
|
|
8224
|
|
8225
|
|
8226
|
|
8227
|
|
8228
|
|
8229 :
|
|
8230
|
|
8231
|
|
8232
|
|
8233
|
|
8234
|
|
8235
|
|
8236 :
|
|
8237
|
|
8238
|
|
8239
|
|
8240
|
|
8241
|
|
8242
|
|
8243
|
|
8244
|
|
8245
|
|
8246 :
|
|
8247
|
|
8248
|
|
8249
|
|
8250
|
|
8251
|
|
8252
|
|
8253
|
|
8254
|
|
8255
|
|
8256
|
|
8257
|
|
8258 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
|
|
8259
|
|
8260
|
|
8261
|
|
8262 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
|
|
8263
|
|
8264
|
|
8265
|
|
8266
|
|
8267
|
|
8268
|
|
8269
|
|
8270
|
|
8271
|
|
8272
|
|
8273 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
|
|
8274
|
|
8275
|
|
8276
|
|
8277
|
|
8278
|
|
8279
|
|
8280
|
|
8281
|
|
8282
|
|
8283 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
|
|
8284
|
|
8285
|
|
8286
|
|
8287
|
|
8288
|
|
8289
|
|
8290
|
|
8291
|
|
8292
|
|
8293 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
|
|
8294
|
|
8295
|
|
8296
|
|
8297
|
|
8298
|
|
8299
|
|
8300
|
|
8301
|
|
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
|
|
8303 $as_echo_n "checking whether // is distinct from /... " >&6; }
|
|
8304 if test "${gl_cv_double_slash_root+set}" = set; then :
|
|
8305 $as_echo_n "(cached) " >&6
|
|
8306 else
|
|
8307 if test x"$cross_compiling" = xyes ; then
|
|
8308 # When cross-compiling, there is no way to tell whether // is special
|
|
8309 # short of a list of hosts. However, the only known hosts to date
|
|
8310 # that have a distinct // are Apollo DomainOS (too old to port to),
|
|
8311 # Cygwin, and z/OS. If anyone knows of another system for which // has
|
|
8312 # special semantics and is distinct from /, please report it to
|
|
8313 # <bug-gnulib@gnu.org>.
|
|
8314 case $host in
|
|
8315 *-cygwin | i370-ibm-openedition)
|
|
8316 gl_cv_double_slash_root=yes ;;
|
|
8317 *)
|
|
8318 # Be optimistic and assume that / and // are the same when we
|
|
8319 # don't know.
|
|
8320 gl_cv_double_slash_root='unknown, assuming no' ;;
|
|
8321 esac
|
|
8322 else
|
|
8323 set x `ls -di / // 2>/dev/null`
|
|
8324 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
|
|
8325 gl_cv_double_slash_root=no
|
|
8326 else
|
|
8327 gl_cv_double_slash_root=yes
|
|
8328 fi
|
|
8329 fi
|
|
8330 fi
|
|
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
|
|
8332 $as_echo "$gl_cv_double_slash_root" >&6; }
|
|
8333 if test "$gl_cv_double_slash_root" = yes; then
|
|
8334
|
|
8335 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
|
|
8336
|
|
8337 fi
|
|
8338
|
|
8339
|
|
8340
|
|
8341
|
|
8342
|
|
8343 FLOAT_H=
|
|
8344 case "$host_os" in
|
|
8345 beos* | openbsd*)
|
|
8346 FLOAT_H=float.h
|
|
8347
|
|
8348
|
|
8349
|
|
8350
|
|
8351 :
|
|
8352
|
|
8353
|
|
8354
|
|
8355
|
|
8356
|
|
8357
|
|
8358
|
|
8359 if test $gl_cv_have_include_next = yes; then
|
|
8360 gl_cv_next_float_h='<'float.h'>'
|
|
8361 else
|
|
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
|
|
8363 $as_echo_n "checking absolute name of <float.h>... " >&6; }
|
|
8364 if test "${gl_cv_next_float_h+set}" = set; then :
|
|
8365 $as_echo_n "(cached) " >&6
|
|
8366 else
|
|
8367
|
|
8368 if test $ac_cv_header_float_h = yes; then
|
|
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8370 /* end confdefs.h. */
|
|
8371 #include <float.h>
|
|
8372
|
|
8373 _ACEOF
|
|
8374 case "$host_os" in
|
|
8375 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
8376 *) gl_absname_cpp="$ac_cpp" ;;
|
|
8377 esac
|
|
8378 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
8379 sed -n '\#/float.h#{
|
|
8380 s#.*"\(.*/float.h\)".*#\1#
|
|
8381 s#^/[^/]#//&#
|
|
8382 p
|
|
8383 q
|
|
8384 }'`'"'
|
|
8385 else
|
|
8386 gl_cv_next_float_h='<'float.h'>'
|
|
8387 fi
|
|
8388
|
|
8389 fi
|
|
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
|
|
8391 $as_echo "$gl_cv_next_float_h" >&6; }
|
|
8392 fi
|
|
8393 NEXT_FLOAT_H=$gl_cv_next_float_h
|
|
8394
|
|
8395 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
8396 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
8397 gl_next_as_first_directive='<'float.h'>'
|
|
8398 else
|
|
8399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
8400 gl_next_as_first_directive=$gl_cv_next_float_h
|
|
8401 fi
|
|
8402 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
|
|
8403
|
|
8404
|
|
8405
|
|
8406 ;;
|
|
8407 esac
|
|
8408
|
|
8409
|
|
8410
|
|
8411
|
|
8412
|
|
8413
|
|
8414
|
|
8415
|
|
8416
|
|
8417 $as_echo "#define GNULIB_GETOPT_GNU 1" >>confdefs.h
|
|
8418
|
|
8419
|
|
8420
|
|
8421
|
|
8422
|
|
8423
|
|
8424
|
|
8425 if test -n "$gl_replace_getopt"; then :
|
|
8426
|
|
8427
|
|
8428
|
|
8429 GETOPT_H=getopt.h
|
|
8430
|
|
8431 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
|
|
8432
|
|
8433
|
|
8434
|
|
8435 GNULIB_UNISTD_H_GETOPT=1
|
|
8436
|
|
8437
|
|
8438
|
|
8439
|
|
8440
|
|
8441
|
|
8442
|
|
8443
|
|
8444 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
|
|
8445
|
|
8446
|
|
8447
|
|
8448
|
|
8449
|
|
8450
|
|
8451
|
|
8452
|
|
8453
|
|
8454 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
|
|
8455
|
|
8456
|
|
8457
|
|
8458 :
|
|
8459
|
|
8460
|
|
8461
|
|
8462
|
|
8463
|
|
8464
|
|
8465
|
|
8466
|
|
8467 fi
|
|
8468
|
|
8469
|
|
8470
|
|
8471
|
|
8472 for ac_header in stdlib.h
|
|
8473 do :
|
|
8474 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
|
|
8475 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
|
|
8476 cat >>confdefs.h <<_ACEOF
|
|
8477 #define HAVE_STDLIB_H 1
|
|
8478 _ACEOF
|
|
8479
|
|
8480 fi
|
|
8481
|
|
8482 done
|
|
8483
|
|
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
|
|
8485 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
|
|
8486 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
|
|
8487 $as_echo_n "(cached) " >&6
|
|
8488 else
|
|
8489 if test "$cross_compiling" = yes; then :
|
|
8490 ac_cv_func_malloc_0_nonnull=no
|
|
8491 else
|
|
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8493 /* end confdefs.h. */
|
|
8494 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
|
|
8495 # include <stdlib.h>
|
|
8496 #else
|
|
8497 char *malloc ();
|
|
8498 #endif
|
|
8499
|
|
8500 int
|
|
8501 main ()
|
|
8502 {
|
|
8503 return ! malloc (0);
|
|
8504 ;
|
|
8505 return 0;
|
|
8506 }
|
|
8507 _ACEOF
|
|
8508 if ac_fn_c_try_run "$LINENO"; then :
|
|
8509 ac_cv_func_malloc_0_nonnull=yes
|
|
8510 else
|
|
8511 ac_cv_func_malloc_0_nonnull=no
|
|
8512 fi
|
|
8513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
8514 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
8515 fi
|
|
8516
|
|
8517 fi
|
|
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
|
|
8519 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
|
|
8520 if test $ac_cv_func_malloc_0_nonnull = yes; then :
|
|
8521
|
|
8522 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
|
|
8523
|
|
8524 else
|
|
8525 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
|
|
8526
|
|
8527
|
|
8528
|
|
8529
|
|
8530
|
|
8531
|
|
8532
|
|
8533
|
|
8534
|
|
8535 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
|
|
8536
|
|
8537
|
|
8538 $as_echo "#define malloc rpl_malloc" >>confdefs.h
|
|
8539
|
|
8540 fi
|
|
8541
|
|
8542
|
|
8543
|
|
8544 $as_echo "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
|
|
8545
|
|
8546
|
|
8547
|
|
8548 if test $gl_cv_func_malloc_posix = yes; then
|
|
8549 HAVE_MALLOC_POSIX=1
|
|
8550
|
|
8551 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
|
|
8552
|
|
8553 else
|
|
8554
|
|
8555
|
|
8556
|
|
8557
|
|
8558
|
|
8559
|
|
8560
|
|
8561
|
|
8562 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
|
|
8563
|
|
8564 HAVE_MALLOC_POSIX=0
|
|
8565 fi
|
|
8566
|
|
8567
|
|
8568
|
|
8569
|
|
8570 GNULIB_MALLOC_POSIX=1
|
|
8571
|
|
8572
|
|
8573
|
|
8574
|
|
8575 GNULIB_MEMCHR=1
|
|
8576
|
|
8577
|
|
8578
|
|
8579
|
|
8580
|
|
8581
|
|
8582
|
|
8583
|
|
8584
|
|
8585
|
|
8586
|
|
8587
|
|
8588
|
|
8589
|
|
8590
|
|
8591 for ac_func in mempcpy
|
|
8592 do :
|
|
8593 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
|
|
8594 if test "x$ac_cv_func_mempcpy" = x""yes; then :
|
|
8595 cat >>confdefs.h <<_ACEOF
|
|
8596 #define HAVE_MEMPCPY 1
|
|
8597 _ACEOF
|
|
8598
|
|
8599 else
|
|
8600
|
|
8601 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
8602
|
|
8603 fi
|
|
8604 done
|
|
8605
|
|
8606
|
|
8607 if test $ac_cv_func_mempcpy = no; then
|
|
8608 HAVE_MEMPCPY=0
|
|
8609
|
|
8610 :
|
|
8611
|
|
8612 fi
|
|
8613
|
|
8614
|
|
8615
|
|
8616 GNULIB_MEMPCPY=1
|
|
8617
|
|
8618
|
|
8619
|
|
8620
|
|
8621
|
|
8622
|
|
8623
|
|
8624
|
|
8625
|
|
8626
|
|
8627
|
|
8628
|
|
8629
|
|
8630
|
|
8631 for ac_func in rawmemchr
|
|
8632 do :
|
|
8633 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
|
|
8634 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
|
|
8635 cat >>confdefs.h <<_ACEOF
|
|
8636 #define HAVE_RAWMEMCHR 1
|
|
8637 _ACEOF
|
|
8638
|
|
8639 else
|
|
8640
|
|
8641 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
8642
|
|
8643 fi
|
|
8644 done
|
|
8645
|
|
8646
|
|
8647 if test $ac_cv_func_rawmemchr = no; then
|
|
8648 HAVE_RAWMEMCHR=0
|
|
8649 :
|
|
8650 fi
|
|
8651
|
|
8652
|
|
8653
|
|
8654 GNULIB_RAWMEMCHR=1
|
|
8655
|
|
8656
|
|
8657 for ac_header in stdint.h
|
|
8658 do :
|
|
8659 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
|
|
8660 if test "x$ac_cv_header_stdint_h" = x""yes; then :
|
|
8661 cat >>confdefs.h <<_ACEOF
|
|
8662 #define HAVE_STDINT_H 1
|
|
8663 _ACEOF
|
|
8664
|
|
8665 fi
|
|
8666
|
|
8667 done
|
|
8668
|
|
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
|
|
8670 $as_echo_n "checking for SIZE_MAX... " >&6; }
|
|
8671 if test "${gl_cv_size_max+set}" = set; then :
|
|
8672 $as_echo_n "(cached) " >&6
|
|
8673 else
|
|
8674
|
|
8675 gl_cv_size_max=
|
|
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8677 /* end confdefs.h. */
|
|
8678
|
|
8679 #include <limits.h>
|
|
8680 #if HAVE_STDINT_H
|
|
8681 #include <stdint.h>
|
|
8682 #endif
|
|
8683 #ifdef SIZE_MAX
|
|
8684 Found it
|
|
8685 #endif
|
|
8686
|
|
8687 _ACEOF
|
|
8688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
8689 $EGREP "Found it" >/dev/null 2>&1; then :
|
|
8690 gl_cv_size_max=yes
|
|
8691 fi
|
|
8692 rm -f conftest*
|
|
8693
|
|
8694 if test -z "$gl_cv_size_max"; then
|
|
8695 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
|
|
8696 #include <limits.h>"; then :
|
|
8697
|
|
8698 else
|
|
8699 size_t_bits_minus_1=
|
|
8700 fi
|
|
8701
|
|
8702 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
|
|
8703
|
|
8704 else
|
|
8705 fits_in_uint=
|
|
8706 fi
|
|
8707
|
|
8708 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
|
|
8709 if test $fits_in_uint = 1; then
|
|
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8711 /* end confdefs.h. */
|
|
8712 #include <stddef.h>
|
|
8713 extern size_t foo;
|
|
8714 extern unsigned long foo;
|
|
8715
|
|
8716 int
|
|
8717 main ()
|
|
8718 {
|
|
8719
|
|
8720 ;
|
|
8721 return 0;
|
|
8722 }
|
|
8723 _ACEOF
|
|
8724 if ac_fn_c_try_compile "$LINENO"; then :
|
|
8725 fits_in_uint=0
|
|
8726 fi
|
|
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
8728 fi
|
|
8729 if test $fits_in_uint = 1; then
|
|
8730 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
|
|
8731 else
|
|
8732 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
|
|
8733 fi
|
|
8734 else
|
|
8735 gl_cv_size_max='((size_t)~(size_t)0)'
|
|
8736 fi
|
|
8737 fi
|
|
8738
|
|
8739 fi
|
|
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
|
|
8741 $as_echo "$gl_cv_size_max" >&6; }
|
|
8742 if test "$gl_cv_size_max" != yes; then
|
|
8743
|
|
8744 cat >>confdefs.h <<_ACEOF
|
|
8745 #define SIZE_MAX $gl_cv_size_max
|
|
8746 _ACEOF
|
|
8747
|
|
8748 fi
|
|
8749
|
|
8750
|
|
8751
|
|
8752
|
|
8753 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
|
|
8754 "
|
|
8755 if test "x$ac_cv_have_decl_sleep" = x""yes; then :
|
|
8756 ac_have_decl=1
|
|
8757 else
|
|
8758 ac_have_decl=0
|
|
8759 fi
|
|
8760
|
|
8761 cat >>confdefs.h <<_ACEOF
|
|
8762 #define HAVE_DECL_SLEEP $ac_have_decl
|
|
8763 _ACEOF
|
|
8764
|
|
8765
|
|
8766 :
|
|
8767
|
|
8768
|
|
8769
|
|
8770
|
|
8771
|
|
8772 if test $ac_cv_have_decl_sleep != yes; then
|
|
8773 HAVE_SLEEP=0
|
|
8774
|
|
8775
|
|
8776
|
|
8777
|
|
8778
|
|
8779
|
|
8780
|
|
8781
|
|
8782 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
|
|
8783
|
|
8784 else
|
|
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
|
|
8786 $as_echo_n "checking for working sleep... " >&6; }
|
|
8787 if test "${gl_cv_func_sleep_works+set}" = set; then :
|
|
8788 $as_echo_n "(cached) " >&6
|
|
8789 else
|
|
8790 if test "$cross_compiling" = yes; then :
|
|
8791 gl_cv_func_sleep_works="guessing no"
|
|
8792 else
|
|
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8794 /* end confdefs.h. */
|
|
8795
|
|
8796 #include <errno.h>
|
|
8797 #include <unistd.h>
|
|
8798 #include <signal.h>
|
|
8799 static void
|
|
8800 handle_alarm (int sig)
|
|
8801 {
|
|
8802 if (sig != SIGALRM)
|
|
8803 _exit (2);
|
|
8804 }
|
|
8805
|
|
8806 int
|
|
8807 main ()
|
|
8808 {
|
|
8809
|
|
8810 /* Failure to compile this test due to missing alarm is okay,
|
|
8811 since all such platforms (mingw) also lack sleep. */
|
|
8812 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
|
|
8813 unsigned int remaining;
|
|
8814 signal (SIGALRM, handle_alarm);
|
|
8815 alarm (1);
|
|
8816 remaining = sleep (pentecost);
|
|
8817 return !(pentecost - 10 < remaining && remaining <= pentecost);
|
|
8818 ;
|
|
8819 return 0;
|
|
8820 }
|
|
8821 _ACEOF
|
|
8822 if ac_fn_c_try_run "$LINENO"; then :
|
|
8823 gl_cv_func_sleep_works=yes
|
|
8824 else
|
|
8825 gl_cv_func_sleep_works=no
|
|
8826 fi
|
|
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
8828 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
8829 fi
|
|
8830
|
|
8831 fi
|
|
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
|
|
8833 $as_echo "$gl_cv_func_sleep_works" >&6; }
|
|
8834 if test "$gl_cv_func_sleep_works" != yes; then
|
|
8835 REPLACE_SLEEP=1
|
|
8836
|
|
8837
|
|
8838
|
|
8839
|
|
8840
|
|
8841
|
|
8842
|
|
8843
|
|
8844 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
|
|
8845
|
|
8846 fi
|
|
8847 fi
|
|
8848
|
|
8849
|
|
8850
|
|
8851 GNULIB_SLEEP=1
|
|
8852
|
|
8853
|
|
8854
|
|
8855
|
|
8856 # Define two additional variables used in the Makefile substitution.
|
|
8857
|
|
8858 if test "$ac_cv_header_stdbool_h" = yes; then
|
|
8859 STDBOOL_H=''
|
|
8860 else
|
|
8861 STDBOOL_H='stdbool.h'
|
|
8862 fi
|
|
8863
|
|
8864
|
|
8865 if test "$ac_cv_type__Bool" = yes; then
|
|
8866 HAVE__BOOL=1
|
|
8867 else
|
|
8868 HAVE__BOOL=0
|
|
8869 fi
|
|
8870
|
|
8871
|
|
8872
|
|
8873
|
|
8874
|
|
8875 if test $gt_cv_c_wchar_t = no; then
|
|
8876 HAVE_WCHAR_T=0
|
|
8877 STDDEF_H=stddef.h
|
|
8878 fi
|
|
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
|
|
8880 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
|
|
8881 if test "${gl_cv_decl_null_works+set}" = set; then :
|
|
8882 $as_echo_n "(cached) " >&6
|
|
8883 else
|
|
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8885 /* end confdefs.h. */
|
|
8886 #include <stddef.h>
|
|
8887 int test[2 * (sizeof NULL == sizeof (void *)) -1];
|
|
8888
|
|
8889 int
|
|
8890 main ()
|
|
8891 {
|
|
8892
|
|
8893 ;
|
|
8894 return 0;
|
|
8895 }
|
|
8896 _ACEOF
|
|
8897 if ac_fn_c_try_compile "$LINENO"; then :
|
|
8898 gl_cv_decl_null_works=yes
|
|
8899 else
|
|
8900 gl_cv_decl_null_works=no
|
|
8901 fi
|
|
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
8903 fi
|
|
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
|
|
8905 $as_echo "$gl_cv_decl_null_works" >&6; }
|
|
8906 if test $gl_cv_decl_null_works = no; then
|
|
8907 REPLACE_NULL=1
|
|
8908 STDDEF_H=stddef.h
|
|
8909 fi
|
|
8910 if test -n "$STDDEF_H"; then
|
|
8911
|
|
8912
|
|
8913
|
|
8914
|
|
8915 :
|
|
8916
|
|
8917
|
|
8918
|
|
8919
|
|
8920
|
|
8921
|
|
8922
|
|
8923 if test $gl_cv_have_include_next = yes; then
|
|
8924 gl_cv_next_stddef_h='<'stddef.h'>'
|
|
8925 else
|
|
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
|
|
8927 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
|
|
8928 if test "${gl_cv_next_stddef_h+set}" = set; then :
|
|
8929 $as_echo_n "(cached) " >&6
|
|
8930 else
|
|
8931
|
|
8932 if test $ac_cv_header_stddef_h = yes; then
|
|
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
8934 /* end confdefs.h. */
|
|
8935 #include <stddef.h>
|
|
8936
|
|
8937 _ACEOF
|
|
8938 case "$host_os" in
|
|
8939 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
8940 *) gl_absname_cpp="$ac_cpp" ;;
|
|
8941 esac
|
|
8942 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
8943 sed -n '\#/stddef.h#{
|
|
8944 s#.*"\(.*/stddef.h\)".*#\1#
|
|
8945 s#^/[^/]#//&#
|
|
8946 p
|
|
8947 q
|
|
8948 }'`'"'
|
|
8949 else
|
|
8950 gl_cv_next_stddef_h='<'stddef.h'>'
|
|
8951 fi
|
|
8952
|
|
8953 fi
|
|
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
|
|
8955 $as_echo "$gl_cv_next_stddef_h" >&6; }
|
|
8956 fi
|
|
8957 NEXT_STDDEF_H=$gl_cv_next_stddef_h
|
|
8958
|
|
8959 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
8960 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
8961 gl_next_as_first_directive='<'stddef.h'>'
|
|
8962 else
|
|
8963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
8964 gl_next_as_first_directive=$gl_cv_next_stddef_h
|
|
8965 fi
|
|
8966 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
|
|
8967
|
|
8968
|
|
8969
|
|
8970 fi
|
|
8971
|
|
8972
|
|
8973
|
|
8974
|
|
8975 if test $ac_cv_type_long_long_int = yes; then
|
|
8976 HAVE_LONG_LONG_INT=1
|
|
8977 else
|
|
8978 HAVE_LONG_LONG_INT=0
|
|
8979 fi
|
|
8980
|
|
8981
|
|
8982 if test $ac_cv_type_unsigned_long_long_int = yes; then
|
|
8983 HAVE_UNSIGNED_LONG_LONG_INT=1
|
|
8984 else
|
|
8985 HAVE_UNSIGNED_LONG_LONG_INT=0
|
|
8986 fi
|
|
8987
|
|
8988
|
|
8989 if test $ac_cv_header_inttypes_h = yes; then
|
|
8990 HAVE_INTTYPES_H=1
|
|
8991 else
|
|
8992 HAVE_INTTYPES_H=0
|
|
8993 fi
|
|
8994
|
|
8995
|
|
8996 if test $ac_cv_header_sys_types_h = yes; then
|
|
8997 HAVE_SYS_TYPES_H=1
|
|
8998 else
|
|
8999 HAVE_SYS_TYPES_H=0
|
|
9000 fi
|
|
9001
|
|
9002
|
|
9003
|
|
9004
|
|
9005
|
|
9006
|
|
9007 :
|
|
9008
|
|
9009
|
|
9010
|
|
9011
|
|
9012
|
|
9013
|
|
9014
|
|
9015 if test $gl_cv_have_include_next = yes; then
|
|
9016 gl_cv_next_stdint_h='<'stdint.h'>'
|
|
9017 else
|
|
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
|
|
9019 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
|
|
9020 if test "${gl_cv_next_stdint_h+set}" = set; then :
|
|
9021 $as_echo_n "(cached) " >&6
|
|
9022 else
|
|
9023
|
|
9024 if test $ac_cv_header_stdint_h = yes; then
|
|
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9026 /* end confdefs.h. */
|
|
9027 #include <stdint.h>
|
|
9028
|
|
9029 _ACEOF
|
|
9030 case "$host_os" in
|
|
9031 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
9032 *) gl_absname_cpp="$ac_cpp" ;;
|
|
9033 esac
|
|
9034 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
9035 sed -n '\#/stdint.h#{
|
|
9036 s#.*"\(.*/stdint.h\)".*#\1#
|
|
9037 s#^/[^/]#//&#
|
|
9038 p
|
|
9039 q
|
|
9040 }'`'"'
|
|
9041 else
|
|
9042 gl_cv_next_stdint_h='<'stdint.h'>'
|
|
9043 fi
|
|
9044
|
|
9045 fi
|
|
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
|
|
9047 $as_echo "$gl_cv_next_stdint_h" >&6; }
|
|
9048 fi
|
|
9049 NEXT_STDINT_H=$gl_cv_next_stdint_h
|
|
9050
|
|
9051 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
9052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
9053 gl_next_as_first_directive='<'stdint.h'>'
|
|
9054 else
|
|
9055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
9056 gl_next_as_first_directive=$gl_cv_next_stdint_h
|
|
9057 fi
|
|
9058 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
|
|
9059
|
|
9060
|
|
9061
|
|
9062 if test $ac_cv_header_stdint_h = yes; then
|
|
9063 HAVE_STDINT_H=1
|
|
9064 else
|
|
9065 HAVE_STDINT_H=0
|
|
9066 fi
|
|
9067
|
|
9068
|
|
9069 if test $ac_cv_header_stdint_h = yes; then
|
|
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
|
|
9071 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
|
|
9072 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
|
|
9073 $as_echo_n "(cached) " >&6
|
|
9074 else
|
|
9075 gl_cv_header_working_stdint_h=no
|
|
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9077 /* end confdefs.h. */
|
|
9078
|
|
9079
|
|
9080 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
|
|
9081 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
|
|
9082 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
|
|
9083 #include <stdint.h>
|
|
9084 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
|
|
9085 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
|
|
9086 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
|
|
9087 #endif
|
|
9088
|
|
9089
|
|
9090 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9091 included before <wchar.h>. */
|
|
9092 #include <stddef.h>
|
|
9093 #include <signal.h>
|
|
9094 #if HAVE_WCHAR_H
|
|
9095 # include <stdio.h>
|
|
9096 # include <time.h>
|
|
9097 # include <wchar.h>
|
|
9098 #endif
|
|
9099
|
|
9100
|
|
9101 #ifdef INT8_MAX
|
|
9102 int8_t a1 = INT8_MAX;
|
|
9103 int8_t a1min = INT8_MIN;
|
|
9104 #endif
|
|
9105 #ifdef INT16_MAX
|
|
9106 int16_t a2 = INT16_MAX;
|
|
9107 int16_t a2min = INT16_MIN;
|
|
9108 #endif
|
|
9109 #ifdef INT32_MAX
|
|
9110 int32_t a3 = INT32_MAX;
|
|
9111 int32_t a3min = INT32_MIN;
|
|
9112 #endif
|
|
9113 #ifdef INT64_MAX
|
|
9114 int64_t a4 = INT64_MAX;
|
|
9115 int64_t a4min = INT64_MIN;
|
|
9116 #endif
|
|
9117 #ifdef UINT8_MAX
|
|
9118 uint8_t b1 = UINT8_MAX;
|
|
9119 #else
|
|
9120 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
|
|
9121 #endif
|
|
9122 #ifdef UINT16_MAX
|
|
9123 uint16_t b2 = UINT16_MAX;
|
|
9124 #endif
|
|
9125 #ifdef UINT32_MAX
|
|
9126 uint32_t b3 = UINT32_MAX;
|
|
9127 #endif
|
|
9128 #ifdef UINT64_MAX
|
|
9129 uint64_t b4 = UINT64_MAX;
|
|
9130 #endif
|
|
9131 int_least8_t c1 = INT8_C (0x7f);
|
|
9132 int_least8_t c1max = INT_LEAST8_MAX;
|
|
9133 int_least8_t c1min = INT_LEAST8_MIN;
|
|
9134 int_least16_t c2 = INT16_C (0x7fff);
|
|
9135 int_least16_t c2max = INT_LEAST16_MAX;
|
|
9136 int_least16_t c2min = INT_LEAST16_MIN;
|
|
9137 int_least32_t c3 = INT32_C (0x7fffffff);
|
|
9138 int_least32_t c3max = INT_LEAST32_MAX;
|
|
9139 int_least32_t c3min = INT_LEAST32_MIN;
|
|
9140 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
|
|
9141 int_least64_t c4max = INT_LEAST64_MAX;
|
|
9142 int_least64_t c4min = INT_LEAST64_MIN;
|
|
9143 uint_least8_t d1 = UINT8_C (0xff);
|
|
9144 uint_least8_t d1max = UINT_LEAST8_MAX;
|
|
9145 uint_least16_t d2 = UINT16_C (0xffff);
|
|
9146 uint_least16_t d2max = UINT_LEAST16_MAX;
|
|
9147 uint_least32_t d3 = UINT32_C (0xffffffff);
|
|
9148 uint_least32_t d3max = UINT_LEAST32_MAX;
|
|
9149 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
|
|
9150 uint_least64_t d4max = UINT_LEAST64_MAX;
|
|
9151 int_fast8_t e1 = INT_FAST8_MAX;
|
|
9152 int_fast8_t e1min = INT_FAST8_MIN;
|
|
9153 int_fast16_t e2 = INT_FAST16_MAX;
|
|
9154 int_fast16_t e2min = INT_FAST16_MIN;
|
|
9155 int_fast32_t e3 = INT_FAST32_MAX;
|
|
9156 int_fast32_t e3min = INT_FAST32_MIN;
|
|
9157 int_fast64_t e4 = INT_FAST64_MAX;
|
|
9158 int_fast64_t e4min = INT_FAST64_MIN;
|
|
9159 uint_fast8_t f1 = UINT_FAST8_MAX;
|
|
9160 uint_fast16_t f2 = UINT_FAST16_MAX;
|
|
9161 uint_fast32_t f3 = UINT_FAST32_MAX;
|
|
9162 uint_fast64_t f4 = UINT_FAST64_MAX;
|
|
9163 #ifdef INTPTR_MAX
|
|
9164 intptr_t g = INTPTR_MAX;
|
|
9165 intptr_t gmin = INTPTR_MIN;
|
|
9166 #endif
|
|
9167 #ifdef UINTPTR_MAX
|
|
9168 uintptr_t h = UINTPTR_MAX;
|
|
9169 #endif
|
|
9170 intmax_t i = INTMAX_MAX;
|
|
9171 uintmax_t j = UINTMAX_MAX;
|
|
9172
|
|
9173 #include <limits.h> /* for CHAR_BIT */
|
|
9174 #define TYPE_MINIMUM(t) \
|
|
9175 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
|
|
9176 #define TYPE_MAXIMUM(t) \
|
|
9177 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
|
|
9178 struct s {
|
|
9179 int check_PTRDIFF:
|
|
9180 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
|
|
9181 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
|
|
9182 ? 1 : -1;
|
|
9183 /* Detect bug in FreeBSD 6.0 / ia64. */
|
|
9184 int check_SIG_ATOMIC:
|
|
9185 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
|
|
9186 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
|
|
9187 ? 1 : -1;
|
|
9188 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
|
|
9189 int check_WCHAR:
|
|
9190 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
|
|
9191 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
|
|
9192 ? 1 : -1;
|
|
9193 /* Detect bug in mingw. */
|
|
9194 int check_WINT:
|
|
9195 WINT_MIN == TYPE_MINIMUM (wint_t)
|
|
9196 && WINT_MAX == TYPE_MAXIMUM (wint_t)
|
|
9197 ? 1 : -1;
|
|
9198
|
|
9199 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
|
|
9200 int check_UINT8_C:
|
|
9201 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
|
|
9202 int check_UINT16_C:
|
|
9203 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
|
|
9204
|
|
9205 /* Detect bugs in OpenBSD 3.9 stdint.h. */
|
|
9206 #ifdef UINT8_MAX
|
|
9207 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
|
|
9208 #endif
|
|
9209 #ifdef UINT16_MAX
|
|
9210 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
|
|
9211 #endif
|
|
9212 #ifdef UINT32_MAX
|
|
9213 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
|
|
9214 #endif
|
|
9215 #ifdef UINT64_MAX
|
|
9216 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
|
|
9217 #endif
|
|
9218 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
|
|
9219 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
|
|
9220 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
|
|
9221 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
|
|
9222 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
|
|
9223 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
|
|
9224 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
|
|
9225 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
|
|
9226 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
|
|
9227 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
|
|
9228 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
|
|
9229 };
|
|
9230
|
|
9231 int
|
|
9232 main ()
|
|
9233 {
|
|
9234
|
|
9235 ;
|
|
9236 return 0;
|
|
9237 }
|
|
9238 _ACEOF
|
|
9239 if ac_fn_c_try_compile "$LINENO"; then :
|
|
9240 if test "$cross_compiling" = yes; then :
|
|
9241 gl_cv_header_working_stdint_h=yes
|
|
9242
|
|
9243 else
|
|
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9245 /* end confdefs.h. */
|
|
9246
|
|
9247
|
|
9248 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
|
|
9249 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
|
|
9250 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
|
|
9251 #include <stdint.h>
|
|
9252
|
|
9253
|
|
9254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9255 included before <wchar.h>. */
|
|
9256 #include <stddef.h>
|
|
9257 #include <signal.h>
|
|
9258 #if HAVE_WCHAR_H
|
|
9259 # include <stdio.h>
|
|
9260 # include <time.h>
|
|
9261 # include <wchar.h>
|
|
9262 #endif
|
|
9263
|
|
9264
|
|
9265 #include <stdio.h>
|
|
9266 #include <string.h>
|
|
9267 #define MVAL(macro) MVAL1(macro)
|
|
9268 #define MVAL1(expression) #expression
|
|
9269 static const char *macro_values[] =
|
|
9270 {
|
|
9271 #ifdef INT8_MAX
|
|
9272 MVAL (INT8_MAX),
|
|
9273 #endif
|
|
9274 #ifdef INT16_MAX
|
|
9275 MVAL (INT16_MAX),
|
|
9276 #endif
|
|
9277 #ifdef INT32_MAX
|
|
9278 MVAL (INT32_MAX),
|
|
9279 #endif
|
|
9280 #ifdef INT64_MAX
|
|
9281 MVAL (INT64_MAX),
|
|
9282 #endif
|
|
9283 #ifdef UINT8_MAX
|
|
9284 MVAL (UINT8_MAX),
|
|
9285 #endif
|
|
9286 #ifdef UINT16_MAX
|
|
9287 MVAL (UINT16_MAX),
|
|
9288 #endif
|
|
9289 #ifdef UINT32_MAX
|
|
9290 MVAL (UINT32_MAX),
|
|
9291 #endif
|
|
9292 #ifdef UINT64_MAX
|
|
9293 MVAL (UINT64_MAX),
|
|
9294 #endif
|
|
9295 NULL
|
|
9296 };
|
|
9297
|
|
9298 int
|
|
9299 main ()
|
|
9300 {
|
|
9301
|
|
9302 const char **mv;
|
|
9303 for (mv = macro_values; *mv != NULL; mv++)
|
|
9304 {
|
|
9305 const char *value = *mv;
|
|
9306 /* Test whether it looks like a cast expression. */
|
|
9307 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
|
|
9308 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
|
|
9309 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
|
|
9310 || strncmp (value, "((int)"/*)*/, 6) == 0
|
|
9311 || strncmp (value, "((signed short)"/*)*/, 15) == 0
|
|
9312 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
|
|
9313 return 1;
|
|
9314 }
|
|
9315 return 0;
|
|
9316
|
|
9317 ;
|
|
9318 return 0;
|
|
9319 }
|
|
9320 _ACEOF
|
|
9321 if ac_fn_c_try_run "$LINENO"; then :
|
|
9322 gl_cv_header_working_stdint_h=yes
|
|
9323 fi
|
|
9324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
9325 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
9326 fi
|
|
9327
|
|
9328
|
|
9329 fi
|
|
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
9331
|
|
9332 fi
|
|
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
|
|
9334 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
|
|
9335 fi
|
|
9336 if test "$gl_cv_header_working_stdint_h" = yes; then
|
|
9337 STDINT_H=
|
|
9338 else
|
|
9339 for ac_header in sys/inttypes.h sys/bitypes.h
|
|
9340 do :
|
|
9341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
9342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
|
9343 eval as_val=\$$as_ac_Header
|
|
9344 if test "x$as_val" = x""yes; then :
|
|
9345 cat >>confdefs.h <<_ACEOF
|
|
9346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
9347 _ACEOF
|
|
9348
|
|
9349 fi
|
|
9350
|
|
9351 done
|
|
9352
|
|
9353 if test $ac_cv_header_sys_inttypes_h = yes; then
|
|
9354 HAVE_SYS_INTTYPES_H=1
|
|
9355 else
|
|
9356 HAVE_SYS_INTTYPES_H=0
|
|
9357 fi
|
|
9358
|
|
9359 if test $ac_cv_header_sys_bitypes_h = yes; then
|
|
9360 HAVE_SYS_BITYPES_H=1
|
|
9361 else
|
|
9362 HAVE_SYS_BITYPES_H=0
|
|
9363 fi
|
|
9364
|
|
9365
|
|
9366
|
|
9367 :
|
|
9368
|
|
9369
|
|
9370
|
|
9371
|
|
9372
|
|
9373
|
|
9374
|
|
9375
|
|
9376 if test $APPLE_UNIVERSAL_BUILD = 0; then
|
|
9377
|
|
9378
|
|
9379 for gltype in ptrdiff_t size_t ; do
|
|
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
|
|
9381 $as_echo_n "checking for bit size of $gltype... " >&6; }
|
|
9382 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
9383 $as_echo_n "(cached) " >&6
|
|
9384 else
|
|
9385 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
|
|
9386 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9387 included before <wchar.h>. */
|
|
9388 #include <stddef.h>
|
|
9389 #include <signal.h>
|
|
9390 #if HAVE_WCHAR_H
|
|
9391 # include <stdio.h>
|
|
9392 # include <time.h>
|
|
9393 # include <wchar.h>
|
|
9394 #endif
|
|
9395
|
|
9396 #include <limits.h>"; then :
|
|
9397
|
|
9398 else
|
|
9399 result=unknown
|
|
9400 fi
|
|
9401
|
|
9402 eval gl_cv_bitsizeof_${gltype}=\$result
|
|
9403
|
|
9404 fi
|
|
9405 eval ac_res=\$gl_cv_bitsizeof_${gltype}
|
|
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
9407 $as_echo "$ac_res" >&6; }
|
|
9408 eval result=\$gl_cv_bitsizeof_${gltype}
|
|
9409 if test $result = unknown; then
|
|
9410 result=0
|
|
9411 fi
|
|
9412 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
|
|
9413 cat >>confdefs.h <<_ACEOF
|
|
9414 #define BITSIZEOF_${GLTYPE} $result
|
|
9415 _ACEOF
|
|
9416
|
|
9417 eval BITSIZEOF_${GLTYPE}=\$result
|
|
9418 done
|
|
9419
|
|
9420
|
|
9421 fi
|
|
9422
|
|
9423
|
|
9424 for gltype in sig_atomic_t wchar_t wint_t ; do
|
|
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
|
|
9426 $as_echo_n "checking for bit size of $gltype... " >&6; }
|
|
9427 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
9428 $as_echo_n "(cached) " >&6
|
|
9429 else
|
|
9430 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
|
|
9431 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9432 included before <wchar.h>. */
|
|
9433 #include <stddef.h>
|
|
9434 #include <signal.h>
|
|
9435 #if HAVE_WCHAR_H
|
|
9436 # include <stdio.h>
|
|
9437 # include <time.h>
|
|
9438 # include <wchar.h>
|
|
9439 #endif
|
|
9440
|
|
9441 #include <limits.h>"; then :
|
|
9442
|
|
9443 else
|
|
9444 result=unknown
|
|
9445 fi
|
|
9446
|
|
9447 eval gl_cv_bitsizeof_${gltype}=\$result
|
|
9448
|
|
9449 fi
|
|
9450 eval ac_res=\$gl_cv_bitsizeof_${gltype}
|
|
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
9452 $as_echo "$ac_res" >&6; }
|
|
9453 eval result=\$gl_cv_bitsizeof_${gltype}
|
|
9454 if test $result = unknown; then
|
|
9455 result=0
|
|
9456 fi
|
|
9457 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
|
|
9458 cat >>confdefs.h <<_ACEOF
|
|
9459 #define BITSIZEOF_${GLTYPE} $result
|
|
9460 _ACEOF
|
|
9461
|
|
9462 eval BITSIZEOF_${GLTYPE}=\$result
|
|
9463 done
|
|
9464
|
|
9465
|
|
9466
|
|
9467
|
|
9468 for gltype in sig_atomic_t wchar_t wint_t ; do
|
|
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
|
|
9470 $as_echo_n "checking whether $gltype is signed... " >&6; }
|
|
9471 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
9472 $as_echo_n "(cached) " >&6
|
|
9473 else
|
|
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9475 /* end confdefs.h. */
|
|
9476
|
|
9477 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9478 included before <wchar.h>. */
|
|
9479 #include <stddef.h>
|
|
9480 #include <signal.h>
|
|
9481 #if HAVE_WCHAR_H
|
|
9482 # include <stdio.h>
|
|
9483 # include <time.h>
|
|
9484 # include <wchar.h>
|
|
9485 #endif
|
|
9486
|
|
9487 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
|
|
9488 int
|
|
9489 main ()
|
|
9490 {
|
|
9491
|
|
9492 ;
|
|
9493 return 0;
|
|
9494 }
|
|
9495 _ACEOF
|
|
9496 if ac_fn_c_try_compile "$LINENO"; then :
|
|
9497 result=yes
|
|
9498 else
|
|
9499 result=no
|
|
9500 fi
|
|
9501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
9502 eval gl_cv_type_${gltype}_signed=\$result
|
|
9503
|
|
9504 fi
|
|
9505 eval ac_res=\$gl_cv_type_${gltype}_signed
|
|
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
9507 $as_echo "$ac_res" >&6; }
|
|
9508 eval result=\$gl_cv_type_${gltype}_signed
|
|
9509 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
|
|
9510 if test "$result" = yes; then
|
|
9511 cat >>confdefs.h <<_ACEOF
|
|
9512 #define HAVE_SIGNED_${GLTYPE} 1
|
|
9513 _ACEOF
|
|
9514
|
|
9515 eval HAVE_SIGNED_${GLTYPE}=1
|
|
9516 else
|
|
9517 eval HAVE_SIGNED_${GLTYPE}=0
|
|
9518 fi
|
|
9519 done
|
|
9520
|
|
9521
|
|
9522 gl_cv_type_ptrdiff_t_signed=yes
|
|
9523 gl_cv_type_size_t_signed=no
|
|
9524 if test $APPLE_UNIVERSAL_BUILD = 0; then
|
|
9525
|
|
9526
|
|
9527 for gltype in ptrdiff_t size_t ; do
|
|
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
|
|
9529 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
|
|
9530 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
9531 $as_echo_n "(cached) " >&6
|
|
9532 else
|
|
9533 eval gl_cv_type_${gltype}_suffix=no
|
|
9534 eval result=\$gl_cv_type_${gltype}_signed
|
|
9535 if test "$result" = yes; then
|
|
9536 glsufu=
|
|
9537 else
|
|
9538 glsufu=u
|
|
9539 fi
|
|
9540 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
|
|
9541 case $glsuf in
|
|
9542 '') gltype1='int';;
|
|
9543 l) gltype1='long int';;
|
|
9544 ll) gltype1='long long int';;
|
|
9545 i64) gltype1='__int64';;
|
|
9546 u) gltype1='unsigned int';;
|
|
9547 ul) gltype1='unsigned long int';;
|
|
9548 ull) gltype1='unsigned long long int';;
|
|
9549 ui64)gltype1='unsigned __int64';;
|
|
9550 esac
|
|
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9552 /* end confdefs.h. */
|
|
9553
|
|
9554 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9555 included before <wchar.h>. */
|
|
9556 #include <stddef.h>
|
|
9557 #include <signal.h>
|
|
9558 #if HAVE_WCHAR_H
|
|
9559 # include <stdio.h>
|
|
9560 # include <time.h>
|
|
9561 # include <wchar.h>
|
|
9562 #endif
|
|
9563
|
|
9564 extern $gltype foo;
|
|
9565 extern $gltype1 foo;
|
|
9566 int
|
|
9567 main ()
|
|
9568 {
|
|
9569
|
|
9570 ;
|
|
9571 return 0;
|
|
9572 }
|
|
9573 _ACEOF
|
|
9574 if ac_fn_c_try_compile "$LINENO"; then :
|
|
9575 eval gl_cv_type_${gltype}_suffix=\$glsuf
|
|
9576 fi
|
|
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
9578 eval result=\$gl_cv_type_${gltype}_suffix
|
|
9579 test "$result" != no && break
|
|
9580 done
|
|
9581 fi
|
|
9582 eval ac_res=\$gl_cv_type_${gltype}_suffix
|
|
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
9584 $as_echo "$ac_res" >&6; }
|
|
9585 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
|
|
9586 eval result=\$gl_cv_type_${gltype}_suffix
|
|
9587 test "$result" = no && result=
|
|
9588 eval ${GLTYPE}_SUFFIX=\$result
|
|
9589 cat >>confdefs.h <<_ACEOF
|
|
9590 #define ${GLTYPE}_SUFFIX $result
|
|
9591 _ACEOF
|
|
9592
|
|
9593 done
|
|
9594
|
|
9595
|
|
9596 fi
|
|
9597
|
|
9598
|
|
9599 for gltype in sig_atomic_t wchar_t wint_t ; do
|
|
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
|
|
9601 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
|
|
9602 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
|
|
9603 $as_echo_n "(cached) " >&6
|
|
9604 else
|
|
9605 eval gl_cv_type_${gltype}_suffix=no
|
|
9606 eval result=\$gl_cv_type_${gltype}_signed
|
|
9607 if test "$result" = yes; then
|
|
9608 glsufu=
|
|
9609 else
|
|
9610 glsufu=u
|
|
9611 fi
|
|
9612 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
|
|
9613 case $glsuf in
|
|
9614 '') gltype1='int';;
|
|
9615 l) gltype1='long int';;
|
|
9616 ll) gltype1='long long int';;
|
|
9617 i64) gltype1='__int64';;
|
|
9618 u) gltype1='unsigned int';;
|
|
9619 ul) gltype1='unsigned long int';;
|
|
9620 ull) gltype1='unsigned long long int';;
|
|
9621 ui64)gltype1='unsigned __int64';;
|
|
9622 esac
|
|
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9624 /* end confdefs.h. */
|
|
9625
|
|
9626 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
|
|
9627 included before <wchar.h>. */
|
|
9628 #include <stddef.h>
|
|
9629 #include <signal.h>
|
|
9630 #if HAVE_WCHAR_H
|
|
9631 # include <stdio.h>
|
|
9632 # include <time.h>
|
|
9633 # include <wchar.h>
|
|
9634 #endif
|
|
9635
|
|
9636 extern $gltype foo;
|
|
9637 extern $gltype1 foo;
|
|
9638 int
|
|
9639 main ()
|
|
9640 {
|
|
9641
|
|
9642 ;
|
|
9643 return 0;
|
|
9644 }
|
|
9645 _ACEOF
|
|
9646 if ac_fn_c_try_compile "$LINENO"; then :
|
|
9647 eval gl_cv_type_${gltype}_suffix=\$glsuf
|
|
9648 fi
|
|
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
9650 eval result=\$gl_cv_type_${gltype}_suffix
|
|
9651 test "$result" != no && break
|
|
9652 done
|
|
9653 fi
|
|
9654 eval ac_res=\$gl_cv_type_${gltype}_suffix
|
|
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
9656 $as_echo "$ac_res" >&6; }
|
|
9657 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
|
|
9658 eval result=\$gl_cv_type_${gltype}_suffix
|
|
9659 test "$result" = no && result=
|
|
9660 eval ${GLTYPE}_SUFFIX=\$result
|
|
9661 cat >>confdefs.h <<_ACEOF
|
|
9662 #define ${GLTYPE}_SUFFIX $result
|
|
9663 _ACEOF
|
|
9664
|
|
9665 done
|
|
9666
|
|
9667
|
|
9668
|
|
9669 STDINT_H=stdint.h
|
|
9670 fi
|
|
9671
|
|
9672
|
|
9673
|
|
9674
|
|
9675
|
|
9676
|
|
9677
|
|
9678
|
|
9679 :
|
|
9680
|
|
9681
|
|
9682
|
|
9683
|
|
9684
|
|
9685
|
|
9686
|
|
9687 if test $gl_cv_have_include_next = yes; then
|
|
9688 gl_cv_next_stdio_h='<'stdio.h'>'
|
|
9689 else
|
|
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
|
|
9691 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
|
|
9692 if test "${gl_cv_next_stdio_h+set}" = set; then :
|
|
9693 $as_echo_n "(cached) " >&6
|
|
9694 else
|
|
9695
|
|
9696 if test $ac_cv_header_stdio_h = yes; then
|
|
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9698 /* end confdefs.h. */
|
|
9699 #include <stdio.h>
|
|
9700
|
|
9701 _ACEOF
|
|
9702 case "$host_os" in
|
|
9703 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
9704 *) gl_absname_cpp="$ac_cpp" ;;
|
|
9705 esac
|
|
9706 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
9707 sed -n '\#/stdio.h#{
|
|
9708 s#.*"\(.*/stdio.h\)".*#\1#
|
|
9709 s#^/[^/]#//&#
|
|
9710 p
|
|
9711 q
|
|
9712 }'`'"'
|
|
9713 else
|
|
9714 gl_cv_next_stdio_h='<'stdio.h'>'
|
|
9715 fi
|
|
9716
|
|
9717 fi
|
|
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
|
|
9719 $as_echo "$gl_cv_next_stdio_h" >&6; }
|
|
9720 fi
|
|
9721 NEXT_STDIO_H=$gl_cv_next_stdio_h
|
|
9722
|
|
9723 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
9724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
9725 gl_next_as_first_directive='<'stdio.h'>'
|
|
9726 else
|
|
9727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
9728 gl_next_as_first_directive=$gl_cv_next_stdio_h
|
|
9729 fi
|
|
9730 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
|
|
9731
|
|
9732
|
|
9733
|
|
9734 GNULIB_FPRINTF=1
|
|
9735 GNULIB_PRINTF=1
|
|
9736 GNULIB_VFPRINTF=1
|
|
9737 GNULIB_VPRINTF=1
|
|
9738 GNULIB_FPUTC=1
|
|
9739 GNULIB_PUTC=1
|
|
9740 GNULIB_PUTCHAR=1
|
|
9741 GNULIB_FPUTS=1
|
|
9742 GNULIB_PUTS=1
|
|
9743 GNULIB_FWRITE=1
|
|
9744
|
|
9745
|
|
9746
|
|
9747
|
|
9748
|
|
9749
|
|
9750
|
|
9751
|
|
9752 :
|
|
9753
|
|
9754
|
|
9755
|
|
9756
|
|
9757
|
|
9758
|
|
9759
|
|
9760 if test $gl_cv_have_include_next = yes; then
|
|
9761 gl_cv_next_stdlib_h='<'stdlib.h'>'
|
|
9762 else
|
|
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
|
|
9764 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
|
|
9765 if test "${gl_cv_next_stdlib_h+set}" = set; then :
|
|
9766 $as_echo_n "(cached) " >&6
|
|
9767 else
|
|
9768
|
|
9769 if test $ac_cv_header_stdlib_h = yes; then
|
|
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
9771 /* end confdefs.h. */
|
|
9772 #include <stdlib.h>
|
|
9773
|
|
9774 _ACEOF
|
|
9775 case "$host_os" in
|
|
9776 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
9777 *) gl_absname_cpp="$ac_cpp" ;;
|
|
9778 esac
|
|
9779 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
9780 sed -n '\#/stdlib.h#{
|
|
9781 s#.*"\(.*/stdlib.h\)".*#\1#
|
|
9782 s#^/[^/]#//&#
|
|
9783 p
|
|
9784 q
|
|
9785 }'`'"'
|
|
9786 else
|
|
9787 gl_cv_next_stdlib_h='<'stdlib.h'>'
|
|
9788 fi
|
|
9789
|
|
9790 fi
|
|
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
|
|
9792 $as_echo "$gl_cv_next_stdlib_h" >&6; }
|
|
9793 fi
|
|
9794 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
|
|
9795
|
|
9796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
9797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
9798 gl_next_as_first_directive='<'stdlib.h'>'
|
|
9799 else
|
|
9800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
9801 gl_next_as_first_directive=$gl_cv_next_stdlib_h
|
|
9802 fi
|
|
9803 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
|
|
9804
|
|
9805
|
|
9806
|
|
9807 for ac_header in random.h
|
|
9808 do :
|
|
9809 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
|
|
9810 "
|
|
9811 if test "x$ac_cv_header_random_h" = x""yes; then :
|
|
9812 cat >>confdefs.h <<_ACEOF
|
|
9813 #define HAVE_RANDOM_H 1
|
|
9814 _ACEOF
|
|
9815
|
|
9816 fi
|
|
9817
|
|
9818 done
|
|
9819
|
|
9820 if test $ac_cv_header_random_h = yes; then
|
|
9821 HAVE_RANDOM_H=1
|
|
9822 else
|
|
9823 HAVE_RANDOM_H=0
|
|
9824 fi
|
|
9825
|
|
9826 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
|
|
9827 #if HAVE_RANDOM_H
|
|
9828 # include <random.h>
|
|
9829 #endif
|
|
9830
|
|
9831 "
|
|
9832 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
|
|
9833
|
|
9834 cat >>confdefs.h <<_ACEOF
|
|
9835 #define HAVE_STRUCT_RANDOM_DATA 1
|
|
9836 _ACEOF
|
|
9837
|
|
9838
|
|
9839 else
|
|
9840 HAVE_STRUCT_RANDOM_DATA=0
|
|
9841 fi
|
|
9842
|
|
9843
|
|
9844
|
|
9845
|
|
9846
|
|
9847
|
|
9848
|
|
9849
|
|
9850
|
|
9851
|
|
9852
|
|
9853
|
|
9854
|
|
9855 for ac_func in strcasecmp
|
|
9856 do :
|
|
9857 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
|
9858 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
|
|
9859 cat >>confdefs.h <<_ACEOF
|
|
9860 #define HAVE_STRCASECMP 1
|
|
9861 _ACEOF
|
|
9862
|
|
9863 else
|
|
9864
|
|
9865 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
9866
|
|
9867 fi
|
|
9868 done
|
|
9869
|
|
9870
|
|
9871 if test $ac_cv_func_strcasecmp = no; then
|
|
9872 HAVE_STRCASECMP=0
|
|
9873
|
|
9874 :
|
|
9875
|
|
9876 fi
|
|
9877
|
|
9878
|
|
9879
|
|
9880
|
|
9881
|
|
9882
|
|
9883
|
|
9884
|
|
9885
|
|
9886
|
|
9887
|
|
9888 for ac_func in strncasecmp
|
|
9889 do :
|
|
9890 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
|
|
9891 if test "x$ac_cv_func_strncasecmp" = x""yes; then :
|
|
9892 cat >>confdefs.h <<_ACEOF
|
|
9893 #define HAVE_STRNCASECMP 1
|
|
9894 _ACEOF
|
|
9895
|
|
9896 else
|
|
9897
|
|
9898 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
9899
|
|
9900 fi
|
|
9901 done
|
|
9902
|
|
9903
|
|
9904 if test $ac_cv_func_strncasecmp = no; then
|
|
9905
|
|
9906 :
|
|
9907
|
|
9908 fi
|
|
9909 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
|
|
9910 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
|
|
9911 ac_have_decl=1
|
|
9912 else
|
|
9913 ac_have_decl=0
|
|
9914 fi
|
|
9915
|
|
9916 cat >>confdefs.h <<_ACEOF
|
|
9917 #define HAVE_DECL_STRNCASECMP $ac_have_decl
|
|
9918 _ACEOF
|
|
9919
|
|
9920 if test $ac_cv_have_decl_strncasecmp = no; then
|
|
9921 HAVE_DECL_STRNCASECMP=0
|
|
9922 fi
|
|
9923
|
|
9924
|
|
9925
|
|
9926
|
|
9927
|
|
9928
|
|
9929
|
|
9930
|
|
9931
|
|
9932
|
|
9933
|
|
9934
|
|
9935
|
|
9936
|
|
9937 for ac_func in strchrnul
|
|
9938 do :
|
|
9939 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
|
|
9940 if test "x$ac_cv_func_strchrnul" = x""yes; then :
|
|
9941 cat >>confdefs.h <<_ACEOF
|
|
9942 #define HAVE_STRCHRNUL 1
|
|
9943 _ACEOF
|
|
9944
|
|
9945 else
|
|
9946
|
|
9947 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
|
|
9948
|
|
9949 fi
|
|
9950 done
|
|
9951
|
|
9952
|
|
9953 if test $ac_cv_func_strchrnul = no; then
|
|
9954 HAVE_STRCHRNUL=0
|
|
9955 :
|
|
9956 fi
|
|
9957
|
|
9958
|
|
9959
|
|
9960 GNULIB_STRCHRNUL=1
|
|
9961
|
|
9962
|
|
9963
|
|
9964 if test $REPLACE_STRERROR = 1; then
|
|
9965
|
|
9966
|
|
9967
|
|
9968
|
|
9969
|
|
9970
|
|
9971
|
|
9972
|
|
9973 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
|
|
9974
|
|
9975
|
|
9976 cat >>confdefs.h <<_ACEOF
|
|
9977 #define REPLACE_STRERROR $REPLACE_STRERROR
|
|
9978 _ACEOF
|
|
9979
|
|
9980 fi
|
|
9981
|
|
9982
|
|
9983
|
|
9984 GNULIB_STRERROR=1
|
|
9985
|
|
9986
|
|
9987
|
|
9988
|
|
9989
|
|
9990
|
|
9991
|
|
9992
|
|
9993
|
|
9994
|
|
9995
|
|
9996
|
|
9997 :
|
|
9998
|
|
9999
|
|
10000
|
|
10001
|
|
10002
|
|
10003
|
|
10004 :
|
|
10005
|
|
10006
|
|
10007
|
|
10008
|
|
10009
|
|
10010 if test $ac_cv_have_decl_strndup = no; then
|
|
10011 HAVE_DECL_STRNDUP=0
|
|
10012 fi
|
|
10013
|
|
10014 if test $ac_cv_func_strndup = yes; then
|
|
10015 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
|
|
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
|
|
10017 $as_echo_n "checking for working strndup... " >&6; }
|
|
10018 if test "${gl_cv_func_strndup_works+set}" = set; then :
|
|
10019 $as_echo_n "(cached) " >&6
|
|
10020 else
|
|
10021 if test "$cross_compiling" = yes; then :
|
|
10022 case $host_os in
|
|
10023 aix*) gl_cv_func_strndup_works="guessing no";;
|
|
10024 *) gl_cv_func_strndup_works="guessing yes";;
|
|
10025 esac
|
|
10026 else
|
|
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10028 /* end confdefs.h. */
|
|
10029
|
|
10030 #include <string.h>
|
|
10031 #include <stdlib.h>
|
|
10032 int
|
|
10033 main ()
|
|
10034 {
|
|
10035
|
|
10036 #ifndef HAVE_DECL_STRNDUP
|
|
10037 extern char *strndup (const char *, size_t);
|
|
10038 #endif
|
|
10039 char *s;
|
|
10040 s = strndup ("some longer string", 15);
|
|
10041 free (s);
|
|
10042 s = strndup ("shorter string", 13);
|
|
10043 return s[13] != '\0';
|
|
10044 ;
|
|
10045 return 0;
|
|
10046 }
|
|
10047 _ACEOF
|
|
10048 if ac_fn_c_try_run "$LINENO"; then :
|
|
10049 gl_cv_func_strndup_works=yes
|
|
10050 else
|
|
10051 gl_cv_func_strndup_works=no
|
|
10052 fi
|
|
10053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
10054 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
10055 fi
|
|
10056
|
|
10057 fi
|
|
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
|
|
10059 $as_echo "$gl_cv_func_strndup_works" >&6; }
|
|
10060 case $gl_cv_func_strndup_works in
|
|
10061 *no)
|
|
10062 REPLACE_STRNDUP=1
|
|
10063
|
|
10064
|
|
10065
|
|
10066
|
|
10067
|
|
10068
|
|
10069
|
|
10070
|
|
10071 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
|
|
10072
|
|
10073 ;;
|
|
10074 esac
|
|
10075 else
|
|
10076
|
|
10077
|
|
10078
|
|
10079
|
|
10080
|
|
10081
|
|
10082
|
|
10083
|
|
10084 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
|
|
10085
|
|
10086 fi
|
|
10087
|
|
10088
|
|
10089
|
|
10090 GNULIB_STRNDUP=1
|
|
10091
|
|
10092
|
|
10093
|
|
10094
|
|
10095
|
|
10096
|
|
10097 :
|
|
10098
|
|
10099
|
|
10100
|
|
10101
|
|
10102
|
|
10103 if test $ac_cv_have_decl_strnlen = no; then
|
|
10104 HAVE_DECL_STRNLEN=0
|
|
10105 fi
|
|
10106
|
|
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
|
|
10108 $as_echo_n "checking for working strnlen... " >&6; }
|
|
10109 if test "${ac_cv_func_strnlen_working+set}" = set; then :
|
|
10110 $as_echo_n "(cached) " >&6
|
|
10111 else
|
|
10112 if test "$cross_compiling" = yes; then :
|
|
10113 ac_cv_func_strnlen_working=no
|
|
10114 else
|
|
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10116 /* end confdefs.h. */
|
|
10117 $ac_includes_default
|
|
10118 int
|
|
10119 main ()
|
|
10120 {
|
|
10121
|
|
10122 #define S "foobar"
|
|
10123 #define S_LEN (sizeof S - 1)
|
|
10124
|
|
10125 /* At least one implementation is buggy: that of AIX 4.3 would
|
|
10126 give strnlen (S, 1) == 3. */
|
|
10127
|
|
10128 int i;
|
|
10129 for (i = 0; i < S_LEN + 1; ++i)
|
|
10130 {
|
|
10131 int expected = i <= S_LEN ? i : S_LEN;
|
|
10132 if (strnlen (S, i) != expected)
|
|
10133 return 1;
|
|
10134 }
|
|
10135 return 0;
|
|
10136
|
|
10137 ;
|
|
10138 return 0;
|
|
10139 }
|
|
10140 _ACEOF
|
|
10141 if ac_fn_c_try_run "$LINENO"; then :
|
|
10142 ac_cv_func_strnlen_working=yes
|
|
10143 else
|
|
10144 ac_cv_func_strnlen_working=no
|
|
10145 fi
|
|
10146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
10147 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
10148 fi
|
|
10149
|
|
10150 fi
|
|
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
|
|
10152 $as_echo "$ac_cv_func_strnlen_working" >&6; }
|
|
10153 test $ac_cv_func_strnlen_working = no &&
|
|
10154
|
|
10155
|
|
10156
|
|
10157
|
|
10158
|
|
10159
|
|
10160
|
|
10161 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
|
|
10162
|
|
10163
|
|
10164 if test $ac_cv_func_strnlen_working = no; then
|
|
10165 # This is necessary because automake-1.6.1 doesn't understand
|
|
10166 # that the above use of AC_FUNC_STRNLEN means we may have to use
|
|
10167 # lib/strnlen.c.
|
|
10168 #AC_LIBOBJ([strnlen])
|
|
10169
|
|
10170 $as_echo "#define strnlen rpl_strnlen" >>confdefs.h
|
|
10171
|
|
10172 :
|
|
10173 fi
|
|
10174
|
|
10175
|
|
10176
|
|
10177 GNULIB_STRNLEN=1
|
|
10178
|
|
10179
|
|
10180
|
|
10181 :
|
|
10182
|
|
10183
|
|
10184
|
|
10185
|
|
10186
|
|
10187 if test $ac_cv_header_sysexits_h = yes; then
|
|
10188 HAVE_SYSEXITS_H=1
|
|
10189
|
|
10190
|
|
10191
|
|
10192
|
|
10193 :
|
|
10194
|
|
10195
|
|
10196
|
|
10197
|
|
10198
|
|
10199
|
|
10200
|
|
10201 if test $gl_cv_have_include_next = yes; then
|
|
10202 gl_cv_next_sysexits_h='<'sysexits.h'>'
|
|
10203 else
|
|
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
|
|
10205 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
|
|
10206 if test "${gl_cv_next_sysexits_h+set}" = set; then :
|
|
10207 $as_echo_n "(cached) " >&6
|
|
10208 else
|
|
10209
|
|
10210 if test $ac_cv_header_sysexits_h = yes; then
|
|
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10212 /* end confdefs.h. */
|
|
10213 #include <sysexits.h>
|
|
10214
|
|
10215 _ACEOF
|
|
10216 case "$host_os" in
|
|
10217 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
10218 *) gl_absname_cpp="$ac_cpp" ;;
|
|
10219 esac
|
|
10220 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
10221 sed -n '\#/sysexits.h#{
|
|
10222 s#.*"\(.*/sysexits.h\)".*#\1#
|
|
10223 s#^/[^/]#//&#
|
|
10224 p
|
|
10225 q
|
|
10226 }'`'"'
|
|
10227 else
|
|
10228 gl_cv_next_sysexits_h='<'sysexits.h'>'
|
|
10229 fi
|
|
10230
|
|
10231 fi
|
|
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
|
|
10233 $as_echo "$gl_cv_next_sysexits_h" >&6; }
|
|
10234 fi
|
|
10235 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
|
|
10236
|
|
10237 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
10238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
10239 gl_next_as_first_directive='<'sysexits.h'>'
|
|
10240 else
|
|
10241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
10242 gl_next_as_first_directive=$gl_cv_next_sysexits_h
|
|
10243 fi
|
|
10244 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
|
|
10245
|
|
10246
|
|
10247
|
|
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10249 /* end confdefs.h. */
|
|
10250 #include <sysexits.h>
|
|
10251 int
|
|
10252 main ()
|
|
10253 {
|
|
10254 switch (0)
|
|
10255 {
|
|
10256 case EX_OK:
|
|
10257 case EX_USAGE:
|
|
10258 case EX_DATAERR:
|
|
10259 case EX_NOINPUT:
|
|
10260 case EX_NOUSER:
|
|
10261 case EX_NOHOST:
|
|
10262 case EX_UNAVAILABLE:
|
|
10263 case EX_SOFTWARE:
|
|
10264 case EX_OSERR:
|
|
10265 case EX_OSFILE:
|
|
10266 case EX_CANTCREAT:
|
|
10267 case EX_IOERR:
|
|
10268 case EX_TEMPFAIL:
|
|
10269 case EX_PROTOCOL:
|
|
10270 case EX_NOPERM:
|
|
10271 case EX_CONFIG:
|
|
10272 break;
|
|
10273 }
|
|
10274
|
|
10275 ;
|
|
10276 return 0;
|
|
10277 }
|
|
10278 _ACEOF
|
|
10279 if ac_fn_c_try_compile "$LINENO"; then :
|
|
10280 SYSEXITS_H=
|
|
10281 else
|
|
10282 SYSEXITS_H=sysexits.h
|
|
10283 fi
|
|
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
10285 else
|
|
10286 HAVE_SYSEXITS_H=0
|
|
10287 SYSEXITS_H=sysexits.h
|
|
10288 fi
|
|
10289
|
|
10290
|
|
10291
|
|
10292
|
|
10293
|
|
10294
|
|
10295
|
|
10296
|
|
10297
|
|
10298
|
|
10299 :
|
|
10300
|
|
10301
|
|
10302
|
|
10303
|
|
10304
|
|
10305
|
|
10306
|
|
10307 if test $gl_cv_have_include_next = yes; then
|
|
10308 gl_cv_next_unistd_h='<'unistd.h'>'
|
|
10309 else
|
|
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
|
|
10311 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
|
|
10312 if test "${gl_cv_next_unistd_h+set}" = set; then :
|
|
10313 $as_echo_n "(cached) " >&6
|
|
10314 else
|
|
10315
|
|
10316 if test $ac_cv_header_unistd_h = yes; then
|
|
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10318 /* end confdefs.h. */
|
|
10319 #include <unistd.h>
|
|
10320
|
|
10321 _ACEOF
|
|
10322 case "$host_os" in
|
|
10323 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
10324 *) gl_absname_cpp="$ac_cpp" ;;
|
|
10325 esac
|
|
10326 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
10327 sed -n '\#/unistd.h#{
|
|
10328 s#.*"\(.*/unistd.h\)".*#\1#
|
|
10329 s#^/[^/]#//&#
|
|
10330 p
|
|
10331 q
|
|
10332 }'`'"'
|
|
10333 else
|
|
10334 gl_cv_next_unistd_h='<'unistd.h'>'
|
|
10335 fi
|
|
10336
|
|
10337 fi
|
|
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
|
|
10339 $as_echo "$gl_cv_next_unistd_h" >&6; }
|
|
10340 fi
|
|
10341 NEXT_UNISTD_H=$gl_cv_next_unistd_h
|
|
10342
|
|
10343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
10344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
10345 gl_next_as_first_directive='<'unistd.h'>'
|
|
10346 else
|
|
10347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
10348 gl_next_as_first_directive=$gl_cv_next_unistd_h
|
|
10349 fi
|
|
10350 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
|
|
10351
|
|
10352
|
|
10353
|
|
10354
|
|
10355
|
|
10356 :
|
|
10357
|
|
10358
|
|
10359
|
|
10360
|
|
10361
|
|
10362 if test $ac_cv_header_unistd_h = yes; then
|
|
10363 HAVE_UNISTD_H=1
|
|
10364 else
|
|
10365 HAVE_UNISTD_H=0
|
|
10366 fi
|
|
10367
|
|
10368
|
|
10369
|
|
10370
|
|
10371 :
|
|
10372
|
|
10373
|
|
10374
|
|
10375
|
|
10376
|
|
10377 if test $ac_cv_func_vasnprintf = no; then
|
|
10378
|
|
10379
|
|
10380 :
|
|
10381
|
|
10382
|
|
10383
|
|
10384
|
|
10385
|
|
10386
|
|
10387
|
|
10388
|
|
10389
|
|
10390
|
|
10391
|
|
10392
|
|
10393
|
|
10394 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
|
|
10395
|
|
10396
|
|
10397
|
|
10398
|
|
10399
|
|
10400
|
|
10401
|
|
10402
|
|
10403
|
|
10404 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
|
|
10405
|
|
10406
|
|
10407
|
|
10408
|
|
10409
|
|
10410
|
|
10411
|
|
10412
|
|
10413
|
|
10414 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
|
|
10415
|
|
10416
|
|
10417
|
|
10418
|
|
10419
|
|
10420
|
|
10421
|
|
10422
|
|
10423
|
|
10424 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
|
|
10425
|
|
10426 if test $ac_cv_func_vasnprintf = yes; then
|
|
10427
|
|
10428 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
|
|
10429
|
|
10430 fi
|
|
10431
|
|
10432
|
|
10433
|
|
10434
|
|
10435
|
|
10436
|
|
10437
|
|
10438
|
|
10439
|
|
10440
|
|
10441 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
|
|
10442 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
|
|
10443
|
|
10444 else
|
|
10445
|
|
10446 $as_echo "#define ptrdiff_t long" >>confdefs.h
|
|
10447
|
|
10448
|
|
10449 fi
|
|
10450
|
|
10451
|
|
10452
|
|
10453
|
|
10454
|
|
10455
|
|
10456
|
|
10457 fi
|
|
10458
|
|
10459
|
|
10460 for ac_func in vasprintf
|
|
10461 do :
|
|
10462 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
|
|
10463 if test "x$ac_cv_func_vasprintf" = x""yes; then :
|
|
10464 cat >>confdefs.h <<_ACEOF
|
|
10465 #define HAVE_VASPRINTF 1
|
|
10466 _ACEOF
|
|
10467
|
|
10468 fi
|
|
10469 done
|
|
10470
|
|
10471 if test $ac_cv_func_vasprintf = no; then
|
|
10472
|
|
10473
|
|
10474
|
|
10475
|
|
10476
|
|
10477
|
|
10478
|
|
10479
|
|
10480
|
|
10481 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
|
|
10482
|
|
10483
|
|
10484
|
|
10485
|
|
10486
|
|
10487
|
|
10488
|
|
10489
|
|
10490
|
|
10491 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
|
|
10492
|
|
10493
|
|
10494 if test $ac_cv_func_vasprintf = yes; then
|
|
10495 REPLACE_VASPRINTF=1
|
|
10496 else
|
|
10497 HAVE_VASPRINTF=0
|
|
10498 fi
|
|
10499
|
|
10500
|
|
10501
|
|
10502
|
|
10503
|
|
10504
|
|
10505
|
|
10506
|
|
10507 fi
|
|
10508
|
|
10509
|
|
10510
|
|
10511 GNULIB_VASPRINTF=1
|
|
10512
|
|
10513
|
|
10514
|
|
10515 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
|
|
10516
|
|
10517
|
|
10518
|
|
10519 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
|
|
10520
|
|
10521
|
|
10522
|
|
10523 gl_cv_func_vsnprintf_usable=no
|
|
10524 for ac_func in vsnprintf
|
|
10525 do :
|
|
10526 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
|
|
10527 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
|
|
10528 cat >>confdefs.h <<_ACEOF
|
|
10529 #define HAVE_VSNPRINTF 1
|
|
10530 _ACEOF
|
|
10531
|
|
10532 fi
|
|
10533 done
|
|
10534
|
|
10535 if test $ac_cv_func_vsnprintf = yes; then
|
|
10536
|
|
10537
|
|
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
|
|
10539 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
|
|
10540 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
|
|
10541 $as_echo_n "(cached) " >&6
|
|
10542 else
|
|
10543
|
|
10544 if test "$cross_compiling" = yes; then :
|
|
10545 gl_cv_func_snprintf_size1="guessing yes"
|
|
10546 else
|
|
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10548 /* end confdefs.h. */
|
|
10549
|
|
10550 #include <stdio.h>
|
|
10551 int main()
|
|
10552 {
|
|
10553 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
|
|
10554 snprintf (buf, 1, "%d", 12345);
|
|
10555 return buf[1] != 'E';
|
|
10556 }
|
|
10557 _ACEOF
|
|
10558 if ac_fn_c_try_run "$LINENO"; then :
|
|
10559 gl_cv_func_snprintf_size1=yes
|
|
10560 else
|
|
10561 gl_cv_func_snprintf_size1=no
|
|
10562 fi
|
|
10563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
10564 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
10565 fi
|
|
10566
|
|
10567
|
|
10568 fi
|
|
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
|
|
10570 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
|
|
10571
|
|
10572 case "$gl_cv_func_snprintf_size1" in
|
|
10573 *yes)
|
|
10574 gl_cv_func_vsnprintf_usable=yes
|
|
10575 ;;
|
|
10576 esac
|
|
10577 fi
|
|
10578 if test $gl_cv_func_vsnprintf_usable = no; then
|
|
10579
|
|
10580
|
|
10581
|
|
10582
|
|
10583
|
|
10584
|
|
10585
|
|
10586
|
|
10587
|
|
10588
|
|
10589 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
|
|
10590
|
|
10591 if test $ac_cv_func_vsnprintf = yes; then
|
|
10592 REPLACE_VSNPRINTF=1
|
|
10593 fi
|
|
10594 :
|
|
10595
|
|
10596 fi
|
|
10597
|
|
10598 :
|
|
10599
|
|
10600
|
|
10601
|
|
10602
|
|
10603
|
|
10604 if test $ac_cv_have_decl_vsnprintf = no; then
|
|
10605 HAVE_DECL_VSNPRINTF=0
|
|
10606 fi
|
|
10607
|
|
10608
|
|
10609
|
|
10610 GNULIB_VSNPRINTF=1
|
|
10611
|
|
10612
|
|
10613
|
|
10614
|
|
10615
|
|
10616 :
|
|
10617
|
|
10618
|
|
10619
|
|
10620
|
|
10621
|
|
10622
|
|
10623
|
|
10624
|
|
10625
|
|
10626 :
|
|
10627
|
|
10628
|
|
10629
|
|
10630
|
|
10631
|
|
10632
|
|
10633
|
|
10634 if test $gl_cv_have_include_next = yes; then
|
|
10635 gl_cv_next_wchar_h='<'wchar.h'>'
|
|
10636 else
|
|
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
|
|
10638 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
|
|
10639 if test "${gl_cv_next_wchar_h+set}" = set; then :
|
|
10640 $as_echo_n "(cached) " >&6
|
|
10641 else
|
|
10642
|
|
10643 if test $ac_cv_header_wchar_h = yes; then
|
|
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
10645 /* end confdefs.h. */
|
|
10646 #include <wchar.h>
|
|
10647
|
|
10648 _ACEOF
|
|
10649 case "$host_os" in
|
|
10650 aix*) gl_absname_cpp="$ac_cpp -C" ;;
|
|
10651 *) gl_absname_cpp="$ac_cpp" ;;
|
|
10652 esac
|
|
10653 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
|
|
10654 sed -n '\#/wchar.h#{
|
|
10655 s#.*"\(.*/wchar.h\)".*#\1#
|
|
10656 s#^/[^/]#//&#
|
|
10657 p
|
|
10658 q
|
|
10659 }'`'"'
|
|
10660 else
|
|
10661 gl_cv_next_wchar_h='<'wchar.h'>'
|
|
10662 fi
|
|
10663
|
|
10664 fi
|
|
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
|
|
10666 $as_echo "$gl_cv_next_wchar_h" >&6; }
|
|
10667 fi
|
|
10668 NEXT_WCHAR_H=$gl_cv_next_wchar_h
|
|
10669
|
|
10670 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
10671 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
10672 gl_next_as_first_directive='<'wchar.h'>'
|
|
10673 else
|
|
10674 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
|
10675 gl_next_as_first_directive=$gl_cv_next_wchar_h
|
|
10676 fi
|
|
10677 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
|
|
10678
|
|
10679
|
|
10680
|
|
10681 if test $ac_cv_header_wchar_h = yes; then
|
|
10682 HAVE_WCHAR_H=1
|
|
10683 else
|
|
10684 HAVE_WCHAR_H=0
|
|
10685 fi
|
|
10686
|
|
10687
|
|
10688
|
|
10689 if test $gt_cv_c_wint_t = yes; then
|
|
10690 HAVE_WINT_T=1
|
|
10691 else
|
|
10692 HAVE_WINT_T=0
|
|
10693 fi
|
|
10694
|
|
10695
|
|
10696
|
|
10697
|
|
10698
|
|
10699 for ac_header in stdint.h
|
|
10700 do :
|
|
10701 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
|
|
10702 if test "x$ac_cv_header_stdint_h" = x""yes; then :
|
|
10703 cat >>confdefs.h <<_ACEOF
|
|
10704 #define HAVE_STDINT_H 1
|
|
10705 _ACEOF
|
|
10706
|
|
10707 fi
|
|
10708
|
|
10709 done
|
|
10710
|
|
10711
|
|
10712
|
|
10713
|
|
10714
|
|
10715
|
|
10716
|
|
10717
|
|
10718
|
|
10719
|
|
10720
|
|
10721 gltests_libdeps=
|
|
10722 gltests_ltlibdeps=
|
|
10723
|
|
10724
|
|
10725
|
|
10726
|
|
10727
|
|
10728
|
|
10729
|
|
10730
|
|
10731
|
|
10732 gl_source_base='tests'
|
|
10733
|
|
10734
|
|
10735
|
|
10736
|
|
10737
|
|
10738
|
|
10739
|
|
10740 LIBGNU_LIBDEPS="$gl_libdeps"
|
|
10741
|
|
10742 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
|
|
10743
|
|
10744
|
|
10745 ac_config_headers="$ac_config_headers config.h"
|
|
10746
|
|
10747 ac_config_files="$ac_config_files Makefile lib/Makefile lwlib/Makefile lwasm/Makefile lwlink/Makefile lwar/Makefile lwdisasm/Makefile doc/Makefile"
|
|
10748
|
|
10749 cat >confcache <<\_ACEOF
|
|
10750 # This file is a shell script that caches the results of configure
|
|
10751 # tests run on this system so they can be shared between configure
|
|
10752 # scripts and configure runs, see configure's option --config-cache.
|
|
10753 # It is not useful on other systems. If it contains results you don't
|
|
10754 # want to keep, you may remove or edit it.
|
|
10755 #
|
|
10756 # config.status only pays attention to the cache file if you give it
|
|
10757 # the --recheck option to rerun configure.
|
|
10758 #
|
|
10759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
10760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
10761 # following values.
|
|
10762
|
|
10763 _ACEOF
|
|
10764
|
|
10765 # The following way of writing the cache mishandles newlines in values,
|
|
10766 # but we know of no workaround that is simple, portable, and efficient.
|
|
10767 # So, we kill variables containing newlines.
|
|
10768 # Ultrix sh set writes to stderr and can't be redirected directly,
|
|
10769 # and sets the high bit in the cache file unless we assign to the vars.
|
|
10770 (
|
|
10771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
10772 eval ac_val=\$$ac_var
|
|
10773 case $ac_val in #(
|
|
10774 *${as_nl}*)
|
|
10775 case $ac_var in #(
|
|
10776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
|
10777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
|
10778 esac
|
|
10779 case $ac_var in #(
|
|
10780 _ | IFS | as_nl) ;; #(
|
|
10781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
|
10782 *) { eval $ac_var=; unset $ac_var;} ;;
|
|
10783 esac ;;
|
|
10784 esac
|
|
10785 done
|
|
10786
|
|
10787 (set) 2>&1 |
|
|
10788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
10789 *${as_nl}ac_space=\ *)
|
|
10790 # `set' does not quote correctly, so add quotes: double-quote
|
|
10791 # substitution turns \\\\ into \\, and sed turns \\ into \.
|
|
10792 sed -n \
|
|
10793 "s/'/'\\\\''/g;
|
|
10794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
10795 ;; #(
|
|
10796 *)
|
|
10797 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
10798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
10799 ;;
|
|
10800 esac |
|
|
10801 sort
|
|
10802 ) |
|
|
10803 sed '
|
|
10804 /^ac_cv_env_/b end
|
|
10805 t clear
|
|
10806 :clear
|
|
10807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
10808 t end
|
|
10809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
10810 :end' >>confcache
|
|
10811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
10812 if test -w "$cache_file"; then
|
|
10813 test "x$cache_file" != "x/dev/null" &&
|
|
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
|
10815 $as_echo "$as_me: updating cache $cache_file" >&6;}
|
|
10816 cat confcache >$cache_file
|
|
10817 else
|
|
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
|
10819 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
10820 fi
|
|
10821 fi
|
|
10822 rm -f confcache
|
|
10823
|
|
10824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
10825 # Let make expand exec_prefix.
|
|
10826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
10827
|
|
10828 DEFS=-DHAVE_CONFIG_H
|
|
10829
|
|
10830 ac_libobjs=
|
|
10831 ac_ltlibobjs=
|
|
10832 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
|
10833 # 1. Remove the extension, and $U if already installed.
|
|
10834 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
10835 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
|
10836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
10837 # will be set to the directory where LIBOBJS objects are built.
|
|
10838 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
10839 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
10840 done
|
|
10841 LIBOBJS=$ac_libobjs
|
|
10842
|
|
10843 LTLIBOBJS=$ac_ltlibobjs
|
|
10844
|
|
10845
|
|
10846 if test -n "$EXEEXT"; then
|
|
10847 am__EXEEXT_TRUE=
|
|
10848 am__EXEEXT_FALSE='#'
|
|
10849 else
|
|
10850 am__EXEEXT_TRUE='#'
|
|
10851 am__EXEEXT_FALSE=
|
|
10852 fi
|
|
10853
|
|
10854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
|
10855 as_fn_error "conditional \"AMDEP\" was never defined.
|
|
10856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
10857 fi
|
|
10858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
|
10859 as_fn_error "conditional \"am__fastdepCC\" was never defined.
|
|
10860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
10861 fi
|
|
10862 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
|
|
10863 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
|
|
10864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
|
10865 fi
|
|
10866
|
|
10867 gl_libobjs=
|
|
10868 gl_ltlibobjs=
|
|
10869 if test -n "$gl_LIBOBJS"; then
|
|
10870 # Remove the extension.
|
|
10871 sed_drop_objext='s/\.o$//;s/\.obj$//'
|
|
10872 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
|
|
10873 gl_libobjs="$gl_libobjs $i.$ac_objext"
|
|
10874 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
|
|
10875 done
|
|
10876 fi
|
|
10877 gl_LIBOBJS=$gl_libobjs
|
|
10878
|
|
10879 gl_LTLIBOBJS=$gl_ltlibobjs
|
|
10880
|
|
10881
|
|
10882
|
|
10883 gltests_libobjs=
|
|
10884 gltests_ltlibobjs=
|
|
10885 if test -n "$gltests_LIBOBJS"; then
|
|
10886 # Remove the extension.
|
|
10887 sed_drop_objext='s/\.o$//;s/\.obj$//'
|
|
10888 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
|
|
10889 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
|
|
10890 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
|
|
10891 done
|
|
10892 fi
|
|
10893 gltests_LIBOBJS=$gltests_libobjs
|
|
10894
|
|
10895 gltests_LTLIBOBJS=$gltests_ltlibobjs
|
|
10896
|
|
10897
|
|
10898
|
|
10899 : ${CONFIG_STATUS=./config.status}
|
|
10900 ac_write_fail=0
|
|
10901 ac_clean_files_save=$ac_clean_files
|
|
10902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
|
10904 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
10905 as_write_fail=0
|
|
10906 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
|
10907 #! $SHELL
|
|
10908 # Generated by $as_me.
|
|
10909 # Run this file to recreate the current configuration.
|
|
10910 # Compiler output produced by configure, useful for debugging
|
|
10911 # configure, is in config.log if it exists.
|
|
10912
|
|
10913 debug=false
|
|
10914 ac_cs_recheck=false
|
|
10915 ac_cs_silent=false
|
|
10916
|
|
10917 SHELL=\${CONFIG_SHELL-$SHELL}
|
|
10918 export SHELL
|
|
10919 _ASEOF
|
|
10920 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
|
10921 ## -------------------- ##
|
|
10922 ## M4sh Initialization. ##
|
|
10923 ## -------------------- ##
|
|
10924
|
|
10925 # Be more Bourne compatible
|
|
10926 DUALCASE=1; export DUALCASE # for MKS sh
|
|
10927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
|
10928 emulate sh
|
|
10929 NULLCMD=:
|
|
10930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
|
10931 # is contrary to our usage. Disable this feature.
|
|
10932 alias -g '${1+"$@"}'='"$@"'
|
|
10933 setopt NO_GLOB_SUBST
|
|
10934 else
|
|
10935 case `(set -o) 2>/dev/null` in #(
|
|
10936 *posix*) :
|
|
10937 set -o posix ;; #(
|
|
10938 *) :
|
|
10939 ;;
|
|
10940 esac
|
|
10941 fi
|
|
10942
|
|
10943
|
|
10944 as_nl='
|
|
10945 '
|
|
10946 export as_nl
|
|
10947 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
|
10948 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
|
10949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
10950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
|
10951 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
|
10952 # but without wasting forks for bash or zsh.
|
|
10953 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
|
10954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
10955 as_echo='print -r --'
|
|
10956 as_echo_n='print -rn --'
|
|
10957 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
|
10958 as_echo='printf %s\n'
|
|
10959 as_echo_n='printf %s'
|
|
10960 else
|
|
10961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
|
10962 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
|
10963 as_echo_n='/usr/ucb/echo -n'
|
|
10964 else
|
|
10965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
|
10966 as_echo_n_body='eval
|
|
10967 arg=$1;
|
|
10968 case $arg in #(
|
|
10969 *"$as_nl"*)
|
|
10970 expr "X$arg" : "X\\(.*\\)$as_nl";
|
|
10971 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
|
10972 esac;
|
|
10973 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
|
10974 '
|
|
10975 export as_echo_n_body
|
|
10976 as_echo_n='sh -c $as_echo_n_body as_echo'
|
|
10977 fi
|
|
10978 export as_echo_body
|
|
10979 as_echo='sh -c $as_echo_body as_echo'
|
|
10980 fi
|
|
10981
|
|
10982 # The user is always right.
|
|
10983 if test "${PATH_SEPARATOR+set}" != set; then
|
|
10984 PATH_SEPARATOR=:
|
|
10985 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
|
10986 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
|
10987 PATH_SEPARATOR=';'
|
|
10988 }
|
|
10989 fi
|
|
10990
|
|
10991
|
|
10992 # IFS
|
|
10993 # We need space, tab and new line, in precisely that order. Quoting is
|
|
10994 # there to prevent editors from complaining about space-tab.
|
|
10995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
10996 # splitting by setting IFS to empty value.)
|
|
10997 IFS=" "" $as_nl"
|
|
10998
|
|
10999 # Find who we are. Look in the path if we contain no directory separator.
|
|
11000 case $0 in #((
|
|
11001 *[\\/]* ) as_myself=$0 ;;
|
|
11002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
11003 for as_dir in $PATH
|
|
11004 do
|
|
11005 IFS=$as_save_IFS
|
|
11006 test -z "$as_dir" && as_dir=.
|
|
11007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
11008 done
|
|
11009 IFS=$as_save_IFS
|
|
11010
|
|
11011 ;;
|
|
11012 esac
|
|
11013 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
11014 # in which case we are not to be found in the path.
|
|
11015 if test "x$as_myself" = x; then
|
|
11016 as_myself=$0
|
|
11017 fi
|
|
11018 if test ! -f "$as_myself"; then
|
|
11019 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
11020 exit 1
|
|
11021 fi
|
|
11022
|
|
11023 # Unset variables that we do not need and which cause bugs (e.g. in
|
|
11024 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
|
11025 # suppresses any "Segmentation fault" message there. '((' could
|
|
11026 # trigger a bug in pdksh 5.2.14.
|
|
11027 for as_var in BASH_ENV ENV MAIL MAILPATH
|
|
11028 do eval test x\${$as_var+set} = xset \
|
|
11029 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
|
11030 done
|
|
11031 PS1='$ '
|
|
11032 PS2='> '
|
|
11033 PS4='+ '
|
|
11034
|
|
11035 # NLS nuisances.
|
|
11036 LC_ALL=C
|
|
11037 export LC_ALL
|
|
11038 LANGUAGE=C
|
|
11039 export LANGUAGE
|
|
11040
|
|
11041 # CDPATH.
|
|
11042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
11043
|
|
11044
|
|
11045 # as_fn_error ERROR [LINENO LOG_FD]
|
|
11046 # ---------------------------------
|
|
11047 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
|
11048 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
|
11049 # script with status $?, using 1 if that was 0.
|
|
11050 as_fn_error ()
|
|
11051 {
|
|
11052 as_status=$?; test $as_status -eq 0 && as_status=1
|
|
11053 if test "$3"; then
|
|
11054 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
11055 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
|
11056 fi
|
|
11057 $as_echo "$as_me: error: $1" >&2
|
|
11058 as_fn_exit $as_status
|
|
11059 } # as_fn_error
|
|
11060
|
|
11061
|
|
11062 # as_fn_set_status STATUS
|
|
11063 # -----------------------
|
|
11064 # Set $? to STATUS, without forking.
|
|
11065 as_fn_set_status ()
|
|
11066 {
|
|
11067 return $1
|
|
11068 } # as_fn_set_status
|
|
11069
|
|
11070 # as_fn_exit STATUS
|
|
11071 # -----------------
|
|
11072 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
11073 as_fn_exit ()
|
|
11074 {
|
|
11075 set +e
|
|
11076 as_fn_set_status $1
|
|
11077 exit $1
|
|
11078 } # as_fn_exit
|
|
11079
|
|
11080 # as_fn_unset VAR
|
|
11081 # ---------------
|
|
11082 # Portably unset VAR.
|
|
11083 as_fn_unset ()
|
|
11084 {
|
|
11085 { eval $1=; unset $1;}
|
|
11086 }
|
|
11087 as_unset=as_fn_unset
|
|
11088 # as_fn_append VAR VALUE
|
|
11089 # ----------------------
|
|
11090 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
|
11091 # advantage of any shell optimizations that allow amortized linear growth over
|
|
11092 # repeated appends, instead of the typical quadratic growth present in naive
|
|
11093 # implementations.
|
|
11094 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
|
11095 eval 'as_fn_append ()
|
|
11096 {
|
|
11097 eval $1+=\$2
|
|
11098 }'
|
|
11099 else
|
|
11100 as_fn_append ()
|
|
11101 {
|
|
11102 eval $1=\$$1\$2
|
|
11103 }
|
|
11104 fi # as_fn_append
|
|
11105
|
|
11106 # as_fn_arith ARG...
|
|
11107 # ------------------
|
|
11108 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
11109 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
11110 # must be portable across $(()) and expr.
|
|
11111 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
11112 eval 'as_fn_arith ()
|
|
11113 {
|
|
11114 as_val=$(( $* ))
|
|
11115 }'
|
|
11116 else
|
|
11117 as_fn_arith ()
|
|
11118 {
|
|
11119 as_val=`expr "$@" || test $? -eq 1`
|
|
11120 }
|
|
11121 fi # as_fn_arith
|
|
11122
|
|
11123
|
|
11124 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
11125 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
11126 as_expr=expr
|
|
11127 else
|
|
11128 as_expr=false
|
|
11129 fi
|
|
11130
|
|
11131 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
11132 as_basename=basename
|
|
11133 else
|
|
11134 as_basename=false
|
|
11135 fi
|
|
11136
|
|
11137 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
11138 as_dirname=dirname
|
|
11139 else
|
|
11140 as_dirname=false
|
|
11141 fi
|
|
11142
|
|
11143 as_me=`$as_basename -- "$0" ||
|
|
11144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
11145 X"$0" : 'X\(//\)$' \| \
|
|
11146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
11147 $as_echo X/"$0" |
|
|
11148 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
11149 s//\1/
|
|
11150 q
|
|
11151 }
|
|
11152 /^X\/\(\/\/\)$/{
|
|
11153 s//\1/
|
|
11154 q
|
|
11155 }
|
|
11156 /^X\/\(\/\).*/{
|
|
11157 s//\1/
|
|
11158 q
|
|
11159 }
|
|
11160 s/.*/./; q'`
|
|
11161
|
|
11162 # Avoid depending upon Character Ranges.
|
|
11163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
11164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
11165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
11166 as_cr_digits='0123456789'
|
|
11167 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
11168
|
|
11169 ECHO_C= ECHO_N= ECHO_T=
|
|
11170 case `echo -n x` in #(((((
|
|
11171 -n*)
|
|
11172 case `echo 'xy\c'` in
|
|
11173 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
11174 xy) ECHO_C='\c';;
|
|
11175 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
|
11176 ECHO_T=' ';;
|
|
11177 esac;;
|
|
11178 *)
|
|
11179 ECHO_N='-n';;
|
|
11180 esac
|
|
11181
|
|
11182 rm -f conf$$ conf$$.exe conf$$.file
|
|
11183 if test -d conf$$.dir; then
|
|
11184 rm -f conf$$.dir/conf$$.file
|
|
11185 else
|
|
11186 rm -f conf$$.dir
|
|
11187 mkdir conf$$.dir 2>/dev/null
|
|
11188 fi
|
|
11189 if (echo >conf$$.file) 2>/dev/null; then
|
|
11190 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
11191 as_ln_s='ln -s'
|
|
11192 # ... but there are two gotchas:
|
|
11193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
11194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
11195 # In both cases, we have to default to `cp -p'.
|
|
11196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
11197 as_ln_s='cp -p'
|
|
11198 elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
11199 as_ln_s=ln
|
|
11200 else
|
|
11201 as_ln_s='cp -p'
|
|
11202 fi
|
|
11203 else
|
|
11204 as_ln_s='cp -p'
|
|
11205 fi
|
|
11206 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
11207 rmdir conf$$.dir 2>/dev/null
|
|
11208
|
|
11209
|
|
11210 # as_fn_mkdir_p
|
|
11211 # -------------
|
|
11212 # Create "$as_dir" as a directory, including parents if necessary.
|
|
11213 as_fn_mkdir_p ()
|
|
11214 {
|
|
11215
|
|
11216 case $as_dir in #(
|
|
11217 -*) as_dir=./$as_dir;;
|
|
11218 esac
|
|
11219 test -d "$as_dir" || eval $as_mkdir_p || {
|
|
11220 as_dirs=
|
|
11221 while :; do
|
|
11222 case $as_dir in #(
|
|
11223 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
|
11224 *) as_qdir=$as_dir;;
|
|
11225 esac
|
|
11226 as_dirs="'$as_qdir' $as_dirs"
|
|
11227 as_dir=`$as_dirname -- "$as_dir" ||
|
|
11228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
11229 X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
11230 X"$as_dir" : 'X\(//\)$' \| \
|
|
11231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
11232 $as_echo X"$as_dir" |
|
|
11233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
11234 s//\1/
|
|
11235 q
|
|
11236 }
|
|
11237 /^X\(\/\/\)[^/].*/{
|
|
11238 s//\1/
|
|
11239 q
|
|
11240 }
|
|
11241 /^X\(\/\/\)$/{
|
|
11242 s//\1/
|
|
11243 q
|
|
11244 }
|
|
11245 /^X\(\/\).*/{
|
|
11246 s//\1/
|
|
11247 q
|
|
11248 }
|
|
11249 s/.*/./; q'`
|
|
11250 test -d "$as_dir" && break
|
|
11251 done
|
|
11252 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
11253 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
|
11254
|
|
11255
|
|
11256 } # as_fn_mkdir_p
|
|
11257 if mkdir -p . 2>/dev/null; then
|
|
11258 as_mkdir_p='mkdir -p "$as_dir"'
|
|
11259 else
|
|
11260 test -d ./-p && rmdir ./-p
|
|
11261 as_mkdir_p=false
|
|
11262 fi
|
|
11263
|
|
11264 if test -x / >/dev/null 2>&1; then
|
|
11265 as_test_x='test -x'
|
|
11266 else
|
|
11267 if ls -dL / >/dev/null 2>&1; then
|
|
11268 as_ls_L_option=L
|
|
11269 else
|
|
11270 as_ls_L_option=
|
|
11271 fi
|
|
11272 as_test_x='
|
|
11273 eval sh -c '\''
|
|
11274 if test -d "$1"; then
|
|
11275 test -d "$1/.";
|
|
11276 else
|
|
11277 case $1 in #(
|
|
11278 -*)set "./$1";;
|
|
11279 esac;
|
|
11280 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
|
11281 ???[sx]*):;;*)false;;esac;fi
|
|
11282 '\'' sh
|
|
11283 '
|
|
11284 fi
|
|
11285 as_executable_p=$as_test_x
|
|
11286
|
|
11287 # Sed expression to map a string onto a valid CPP name.
|
|
11288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
11289
|
|
11290 # Sed expression to map a string onto a valid variable name.
|
|
11291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
11292
|
|
11293
|
|
11294 exec 6>&1
|
|
11295 ## ----------------------------------- ##
|
|
11296 ## Main body of $CONFIG_STATUS script. ##
|
|
11297 ## ----------------------------------- ##
|
|
11298 _ASEOF
|
|
11299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
|
11300
|
|
11301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11302 # Save the log message, to keep $0 and so on meaningful, and to
|
|
11303 # report actual input values of CONFIG_FILES etc. instead of their
|
|
11304 # values after options handling.
|
|
11305 ac_log="
|
|
11306 This file was extended by LWTools $as_me 3.0, which was
|
|
11307 generated by GNU Autoconf 2.65. Invocation command line was
|
|
11308
|
|
11309 CONFIG_FILES = $CONFIG_FILES
|
|
11310 CONFIG_HEADERS = $CONFIG_HEADERS
|
|
11311 CONFIG_LINKS = $CONFIG_LINKS
|
|
11312 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
11313 $ $0 $@
|
|
11314
|
|
11315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
11316 "
|
|
11317
|
|
11318 _ACEOF
|
|
11319
|
|
11320 case $ac_config_files in *"
|
|
11321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
|
11322 esac
|
|
11323
|
|
11324 case $ac_config_headers in *"
|
|
11325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
|
11326 esac
|
|
11327
|
|
11328
|
|
11329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11330 # Files that config.status was made for.
|
|
11331 config_files="$ac_config_files"
|
|
11332 config_headers="$ac_config_headers"
|
|
11333 config_commands="$ac_config_commands"
|
|
11334
|
|
11335 _ACEOF
|
|
11336
|
|
11337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11338 ac_cs_usage="\
|
|
11339 \`$as_me' instantiates files and other configuration actions
|
|
11340 from templates according to the current configuration. Unless the files
|
|
11341 and actions are specified as TAGs, all are instantiated by default.
|
|
11342
|
|
11343 Usage: $0 [OPTION]... [TAG]...
|
|
11344
|
|
11345 -h, --help print this help, then exit
|
|
11346 -V, --version print version number and configuration settings, then exit
|
|
11347 --config print configuration, then exit
|
|
11348 -q, --quiet, --silent
|
|
11349 do not print progress messages
|
|
11350 -d, --debug don't remove temporary files
|
|
11351 --recheck update $as_me by reconfiguring in the same conditions
|
|
11352 --file=FILE[:TEMPLATE]
|
|
11353 instantiate the configuration file FILE
|
|
11354 --header=FILE[:TEMPLATE]
|
|
11355 instantiate the configuration header FILE
|
|
11356
|
|
11357 Configuration files:
|
|
11358 $config_files
|
|
11359
|
|
11360 Configuration headers:
|
|
11361 $config_headers
|
|
11362
|
|
11363 Configuration commands:
|
|
11364 $config_commands
|
|
11365
|
|
11366 Report bugs to <lost@l-w.ca>."
|
|
11367
|
|
11368 _ACEOF
|
|
11369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11370 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
|
11371 ac_cs_version="\\
|
|
11372 LWTools config.status 3.0
|
|
11373 configured by $0, generated by GNU Autoconf 2.65,
|
|
11374 with options \\"\$ac_cs_config\\"
|
|
11375
|
|
11376 Copyright (C) 2009 Free Software Foundation, Inc.
|
|
11377 This config.status script is free software; the Free Software Foundation
|
|
11378 gives unlimited permission to copy, distribute and modify it."
|
|
11379
|
|
11380 ac_pwd='$ac_pwd'
|
|
11381 srcdir='$srcdir'
|
|
11382 INSTALL='$INSTALL'
|
|
11383 MKDIR_P='$MKDIR_P'
|
|
11384 AWK='$AWK'
|
|
11385 test -n "\$AWK" || AWK=awk
|
|
11386 _ACEOF
|
|
11387
|
|
11388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11389 # The default lists apply if the user does not specify any file.
|
|
11390 ac_need_defaults=:
|
|
11391 while test $# != 0
|
|
11392 do
|
|
11393 case $1 in
|
|
11394 --*=*)
|
|
11395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
11396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
11397 ac_shift=:
|
|
11398 ;;
|
|
11399 *)
|
|
11400 ac_option=$1
|
|
11401 ac_optarg=$2
|
|
11402 ac_shift=shift
|
|
11403 ;;
|
|
11404 esac
|
|
11405
|
|
11406 case $ac_option in
|
|
11407 # Handling of the options.
|
|
11408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
11409 ac_cs_recheck=: ;;
|
|
11410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
11411 $as_echo "$ac_cs_version"; exit ;;
|
|
11412 --config | --confi | --conf | --con | --co | --c )
|
|
11413 $as_echo "$ac_cs_config"; exit ;;
|
|
11414 --debug | --debu | --deb | --de | --d | -d )
|
|
11415 debug=: ;;
|
|
11416 --file | --fil | --fi | --f )
|
|
11417 $ac_shift
|
|
11418 case $ac_optarg in
|
|
11419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
11420 esac
|
|
11421 as_fn_append CONFIG_FILES " '$ac_optarg'"
|
|
11422 ac_need_defaults=false;;
|
|
11423 --header | --heade | --head | --hea )
|
|
11424 $ac_shift
|
|
11425 case $ac_optarg in
|
|
11426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
11427 esac
|
|
11428 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
|
11429 ac_need_defaults=false;;
|
|
11430 --he | --h)
|
|
11431 # Conflict between --help and --header
|
|
11432 as_fn_error "ambiguous option: \`$1'
|
|
11433 Try \`$0 --help' for more information.";;
|
|
11434 --help | --hel | -h )
|
|
11435 $as_echo "$ac_cs_usage"; exit ;;
|
|
11436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
11437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
11438 ac_cs_silent=: ;;
|
|
11439
|
|
11440 # This is an error.
|
|
11441 -*) as_fn_error "unrecognized option: \`$1'
|
|
11442 Try \`$0 --help' for more information." ;;
|
|
11443
|
|
11444 *) as_fn_append ac_config_targets " $1"
|
|
11445 ac_need_defaults=false ;;
|
|
11446
|
|
11447 esac
|
|
11448 shift
|
|
11449 done
|
|
11450
|
|
11451 ac_configure_extra_args=
|
|
11452
|
|
11453 if $ac_cs_silent; then
|
|
11454 exec 6>/dev/null
|
|
11455 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
11456 fi
|
|
11457
|
|
11458 _ACEOF
|
|
11459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11460 if \$ac_cs_recheck; then
|
|
11461 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
11462 shift
|
|
11463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
|
11464 CONFIG_SHELL='$SHELL'
|
|
11465 export CONFIG_SHELL
|
|
11466 exec "\$@"
|
|
11467 fi
|
|
11468
|
|
11469 _ACEOF
|
|
11470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11471 exec 5>>config.log
|
|
11472 {
|
|
11473 echo
|
|
11474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
|
11475 ## Running $as_me. ##
|
|
11476 _ASBOX
|
|
11477 $as_echo "$ac_log"
|
|
11478 } >&5
|
|
11479
|
|
11480 _ACEOF
|
|
11481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11482 #
|
|
11483 # INIT-COMMANDS
|
|
11484 #
|
|
11485 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
|
11486
|
|
11487 _ACEOF
|
|
11488
|
|
11489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11490
|
|
11491 # Handling of arguments.
|
|
11492 for ac_config_target in $ac_config_targets
|
|
11493 do
|
|
11494 case $ac_config_target in
|
|
11495 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
|
11496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
|
11497 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
11498 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
|
11499 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
|
|
11500 "lwasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwasm/Makefile" ;;
|
|
11501 "lwlink/Makefile") CONFIG_FILES="$CONFIG_FILES lwlink/Makefile" ;;
|
|
11502 "lwar/Makefile") CONFIG_FILES="$CONFIG_FILES lwar/Makefile" ;;
|
|
11503 "lwdisasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwdisasm/Makefile" ;;
|
|
11504 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
|
11505
|
|
11506 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
|
11507 esac
|
|
11508 done
|
|
11509
|
|
11510
|
|
11511 # If the user did not use the arguments to specify the items to instantiate,
|
|
11512 # then the envvar interface is used. Set only those that are not.
|
|
11513 # We use the long form for the default assignment because of an extremely
|
|
11514 # bizarre bug on SunOS 4.1.3.
|
|
11515 if $ac_need_defaults; then
|
|
11516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
11517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
11518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
11519 fi
|
|
11520
|
|
11521 # Have a temporary directory for convenience. Make it in the build tree
|
|
11522 # simply because there is no reason against having it here, and in addition,
|
|
11523 # creating and moving files from /tmp can sometimes cause problems.
|
|
11524 # Hook for its removal unless debugging.
|
|
11525 # Note that there is a small window in which the directory will not be cleaned:
|
|
11526 # after its creation but before its name has been assigned to `$tmp'.
|
|
11527 $debug ||
|
|
11528 {
|
|
11529 tmp=
|
|
11530 trap 'exit_status=$?
|
|
11531 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
|
11532 ' 0
|
|
11533 trap 'as_fn_exit 1' 1 2 13 15
|
|
11534 }
|
|
11535 # Create a (secure) tmp directory for tmp files.
|
|
11536
|
|
11537 {
|
|
11538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
11539 test -n "$tmp" && test -d "$tmp"
|
|
11540 } ||
|
|
11541 {
|
|
11542 tmp=./conf$$-$RANDOM
|
|
11543 (umask 077 && mkdir "$tmp")
|
|
11544 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
|
11545
|
|
11546 # Set up the scripts for CONFIG_FILES section.
|
|
11547 # No need to generate them if there are no CONFIG_FILES.
|
|
11548 # This happens for instance with `./config.status config.h'.
|
|
11549 if test -n "$CONFIG_FILES"; then
|
|
11550
|
|
11551
|
|
11552 ac_cr=`echo X | tr X '\015'`
|
|
11553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
|
11554 # But we know of no other shell where ac_cr would be empty at this
|
|
11555 # point, so we can use a bashism as a fallback.
|
|
11556 if test "x$ac_cr" = x; then
|
|
11557 eval ac_cr=\$\'\\r\'
|
|
11558 fi
|
|
11559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
|
11560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
|
11561 ac_cs_awk_cr='\r'
|
|
11562 else
|
|
11563 ac_cs_awk_cr=$ac_cr
|
|
11564 fi
|
|
11565
|
|
11566 echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
|
11567 _ACEOF
|
|
11568
|
|
11569
|
|
11570 {
|
|
11571 echo "cat >conf$$subs.awk <<_ACEOF" &&
|
|
11572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
|
11573 echo "_ACEOF"
|
|
11574 } >conf$$subs.sh ||
|
|
11575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
11576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
|
11577 ac_delim='%!_!# '
|
|
11578 for ac_last_try in false false false false false :; do
|
|
11579 . ./conf$$subs.sh ||
|
|
11580 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
11581
|
|
11582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
|
11583 if test $ac_delim_n = $ac_delim_num; then
|
|
11584 break
|
|
11585 elif $ac_last_try; then
|
|
11586 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
|
11587 else
|
|
11588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
11589 fi
|
|
11590 done
|
|
11591 rm -f conf$$subs.sh
|
|
11592
|
|
11593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11594 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
|
11595 _ACEOF
|
|
11596 sed -n '
|
|
11597 h
|
|
11598 s/^/S["/; s/!.*/"]=/
|
|
11599 p
|
|
11600 g
|
|
11601 s/^[^!]*!//
|
|
11602 :repl
|
|
11603 t repl
|
|
11604 s/'"$ac_delim"'$//
|
|
11605 t delim
|
|
11606 :nl
|
|
11607 h
|
|
11608 s/\(.\{148\}\)..*/\1/
|
|
11609 t more1
|
|
11610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
|
11611 p
|
|
11612 n
|
|
11613 b repl
|
|
11614 :more1
|
|
11615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
11616 p
|
|
11617 g
|
|
11618 s/.\{148\}//
|
|
11619 t nl
|
|
11620 :delim
|
|
11621 h
|
|
11622 s/\(.\{148\}\)..*/\1/
|
|
11623 t more2
|
|
11624 s/["\\]/\\&/g; s/^/"/; s/$/"/
|
|
11625 p
|
|
11626 b
|
|
11627 :more2
|
|
11628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
|
11629 p
|
|
11630 g
|
|
11631 s/.\{148\}//
|
|
11632 t delim
|
|
11633 ' <conf$$subs.awk | sed '
|
|
11634 /^[^""]/{
|
|
11635 N
|
|
11636 s/\n//
|
|
11637 }
|
|
11638 ' >>$CONFIG_STATUS || ac_write_fail=1
|
|
11639 rm -f conf$$subs.awk
|
|
11640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11641 _ACAWK
|
|
11642 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
|
11643 for (key in S) S_is_set[key] = 1
|
|
11644 FS = ""
|
|
11645
|
|
11646 }
|
|
11647 {
|
|
11648 line = $ 0
|
|
11649 nfields = split(line, field, "@")
|
|
11650 substed = 0
|
|
11651 len = length(field[1])
|
|
11652 for (i = 2; i < nfields; i++) {
|
|
11653 key = field[i]
|
|
11654 keylen = length(key)
|
|
11655 if (S_is_set[key]) {
|
|
11656 value = S[key]
|
|
11657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
|
11658 len += length(value) + length(field[++i])
|
|
11659 substed = 1
|
|
11660 } else
|
|
11661 len += 1 + keylen
|
|
11662 }
|
|
11663
|
|
11664 print line
|
|
11665 }
|
|
11666
|
|
11667 _ACAWK
|
|
11668 _ACEOF
|
|
11669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
|
11671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
|
11672 else
|
|
11673 cat
|
|
11674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
|
11675 || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
|
11676 _ACEOF
|
|
11677
|
|
11678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
|
11679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
11680 # trailing colons and then remove the whole line if VPATH becomes empty
|
|
11681 # (actually we leave an empty line to preserve line numbers).
|
|
11682 if test "x$srcdir" = x.; then
|
|
11683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
11684 s/:*\$(srcdir):*/:/
|
|
11685 s/:*\${srcdir}:*/:/
|
|
11686 s/:*@srcdir@:*/:/
|
|
11687 s/^\([^=]*=[ ]*\):*/\1/
|
|
11688 s/:*$//
|
|
11689 s/^[^=]*=[ ]*$//
|
|
11690 }'
|
|
11691 fi
|
|
11692
|
|
11693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11694 fi # test -n "$CONFIG_FILES"
|
|
11695
|
|
11696 # Set up the scripts for CONFIG_HEADERS section.
|
|
11697 # No need to generate them if there are no CONFIG_HEADERS.
|
|
11698 # This happens for instance with `./config.status Makefile'.
|
|
11699 if test -n "$CONFIG_HEADERS"; then
|
|
11700 cat >"$tmp/defines.awk" <<\_ACAWK ||
|
|
11701 BEGIN {
|
|
11702 _ACEOF
|
|
11703
|
|
11704 # Transform confdefs.h into an awk script `defines.awk', embedded as
|
|
11705 # here-document in config.status, that substitutes the proper values into
|
|
11706 # config.h.in to produce config.h.
|
|
11707
|
|
11708 # Create a delimiter string that does not exist in confdefs.h, to ease
|
|
11709 # handling of long lines.
|
|
11710 ac_delim='%!_!# '
|
|
11711 for ac_last_try in false false :; do
|
|
11712 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
|
11713 if test -z "$ac_t"; then
|
|
11714 break
|
|
11715 elif $ac_last_try; then
|
|
11716 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
|
|
11717 else
|
|
11718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
11719 fi
|
|
11720 done
|
|
11721
|
|
11722 # For the awk script, D is an array of macro values keyed by name,
|
|
11723 # likewise P contains macro parameters if any. Preserve backslash
|
|
11724 # newline sequences.
|
|
11725
|
|
11726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
11727 sed -n '
|
|
11728 s/.\{148\}/&'"$ac_delim"'/g
|
|
11729 t rset
|
|
11730 :rset
|
|
11731 s/^[ ]*#[ ]*define[ ][ ]*/ /
|
|
11732 t def
|
|
11733 d
|
|
11734 :def
|
|
11735 s/\\$//
|
|
11736 t bsnl
|
|
11737 s/["\\]/\\&/g
|
|
11738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
11739 D["\1"]=" \3"/p
|
|
11740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
|
11741 d
|
|
11742 :bsnl
|
|
11743 s/["\\]/\\&/g
|
|
11744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
|
11745 D["\1"]=" \3\\\\\\n"\\/p
|
|
11746 t cont
|
|
11747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
|
11748 t cont
|
|
11749 d
|
|
11750 :cont
|
|
11751 n
|
|
11752 s/.\{148\}/&'"$ac_delim"'/g
|
|
11753 t clear
|
|
11754 :clear
|
|
11755 s/\\$//
|
|
11756 t bsnlc
|
|
11757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
|
11758 d
|
|
11759 :bsnlc
|
|
11760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
|
11761 b cont
|
|
11762 ' <confdefs.h | sed '
|
|
11763 s/'"$ac_delim"'/"\\\
|
|
11764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
|
11765
|
|
11766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11767 for (key in D) D_is_set[key] = 1
|
|
11768 FS = ""
|
|
11769 }
|
|
11770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
|
11771 line = \$ 0
|
|
11772 split(line, arg, " ")
|
|
11773 if (arg[1] == "#") {
|
|
11774 defundef = arg[2]
|
|
11775 mac1 = arg[3]
|
|
11776 } else {
|
|
11777 defundef = substr(arg[1], 2)
|
|
11778 mac1 = arg[2]
|
|
11779 }
|
|
11780 split(mac1, mac2, "(") #)
|
|
11781 macro = mac2[1]
|
|
11782 prefix = substr(line, 1, index(line, defundef) - 1)
|
|
11783 if (D_is_set[macro]) {
|
|
11784 # Preserve the white space surrounding the "#".
|
|
11785 print prefix "define", macro P[macro] D[macro]
|
|
11786 next
|
|
11787 } else {
|
|
11788 # Replace #undef with comments. This is necessary, for example,
|
|
11789 # in the case of _POSIX_SOURCE, which is predefined and required
|
|
11790 # on some systems where configure will not decide to define it.
|
|
11791 if (defundef == "undef") {
|
|
11792 print "/*", prefix defundef, macro, "*/"
|
|
11793 next
|
|
11794 }
|
|
11795 }
|
|
11796 }
|
|
11797 { print }
|
|
11798 _ACAWK
|
|
11799 _ACEOF
|
|
11800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11801 as_fn_error "could not setup config headers machinery" "$LINENO" 5
|
|
11802 fi # test -n "$CONFIG_HEADERS"
|
|
11803
|
|
11804
|
|
11805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
|
11806 shift
|
|
11807 for ac_tag
|
|
11808 do
|
|
11809 case $ac_tag in
|
|
11810 :[FHLC]) ac_mode=$ac_tag; continue;;
|
|
11811 esac
|
|
11812 case $ac_mode$ac_tag in
|
|
11813 :[FHL]*:*);;
|
|
11814 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
|
11815 :[FH]-) ac_tag=-:-;;
|
|
11816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
11817 esac
|
|
11818 ac_save_IFS=$IFS
|
|
11819 IFS=:
|
|
11820 set x $ac_tag
|
|
11821 IFS=$ac_save_IFS
|
|
11822 shift
|
|
11823 ac_file=$1
|
|
11824 shift
|
|
11825
|
|
11826 case $ac_mode in
|
|
11827 :L) ac_source=$1;;
|
|
11828 :[FH])
|
|
11829 ac_file_inputs=
|
|
11830 for ac_f
|
|
11831 do
|
|
11832 case $ac_f in
|
|
11833 -) ac_f="$tmp/stdin";;
|
|
11834 *) # Look for the file first in the build tree, then in the source tree
|
|
11835 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
11836 # because $ac_f cannot contain `:'.
|
|
11837 test -f "$ac_f" ||
|
|
11838 case $ac_f in
|
|
11839 [\\/$]*) false;;
|
|
11840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
11841 esac ||
|
|
11842 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
|
11843 esac
|
|
11844 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
|
11845 as_fn_append ac_file_inputs " '$ac_f'"
|
|
11846 done
|
|
11847
|
|
11848 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
11849 # use $as_me), people would be surprised to read:
|
|
11850 # /* config.h. Generated by config.status. */
|
|
11851 configure_input='Generated from '`
|
|
11852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
|
11853 `' by configure.'
|
|
11854 if test x"$ac_file" != x-; then
|
|
11855 configure_input="$ac_file. $configure_input"
|
|
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
|
11857 $as_echo "$as_me: creating $ac_file" >&6;}
|
|
11858 fi
|
|
11859 # Neutralize special characters interpreted by sed in replacement strings.
|
|
11860 case $configure_input in #(
|
|
11861 *\&* | *\|* | *\\* )
|
|
11862 ac_sed_conf_input=`$as_echo "$configure_input" |
|
|
11863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
|
11864 *) ac_sed_conf_input=$configure_input;;
|
|
11865 esac
|
|
11866
|
|
11867 case $ac_tag in
|
|
11868 *:-:* | *:-) cat >"$tmp/stdin" \
|
|
11869 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
|
11870 esac
|
|
11871 ;;
|
|
11872 esac
|
|
11873
|
|
11874 ac_dir=`$as_dirname -- "$ac_file" ||
|
|
11875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
11876 X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
11877 X"$ac_file" : 'X\(//\)$' \| \
|
|
11878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
11879 $as_echo X"$ac_file" |
|
|
11880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
11881 s//\1/
|
|
11882 q
|
|
11883 }
|
|
11884 /^X\(\/\/\)[^/].*/{
|
|
11885 s//\1/
|
|
11886 q
|
|
11887 }
|
|
11888 /^X\(\/\/\)$/{
|
|
11889 s//\1/
|
|
11890 q
|
|
11891 }
|
|
11892 /^X\(\/\).*/{
|
|
11893 s//\1/
|
|
11894 q
|
|
11895 }
|
|
11896 s/.*/./; q'`
|
|
11897 as_dir="$ac_dir"; as_fn_mkdir_p
|
|
11898 ac_builddir=.
|
|
11899
|
|
11900 case "$ac_dir" in
|
|
11901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
11902 *)
|
|
11903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
11904 # A ".." for each directory in $ac_dir_suffix.
|
|
11905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
11906 case $ac_top_builddir_sub in
|
|
11907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
11908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
11909 esac ;;
|
|
11910 esac
|
|
11911 ac_abs_top_builddir=$ac_pwd
|
|
11912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
11913 # for backward compatibility:
|
|
11914 ac_top_builddir=$ac_top_build_prefix
|
|
11915
|
|
11916 case $srcdir in
|
|
11917 .) # We are building in place.
|
|
11918 ac_srcdir=.
|
|
11919 ac_top_srcdir=$ac_top_builddir_sub
|
|
11920 ac_abs_top_srcdir=$ac_pwd ;;
|
|
11921 [\\/]* | ?:[\\/]* ) # Absolute name.
|
|
11922 ac_srcdir=$srcdir$ac_dir_suffix;
|
|
11923 ac_top_srcdir=$srcdir
|
|
11924 ac_abs_top_srcdir=$srcdir ;;
|
|
11925 *) # Relative name.
|
|
11926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
11927 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
11928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
11929 esac
|
|
11930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
11931
|
|
11932
|
|
11933 case $ac_mode in
|
|
11934 :F)
|
|
11935 #
|
|
11936 # CONFIG_FILE
|
|
11937 #
|
|
11938
|
|
11939 case $INSTALL in
|
|
11940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
|
11941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
|
11942 esac
|
|
11943 ac_MKDIR_P=$MKDIR_P
|
|
11944 case $MKDIR_P in
|
|
11945 [\\/$]* | ?:[\\/]* ) ;;
|
|
11946 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
|
11947 esac
|
|
11948 _ACEOF
|
|
11949
|
|
11950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11951 # If the template does not know about datarootdir, expand it.
|
|
11952 # FIXME: This hack should be removed a few years after 2.60.
|
|
11953 ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
11954 ac_sed_dataroot='
|
|
11955 /datarootdir/ {
|
|
11956 p
|
|
11957 q
|
|
11958 }
|
|
11959 /@datadir@/p
|
|
11960 /@docdir@/p
|
|
11961 /@infodir@/p
|
|
11962 /@localedir@/p
|
|
11963 /@mandir@/p'
|
|
11964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
|
11965 *datarootdir*) ac_datarootdir_seen=yes;;
|
|
11966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
11968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
11969 _ACEOF
|
|
11970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11971 ac_datarootdir_hack='
|
|
11972 s&@datadir@&$datadir&g
|
|
11973 s&@docdir@&$docdir&g
|
|
11974 s&@infodir@&$infodir&g
|
|
11975 s&@localedir@&$localedir&g
|
|
11976 s&@mandir@&$mandir&g
|
|
11977 s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
11978 esac
|
|
11979 _ACEOF
|
|
11980
|
|
11981 # Neutralize VPATH when `$srcdir' = `.'.
|
|
11982 # Shell code in configure.ac might set extrasub.
|
|
11983 # FIXME: do we really want to maintain this feature?
|
|
11984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
11985 ac_sed_extra="$ac_vpsub
|
|
11986 $extrasub
|
|
11987 _ACEOF
|
|
11988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|
11989 :t
|
|
11990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
11991 s|@configure_input@|$ac_sed_conf_input|;t t
|
|
11992 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
11993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
|
11994 s&@srcdir@&$ac_srcdir&;t t
|
|
11995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
11996 s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
11997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
11998 s&@builddir@&$ac_builddir&;t t
|
|
11999 s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
12000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
12001 s&@INSTALL@&$ac_INSTALL&;t t
|
|
12002 s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
|
12003 $ac_datarootdir_hack
|
|
12004 "
|
|
12005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
|
12006 || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
12007
|
|
12008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
12009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
12010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
12012 which seems to be undefined. Please make sure it is defined." >&5
|
|
12013 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
12014 which seems to be undefined. Please make sure it is defined." >&2;}
|
|
12015
|
|
12016 rm -f "$tmp/stdin"
|
|
12017 case $ac_file in
|
|
12018 -) cat "$tmp/out" && rm -f "$tmp/out";;
|
|
12019 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
|
12020 esac \
|
|
12021 || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
12022 ;;
|
|
12023 :H)
|
|
12024 #
|
|
12025 # CONFIG_HEADER
|
|
12026 #
|
|
12027 if test x"$ac_file" != x-; then
|
|
12028 {
|
|
12029 $as_echo "/* $configure_input */" \
|
|
12030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
|
12031 } >"$tmp/config.h" \
|
|
12032 || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
12033 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
|
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
|
12035 $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
|
12036 else
|
|
12037 rm -f "$ac_file"
|
|
12038 mv "$tmp/config.h" "$ac_file" \
|
|
12039 || as_fn_error "could not create $ac_file" "$LINENO" 5
|
|
12040 fi
|
|
12041 else
|
|
12042 $as_echo "/* $configure_input */" \
|
|
12043 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
|
12044 || as_fn_error "could not create -" "$LINENO" 5
|
|
12045 fi
|
|
12046 # Compute "$ac_file"'s index in $config_headers.
|
|
12047 _am_arg="$ac_file"
|
|
12048 _am_stamp_count=1
|
|
12049 for _am_header in $config_headers :; do
|
|
12050 case $_am_header in
|
|
12051 $_am_arg | $_am_arg:* )
|
|
12052 break ;;
|
|
12053 * )
|
|
12054 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
12055 esac
|
|
12056 done
|
|
12057 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
|
12058 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
12059 X"$_am_arg" : 'X\(//\)[^/]' \| \
|
|
12060 X"$_am_arg" : 'X\(//\)$' \| \
|
|
12061 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
|
12062 $as_echo X"$_am_arg" |
|
|
12063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
12064 s//\1/
|
|
12065 q
|
|
12066 }
|
|
12067 /^X\(\/\/\)[^/].*/{
|
|
12068 s//\1/
|
|
12069 q
|
|
12070 }
|
|
12071 /^X\(\/\/\)$/{
|
|
12072 s//\1/
|
|
12073 q
|
|
12074 }
|
|
12075 /^X\(\/\).*/{
|
|
12076 s//\1/
|
|
12077 q
|
|
12078 }
|
|
12079 s/.*/./; q'`/stamp-h$_am_stamp_count
|
|
12080 ;;
|
|
12081
|
|
12082 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
|
12083 $as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
12084 ;;
|
|
12085 esac
|
|
12086
|
|
12087
|
|
12088 case $ac_file$ac_mode in
|
|
12089 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
|
12090 # Autoconf 2.62 quotes --file arguments for eval, but not when files
|
|
12091 # are listed without --file. Let's play safe and only enable the eval
|
|
12092 # if we detect the quoting.
|
|
12093 case $CONFIG_FILES in
|
|
12094 *\'*) eval set x "$CONFIG_FILES" ;;
|
|
12095 *) set x $CONFIG_FILES ;;
|
|
12096 esac
|
|
12097 shift
|
|
12098 for mf
|
|
12099 do
|
|
12100 # Strip MF so we end up with the name of the file.
|
|
12101 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
12102 # Check whether this is an Automake generated Makefile or not.
|
|
12103 # We used to match only the files named `Makefile.in', but
|
|
12104 # some people rename them; so instead we look at the file content.
|
|
12105 # Grep'ing the first line is not enough: some people post-process
|
|
12106 # each Makefile.in and add a new line on top of each file to say so.
|
|
12107 # Grep'ing the whole file is not good either: AIX grep has a line
|
|
12108 # limit of 2048, but all sed's we know have understand at least 4000.
|
|
12109 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
12110 dirpart=`$as_dirname -- "$mf" ||
|
|
12111 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
12112 X"$mf" : 'X\(//\)[^/]' \| \
|
|
12113 X"$mf" : 'X\(//\)$' \| \
|
|
12114 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
|
12115 $as_echo X"$mf" |
|
|
12116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
12117 s//\1/
|
|
12118 q
|
|
12119 }
|
|
12120 /^X\(\/\/\)[^/].*/{
|
|
12121 s//\1/
|
|
12122 q
|
|
12123 }
|
|
12124 /^X\(\/\/\)$/{
|
|
12125 s//\1/
|
|
12126 q
|
|
12127 }
|
|
12128 /^X\(\/\).*/{
|
|
12129 s//\1/
|
|
12130 q
|
|
12131 }
|
|
12132 s/.*/./; q'`
|
|
12133 else
|
|
12134 continue
|
|
12135 fi
|
|
12136 # Extract the definition of DEPDIR, am__include, and am__quote
|
|
12137 # from the Makefile without running `make'.
|
|
12138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
12139 test -z "$DEPDIR" && continue
|
|
12140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
12141 test -z "am__include" && continue
|
|
12142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
12143 # When using ansi2knr, U may be empty or an underscore; expand it
|
|
12144 U=`sed -n 's/^U = //p' < "$mf"`
|
|
12145 # Find all dependency output files, they are included files with
|
|
12146 # $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
12147 # simplest approach to changing $(DEPDIR) to its actual value in the
|
|
12148 # expansion.
|
|
12149 for file in `sed -n "
|
|
12150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
12151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
12152 # Make sure the directory exists.
|
|
12153 test -f "$dirpart/$file" && continue
|
|
12154 fdir=`$as_dirname -- "$file" ||
|
|
12155 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
12156 X"$file" : 'X\(//\)[^/]' \| \
|
|
12157 X"$file" : 'X\(//\)$' \| \
|
|
12158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
12159 $as_echo X"$file" |
|
|
12160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
12161 s//\1/
|
|
12162 q
|
|
12163 }
|
|
12164 /^X\(\/\/\)[^/].*/{
|
|
12165 s//\1/
|
|
12166 q
|
|
12167 }
|
|
12168 /^X\(\/\/\)$/{
|
|
12169 s//\1/
|
|
12170 q
|
|
12171 }
|
|
12172 /^X\(\/\).*/{
|
|
12173 s//\1/
|
|
12174 q
|
|
12175 }
|
|
12176 s/.*/./; q'`
|
|
12177 as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
|
12178 # echo "creating $dirpart/$file"
|
|
12179 echo '# dummy' > "$dirpart/$file"
|
|
12180 done
|
|
12181 done
|
|
12182 }
|
|
12183 ;;
|
|
12184
|
|
12185 esac
|
|
12186 done # for ac_tag
|
|
12187
|
|
12188
|
|
12189 as_fn_exit 0
|
|
12190 _ACEOF
|
|
12191 ac_clean_files=$ac_clean_files_save
|
|
12192
|
|
12193 test $ac_write_fail = 0 ||
|
|
12194 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
|
12195
|
|
12196
|
|
12197 # configure is writing to config.log, and then calls config.status.
|
|
12198 # config.status does its own redirection, appending to config.log.
|
|
12199 # Unfortunately, on DOS this fails, as config.log is still kept open
|
|
12200 # by configure, so config.status won't be able to write to it; its
|
|
12201 # output is simply discarded. So we exec the FD to /dev/null,
|
|
12202 # effectively closing config.log, so it can be properly (re)opened and
|
|
12203 # appended to by config.status. When coming back to configure, we
|
|
12204 # need to make the FD available again.
|
|
12205 if test "$no_create" != yes; then
|
|
12206 ac_cs_success=:
|
|
12207 ac_config_status_args=
|
|
12208 test "$silent" = yes &&
|
|
12209 ac_config_status_args="$ac_config_status_args --quiet"
|
|
12210 exec 5>/dev/null
|
|
12211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
12212 exec 5>>config.log
|
|
12213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
12214 # would make configure fail if this is the last instruction.
|
|
12215 $ac_cs_success || as_fn_exit $?
|
|
12216 fi
|
|
12217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
|
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
|
12219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
|
12220 fi
|
|
12221
|